]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
extracted common code of ToLong and ToULong in a separate template helper
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c370783e 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
c370783e 1032
1bd55598 1033/* Error manipulation */
c370783e 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1041}
d55e5bfc 1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
d55e5bfc 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
36ed4f51 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
36ed4f51 1100 }
1bd55598
RD
1101 return result;
1102#endif
36ed4f51 1103}
c370783e 1104
1bd55598 1105/* Unpack the argument tuple */
d55e5bfc 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
36ed4f51
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51 1682 type_init = 1;
d55e5bfc 1683 }
32fe5131 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
36ed4f51 1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51 1698}
c370783e 1699
36ed4f51
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c370783e 1713{
36ed4f51
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
c370783e 1723}
c370783e 1724
36ed4f51
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c370783e 1727{
36ed4f51
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51 1733 }
d55e5bfc
RD
1734}
1735
36ed4f51
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
d55e5bfc 1746
36ed4f51
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
36ed4f51 1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
d55e5bfc 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
d55e5bfc 1865 }
1bd55598 1866 return (PyObject *) sobj;
d55e5bfc
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51 1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
d55e5bfc 1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51 1880}
d55e5bfc 1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d6c14a4c 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
c370783e 1947 }
d55e5bfc
RD
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51 1963}
d55e5bfc 1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
d55e5bfc 2042 }
c370783e
RD
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51 2069 }
d55e5bfc
RD
2070}
2071
1bd55598 2072/* Convert a packed value value */
d55e5bfc 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51 2158}
d55e5bfc 2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
d55e5bfc 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
c370783e
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
d55e5bfc
RD
2224}
2225
36ed4f51
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 2241#else
36ed4f51
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
d55e5bfc 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51 2251}
d55e5bfc 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
d55e5bfc 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d55e5bfc 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
d55e5bfc 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628#define SWIGTYPE_p_wxTIFFHandler swig_types[162]
2629#define SWIGTYPE_p_wxUpdateUIEvent swig_types[163]
2630#define SWIGTYPE_p_wxValidator swig_types[164]
2631#define SWIGTYPE_p_wxWindow swig_types[165]
2632#define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
2633#define SWIGTYPE_p_wxWindowDC swig_types[167]
2634#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[168]
2635#define SWIGTYPE_p_wxXPMHandler swig_types[169]
2636static swig_type_info *swig_types[171];
2637static swig_module_info swig_module = {swig_types, 170, 0, 0, 0, 0};
32fe5131
RD
2638#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2639#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2640
36ed4f51 2641/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2642
1bd55598
RD
2643#if (PY_VERSION_HEX <= 0x02000000)
2644# if !defined(SWIG_PYTHON_CLASSIC)
2645# error "This python version requires to use swig with the '-classic' option"
2646# endif
2647#endif
2648#if (PY_VERSION_HEX <= 0x02020000)
2649# error "This python version requires to use swig with the '-nomodern' option"
2650#endif
2651#if (PY_VERSION_HEX <= 0x02020000)
2652# error "This python version requires to use swig with the '-nomodernargs' option"
2653#endif
2654#ifndef METH_O
2655# error "This python version requires to use swig with the '-nofastunpack' option"
2656#endif
d55e5bfc 2657
36ed4f51
RD
2658/*-----------------------------------------------
2659 @(target):= _gdi_.so
2660 ------------------------------------------------*/
2661#define SWIG_init init_gdi_
d55e5bfc 2662
36ed4f51 2663#define SWIG_name "_gdi_"
d55e5bfc 2664
1bd55598 2665#define SWIGVERSION 0x010329
d55e5bfc 2666
d55e5bfc 2667
1bd55598
RD
2668#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2669#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2670
2671
1bd55598
RD
2672#include <stdexcept>
2673
2674
2675namespace swig {
2676 class PyObject_ptr {
2677 protected:
2678 PyObject *_obj;
2679
2680 public:
2681 PyObject_ptr() :_obj(0)
2682 {
36ed4f51 2683 }
1bd55598
RD
2684
2685 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2686 {
2687 Py_XINCREF(_obj);
36ed4f51 2688 }
1bd55598
RD
2689
2690 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2691 {
2692 if (initial_ref) Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr & operator=(const PyObject_ptr& item)
2696 {
2697 Py_XINCREF(item._obj);
2698 Py_XDECREF(_obj);
2699 _obj = item._obj;
2700 return *this;
2701 }
2702
2703 ~PyObject_ptr()
2704 {
2705 Py_XDECREF(_obj);
2706 }
2707
2708 operator PyObject *() const
2709 {
2710 return _obj;
2711 }
2712
2713 PyObject *operator->() const
2714 {
2715 return _obj;
2716 }
2717 };
36ed4f51 2718}
d55e5bfc 2719
d55e5bfc 2720
1bd55598
RD
2721namespace swig {
2722 struct PyObject_var : PyObject_ptr {
2723 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2724
2725 PyObject_var & operator = (PyObject* obj)
2726 {
2727 Py_XDECREF(_obj);
2728 _obj = obj;
2729 return *this;
d55e5bfc 2730 }
1bd55598 2731 };
d55e5bfc
RD
2732}
2733
2734
1bd55598
RD
2735#include "wx/wxPython/wxPython.h"
2736#include "wx/wxPython/pyclasses.h"
2737
2738
2739 static const wxString wxPyEmptyString(wxEmptyString);
2740
2131d850
RD
2741 #define SWIG_From_long PyInt_FromLong
2742
2743
2744SWIGINTERNINLINE PyObject *
2745SWIG_From_int (int value)
2746{
2747 return SWIG_From_long (value);
2748}
2749
2750
1bd55598
RD
2751#include <limits.h>
2752#ifndef LLONG_MIN
2753# define LLONG_MIN LONG_LONG_MIN
2754#endif
2755#ifndef LLONG_MAX
2756# define LLONG_MAX LONG_LONG_MAX
2757#endif
2758#ifndef ULLONG_MAX
2759# define ULLONG_MAX ULONG_LONG_MAX
2760#endif
d55e5bfc
RD
2761
2762
da91cb0f
RD
2763SWIGINTERN int
2764SWIG_AsVal_long (PyObject* obj, long* val)
2765{
2766 if (PyNumber_Check(obj)) {
2767 if (val) *val = PyInt_AsLong(obj);
2768 return SWIG_OK;
2769 }
2770 return SWIG_TypeError;
2771}
2772
2773
36ed4f51 2774SWIGINTERN int
1bd55598 2775SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2776{
2777 long v = 0;
2778 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2779 return SWIG_TypeError;
36ed4f51
RD
2780 }
2781 else if (val)
2782 *val = (unsigned long)v;
1bd55598 2783 return SWIG_OK;
36ed4f51 2784}
d55e5bfc
RD
2785
2786
36ed4f51 2787SWIGINTERN int
1bd55598
RD
2788SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2789{
36ed4f51 2790 unsigned long v;
1bd55598
RD
2791 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v > UCHAR_MAX)) {
2794 return SWIG_OverflowError;
36ed4f51 2795 } else {
1bd55598 2796 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2797 }
1bd55598
RD
2798 }
2799 return res;
36ed4f51 2800}
d55e5bfc 2801
d55e5bfc 2802
1bd55598
RD
2803SWIGINTERNINLINE PyObject*
2804SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2805{
1bd55598
RD
2806 return (value > LONG_MAX) ?
2807 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2808}
2809
2810
1bd55598
RD
2811SWIGINTERNINLINE PyObject *
2812SWIG_From_unsigned_SS_char (unsigned char value)
2813{
2814 return SWIG_From_unsigned_SS_long (value);
2815}
d55e5bfc 2816
e9d6f3a4
RD
2817SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2818 wxColour temp, *obj = &temp;
2819 if ( other == Py_None ) return false;
2820 if ( ! wxColour_helper(other, &obj) ) {
2821 PyErr_Clear();
2822 return false;
2823 }
2824 return self->operator==(*obj);
2825 }
2826SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2827 wxColour temp, *obj = &temp;
2828 if ( other == Py_None ) return true;
2829 if ( ! wxColour_helper(other, &obj)) {
2830 PyErr_Clear();
2831 return true;
2832 }
2833 return self->operator!=(*obj);
2834 }
fc46b7f3
RD
2835
2836SWIGINTERN int
2837SWIG_AsVal_bool (PyObject *obj, bool *val)
2838{
2839 if (obj == Py_True) {
2840 if (val) *val = true;
2841 return SWIG_OK;
2842 } else if (obj == Py_False) {
2843 if (val) *val = false;
2844 return SWIG_OK;
2845 } else {
2846 long v = 0;
2847 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2848 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2849 return res;
2850 }
2851}
2852
2853SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2854 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2855 int red = -1;
2856 int green = -1;
2857 int blue = -1;
fc46b7f3 2858 int alpha = wxALPHA_OPAQUE;
b39fe951 2859 if (self->IsOk()) {
36ed4f51
RD
2860 red = self->Red();
2861 green = self->Green();
2862 blue = self->Blue();
fc46b7f3 2863 alpha = self->Alpha();
36ed4f51
RD
2864 }
2865 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2866 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2867 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2868 if (includeAlpha)
2869 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2870 return rv;
2871 }
1bd55598 2872SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2873 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2874 }
d55e5bfc 2875
1bd55598
RD
2876SWIGINTERN int
2877SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2878{
1bd55598
RD
2879 long v;
2880 int res = SWIG_AsVal_long (obj, &v);
2881 if (SWIG_IsOK(res)) {
2882 if ((v < INT_MIN || v > INT_MAX)) {
2883 return SWIG_OverflowError;
2884 } else {
2885 if (val) *val = static_cast< int >(v);
2886 }
2887 }
2888 return res;
d55e5bfc
RD
2889}
2890
1bd55598 2891SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2892 wxDash* dashes;
2893 int count = self->GetDashes(&dashes);
5a446332 2894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2895 PyObject* retval = PyList_New(0);
2896 for (int x=0; x<count; x++) {
2897 PyObject* pyint = PyInt_FromLong(dashes[x]);
2898 PyList_Append(retval, pyint);
2899 Py_DECREF(pyint);
2900 }
2901 wxPyEndBlockThreads(blocked);
2902 return retval;
2903 }
1bd55598 2904SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2905 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2906 int size = PyList_Size(pyDashes);
2907 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2908
36ed4f51
RD
2909 // black magic warning! The array of wxDashes needs to exist as
2910 // long as the pen does because wxPen does not copy the array. So
2911 // stick a copy in a Python string object and attach it to _self,
2912 // and then call SetDashes with a pointer to that array. Then
2913 // when the Python pen object is destroyed the array will be
2914 // cleaned up too.
2915 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2916 PyObject_SetAttrString(_self, "_dashes", strDashes);
2917
2918 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2919 delete [] dashes;
2920 Py_DECREF(strDashes);
2921 wxPyEndBlockThreads(blocked);
2922 }
1bd55598
RD
2923SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2924SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2925
1bd55598
RD
2926SWIGINTERNINLINE PyObject *
2927SWIG_From_short (short value)
2928{
2929 return SWIG_From_long (value);
2930}
d55e5bfc
RD
2931
2932
36ed4f51 2933SWIGINTERN int
1bd55598
RD
2934SWIG_AsVal_short (PyObject * obj, short *val)
2935{
36ed4f51 2936 long v;
1bd55598
RD
2937 int res = SWIG_AsVal_long (obj, &v);
2938 if (SWIG_IsOK(res)) {
2939 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2940 return SWIG_OverflowError;
36ed4f51 2941 } else {
1bd55598
RD
2942 if (val) *val = static_cast< short >(v);
2943 }
2944 }
2945 return res;
d55e5bfc
RD
2946}
2947
2948
fc46b7f3
RD
2949#include <wx/rawbmp.h>
2950
2951
36ed4f51 2952#include <wx/image.h>
d55e5bfc 2953
36ed4f51
RD
2954 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2955 char** cArray = NULL;
2956 int count;
d55e5bfc 2957
36ed4f51
RD
2958 if (!PyList_Check(listOfStrings)) {
2959 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2960 return NULL;
2961 }
2962 count = PyList_Size(listOfStrings);
2963 cArray = new char*[count];
d55e5bfc 2964
36ed4f51
RD
2965 for(int x=0; x<count; x++) {
2966 // TODO: Need some validation and error checking here
2967 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2968 }
2969 return cArray;
d55e5bfc 2970 }
d55e5bfc
RD
2971
2972
1bd55598 2973SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2974 char** cArray = NULL;
2975 wxBitmap* bmp;
2976
2977 cArray = ConvertListOfStrings(listOfStrings);
2978 if (! cArray)
2979 return NULL;
2980 bmp = new wxBitmap(cArray);
2981 delete [] cArray;
2982 return bmp;
2983 }
1bd55598 2984SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2985 char* buf;
2986 Py_ssize_t length;
2987 PyString_AsStringAndSize(bits, &buf, &length);
2988 return new wxBitmap(buf, width, height, depth);
2989 }
1bd55598 2990SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
2991 wxSize size(self->GetWidth(), self->GetHeight());
2992 return size;
2993 }
1bd55598 2994SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
2995 wxMask *mask = new wxMask(*self, colour);
2996 self->SetMask(mask);
2997 }
1bd55598 2998SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
2999 self->SetWidth(size.x);
3000 self->SetHeight(size.y);
3001 }
1bd55598
RD
3002SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
3003SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
3004
3005// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
3006// appears to me that the other platforms are already doing it, so I'll just
3007// automatically do it for wxMSW here.
3008#ifdef __WXMSW__
195a89b4
RD
3009#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
3010#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
3011#else
3012#define wxPy_premultiply(p, a) (p)
3013#define wxPy_unpremultiply(p, a) (p)
3014#endif
3015
3016
3017 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3018 buffer data, int DATASIZE,
3019 buffer alpha, int ALPHASIZE)
3020 {
3021 if (DATASIZE != width*height*3) {
3022 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3023 return NULL;
3024 }
3025
3026 if (ALPHASIZE != width*height) {
3027 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3028 return NULL;
3029 }
3030
3031 wxBitmap* bmp = new wxBitmap(width, height, 32);
3032 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3033 if (! pixData) {
3034 // raise an exception...
3035 wxPyErr_SetString(PyExc_RuntimeError,
3036 "Failed to gain raw access to bitmap data.");
3037 return NULL;
3038 }
3039
3040 pixData.UseAlpha();
3041 wxAlphaPixelData::Iterator p(pixData);
3042 for (int y=0; y<height; y++) {
3043 wxAlphaPixelData::Iterator rowStart = p;
3044 for (int x=0; x<width; x++) {
3045 byte a = *(alpha++);
3046 p.Red() = wxPy_premultiply(*(data++), a);
3047 p.Green() = wxPy_premultiply(*(data++), a);
3048 p.Blue() = wxPy_premultiply(*(data++), a);
3049 p.Alpha() = a;
3050 ++p;
3051 }
3052 p = rowStart;
3053 p.OffsetY(pixData, 1);
3054 }
3055 return bmp;
3056 }
3057
3058 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3059 {
3060 if (DATASIZE != width*height*3) {
3061 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3062 return NULL;
3063 }
3064
3065 wxBitmap* bmp = new wxBitmap(width, height, 24);
3066 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3067 if (! pixData) {
3068 // raise an exception...
3069 wxPyErr_SetString(PyExc_RuntimeError,
3070 "Failed to gain raw access to bitmap data.");
3071 return NULL;
3072 }
3073
3074 wxNativePixelData::Iterator p(pixData);
3075 for (int y=0; y<height; y++) {
3076 wxNativePixelData::Iterator rowStart = p;
3077 for (int x=0; x<width; x++) {
3078 p.Red() = *(data++);
3079 p.Green() = *(data++);
3080 p.Blue() = *(data++);
3081 ++p;
3082 }
3083 p = rowStart;
3084 p.OffsetY(pixData, 1);
3085 }
3086 return bmp;
3087 }
3088
3089
3090 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3091 {
3092 if (DATASIZE != width*height*4) {
3093 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3094 return NULL;
3095 }
3096
3097 wxBitmap* bmp = new wxBitmap(width, height, 32);
3098 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3099 if (! pixData) {
3100 // raise an exception...
3101 wxPyErr_SetString(PyExc_RuntimeError,
3102 "Failed to gain raw access to bitmap data.");
3103 return NULL;
3104 }
3105
3106 pixData.UseAlpha();
3107 wxAlphaPixelData::Iterator p(pixData);
3108 for (int y=0; y<height; y++) {
3109 wxAlphaPixelData::Iterator rowStart = p;
3110 for (int x=0; x<width; x++) {
3111 byte a = data[3];
3112 p.Red() = wxPy_premultiply(*(data++), a);
3113 p.Green() = wxPy_premultiply(*(data++), a);
3114 p.Blue() = wxPy_premultiply(*(data++), a);
3115 p.Alpha() = a; data++;
3116 ++p;
3117 }
3118 p = rowStart;
3119 p.OffsetY(pixData, 1);
3120 }
3121 return bmp;
3122 }
3123
3124
3125 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3126
3127SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3128SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3129SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3130 self->Red() = red;
3131 self->Green() = green;
3132 self->Blue() = blue;
3133 }
3134SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3135 PyObject* rv = PyTuple_New(3);
3136 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3137 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3138 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3139 return rv;
3140 }
3141
3142 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3143
3144SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3145SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3146SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3147 self->Red() = wxPy_premultiply(red, alpha);
3148 self->Green() = wxPy_premultiply(green, alpha);
3149 self->Blue() = wxPy_premultiply(blue, alpha);
3150 self->Alpha() = alpha;
3151 }
3152SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3153 PyObject* rv = PyTuple_New(4);
3154 int red = self->Red();
3155 int green = self->Green();
3156 int blue = self->Blue();
3157 int alpha = self->Alpha();
3158
3159 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3160 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3161 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3162 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3163 return rv;
3164 }
1bd55598 3165SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3166 if ( !colour.IsOk() )
36ed4f51
RD
3167 return new wxMask(bitmap, *wxBLACK);
3168 else
3169 return new wxMask(bitmap, colour);
3170 }
d55e5bfc 3171
36ed4f51 3172#include <wx/iconbndl.h>
d55e5bfc 3173
1bd55598 3174SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3175 wxIcon* icon = new wxIcon();
3176 icon->CopyFromBitmap(bmp);
3177 return icon;
3178 }
1bd55598 3179SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3180 char** cArray = NULL;
3181 wxIcon* icon;
d55e5bfc 3182
36ed4f51
RD
3183 cArray = ConvertListOfStrings(listOfStrings);
3184 if (! cArray)
3185 return NULL;
3186 icon = new wxIcon(cArray);
3187 delete [] cArray;
3188 return icon;
3189 }
1bd55598 3190SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3191
3192
d55e5bfc 3193
36ed4f51 3194 return new wxIconLocation(*filename);
d55e5bfc 3195
36ed4f51 3196 }
1bd55598 3197SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3198
3199
d55e5bfc 3200
36ed4f51 3201 // do nothing
d55e5bfc 3202
36ed4f51 3203 }
1bd55598 3204SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3205
3206
d55e5bfc 3207
36ed4f51 3208 return -1;
d55e5bfc 3209
36ed4f51 3210 }
1bd55598 3211SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3212#ifdef __WXGTK__
fef4c27a
RD
3213 wxImage img(cursorName, type);
3214 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3215 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3216 return new wxCursor(img);
36ed4f51 3217#else
fef4c27a 3218 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3219#endif
3220 }
d55e5bfc 3221
d55e5bfc 3222
1bd55598 3223SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3224 (*self) ++;
3225 }
1bd55598 3226SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3227 return self->operator bool();
3228 }
d55e5bfc 3229
36ed4f51
RD
3230#include <wx/fontutil.h>
3231#include <wx/fontmap.h>
3232#include <wx/fontenum.h>
d55e5bfc 3233
1bd55598 3234SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3235 return self->ToString();
3236 }
d55e5bfc 3237
36ed4f51
RD
3238 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3239 static wxNativeEncodingInfo info;
3240 if ( wxGetNativeFontEncoding(encoding, &info) )
3241 return &info;
3242 else
3243 return NULL;
d55e5bfc 3244 }
d55e5bfc 3245
1bd55598
RD
3246
3247SWIGINTERNINLINE PyObject *
3248SWIG_From_size_t (size_t value)
3249{
3250 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3251}
3252
3253
3254SWIGINTERNINLINE int
3255SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3256{
3257 unsigned long v;
3258 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3259 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3260 return res;
3261}
3262
3263SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3264 wxFontEncoding alt_enc;
3265 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3266 return PyInt_FromLong(alt_enc);
3267 else {
3268 Py_INCREF(Py_None);
3269 return Py_None;
3270 }
3271 }
1bd55598 3272SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3273 wxNativeFontInfo nfi;
3274 nfi.FromString(info);
3275 return new wxFont(nfi);
3276 }
1bd55598 3277SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3278 return wxFont::New(pointSize, family, flags, face, encoding);
3279 }
1bd55598 3280SWIGINTERN 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
3281 return wxFontBase::New(pixelSize, family,
3282 style, weight, underlined,
3283 face, encoding);
3284 }
1bd55598 3285SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3286 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3287 }
1bd55598
RD
3288SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3289SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3290
36ed4f51
RD
3291class wxPyFontEnumerator : public wxFontEnumerator {
3292public:
3293 wxPyFontEnumerator() {}
3294 ~wxPyFontEnumerator() {}
d55e5bfc 3295
36ed4f51
RD
3296 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3297 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3298
36ed4f51
RD
3299 PYPRIVATE;
3300};
d55e5bfc 3301
36ed4f51
RD
3302IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3303IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3304
36ed4f51 3305
704eda0c 3306SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3307 PyObject* ret;
704eda0c 3308 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3309 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3310 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3311 wxPyEndBlockThreads(blocked);
3312 return ret;
36ed4f51 3313 }
704eda0c 3314SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3315 PyObject* ret;
704eda0c 3316 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3317 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3318 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3319 wxPyEndBlockThreads(blocked);
3320 return ret;
36ed4f51
RD
3321 }
3322
3323#include <locale.h>
3324
1bd55598 3325SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3326 wxLocale* loc;
3327 if (language == -1)
3328 loc = new wxLocale();
3329 else
3330 loc = new wxLocale(language, flags);
3331 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3332 // for the floating point conversions and such to work right.
3333#if PY_VERSION_HEX < 0x02040000
3334 setlocale(LC_NUMERIC, "C");
3335#endif
3336 return loc;
3337 }
1bd55598 3338SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3339 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3340 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3341 // for the floating point conversions and such to work right.
3342#if PY_VERSION_HEX < 0x02040000
3343 setlocale(LC_NUMERIC, "C");
3344#endif
3345 return rc;
3346 }
1bd55598 3347SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3348 bool rc = self->Init(language, flags);
3349 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3350 // for the floating point conversions and such to work right.
3351#if PY_VERSION_HEX < 0x02040000
3352 setlocale(LC_NUMERIC, "C");
3353#endif
3354 return rc;
3355 }
3356
fc46b7f3
RD
3357class wxPyLocale : public wxLocale
3358{
3359public:
3360 wxPyLocale();
3361
3362 wxPyLocale(const wxChar *szName, // name (for messages)
3363 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3364 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3365 bool bLoadDefault = true, // preload wxstd.mo?
3366 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3367
3368 wxPyLocale(int language, // wxLanguage id or custom language
3369 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3370
3371 ~wxPyLocale();
3372
3373 virtual const wxChar *GetString(const wxChar *szOrigString,
3374 const wxChar *szDomain = NULL) const;
3375 virtual const wxChar *GetString(const wxChar *szOrigString,
3376 const wxChar *szOrigString2, size_t n,
3377 const wxChar *szDomain = NULL) const;
3378
3379 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3380 const wxChar *szDomain = NULL) const;
3381 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3382 const wxChar *szOrigString2, size_t n,
3383 const wxChar *szDomain = NULL) const;
3384
3385 PYPRIVATE;
3386private:
3387 DECLARE_NO_COPY_CLASS(wxPyLocale)
3388};
3389
3390wxPyLocale::wxPyLocale() : wxLocale()
3391{
3392}
3393
3394wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3395 const wxChar *szShort, // dir prefix (for msg files)
3396 const wxChar *szLocale, // locale (for setlocale)
3397 bool bLoadDefault, // preload wxstd.mo?
3398 bool bConvertEncoding) // convert Win<->Unix if necessary?
3399 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3400{
3401}
3402
3403wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3404 int flags) : wxLocale(language, flags)
3405{
3406}
3407
3408wxPyLocale::~wxPyLocale()
3409{
3410}
3411
3412const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3413 const wxChar *szDomain) const
3414{
3415 wxChar *str = GetSingularString(szOrigString, szDomain);
3416 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3417}
3418
3419const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3420 const wxChar *szOrigString2, size_t n,
3421 const wxChar *szDomain) const
3422{
3423 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3424 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3425}
3426
3427wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3428 const wxChar *szDomain) const
3429{
3430 bool found;
3431 static wxString str;
3432 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.
3433 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3434 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3435 PyObject* param1 = wx2PyString(szOrigString);
3436 PyObject* param2 = wx2PyString(szDomain);
3437 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3438 Py_DECREF(param1);
3439 Py_DECREF(param2);
3440 if (ret) {
3441 str = Py2wxString(ret);
3442 Py_DECREF(ret);
3443 }
3444 }
3445 wxPyEndBlockThreads(blocked);
3446 return (found ? (wxChar*)str.c_str() : NULL);
3447}
3448
3449wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3450 const wxChar *szOrigString2, size_t n,
3451 const wxChar *szDomain) const
3452{
3453 bool found;
3454 static wxString str;
3455 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.
3456 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3457 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3458 PyObject* param1 = wx2PyString(szOrigString);
3459 PyObject* param2 = wx2PyString(szOrigString2);
3460 PyObject* param4 = wx2PyString(szDomain);
3461 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3462 Py_DECREF(param1);
3463 Py_DECREF(param2);
3464 Py_DECREF(param4);
3465 if( ret) {
3466 str = Py2wxString(ret);
3467 Py_DECREF(ret);
3468 }
3469 }
3470 wxPyEndBlockThreads(blocked);
3471 return (found ? (wxChar*)str.c_str() : NULL);
3472}
3473
3474SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3475 wxPyLocale* loc;
3476 if (language == -1)
3477 loc = new wxPyLocale();
3478 else
3479 loc = new wxPyLocale(language, flags);
3480 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3481 // for the floating point conversions and such to work right.
3482#if PY_VERSION_HEX < 0x02040000
3483 setlocale(LC_NUMERIC, "C");
3484#endif
3485 return loc;
3486 }
3487
36ed4f51
RD
3488#include "wx/wxPython/pydrawxxx.h"
3489
1bd55598 3490SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3491 wxColour col;
3492 self->GetPixel(x, y, &col);
3493 return col;
3494 }
1bd55598 3495SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3496 wxColour col;
3497 self->GetPixel(pt, &col);
3498 return col;
3499 }
3500
3501SWIGINTERN int
1bd55598 3502SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3503{
3504 if (PyNumber_Check(obj)) {
3505 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3506 return SWIG_OK;
d55e5bfc 3507 }
1bd55598 3508 return SWIG_TypeError;
36ed4f51
RD
3509}
3510
1bd55598 3511SWIGINTERN 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
3512 wxRect rv;
3513 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3514 return rv;
3515 }
1bd55598 3516SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3517 wxRect rect;
3518 self->GetClippingBox(rect);
3519 return rect;
3520 }
1bd55598 3521SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3522 wxArrayInt widths;
3523 self->GetPartialTextExtents(text, widths);
3524 return widths;
3525 }
3526
1bd55598 3527 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3528
1bd55598 3529SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3530 self->SetLogicalOrigin(point.x, point.y);
3531 }
1bd55598 3532SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3533 self->SetDeviceOrigin(point.x, point.y);
3534 }
1bd55598 3535SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3536 self->CalcBoundingBox(point.x, point.y);
3537 }
1bd55598 3538SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3539 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3540 }
1bd55598 3541SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3542 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3543 }
1bd55598 3544SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3545 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3546 }
1bd55598 3547SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3548 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3549 }
1bd55598 3550SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3551 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3552 }
1bd55598 3553SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3554 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3555 }
3556
3557static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3558 *x1 = dc->MinX();
3559 *y1 = dc->MinY();
3560 *x2 = dc->MaxX();
3561 *y2 = dc->MaxY();
3562}
3563
3564
3565#include <wx/dcbuffer.h>
3566
3567
3568#include <wx/dcps.h>
3569
3570
3571#include <wx/metafile.h>
3572
3573
72ef6efb
RD
3574#include <wx/graphics.h>
3575
3576
3577#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3578// C++ stub classes for platforms or build configurations that don't have
3579// wxGraphicsContext yet.
72ef6efb 3580
70d7cb34
RD
3581
3582class wxGraphicsObject : public wxObject
72ef6efb
RD
3583{
3584public :
70d7cb34 3585 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3586 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3587 "wx.GraphicsObject is not available on this platform.");
3588 }
3589 wxGraphicsObject( const wxGraphicsObject& ) {}
3590 virtual ~wxGraphicsObject() {}
3591 bool IsNull() const { return false; }
3592 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3593} ;
3594
3595
3596
3597class wxGraphicsPen : public wxGraphicsObject
3598{
3599 wxGraphicsPen() {}
3600 virtual ~wxGraphicsPen() {}
3601} ;
3602wxGraphicsPen wxNullGraphicsPen;
3603
3604
3605
3606class wxGraphicsBrush : public wxGraphicsObject
3607{
3608public :
3609 wxGraphicsBrush() {}
3610 virtual ~wxGraphicsBrush() {}
3611} ;
3612wxGraphicsBrush wxNullGraphicsBrush;
3613
3614
3615
3616class wxGraphicsFont : public wxGraphicsObject
3617{
3618public :
3619 wxGraphicsFont() {}
3620 virtual ~wxGraphicsFont() {}
3621} ;
3622wxGraphicsFont wxNullGraphicsFont;
3623
3624
3625
3626class wxGraphicsPath : public wxGraphicsObject
3627{
3628public :
3629 wxGraphicsPath(wxGraphicsRenderer* ) {
3630 PyErr_SetString(PyExc_NotImplementedError,
3631 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3632 }
3633 virtual ~wxGraphicsPath() {}
70d7cb34
RD
3634
3635 virtual wxGraphicsPath *Clone() const { return NULL; }
3636
72ef6efb 3637 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3638 void MoveToPoint( const wxPoint2DDouble& ) {}
3639 void AddLineToPoint( wxDouble, wxDouble ) {}
3640 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3641 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3642 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3643 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3644 void CloseSubpath() {}
3645 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3646 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3647 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3648 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3649
3650 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3651 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3652 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3653 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3654
70d7cb34
RD
3655 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3656 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3657 void * GetNativePath() const { return NULL; }
3658 void UnGetNativePath(void *) {}
3659 void Transform( wxGraphicsMatrix* ) {}
3660 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3661 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3662
3663 bool Contains( wxDouble , wxDouble , int ) { return false; }
3664 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3665};
3666
3667
3668class wxGraphicsMatrix : public wxGraphicsObject
3669{
3670public :
3671 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3672 PyErr_SetString(PyExc_NotImplementedError,
3673 "wx.GraphicsMatrix is not available on this platform.");
3674 }
3675 virtual ~wxGraphicsMatrix() {}
3676 virtual wxGraphicsMatrix *Clone() const { return NULL; }
3677 virtual void Concat( const wxGraphicsMatrix * ) {}
3678 virtual void Copy( const wxGraphicsMatrix * ) {}
3679 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3680 wxDouble , wxDouble ) {}
3681 virtual void Invert() {}
3682 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3683 virtual bool IsIdentity() { return false; }
3684 virtual void Translate( wxDouble , wxDouble ) {}
3685 virtual void Scale( wxDouble , wxDouble ) {}
3686 virtual void Rotate( wxDouble ) {}
3687 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3688 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3689 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb
RD
3690};
3691
3692
70d7cb34
RD
3693
3694class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3695{
3696public:
70d7cb34
RD
3697
3698 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3699 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3700 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3701 }
70d7cb34 3702
72ef6efb 3703 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3704
3705 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3706 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3707 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3708 }
b876c1e4 3709
70d7cb34 3710 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3711 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3712 "wx.GraphicsContext is not available on this platform.");
3713 }
b876c1e4 3714
70d7cb34
RD
3715 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3716 PyErr_SetString(PyExc_NotImplementedError,
3717 "wx.GraphicsContext is not available on this platform.");
3718 }
3719
3720 static wxGraphicsContext* Create( wxWindow* ) {
3721 PyErr_SetString(PyExc_NotImplementedError,
3722 "wx.GraphicsContext is not available on this platform.");
3723 }
3724
3725 wxGraphicsPath * CreatePath() { return NULL; }
3726
3727 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3728
3729 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3730
3731 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3732 const wxColour&, const wxColour&) { return NULL; }
3733
3734 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3735 wxDouble xc, wxDouble yc, wxDouble radius,
3736 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3737
3738 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3739
3740 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3741 wxDouble, wxDouble) { return NULL; }
3742
3743 virtual void PushState() {}
3744 virtual void PopState() {}
3745 virtual void Clip( const wxRegion & ) {}
3746 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3747 virtual void ResetClip() {}
3748 virtual void * GetNativeContext() { return NULL; }
3749 virtual void Translate( wxDouble , wxDouble ) {}
3750 virtual void Scale( wxDouble , wxDouble ) {}
3751 virtual void Rotate( wxDouble ) {}
3752 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3753 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3754 virtual void GetTransform( wxGraphicsMatrix* ) {}
3755
3756 virtual void SetPen( const wxGraphicsPen& ) {}
3757 void SetPen( const wxPen& ) {}
3758
3759 virtual void SetBrush( const wxGraphicsBrush& ) {}
3760 void SetBrush( const wxBrush& ) {}
3761
3762 virtual void SetFont( const wxGraphicsFont& ) {}
3763 void SetFont( const wxFont&, const wxColour& ) {}
3764
3765 virtual void StrokePath( const wxGraphicsPath * ) {}
3766 virtual void FillPath( const wxGraphicsPath *, int ) {}
3767 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3768
3769 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3770 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3771 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3772 wxDouble *, wxDouble * ) const {}
3773 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3774
3775 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3776 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3777
3778 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3779 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3780 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3781 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3782 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3783 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3784 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3785 virtual bool ShouldOffset() const { return false; }
3786};
3787
3788
3789class wxGraphicsRenderer : public wxObject
3790{
3791public :
3792 wxGraphicsRenderer() {
3793 PyErr_SetString(PyExc_NotImplementedError,
3794 "wx.GraphicsRenderer is not available on this platform.");
3795 }
3796
3797 virtual ~wxGraphicsRenderer() {}
3798
3799 static wxGraphicsRenderer* GetDefaultRenderer(
3800 PyErr_SetString(PyExc_NotImplementedError,
3801 "wx.GraphicsRenderer is not available on this platform.");
3802 );
3803
3804 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3805 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3806 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3807 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3808
3809 virtual wxGraphicsPath * CreatePath() { return NULL; }
3810
3811 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3812 wxDouble , wxDouble ) { return NULL; }
3813
3814 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3815 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3816 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3817 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3818 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3819 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3820 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3821};
3822
3823
70d7cb34 3824
72ef6efb
RD
3825class wxGCDC: public wxWindowDC
3826{
3827public:
3828 wxGCDC(const wxWindowDC&) {
3829 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3830 PyErr_SetString(PyExc_NotImplementedError,
3831 "wxGCDC is not available on this platform.");
3832 wxPyEndBlockThreads(blocked);
3833 }
70d7cb34 3834
72ef6efb
RD
3835 wxGCDC() {
3836 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3837 PyErr_SetString(PyExc_NotImplementedError,
3838 "wxGCDC is not available on this platform.");
3839 wxPyEndBlockThreads(blocked);
3840 }
70d7cb34 3841
72ef6efb
RD
3842 virtual ~wxGCDC() {}
3843
b876c1e4
RD
3844 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3845 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3846};
3847
3848#endif
3849
be68621e
RD
3850SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3851 wxDouble width = 0.0,
3852 height = 0.0;
3853 self->GetTextExtent(text, &width, &height, NULL, NULL);
3854 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3855 PyObject* rv = PyTuple_New(2);
3856 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3857 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3858 return rv;
3859 }
b39fe951
RD
3860SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3861 wxArrayDouble widths;
3862 self->GetPartialTextExtents(text, widths);
3863 return widths;
3864 }
f8eb59b9 3865SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3866 size_t c1, c2, count;
3867 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3868 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3869
3870 if ( beginP != NULL && endP != NULL )
3871 {
3872 count = wxMin(c1, c2);
3873 self->StrokeLines(count, beginP, endP);
3874 }
3875 delete [] beginP;
3876 delete [] endP;
3877 }
72ef6efb 3878
0a27f394
RD
3879#include "wx/dcgraph.h"
3880
3881
66493fc7
RD
3882#include <wx/overlay.h>
3883
3884
36ed4f51 3885
1bd55598 3886SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3887 self->AddColour(name, wxColour(red, green, blue));
3888 }
3889
da91cb0f
RD
3890 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3891 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3892 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3893 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3894
3895
36ed4f51
RD
3896#include <wx/effects.h>
3897
be9b1dca
RD
3898
3899#include "wx/renderer.h"
3900
3901
32fe5131 3902SWIGINTERNINLINE PyObject*
1bd55598 3903 SWIG_From_bool (bool value)
be9b1dca 3904{
1bd55598 3905 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3906}
3907
27e45892
RD
3908
3909#include "wx/wxPython/pseudodc.h"
3910
3911SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3912 wxRect rect;
3913 self->GetIdBounds(id, rect);
3914 return rect;
3915 }
36ed4f51
RD
3916#ifdef __cplusplus
3917extern "C" {
3918#endif
1bd55598
RD
3919SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3920 PyObject *resultobj = 0;
3921 wxGDIObject *result = 0 ;
3922
3923 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3924 {
3925 if (!wxPyCheckForApp()) SWIG_fail;
3926 PyThreadState* __tstate = wxPyBeginAllowThreads();
3927 result = (wxGDIObject *)new wxGDIObject();
3928 wxPyEndAllowThreads(__tstate);
3929 if (PyErr_Occurred()) SWIG_fail;
3930 }
3931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3932 return resultobj;
3933fail:
3934 return NULL;
d55e5bfc
RD
3935}
3936
3937
1bd55598
RD
3938SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3939 PyObject *resultobj = 0;
3940 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3941 void *argp1 = 0 ;
3942 int res1 = 0 ;
3943 PyObject *swig_obj[1] ;
3944
3945 if (!args) SWIG_fail;
3946 swig_obj[0] = args;
3947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3948 if (!SWIG_IsOK(res1)) {
3949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3950 }
3951 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3952 {
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
3954 delete arg1;
d55e5bfc 3955
1bd55598
RD
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 resultobj = SWIG_Py_Void();
3960 return resultobj;
3961fail:
3962 return NULL;
d55e5bfc
RD
3963}
3964
3965
1bd55598
RD
3966SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3967 PyObject *resultobj = 0;
3968 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3969 bool result;
3970 void *argp1 = 0 ;
3971 int res1 = 0 ;
3972 PyObject *swig_obj[1] ;
3973
3974 if (!args) SWIG_fail;
3975 swig_obj[0] = args;
3976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3977 if (!SWIG_IsOK(res1)) {
3978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3979 }
3980 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3981 {
3982 PyThreadState* __tstate = wxPyBeginAllowThreads();
3983 result = (bool)(arg1)->IsNull();
3984 wxPyEndAllowThreads(__tstate);
3985 if (PyErr_Occurred()) SWIG_fail;
3986 }
3987 {
3988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3989 }
3990 return resultobj;
3991fail:
3992 return NULL;
3993}
3994
3995
3996SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3997 PyObject *obj;
3998 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3999 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4000 return SWIG_Py_Void();
4001}
4002
4003SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4004 return SWIG_Python_InitShadowInstance(args);
4005}
4006
4007SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4008 PyObject *resultobj = 0;
4009 byte arg1 = (byte) 0 ;
4010 byte arg2 = (byte) 0 ;
4011 byte arg3 = (byte) 0 ;
fc46b7f3 4012 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4013 wxColour *result = 0 ;
4014 unsigned char val1 ;
4015 int ecode1 = 0 ;
4016 unsigned char val2 ;
4017 int ecode2 = 0 ;
4018 unsigned char val3 ;
4019 int ecode3 = 0 ;
fc46b7f3
RD
4020 unsigned char val4 ;
4021 int ecode4 = 0 ;
1bd55598
RD
4022 PyObject * obj0 = 0 ;
4023 PyObject * obj1 = 0 ;
4024 PyObject * obj2 = 0 ;
fc46b7f3 4025 PyObject * obj3 = 0 ;
1bd55598 4026 char * kwnames[] = {
fc46b7f3 4027 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4028 };
4029
fc46b7f3 4030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4031 if (obj0) {
4032 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4033 if (!SWIG_IsOK(ecode1)) {
4034 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4035 }
4036 arg1 = static_cast< byte >(val1);
4037 }
4038 if (obj1) {
4039 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4040 if (!SWIG_IsOK(ecode2)) {
4041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4042 }
4043 arg2 = static_cast< byte >(val2);
4044 }
4045 if (obj2) {
4046 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4047 if (!SWIG_IsOK(ecode3)) {
4048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4049 }
4050 arg3 = static_cast< byte >(val3);
4051 }
fc46b7f3
RD
4052 if (obj3) {
4053 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4054 if (!SWIG_IsOK(ecode4)) {
4055 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4056 }
4057 arg4 = static_cast< byte >(val4);
4058 }
1bd55598
RD
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4061 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4066 return resultobj;
4067fail:
4068 return NULL;
d55e5bfc
RD
4069}
4070
4071
1bd55598
RD
4072SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4073 PyObject *resultobj = 0;
4074 wxString *arg1 = 0 ;
4075 wxColour *result = 0 ;
4076 bool temp1 = false ;
4077 PyObject * obj0 = 0 ;
4078 char * kwnames[] = {
4079 (char *) "colorName", NULL
4080 };
4081
4082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4083 {
4084 arg1 = wxString_in_helper(obj0);
4085 if (arg1 == NULL) SWIG_fail;
4086 temp1 = true;
4087 }
4088 {
4089 if (!wxPyCheckForApp()) SWIG_fail;
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 result = (wxColour *)new wxColour((wxString const &)*arg1);
4092 wxPyEndAllowThreads(__tstate);
4093 if (PyErr_Occurred()) SWIG_fail;
4094 }
4095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4096 {
4097 if (temp1)
4098 delete arg1;
4099 }
4100 return resultobj;
4101fail:
4102 {
4103 if (temp1)
4104 delete arg1;
4105 }
4106 return NULL;
36ed4f51
RD
4107}
4108
4109
1bd55598
RD
4110SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4111 PyObject *resultobj = 0;
4112 unsigned long arg1 ;
4113 wxColour *result = 0 ;
4114 unsigned long val1 ;
4115 int ecode1 = 0 ;
4116 PyObject * obj0 = 0 ;
4117 char * kwnames[] = {
4118 (char *) "colRGB", NULL
4119 };
4120
4121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4122 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4123 if (!SWIG_IsOK(ecode1)) {
4124 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4125 }
4126 arg1 = static_cast< unsigned long >(val1);
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 result = (wxColour *)new wxColour(arg1);
4130 wxPyEndAllowThreads(__tstate);
4131 if (PyErr_Occurred()) SWIG_fail;
4132 }
4133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4134 return resultobj;
4135fail:
4136 return NULL;
d55e5bfc
RD
4137}
4138
4139
1bd55598
RD
4140SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4141 PyObject *resultobj = 0;
4142 wxColour *arg1 = (wxColour *) 0 ;
4143 void *argp1 = 0 ;
4144 int res1 = 0 ;
4145 PyObject *swig_obj[1] ;
4146
4147 if (!args) SWIG_fail;
4148 swig_obj[0] = args;
4149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4150 if (!SWIG_IsOK(res1)) {
4151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4152 }
4153 arg1 = reinterpret_cast< wxColour * >(argp1);
4154 {
4155 PyThreadState* __tstate = wxPyBeginAllowThreads();
4156 delete arg1;
d55e5bfc 4157
1bd55598
RD
4158 wxPyEndAllowThreads(__tstate);
4159 if (PyErr_Occurred()) SWIG_fail;
4160 }
4161 resultobj = SWIG_Py_Void();
4162 return resultobj;
4163fail:
4164 return NULL;
d55e5bfc
RD
4165}
4166
4167
1bd55598
RD
4168SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4169 PyObject *resultobj = 0;
4170 wxColour *arg1 = (wxColour *) 0 ;
4171 byte result;
4172 void *argp1 = 0 ;
4173 int res1 = 0 ;
4174 PyObject *swig_obj[1] ;
4175
4176 if (!args) SWIG_fail;
4177 swig_obj[0] = args;
4178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4179 if (!SWIG_IsOK(res1)) {
4180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4181 }
4182 arg1 = reinterpret_cast< wxColour * >(argp1);
4183 {
4184 PyThreadState* __tstate = wxPyBeginAllowThreads();
4185 result = (byte)(arg1)->Red();
4186 wxPyEndAllowThreads(__tstate);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4190 return resultobj;
4191fail:
4192 return NULL;
d55e5bfc
RD
4193}
4194
4195
1bd55598
RD
4196SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4197 PyObject *resultobj = 0;
4198 wxColour *arg1 = (wxColour *) 0 ;
4199 byte result;
4200 void *argp1 = 0 ;
4201 int res1 = 0 ;
4202 PyObject *swig_obj[1] ;
4203
4204 if (!args) SWIG_fail;
4205 swig_obj[0] = args;
4206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4207 if (!SWIG_IsOK(res1)) {
4208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4209 }
4210 arg1 = reinterpret_cast< wxColour * >(argp1);
4211 {
4212 PyThreadState* __tstate = wxPyBeginAllowThreads();
4213 result = (byte)(arg1)->Green();
4214 wxPyEndAllowThreads(__tstate);
4215 if (PyErr_Occurred()) SWIG_fail;
4216 }
4217 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4218 return resultobj;
4219fail:
4220 return NULL;
d55e5bfc
RD
4221}
4222
4223
1bd55598
RD
4224SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4225 PyObject *resultobj = 0;
4226 wxColour *arg1 = (wxColour *) 0 ;
4227 byte result;
4228 void *argp1 = 0 ;
4229 int res1 = 0 ;
4230 PyObject *swig_obj[1] ;
4231
4232 if (!args) SWIG_fail;
4233 swig_obj[0] = args;
4234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4235 if (!SWIG_IsOK(res1)) {
4236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4237 }
4238 arg1 = reinterpret_cast< wxColour * >(argp1);
4239 {
4240 PyThreadState* __tstate = wxPyBeginAllowThreads();
4241 result = (byte)(arg1)->Blue();
4242 wxPyEndAllowThreads(__tstate);
4243 if (PyErr_Occurred()) SWIG_fail;
4244 }
4245 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4246 return resultobj;
4247fail:
4248 return NULL;
d55e5bfc
RD
4249}
4250
4251
fc46b7f3
RD
4252SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4253 PyObject *resultobj = 0;
4254 wxColour *arg1 = (wxColour *) 0 ;
4255 byte result;
4256 void *argp1 = 0 ;
4257 int res1 = 0 ;
4258 PyObject *swig_obj[1] ;
4259
4260 if (!args) SWIG_fail;
4261 swig_obj[0] = args;
4262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4263 if (!SWIG_IsOK(res1)) {
4264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4265 }
4266 arg1 = reinterpret_cast< wxColour * >(argp1);
4267 {
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 result = (byte)(arg1)->Alpha();
4270 wxPyEndAllowThreads(__tstate);
4271 if (PyErr_Occurred()) SWIG_fail;
4272 }
4273 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4274 return resultobj;
4275fail:
4276 return NULL;
4277}
4278
4279
b39fe951 4280SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4281 PyObject *resultobj = 0;
4282 wxColour *arg1 = (wxColour *) 0 ;
4283 bool result;
4284 void *argp1 = 0 ;
4285 int res1 = 0 ;
4286 PyObject *swig_obj[1] ;
4287
4288 if (!args) SWIG_fail;
4289 swig_obj[0] = args;
4290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4291 if (!SWIG_IsOK(res1)) {
b39fe951 4292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4293 }
4294 arg1 = reinterpret_cast< wxColour * >(argp1);
4295 {
4296 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4297 result = (bool)(arg1)->IsOk();
1bd55598
RD
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 {
4302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4303 }
4304 return resultobj;
4305fail:
4306 return NULL;
4307}
4308
4309
4310SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4311 PyObject *resultobj = 0;
4312 wxColour *arg1 = (wxColour *) 0 ;
4313 byte arg2 ;
4314 byte arg3 ;
4315 byte arg4 ;
fc46b7f3 4316 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4317 void *argp1 = 0 ;
4318 int res1 = 0 ;
4319 unsigned char val2 ;
4320 int ecode2 = 0 ;
4321 unsigned char val3 ;
4322 int ecode3 = 0 ;
4323 unsigned char val4 ;
4324 int ecode4 = 0 ;
fc46b7f3
RD
4325 unsigned char val5 ;
4326 int ecode5 = 0 ;
1bd55598
RD
4327 PyObject * obj0 = 0 ;
4328 PyObject * obj1 = 0 ;
4329 PyObject * obj2 = 0 ;
4330 PyObject * obj3 = 0 ;
fc46b7f3 4331 PyObject * obj4 = 0 ;
1bd55598 4332 char * kwnames[] = {
fc46b7f3 4333 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4334 };
4335
fc46b7f3 4336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4338 if (!SWIG_IsOK(res1)) {
4339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4340 }
4341 arg1 = reinterpret_cast< wxColour * >(argp1);
4342 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4343 if (!SWIG_IsOK(ecode2)) {
4344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4345 }
4346 arg2 = static_cast< byte >(val2);
4347 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4348 if (!SWIG_IsOK(ecode3)) {
4349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4350 }
4351 arg3 = static_cast< byte >(val3);
4352 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4353 if (!SWIG_IsOK(ecode4)) {
4354 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4355 }
4356 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4357 if (obj4) {
4358 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4359 if (!SWIG_IsOK(ecode5)) {
4360 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4361 }
4362 arg5 = static_cast< byte >(val5);
4363 }
1bd55598
RD
4364 {
4365 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4366 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4367 wxPyEndAllowThreads(__tstate);
4368 if (PyErr_Occurred()) SWIG_fail;
4369 }
4370 resultobj = SWIG_Py_Void();
4371 return resultobj;
4372fail:
4373 return NULL;
4374}
4375
4376
4377SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4378 PyObject *resultobj = 0;
4379 wxColour *arg1 = (wxColour *) 0 ;
4380 unsigned long arg2 ;
4381 void *argp1 = 0 ;
4382 int res1 = 0 ;
4383 unsigned long val2 ;
4384 int ecode2 = 0 ;
4385 PyObject * obj0 = 0 ;
4386 PyObject * obj1 = 0 ;
4387 char * kwnames[] = {
4388 (char *) "self",(char *) "colRGB", NULL
4389 };
4390
4391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4393 if (!SWIG_IsOK(res1)) {
4394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4395 }
4396 arg1 = reinterpret_cast< wxColour * >(argp1);
4397 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4398 if (!SWIG_IsOK(ecode2)) {
4399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4400 }
4401 arg2 = static_cast< unsigned long >(val2);
4402 {
4403 PyThreadState* __tstate = wxPyBeginAllowThreads();
4404 (arg1)->Set(arg2);
4405 wxPyEndAllowThreads(__tstate);
4406 if (PyErr_Occurred()) SWIG_fail;
4407 }
4408 resultobj = SWIG_Py_Void();
4409 return resultobj;
4410fail:
4411 return NULL;
4412}
4413
4414
4415SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4416 PyObject *resultobj = 0;
4417 wxColour *arg1 = (wxColour *) 0 ;
4418 wxString *arg2 = 0 ;
4419 void *argp1 = 0 ;
4420 int res1 = 0 ;
4421 bool temp2 = false ;
4422 PyObject * obj0 = 0 ;
4423 PyObject * obj1 = 0 ;
4424 char * kwnames[] = {
4425 (char *) "self",(char *) "colourName", NULL
4426 };
4427
4428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4430 if (!SWIG_IsOK(res1)) {
4431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4432 }
4433 arg1 = reinterpret_cast< wxColour * >(argp1);
4434 {
4435 arg2 = wxString_in_helper(obj1);
4436 if (arg2 == NULL) SWIG_fail;
4437 temp2 = true;
4438 }
4439 {
4440 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4441 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 resultobj = SWIG_Py_Void();
4446 {
4447 if (temp2)
4448 delete arg2;
4449 }
4450 return resultobj;
4451fail:
4452 {
4453 if (temp2)
4454 delete arg2;
4455 }
4456 return NULL;
d55e5bfc
RD
4457}
4458
4459
2131d850
RD
4460SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4461 PyObject *resultobj = 0;
4462 wxColour *arg1 = (wxColour *) 0 ;
4463 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4464 wxString result;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 long val2 ;
4468 int ecode2 = 0 ;
4469 PyObject * obj0 = 0 ;
4470 PyObject * obj1 = 0 ;
4471 char * kwnames[] = {
4472 (char *) "self",(char *) "flags", NULL
4473 };
4474
4475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4477 if (!SWIG_IsOK(res1)) {
4478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4479 }
4480 arg1 = reinterpret_cast< wxColour * >(argp1);
4481 if (obj1) {
4482 ecode2 = SWIG_AsVal_long(obj1, &val2);
4483 if (!SWIG_IsOK(ecode2)) {
4484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4485 }
4486 arg2 = static_cast< long >(val2);
4487 }
4488 {
4489 PyThreadState* __tstate = wxPyBeginAllowThreads();
4490 result = ((wxColour const *)arg1)->GetAsString(arg2);
4491 wxPyEndAllowThreads(__tstate);
4492 if (PyErr_Occurred()) SWIG_fail;
4493 }
4494 {
4495#if wxUSE_UNICODE
4496 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4497#else
4498 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4499#endif
4500 }
4501 return resultobj;
4502fail:
4503 return NULL;
4504}
4505
4506
1bd55598
RD
4507SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4508 PyObject *resultobj = 0;
4509 wxColour *arg1 = (wxColour *) 0 ;
4510 long result;
4511 void *argp1 = 0 ;
4512 int res1 = 0 ;
4513 PyObject *swig_obj[1] ;
4514
4515 if (!args) SWIG_fail;
4516 swig_obj[0] = args;
4517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4518 if (!SWIG_IsOK(res1)) {
4519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4520 }
4521 arg1 = reinterpret_cast< wxColour * >(argp1);
4522 {
4523 PyThreadState* __tstate = wxPyBeginAllowThreads();
4524 result = (long)((wxColour const *)arg1)->GetPixel();
4525 wxPyEndAllowThreads(__tstate);
4526 if (PyErr_Occurred()) SWIG_fail;
4527 }
4528 resultobj = SWIG_From_long(static_cast< long >(result));
4529 return resultobj;
4530fail:
4531 return NULL;
4532}
4533
4534
4535SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4536 PyObject *resultobj = 0;
4537 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4538 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4539 bool result;
4540 void *argp1 = 0 ;
4541 int res1 = 0 ;
1bd55598
RD
4542 PyObject * obj0 = 0 ;
4543 PyObject * obj1 = 0 ;
4544 char * kwnames[] = {
e9d6f3a4 4545 (char *) "self",(char *) "other", NULL
1bd55598
RD
4546 };
4547
4548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4550 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4552 }
4553 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4554 arg2 = obj1;
1bd55598 4555 {
e9d6f3a4 4556 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4557 if (PyErr_Occurred()) SWIG_fail;
4558 }
4559 {
4560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4561 }
4562 return resultobj;
4563fail:
4564 return NULL;
4565}
4566
4567
4568SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4569 PyObject *resultobj = 0;
4570 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4571 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4572 bool result;
4573 void *argp1 = 0 ;
4574 int res1 = 0 ;
1bd55598
RD
4575 PyObject * obj0 = 0 ;
4576 PyObject * obj1 = 0 ;
4577 char * kwnames[] = {
e9d6f3a4 4578 (char *) "self",(char *) "other", NULL
1bd55598
RD
4579 };
4580
4581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4583 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4585 }
4586 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4587 arg2 = obj1;
1bd55598 4588 {
e9d6f3a4 4589 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 {
4593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4594 }
4595 return resultobj;
4596fail:
4597 return NULL;
d55e5bfc
RD
4598}
4599
4600
fc46b7f3 4601SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4602 PyObject *resultobj = 0;
4603 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4604 bool arg2 = (bool) false ;
1bd55598
RD
4605 PyObject *result = 0 ;
4606 void *argp1 = 0 ;
4607 int res1 = 0 ;
fc46b7f3
RD
4608 bool val2 ;
4609 int ecode2 = 0 ;
4610 PyObject * obj0 = 0 ;
4611 PyObject * obj1 = 0 ;
4612 char * kwnames[] = {
4613 (char *) "self",(char *) "includeAlpha", NULL
4614 };
1bd55598 4615
fc46b7f3
RD
4616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4618 if (!SWIG_IsOK(res1)) {
4619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4620 }
4621 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4622 if (obj1) {
4623 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4624 if (!SWIG_IsOK(ecode2)) {
4625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4626 }
4627 arg2 = static_cast< bool >(val2);
4628 }
1bd55598 4629 {
fc46b7f3 4630 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4631 if (PyErr_Occurred()) SWIG_fail;
4632 }
4633 resultobj = result;
4634 return resultobj;
4635fail:
4636 return NULL;
d55e5bfc
RD
4637}
4638
4639
1bd55598
RD
4640SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4641 PyObject *resultobj = 0;
4642 wxColour *arg1 = (wxColour *) 0 ;
4643 unsigned long result;
4644 void *argp1 = 0 ;
4645 int res1 = 0 ;
4646 PyObject *swig_obj[1] ;
4647
4648 if (!args) SWIG_fail;
4649 swig_obj[0] = args;
4650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4651 if (!SWIG_IsOK(res1)) {
4652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4653 }
4654 arg1 = reinterpret_cast< wxColour * >(argp1);
4655 {
1bd55598 4656 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4657 if (PyErr_Occurred()) SWIG_fail;
4658 }
4659 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4660 return resultobj;
4661fail:
4662 return NULL;
4663}
4664
4665
4666SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4667 PyObject *obj;
4668 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4669 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4670 return SWIG_Py_Void();
4671}
4672
4673SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4674 return SWIG_Python_InitShadowInstance(args);
4675}
4676
4677SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4678 PyObject *resultobj = 0;
4679 int arg1 ;
4680 unsigned char *arg2 = (unsigned char *) 0 ;
4681 unsigned char *arg3 = (unsigned char *) 0 ;
4682 unsigned char *arg4 = (unsigned char *) 0 ;
4683 wxPalette *result = 0 ;
4684 int val1 ;
4685 int ecode1 = 0 ;
4686 void *argp2 = 0 ;
4687 int res2 = 0 ;
4688 void *argp3 = 0 ;
4689 int res3 = 0 ;
4690 void *argp4 = 0 ;
4691 int res4 = 0 ;
4692 PyObject * obj0 = 0 ;
4693 PyObject * obj1 = 0 ;
4694 PyObject * obj2 = 0 ;
4695 PyObject * obj3 = 0 ;
4696 char * kwnames[] = {
4697 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4698 };
4699
4700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4701 ecode1 = SWIG_AsVal_int(obj0, &val1);
4702 if (!SWIG_IsOK(ecode1)) {
4703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4704 }
4705 arg1 = static_cast< int >(val1);
4706 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4707 if (!SWIG_IsOK(res2)) {
4708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4709 }
4710 arg2 = reinterpret_cast< unsigned char * >(argp2);
4711 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4712 if (!SWIG_IsOK(res3)) {
4713 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4714 }
4715 arg3 = reinterpret_cast< unsigned char * >(argp3);
4716 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4717 if (!SWIG_IsOK(res4)) {
4718 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4719 }
4720 arg4 = reinterpret_cast< unsigned char * >(argp4);
4721 {
4722 if (!wxPyCheckForApp()) SWIG_fail;
4723 PyThreadState* __tstate = wxPyBeginAllowThreads();
4724 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4725 wxPyEndAllowThreads(__tstate);
4726 if (PyErr_Occurred()) SWIG_fail;
4727 }
4728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4729 return resultobj;
4730fail:
4731 return NULL;
d55e5bfc
RD
4732}
4733
4734
1bd55598
RD
4735SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4736 PyObject *resultobj = 0;
4737 wxPalette *arg1 = (wxPalette *) 0 ;
4738 void *argp1 = 0 ;
4739 int res1 = 0 ;
4740 PyObject *swig_obj[1] ;
4741
4742 if (!args) SWIG_fail;
4743 swig_obj[0] = args;
4744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4745 if (!SWIG_IsOK(res1)) {
4746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4747 }
4748 arg1 = reinterpret_cast< wxPalette * >(argp1);
4749 {
4750 PyThreadState* __tstate = wxPyBeginAllowThreads();
4751 delete arg1;
d55e5bfc 4752
1bd55598
RD
4753 wxPyEndAllowThreads(__tstate);
4754 if (PyErr_Occurred()) SWIG_fail;
4755 }
4756 resultobj = SWIG_Py_Void();
4757 return resultobj;
4758fail:
4759 return NULL;
4760}
4761
4762
4763SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4764 PyObject *resultobj = 0;
4765 wxPalette *arg1 = (wxPalette *) 0 ;
4766 byte arg2 ;
4767 byte arg3 ;
4768 byte arg4 ;
4769 int result;
4770 void *argp1 = 0 ;
4771 int res1 = 0 ;
4772 unsigned char val2 ;
4773 int ecode2 = 0 ;
4774 unsigned char val3 ;
4775 int ecode3 = 0 ;
4776 unsigned char val4 ;
4777 int ecode4 = 0 ;
4778 PyObject * obj0 = 0 ;
4779 PyObject * obj1 = 0 ;
4780 PyObject * obj2 = 0 ;
4781 PyObject * obj3 = 0 ;
4782 char * kwnames[] = {
4783 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4784 };
4785
4786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4788 if (!SWIG_IsOK(res1)) {
4789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4790 }
4791 arg1 = reinterpret_cast< wxPalette * >(argp1);
4792 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4793 if (!SWIG_IsOK(ecode2)) {
4794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4795 }
4796 arg2 = static_cast< byte >(val2);
4797 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4798 if (!SWIG_IsOK(ecode3)) {
4799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4800 }
4801 arg3 = static_cast< byte >(val3);
4802 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4803 if (!SWIG_IsOK(ecode4)) {
4804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4805 }
4806 arg4 = static_cast< byte >(val4);
4807 {
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4810 wxPyEndAllowThreads(__tstate);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 }
4813 resultobj = SWIG_From_int(static_cast< int >(result));
4814 return resultobj;
4815fail:
4816 return NULL;
4817}
4818
4819
4820SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4821 PyObject *resultobj = 0;
4822 wxPalette *arg1 = (wxPalette *) 0 ;
4823 int arg2 ;
4824 byte *arg3 = (byte *) 0 ;
4825 byte *arg4 = (byte *) 0 ;
4826 byte *arg5 = (byte *) 0 ;
4827 bool result;
4828 void *argp1 = 0 ;
4829 int res1 = 0 ;
4830 int val2 ;
4831 int ecode2 = 0 ;
4832 byte temp3 ;
4833 int res3 = SWIG_TMPOBJ ;
4834 byte temp4 ;
4835 int res4 = SWIG_TMPOBJ ;
4836 byte temp5 ;
4837 int res5 = SWIG_TMPOBJ ;
4838 PyObject * obj0 = 0 ;
4839 PyObject * obj1 = 0 ;
4840 char * kwnames[] = {
4841 (char *) "self",(char *) "pixel", NULL
4842 };
4843
4844 arg3 = &temp3;
4845 arg4 = &temp4;
4846 arg5 = &temp5;
4847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4849 if (!SWIG_IsOK(res1)) {
4850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4851 }
4852 arg1 = reinterpret_cast< wxPalette * >(argp1);
4853 ecode2 = SWIG_AsVal_int(obj1, &val2);
4854 if (!SWIG_IsOK(ecode2)) {
4855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4856 }
4857 arg2 = static_cast< int >(val2);
4858 {
4859 PyThreadState* __tstate = wxPyBeginAllowThreads();
4860 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4861 wxPyEndAllowThreads(__tstate);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 {
4865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4866 }
4867 if (SWIG_IsTmpObj(res3)) {
4868 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4869 } else {
4870 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4871 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4872 }
4873 if (SWIG_IsTmpObj(res4)) {
4874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4875 } else {
4876 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4877 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4878 }
4879 if (SWIG_IsTmpObj(res5)) {
4880 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4881 } else {
4882 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4883 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4884 }
4885 return resultobj;
4886fail:
4887 return NULL;
d55e5bfc
RD
4888}
4889
4890
1bd55598
RD
4891SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4892 PyObject *resultobj = 0;
4893 wxPalette *arg1 = (wxPalette *) 0 ;
4894 int result;
4895 void *argp1 = 0 ;
4896 int res1 = 0 ;
4897 PyObject *swig_obj[1] ;
4898
4899 if (!args) SWIG_fail;
4900 swig_obj[0] = args;
4901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4902 if (!SWIG_IsOK(res1)) {
4903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4904 }
4905 arg1 = reinterpret_cast< wxPalette * >(argp1);
4906 {
4907 PyThreadState* __tstate = wxPyBeginAllowThreads();
4908 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4909 wxPyEndAllowThreads(__tstate);
4910 if (PyErr_Occurred()) SWIG_fail;
4911 }
4912 resultobj = SWIG_From_int(static_cast< int >(result));
4913 return resultobj;
4914fail:
4915 return NULL;
d55e5bfc
RD
4916}
4917
4918
b39fe951 4919SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4920 PyObject *resultobj = 0;
4921 wxPalette *arg1 = (wxPalette *) 0 ;
4922 bool result;
4923 void *argp1 = 0 ;
4924 int res1 = 0 ;
4925 PyObject *swig_obj[1] ;
4926
4927 if (!args) SWIG_fail;
4928 swig_obj[0] = args;
4929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4930 if (!SWIG_IsOK(res1)) {
b39fe951 4931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
4932 }
4933 arg1 = reinterpret_cast< wxPalette * >(argp1);
4934 {
4935 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4936 result = (bool)(arg1)->IsOk();
1bd55598
RD
4937 wxPyEndAllowThreads(__tstate);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 {
4941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4942 }
4943 return resultobj;
4944fail:
4945 return NULL;
4946}
4947
4948
4949SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4950 PyObject *obj;
4951 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4952 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4953 return SWIG_Py_Void();
4954}
4955
4956SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4957 return SWIG_Python_InitShadowInstance(args);
4958}
4959
4960SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4961 PyObject *resultobj = 0;
4962 wxColour *arg1 = 0 ;
4963 int arg2 = (int) 1 ;
4964 int arg3 = (int) wxSOLID ;
4965 wxPen *result = 0 ;
4966 wxColour temp1 ;
4967 int val2 ;
4968 int ecode2 = 0 ;
4969 int val3 ;
4970 int ecode3 = 0 ;
4971 PyObject * obj0 = 0 ;
4972 PyObject * obj1 = 0 ;
4973 PyObject * obj2 = 0 ;
4974 char * kwnames[] = {
4975 (char *) "colour",(char *) "width",(char *) "style", NULL
4976 };
4977
4978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4979 {
4980 arg1 = &temp1;
4981 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4982 }
4983 if (obj1) {
4984 ecode2 = SWIG_AsVal_int(obj1, &val2);
4985 if (!SWIG_IsOK(ecode2)) {
4986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4987 }
4988 arg2 = static_cast< int >(val2);
4989 }
4990 if (obj2) {
4991 ecode3 = SWIG_AsVal_int(obj2, &val3);
4992 if (!SWIG_IsOK(ecode3)) {
4993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4994 }
4995 arg3 = static_cast< int >(val3);
4996 }
4997 {
4998 if (!wxPyCheckForApp()) SWIG_fail;
4999 PyThreadState* __tstate = wxPyBeginAllowThreads();
5000 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5001 wxPyEndAllowThreads(__tstate);
5002 if (PyErr_Occurred()) SWIG_fail;
5003 }
5004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5005 return resultobj;
5006fail:
5007 return NULL;
d55e5bfc
RD
5008}
5009
5010
1bd55598
RD
5011SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5012 PyObject *resultobj = 0;
5013 wxPen *arg1 = (wxPen *) 0 ;
5014 void *argp1 = 0 ;
5015 int res1 = 0 ;
5016 PyObject *swig_obj[1] ;
5017
5018 if (!args) SWIG_fail;
5019 swig_obj[0] = args;
5020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5021 if (!SWIG_IsOK(res1)) {
5022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5023 }
5024 arg1 = reinterpret_cast< wxPen * >(argp1);
5025 {
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 delete arg1;
f78cc896 5028
1bd55598
RD
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 resultobj = SWIG_Py_Void();
5033 return resultobj;
5034fail:
5035 return NULL;
f78cc896
RD
5036}
5037
5038
1bd55598
RD
5039SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5040 PyObject *resultobj = 0;
5041 wxPen *arg1 = (wxPen *) 0 ;
5042 int result;
5043 void *argp1 = 0 ;
5044 int res1 = 0 ;
5045 PyObject *swig_obj[1] ;
5046
5047 if (!args) SWIG_fail;
5048 swig_obj[0] = args;
5049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5050 if (!SWIG_IsOK(res1)) {
5051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5052 }
5053 arg1 = reinterpret_cast< wxPen * >(argp1);
5054 {
5055 PyThreadState* __tstate = wxPyBeginAllowThreads();
5056 result = (int)(arg1)->GetCap();
5057 wxPyEndAllowThreads(__tstate);
5058 if (PyErr_Occurred()) SWIG_fail;
5059 }
5060 resultobj = SWIG_From_int(static_cast< int >(result));
5061 return resultobj;
5062fail:
5063 return NULL;
d55e5bfc
RD
5064}
5065
5066
1bd55598
RD
5067SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5068 PyObject *resultobj = 0;
5069 wxPen *arg1 = (wxPen *) 0 ;
5070 wxColour result;
5071 void *argp1 = 0 ;
5072 int res1 = 0 ;
5073 PyObject *swig_obj[1] ;
5074
5075 if (!args) SWIG_fail;
5076 swig_obj[0] = args;
5077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5078 if (!SWIG_IsOK(res1)) {
5079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5080 }
5081 arg1 = reinterpret_cast< wxPen * >(argp1);
5082 {
5083 PyThreadState* __tstate = wxPyBeginAllowThreads();
5084 result = (arg1)->GetColour();
5085 wxPyEndAllowThreads(__tstate);
5086 if (PyErr_Occurred()) SWIG_fail;
5087 }
5088 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5089 return resultobj;
5090fail:
5091 return NULL;
d55e5bfc
RD
5092}
5093
5094
1bd55598
RD
5095SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5096 PyObject *resultobj = 0;
5097 wxPen *arg1 = (wxPen *) 0 ;
5098 int result;
5099 void *argp1 = 0 ;
5100 int res1 = 0 ;
5101 PyObject *swig_obj[1] ;
5102
5103 if (!args) SWIG_fail;
5104 swig_obj[0] = args;
5105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5106 if (!SWIG_IsOK(res1)) {
5107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5108 }
5109 arg1 = reinterpret_cast< wxPen * >(argp1);
5110 {
5111 PyThreadState* __tstate = wxPyBeginAllowThreads();
5112 result = (int)(arg1)->GetJoin();
5113 wxPyEndAllowThreads(__tstate);
5114 if (PyErr_Occurred()) SWIG_fail;
5115 }
5116 resultobj = SWIG_From_int(static_cast< int >(result));
5117 return resultobj;
5118fail:
5119 return NULL;
d55e5bfc
RD
5120}
5121
5122
1bd55598
RD
5123SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5124 PyObject *resultobj = 0;
5125 wxPen *arg1 = (wxPen *) 0 ;
5126 int result;
5127 void *argp1 = 0 ;
5128 int res1 = 0 ;
5129 PyObject *swig_obj[1] ;
5130
5131 if (!args) SWIG_fail;
5132 swig_obj[0] = args;
5133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5134 if (!SWIG_IsOK(res1)) {
5135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5136 }
5137 arg1 = reinterpret_cast< wxPen * >(argp1);
5138 {
5139 PyThreadState* __tstate = wxPyBeginAllowThreads();
5140 result = (int)(arg1)->GetStyle();
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 resultobj = SWIG_From_int(static_cast< int >(result));
5145 return resultobj;
5146fail:
5147 return NULL;
d55e5bfc
RD
5148}
5149
5150
1bd55598
RD
5151SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5152 PyObject *resultobj = 0;
5153 wxPen *arg1 = (wxPen *) 0 ;
5154 int result;
5155 void *argp1 = 0 ;
5156 int res1 = 0 ;
5157 PyObject *swig_obj[1] ;
5158
5159 if (!args) SWIG_fail;
5160 swig_obj[0] = args;
5161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5162 if (!SWIG_IsOK(res1)) {
5163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5164 }
5165 arg1 = reinterpret_cast< wxPen * >(argp1);
5166 {
5167 PyThreadState* __tstate = wxPyBeginAllowThreads();
5168 result = (int)(arg1)->GetWidth();
5169 wxPyEndAllowThreads(__tstate);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 resultobj = SWIG_From_int(static_cast< int >(result));
5173 return resultobj;
5174fail:
5175 return NULL;
d55e5bfc
RD
5176}
5177
5178
b39fe951 5179SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5180 PyObject *resultobj = 0;
5181 wxPen *arg1 = (wxPen *) 0 ;
5182 bool result;
5183 void *argp1 = 0 ;
5184 int res1 = 0 ;
5185 PyObject *swig_obj[1] ;
5186
5187 if (!args) SWIG_fail;
5188 swig_obj[0] = args;
5189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5190 if (!SWIG_IsOK(res1)) {
b39fe951 5191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5192 }
5193 arg1 = reinterpret_cast< wxPen * >(argp1);
5194 {
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5196 result = (bool)(arg1)->IsOk();
1bd55598
RD
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 {
5201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5202 }
5203 return resultobj;
5204fail:
5205 return NULL;
5206}
5207
5208
5209SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5210 PyObject *resultobj = 0;
5211 wxPen *arg1 = (wxPen *) 0 ;
5212 int arg2 ;
5213 void *argp1 = 0 ;
5214 int res1 = 0 ;
5215 int val2 ;
5216 int ecode2 = 0 ;
5217 PyObject * obj0 = 0 ;
5218 PyObject * obj1 = 0 ;
5219 char * kwnames[] = {
5220 (char *) "self",(char *) "cap_style", NULL
5221 };
5222
5223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5225 if (!SWIG_IsOK(res1)) {
5226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5227 }
5228 arg1 = reinterpret_cast< wxPen * >(argp1);
5229 ecode2 = SWIG_AsVal_int(obj1, &val2);
5230 if (!SWIG_IsOK(ecode2)) {
5231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5232 }
5233 arg2 = static_cast< int >(val2);
5234 {
5235 PyThreadState* __tstate = wxPyBeginAllowThreads();
5236 (arg1)->SetCap(arg2);
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 }
5240 resultobj = SWIG_Py_Void();
5241 return resultobj;
5242fail:
5243 return NULL;
5244}
5245
5246
5247SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5248 PyObject *resultobj = 0;
5249 wxPen *arg1 = (wxPen *) 0 ;
5250 wxColour *arg2 = 0 ;
5251 void *argp1 = 0 ;
5252 int res1 = 0 ;
5253 wxColour temp2 ;
5254 PyObject * obj0 = 0 ;
5255 PyObject * obj1 = 0 ;
5256 char * kwnames[] = {
5257 (char *) "self",(char *) "colour", NULL
5258 };
5259
5260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5262 if (!SWIG_IsOK(res1)) {
5263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5264 }
5265 arg1 = reinterpret_cast< wxPen * >(argp1);
5266 {
5267 arg2 = &temp2;
5268 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5269 }
5270 {
5271 PyThreadState* __tstate = wxPyBeginAllowThreads();
5272 (arg1)->SetColour(*arg2);
5273 wxPyEndAllowThreads(__tstate);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 resultobj = SWIG_Py_Void();
5277 return resultobj;
5278fail:
5279 return NULL;
5280}
5281
5282
5283SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5284 PyObject *resultobj = 0;
5285 wxPen *arg1 = (wxPen *) 0 ;
5286 int arg2 ;
5287 void *argp1 = 0 ;
5288 int res1 = 0 ;
5289 int val2 ;
5290 int ecode2 = 0 ;
5291 PyObject * obj0 = 0 ;
5292 PyObject * obj1 = 0 ;
5293 char * kwnames[] = {
5294 (char *) "self",(char *) "join_style", NULL
5295 };
5296
5297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5299 if (!SWIG_IsOK(res1)) {
5300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5301 }
5302 arg1 = reinterpret_cast< wxPen * >(argp1);
5303 ecode2 = SWIG_AsVal_int(obj1, &val2);
5304 if (!SWIG_IsOK(ecode2)) {
5305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5306 }
5307 arg2 = static_cast< int >(val2);
5308 {
5309 PyThreadState* __tstate = wxPyBeginAllowThreads();
5310 (arg1)->SetJoin(arg2);
5311 wxPyEndAllowThreads(__tstate);
5312 if (PyErr_Occurred()) SWIG_fail;
5313 }
5314 resultobj = SWIG_Py_Void();
5315 return resultobj;
5316fail:
5317 return NULL;
5318}
5319
5320
5321SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5322 PyObject *resultobj = 0;
5323 wxPen *arg1 = (wxPen *) 0 ;
5324 int arg2 ;
5325 void *argp1 = 0 ;
5326 int res1 = 0 ;
5327 int val2 ;
5328 int ecode2 = 0 ;
5329 PyObject * obj0 = 0 ;
5330 PyObject * obj1 = 0 ;
5331 char * kwnames[] = {
5332 (char *) "self",(char *) "style", NULL
5333 };
5334
5335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5337 if (!SWIG_IsOK(res1)) {
5338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5339 }
5340 arg1 = reinterpret_cast< wxPen * >(argp1);
5341 ecode2 = SWIG_AsVal_int(obj1, &val2);
5342 if (!SWIG_IsOK(ecode2)) {
5343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5344 }
5345 arg2 = static_cast< int >(val2);
5346 {
5347 PyThreadState* __tstate = wxPyBeginAllowThreads();
5348 (arg1)->SetStyle(arg2);
5349 wxPyEndAllowThreads(__tstate);
5350 if (PyErr_Occurred()) SWIG_fail;
5351 }
5352 resultobj = SWIG_Py_Void();
5353 return resultobj;
5354fail:
5355 return NULL;
5356}
5357
5358
5359SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5360 PyObject *resultobj = 0;
5361 wxPen *arg1 = (wxPen *) 0 ;
5362 int arg2 ;
5363 void *argp1 = 0 ;
5364 int res1 = 0 ;
5365 int val2 ;
5366 int ecode2 = 0 ;
5367 PyObject * obj0 = 0 ;
5368 PyObject * obj1 = 0 ;
5369 char * kwnames[] = {
5370 (char *) "self",(char *) "width", NULL
5371 };
5372
5373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5375 if (!SWIG_IsOK(res1)) {
5376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5377 }
5378 arg1 = reinterpret_cast< wxPen * >(argp1);
5379 ecode2 = SWIG_AsVal_int(obj1, &val2);
5380 if (!SWIG_IsOK(ecode2)) {
5381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5382 }
5383 arg2 = static_cast< int >(val2);
5384 {
5385 PyThreadState* __tstate = wxPyBeginAllowThreads();
5386 (arg1)->SetWidth(arg2);
5387 wxPyEndAllowThreads(__tstate);
5388 if (PyErr_Occurred()) SWIG_fail;
5389 }
5390 resultobj = SWIG_Py_Void();
5391 return resultobj;
5392fail:
5393 return NULL;
5394}
5395
5396
5397SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5398 PyObject *resultobj = 0;
5399 wxPen *arg1 = (wxPen *) 0 ;
5400 int arg2 ;
5401 wxDash *arg3 = (wxDash *) 0 ;
5402 void *argp1 = 0 ;
5403 int res1 = 0 ;
5404 PyObject * obj0 = 0 ;
5405 PyObject * obj1 = 0 ;
5406 char * kwnames[] = {
5407 (char *) "self",(char *) "dashes", NULL
5408 };
5409
5410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5412 if (!SWIG_IsOK(res1)) {
5413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5414 }
5415 arg1 = reinterpret_cast< wxPen * >(argp1);
5416 {
5417 arg2 = PyList_Size(obj1);
5418 arg3 = (wxDash*)byte_LIST_helper(obj1);
5419 if (arg3 == NULL) SWIG_fail;
5420 }
5421 {
5422 PyThreadState* __tstate = wxPyBeginAllowThreads();
5423 (arg1)->SetDashes(arg2,arg3);
5424 wxPyEndAllowThreads(__tstate);
5425 if (PyErr_Occurred()) SWIG_fail;
5426 }
5427 resultobj = SWIG_Py_Void();
5428 {
5429 if (arg3) delete [] arg3;
5430 }
5431 return resultobj;
5432fail:
5433 {
5434 if (arg3) delete [] arg3;
5435 }
5436 return NULL;
d6c14a4c
RD
5437}
5438
5439
1bd55598
RD
5440SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5441 PyObject *resultobj = 0;
5442 wxPen *arg1 = (wxPen *) 0 ;
5443 PyObject *result = 0 ;
5444 void *argp1 = 0 ;
5445 int res1 = 0 ;
5446 PyObject *swig_obj[1] ;
5447
5448 if (!args) SWIG_fail;
5449 swig_obj[0] = args;
5450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5451 if (!SWIG_IsOK(res1)) {
5452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5453 }
5454 arg1 = reinterpret_cast< wxPen * >(argp1);
5455 {
5456 PyThreadState* __tstate = wxPyBeginAllowThreads();
5457 result = (PyObject *)wxPen_GetDashes(arg1);
5458 wxPyEndAllowThreads(__tstate);
5459 if (PyErr_Occurred()) SWIG_fail;
5460 }
5461 resultobj = result;
5462 return resultobj;
5463fail:
5464 return NULL;
5465}
5466
5467
5468SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5469 PyObject *resultobj = 0;
5470 wxPen *arg1 = (wxPen *) 0 ;
5471 PyObject *arg2 = (PyObject *) 0 ;
5472 PyObject *arg3 = (PyObject *) 0 ;
5473 void *argp1 = 0 ;
5474 int res1 = 0 ;
5475 PyObject * obj0 = 0 ;
5476 PyObject * obj1 = 0 ;
5477 PyObject * obj2 = 0 ;
5478 char * kwnames[] = {
5479 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5480 };
5481
5482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5484 if (!SWIG_IsOK(res1)) {
5485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5486 }
5487 arg1 = reinterpret_cast< wxPen * >(argp1);
5488 arg2 = obj1;
5489 arg3 = obj2;
5490 {
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 wxPen__SetDashes(arg1,arg2,arg3);
5493 wxPyEndAllowThreads(__tstate);
5494 if (PyErr_Occurred()) SWIG_fail;
5495 }
5496 resultobj = SWIG_Py_Void();
5497 return resultobj;
5498fail:
5499 return NULL;
5500}
5501
5502
5503SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5504 PyObject *resultobj = 0;
5505 wxPen *arg1 = (wxPen *) 0 ;
5506 wxPen *arg2 = (wxPen *) 0 ;
5507 bool result;
5508 void *argp1 = 0 ;
5509 int res1 = 0 ;
5510 void *argp2 = 0 ;
5511 int res2 = 0 ;
5512 PyObject * obj0 = 0 ;
5513 PyObject * obj1 = 0 ;
5514 char * kwnames[] = {
5515 (char *) "self",(char *) "other", NULL
5516 };
5517
5518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5520 if (!SWIG_IsOK(res1)) {
5521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5522 }
5523 arg1 = reinterpret_cast< wxPen * >(argp1);
5524 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5525 if (!SWIG_IsOK(res2)) {
5526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5527 }
5528 arg2 = reinterpret_cast< wxPen * >(argp2);
5529 {
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5532 wxPyEndAllowThreads(__tstate);
5533 if (PyErr_Occurred()) SWIG_fail;
5534 }
5535 {
5536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5537 }
5538 return resultobj;
5539fail:
5540 return NULL;
5541}
5542
5543
5544SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5545 PyObject *resultobj = 0;
5546 wxPen *arg1 = (wxPen *) 0 ;
5547 wxPen *arg2 = (wxPen *) 0 ;
5548 bool result;
5549 void *argp1 = 0 ;
5550 int res1 = 0 ;
5551 void *argp2 = 0 ;
5552 int res2 = 0 ;
5553 PyObject * obj0 = 0 ;
5554 PyObject * obj1 = 0 ;
5555 char * kwnames[] = {
5556 (char *) "self",(char *) "other", NULL
5557 };
5558
5559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5561 if (!SWIG_IsOK(res1)) {
5562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5563 }
5564 arg1 = reinterpret_cast< wxPen * >(argp1);
5565 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5566 if (!SWIG_IsOK(res2)) {
5567 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5568 }
5569 arg2 = reinterpret_cast< wxPen * >(argp2);
5570 {
5571 PyThreadState* __tstate = wxPyBeginAllowThreads();
5572 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5573 wxPyEndAllowThreads(__tstate);
5574 if (PyErr_Occurred()) SWIG_fail;
5575 }
5576 {
5577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5578 }
5579 return resultobj;
5580fail:
5581 return NULL;
5582}
d55e5bfc
RD
5583
5584
1bd55598
RD
5585SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5586 PyObject *obj;
5587 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5588 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5589 return SWIG_Py_Void();
d55e5bfc
RD
5590}
5591
1bd55598
RD
5592SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5593 return SWIG_Python_InitShadowInstance(args);
5594}
d55e5bfc 5595
1bd55598
RD
5596SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5597 PyObject *resultobj = 0;
5598 wxColour *arg1 = 0 ;
5599 int arg2 = (int) wxSOLID ;
5600 wxBrush *result = 0 ;
5601 wxColour temp1 ;
5602 int val2 ;
5603 int ecode2 = 0 ;
5604 PyObject * obj0 = 0 ;
5605 PyObject * obj1 = 0 ;
5606 char * kwnames[] = {
5607 (char *) "colour",(char *) "style", NULL
5608 };
5609
5610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5611 {
5612 arg1 = &temp1;
5613 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5614 }
5615 if (obj1) {
5616 ecode2 = SWIG_AsVal_int(obj1, &val2);
5617 if (!SWIG_IsOK(ecode2)) {
5618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5619 }
5620 arg2 = static_cast< int >(val2);
5621 }
5622 {
5623 if (!wxPyCheckForApp()) SWIG_fail;
5624 PyThreadState* __tstate = wxPyBeginAllowThreads();
5625 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5626 wxPyEndAllowThreads(__tstate);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5630 return resultobj;
5631fail:
5632 return NULL;
5633}
5634
5635
5636SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5637 PyObject *resultobj = 0;
5638 wxBitmap *arg1 = 0 ;
5639 wxBrush *result = 0 ;
5640 void *argp1 = 0 ;
5641 int res1 = 0 ;
5642 PyObject * obj0 = 0 ;
5643 char * kwnames[] = {
5644 (char *) "stippleBitmap", NULL
5645 };
5646
5647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5648 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5649 if (!SWIG_IsOK(res1)) {
5650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5651 }
5652 if (!argp1) {
5653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5654 }
5655 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5656 {
5657 if (!wxPyCheckForApp()) SWIG_fail;
5658 PyThreadState* __tstate = wxPyBeginAllowThreads();
5659 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5660 wxPyEndAllowThreads(__tstate);
5661 if (PyErr_Occurred()) SWIG_fail;
5662 }
5663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5664 return resultobj;
5665fail:
5666 return NULL;
d55e5bfc
RD
5667}
5668
5669
1bd55598
RD
5670SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5671 PyObject *resultobj = 0;
5672 wxBrush *arg1 = (wxBrush *) 0 ;
5673 void *argp1 = 0 ;
5674 int res1 = 0 ;
5675 PyObject *swig_obj[1] ;
5676
5677 if (!args) SWIG_fail;
5678 swig_obj[0] = args;
5679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5680 if (!SWIG_IsOK(res1)) {
5681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5682 }
5683 arg1 = reinterpret_cast< wxBrush * >(argp1);
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 delete arg1;
d55e5bfc 5687
1bd55598
RD
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
5691 resultobj = SWIG_Py_Void();
5692 return resultobj;
5693fail:
5694 return NULL;
5695}
5696
5697
5698SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5699 PyObject *resultobj = 0;
5700 wxBrush *arg1 = (wxBrush *) 0 ;
5701 wxColour *arg2 = 0 ;
5702 void *argp1 = 0 ;
5703 int res1 = 0 ;
5704 wxColour temp2 ;
5705 PyObject * obj0 = 0 ;
5706 PyObject * obj1 = 0 ;
5707 char * kwnames[] = {
5708 (char *) "self",(char *) "col", NULL
5709 };
5710
5711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5713 if (!SWIG_IsOK(res1)) {
5714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5715 }
5716 arg1 = reinterpret_cast< wxBrush * >(argp1);
5717 {
5718 arg2 = &temp2;
5719 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5720 }
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 (arg1)->SetColour((wxColour const &)*arg2);
5724 wxPyEndAllowThreads(__tstate);
5725 if (PyErr_Occurred()) SWIG_fail;
5726 }
5727 resultobj = SWIG_Py_Void();
5728 return resultobj;
5729fail:
5730 return NULL;
5731}
5732
5733
5734SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5735 PyObject *resultobj = 0;
5736 wxBrush *arg1 = (wxBrush *) 0 ;
5737 int arg2 ;
5738 void *argp1 = 0 ;
5739 int res1 = 0 ;
5740 int val2 ;
5741 int ecode2 = 0 ;
5742 PyObject * obj0 = 0 ;
5743 PyObject * obj1 = 0 ;
5744 char * kwnames[] = {
5745 (char *) "self",(char *) "style", NULL
5746 };
5747
5748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5750 if (!SWIG_IsOK(res1)) {
5751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5752 }
5753 arg1 = reinterpret_cast< wxBrush * >(argp1);
5754 ecode2 = SWIG_AsVal_int(obj1, &val2);
5755 if (!SWIG_IsOK(ecode2)) {
5756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5757 }
5758 arg2 = static_cast< int >(val2);
5759 {
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 (arg1)->SetStyle(arg2);
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 resultobj = SWIG_Py_Void();
5766 return resultobj;
5767fail:
5768 return NULL;
5769}
5770
5771
5772SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5773 PyObject *resultobj = 0;
5774 wxBrush *arg1 = (wxBrush *) 0 ;
5775 wxBitmap *arg2 = 0 ;
5776 void *argp1 = 0 ;
5777 int res1 = 0 ;
5778 void *argp2 = 0 ;
5779 int res2 = 0 ;
5780 PyObject * obj0 = 0 ;
5781 PyObject * obj1 = 0 ;
5782 char * kwnames[] = {
5783 (char *) "self",(char *) "stipple", NULL
5784 };
5785
5786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5788 if (!SWIG_IsOK(res1)) {
5789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5790 }
5791 arg1 = reinterpret_cast< wxBrush * >(argp1);
5792 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5793 if (!SWIG_IsOK(res2)) {
5794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5795 }
5796 if (!argp2) {
5797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5798 }
5799 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5800 {
5801 PyThreadState* __tstate = wxPyBeginAllowThreads();
5802 (arg1)->SetStipple((wxBitmap const &)*arg2);
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 resultobj = SWIG_Py_Void();
5807 return resultobj;
5808fail:
5809 return NULL;
d55e5bfc
RD
5810}
5811
5812
1bd55598
RD
5813SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5814 PyObject *resultobj = 0;
5815 wxBrush *arg1 = (wxBrush *) 0 ;
5816 wxColour result;
5817 void *argp1 = 0 ;
5818 int res1 = 0 ;
5819 PyObject *swig_obj[1] ;
5820
5821 if (!args) SWIG_fail;
5822 swig_obj[0] = args;
5823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5824 if (!SWIG_IsOK(res1)) {
5825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5826 }
5827 arg1 = reinterpret_cast< wxBrush * >(argp1);
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 result = ((wxBrush const *)arg1)->GetColour();
5831 wxPyEndAllowThreads(__tstate);
5832 if (PyErr_Occurred()) SWIG_fail;
5833 }
5834 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5835 return resultobj;
5836fail:
5837 return NULL;
d55e5bfc
RD
5838}
5839
5840
1bd55598
RD
5841SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5842 PyObject *resultobj = 0;
5843 wxBrush *arg1 = (wxBrush *) 0 ;
5844 int result;
5845 void *argp1 = 0 ;
5846 int res1 = 0 ;
5847 PyObject *swig_obj[1] ;
5848
5849 if (!args) SWIG_fail;
5850 swig_obj[0] = args;
5851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5852 if (!SWIG_IsOK(res1)) {
5853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5854 }
5855 arg1 = reinterpret_cast< wxBrush * >(argp1);
5856 {
5857 PyThreadState* __tstate = wxPyBeginAllowThreads();
5858 result = (int)((wxBrush const *)arg1)->GetStyle();
5859 wxPyEndAllowThreads(__tstate);
5860 if (PyErr_Occurred()) SWIG_fail;
5861 }
5862 resultobj = SWIG_From_int(static_cast< int >(result));
5863 return resultobj;
5864fail:
5865 return NULL;
d55e5bfc
RD
5866}
5867
5868
1bd55598
RD
5869SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5870 PyObject *resultobj = 0;
5871 wxBrush *arg1 = (wxBrush *) 0 ;
5872 wxBitmap *result = 0 ;
5873 void *argp1 = 0 ;
5874 int res1 = 0 ;
5875 PyObject *swig_obj[1] ;
5876
5877 if (!args) SWIG_fail;
5878 swig_obj[0] = args;
5879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5880 if (!SWIG_IsOK(res1)) {
5881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5882 }
5883 arg1 = reinterpret_cast< wxBrush * >(argp1);
5884 {
5885 PyThreadState* __tstate = wxPyBeginAllowThreads();
5886 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5887 wxPyEndAllowThreads(__tstate);
5888 if (PyErr_Occurred()) SWIG_fail;
5889 }
5890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5891 return resultobj;
5892fail:
5893 return NULL;
d55e5bfc
RD
5894}
5895
5896
1bd55598
RD
5897SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5898 PyObject *resultobj = 0;
5899 wxBrush *arg1 = (wxBrush *) 0 ;
5900 bool result;
5901 void *argp1 = 0 ;
5902 int res1 = 0 ;
5903 PyObject *swig_obj[1] ;
5904
5905 if (!args) SWIG_fail;
5906 swig_obj[0] = args;
5907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5908 if (!SWIG_IsOK(res1)) {
5909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5910 }
5911 arg1 = reinterpret_cast< wxBrush * >(argp1);
5912 {
5913 PyThreadState* __tstate = wxPyBeginAllowThreads();
5914 result = (bool)((wxBrush const *)arg1)->IsHatch();
5915 wxPyEndAllowThreads(__tstate);
5916 if (PyErr_Occurred()) SWIG_fail;
5917 }
5918 {
5919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5920 }
5921 return resultobj;
5922fail:
5923 return NULL;
d55e5bfc
RD
5924}
5925
5926
b39fe951 5927SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5928 PyObject *resultobj = 0;
5929 wxBrush *arg1 = (wxBrush *) 0 ;
5930 bool result;
5931 void *argp1 = 0 ;
5932 int res1 = 0 ;
5933 PyObject *swig_obj[1] ;
5934
5935 if (!args) SWIG_fail;
5936 swig_obj[0] = args;
5937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5938 if (!SWIG_IsOK(res1)) {
b39fe951 5939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
5940 }
5941 arg1 = reinterpret_cast< wxBrush * >(argp1);
5942 {
5943 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5944 result = (bool)(arg1)->IsOk();
1bd55598
RD
5945 wxPyEndAllowThreads(__tstate);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 {
5949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5950 }
5951 return resultobj;
5952fail:
5953 return NULL;
d55e5bfc
RD
5954}
5955
5956
1bd55598
RD
5957SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5958 PyObject *resultobj = 0;
5959 wxBrush *arg1 = (wxBrush *) 0 ;
5960 short result;
5961 void *argp1 = 0 ;
5962 int res1 = 0 ;
5963 PyObject *swig_obj[1] ;
5964
5965 if (!args) SWIG_fail;
5966 swig_obj[0] = args;
5967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5968 if (!SWIG_IsOK(res1)) {
5969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5970 }
5971 arg1 = reinterpret_cast< wxBrush * >(argp1);
5972 {
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 result = (short)(arg1)->MacGetTheme();
5975 wxPyEndAllowThreads(__tstate);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 }
5978 resultobj = SWIG_From_short(static_cast< short >(result));
5979 return resultobj;
5980fail:
5981 return NULL;
5982}
5983
5984
5985SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5986 PyObject *resultobj = 0;
5987 wxBrush *arg1 = (wxBrush *) 0 ;
5988 short arg2 ;
5989 void *argp1 = 0 ;
5990 int res1 = 0 ;
5991 short val2 ;
5992 int ecode2 = 0 ;
5993 PyObject * obj0 = 0 ;
5994 PyObject * obj1 = 0 ;
5995 char * kwnames[] = {
5996 (char *) "self",(char *) "macThemeBrush", NULL
5997 };
5998
5999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6001 if (!SWIG_IsOK(res1)) {
6002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6003 }
6004 arg1 = reinterpret_cast< wxBrush * >(argp1);
6005 ecode2 = SWIG_AsVal_short(obj1, &val2);
6006 if (!SWIG_IsOK(ecode2)) {
6007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6008 }
6009 arg2 = static_cast< short >(val2);
6010 {
6011 PyThreadState* __tstate = wxPyBeginAllowThreads();
6012 (arg1)->MacSetTheme(arg2);
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 resultobj = SWIG_Py_Void();
6017 return resultobj;
6018fail:
6019 return NULL;
d55e5bfc
RD
6020}
6021
6022
1bd55598
RD
6023SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6024 PyObject *obj;
6025 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6026 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6027 return SWIG_Py_Void();
d55e5bfc
RD
6028}
6029
1bd55598
RD
6030SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6031 return SWIG_Python_InitShadowInstance(args);
6032}
d55e5bfc 6033
1bd55598
RD
6034SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6035 PyObject *resultobj = 0;
6036 wxString *arg1 = 0 ;
6037 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6038 wxBitmap *result = 0 ;
6039 bool temp1 = false ;
6040 int val2 ;
6041 int ecode2 = 0 ;
6042 PyObject * obj0 = 0 ;
6043 PyObject * obj1 = 0 ;
6044 char * kwnames[] = {
6045 (char *) "name",(char *) "type", NULL
6046 };
6047
6048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6049 {
6050 arg1 = wxString_in_helper(obj0);
6051 if (arg1 == NULL) SWIG_fail;
6052 temp1 = true;
6053 }
6054 if (obj1) {
6055 ecode2 = SWIG_AsVal_int(obj1, &val2);
6056 if (!SWIG_IsOK(ecode2)) {
6057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6058 }
6059 arg2 = static_cast< wxBitmapType >(val2);
6060 }
6061 {
6062 if (!wxPyCheckForApp()) SWIG_fail;
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6069 {
6070 if (temp1)
6071 delete arg1;
6072 }
6073 return resultobj;
6074fail:
6075 {
6076 if (temp1)
6077 delete arg1;
6078 }
6079 return NULL;
d55e5bfc
RD
6080}
6081
6082
1bd55598
RD
6083SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6084 PyObject *resultobj = 0;
6085 wxBitmap *arg1 = (wxBitmap *) 0 ;
6086 void *argp1 = 0 ;
6087 int res1 = 0 ;
6088 PyObject *swig_obj[1] ;
6089
6090 if (!args) SWIG_fail;
6091 swig_obj[0] = args;
6092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6093 if (!SWIG_IsOK(res1)) {
6094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6095 }
6096 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6097 {
1bd55598 6098 delete arg1;
d55e5bfc 6099
1bd55598
RD
6100 if (PyErr_Occurred()) SWIG_fail;
6101 }
6102 resultobj = SWIG_Py_Void();
6103 return resultobj;
6104fail:
6105 return NULL;
6106}
6107
6108
6109SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6110 PyObject *resultobj = 0;
6111 int arg1 ;
6112 int arg2 ;
6113 int arg3 = (int) -1 ;
6114 wxBitmap *result = 0 ;
6115 int val1 ;
6116 int ecode1 = 0 ;
6117 int val2 ;
6118 int ecode2 = 0 ;
6119 int val3 ;
6120 int ecode3 = 0 ;
6121 PyObject * obj0 = 0 ;
6122 PyObject * obj1 = 0 ;
6123 PyObject * obj2 = 0 ;
6124 char * kwnames[] = {
6125 (char *) "width",(char *) "height",(char *) "depth", NULL
6126 };
6127
6128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6129 ecode1 = SWIG_AsVal_int(obj0, &val1);
6130 if (!SWIG_IsOK(ecode1)) {
6131 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6132 }
6133 arg1 = static_cast< int >(val1);
6134 ecode2 = SWIG_AsVal_int(obj1, &val2);
6135 if (!SWIG_IsOK(ecode2)) {
6136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6137 }
6138 arg2 = static_cast< int >(val2);
6139 if (obj2) {
6140 ecode3 = SWIG_AsVal_int(obj2, &val3);
6141 if (!SWIG_IsOK(ecode3)) {
6142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6143 }
6144 arg3 = static_cast< int >(val3);
6145 }
6146 {
6147 if (!wxPyCheckForApp()) SWIG_fail;
6148 PyThreadState* __tstate = wxPyBeginAllowThreads();
6149 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6150 wxPyEndAllowThreads(__tstate);
6151 if (PyErr_Occurred()) SWIG_fail;
6152 }
6153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6154 return resultobj;
6155fail:
6156 return NULL;
6157}
6158
6159
6160SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6161 PyObject *resultobj = 0;
6162 wxIcon *arg1 = 0 ;
6163 wxBitmap *result = 0 ;
6164 void *argp1 = 0 ;
6165 int res1 = 0 ;
6166 PyObject * obj0 = 0 ;
6167 char * kwnames[] = {
6168 (char *) "icon", NULL
6169 };
6170
6171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6172 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6173 if (!SWIG_IsOK(res1)) {
6174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6175 }
6176 if (!argp1) {
6177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6178 }
6179 arg1 = reinterpret_cast< wxIcon * >(argp1);
6180 {
6181 if (!wxPyCheckForApp()) SWIG_fail;
6182 PyThreadState* __tstate = wxPyBeginAllowThreads();
6183 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6184 wxPyEndAllowThreads(__tstate);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 }
6187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6188 return resultobj;
6189fail:
6190 return NULL;
6191}
6192
6193
6194SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6195 PyObject *resultobj = 0;
6196 wxImage *arg1 = 0 ;
6197 int arg2 = (int) -1 ;
6198 wxBitmap *result = 0 ;
6199 void *argp1 = 0 ;
6200 int res1 = 0 ;
6201 int val2 ;
6202 int ecode2 = 0 ;
6203 PyObject * obj0 = 0 ;
6204 PyObject * obj1 = 0 ;
6205 char * kwnames[] = {
6206 (char *) "image",(char *) "depth", NULL
6207 };
6208
6209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6210 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6211 if (!SWIG_IsOK(res1)) {
6212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6213 }
6214 if (!argp1) {
6215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6216 }
6217 arg1 = reinterpret_cast< wxImage * >(argp1);
6218 if (obj1) {
6219 ecode2 = SWIG_AsVal_int(obj1, &val2);
6220 if (!SWIG_IsOK(ecode2)) {
6221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6222 }
6223 arg2 = static_cast< int >(val2);
6224 }
6225 {
6226 if (!wxPyCheckForApp()) SWIG_fail;
6227 PyThreadState* __tstate = wxPyBeginAllowThreads();
6228 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6229 wxPyEndAllowThreads(__tstate);
6230 if (PyErr_Occurred()) SWIG_fail;
6231 }
6232 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6233 return resultobj;
6234fail:
6235 return NULL;
d55e5bfc
RD
6236}
6237
6238
1bd55598
RD
6239SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6240 PyObject *resultobj = 0;
6241 PyObject *arg1 = (PyObject *) 0 ;
6242 wxBitmap *result = 0 ;
6243 PyObject * obj0 = 0 ;
6244 char * kwnames[] = {
6245 (char *) "listOfStrings", NULL
6246 };
6247
6248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6249 arg1 = obj0;
6250 {
6251 if (!wxPyCheckForApp()) SWIG_fail;
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 result = (wxBitmap *)new_wxBitmap(arg1);
6254 wxPyEndAllowThreads(__tstate);
6255 if (PyErr_Occurred()) SWIG_fail;
6256 }
6257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6258 return resultobj;
6259fail:
6260 return NULL;
6261}
6262
6263
6264SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6265 PyObject *resultobj = 0;
6266 PyObject *arg1 = (PyObject *) 0 ;
6267 int arg2 ;
6268 int arg3 ;
6269 int arg4 = (int) 1 ;
6270 wxBitmap *result = 0 ;
6271 int val2 ;
6272 int ecode2 = 0 ;
6273 int val3 ;
6274 int ecode3 = 0 ;
6275 int val4 ;
6276 int ecode4 = 0 ;
6277 PyObject * obj0 = 0 ;
6278 PyObject * obj1 = 0 ;
6279 PyObject * obj2 = 0 ;
6280 PyObject * obj3 = 0 ;
6281 char * kwnames[] = {
6282 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6283 };
6284
6285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6286 arg1 = obj0;
6287 ecode2 = SWIG_AsVal_int(obj1, &val2);
6288 if (!SWIG_IsOK(ecode2)) {
6289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6290 }
6291 arg2 = static_cast< int >(val2);
6292 ecode3 = SWIG_AsVal_int(obj2, &val3);
6293 if (!SWIG_IsOK(ecode3)) {
6294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6295 }
6296 arg3 = static_cast< int >(val3);
6297 if (obj3) {
6298 ecode4 = SWIG_AsVal_int(obj3, &val4);
6299 if (!SWIG_IsOK(ecode4)) {
6300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6301 }
6302 arg4 = static_cast< int >(val4);
6303 }
6304 {
6305 if (!wxPyCheckForApp()) SWIG_fail;
6306 PyThreadState* __tstate = wxPyBeginAllowThreads();
6307 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6308 wxPyEndAllowThreads(__tstate);
6309 if (PyErr_Occurred()) SWIG_fail;
6310 }
6311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6312 return resultobj;
6313fail:
6314 return NULL;
d55e5bfc
RD
6315}
6316
6317
b39fe951 6318SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6319 PyObject *resultobj = 0;
6320 wxBitmap *arg1 = (wxBitmap *) 0 ;
6321 bool result;
6322 void *argp1 = 0 ;
6323 int res1 = 0 ;
6324 PyObject *swig_obj[1] ;
6325
6326 if (!args) SWIG_fail;
6327 swig_obj[0] = args;
6328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6329 if (!SWIG_IsOK(res1)) {
b39fe951 6330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6331 }
6332 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6333 {
b39fe951 6334 result = (bool)(arg1)->IsOk();
1bd55598
RD
6335 if (PyErr_Occurred()) SWIG_fail;
6336 }
6337 {
6338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6339 }
6340 return resultobj;
6341fail:
6342 return NULL;
d55e5bfc
RD
6343}
6344
6345
1bd55598
RD
6346SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6347 PyObject *resultobj = 0;
6348 wxBitmap *arg1 = (wxBitmap *) 0 ;
6349 int result;
6350 void *argp1 = 0 ;
6351 int res1 = 0 ;
6352 PyObject *swig_obj[1] ;
6353
6354 if (!args) SWIG_fail;
6355 swig_obj[0] = args;
6356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6357 if (!SWIG_IsOK(res1)) {
6358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6359 }
6360 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6361 {
1bd55598 6362 result = (int)(arg1)->GetWidth();
1bd55598
RD
6363 if (PyErr_Occurred()) SWIG_fail;
6364 }
6365 resultobj = SWIG_From_int(static_cast< int >(result));
6366 return resultobj;
6367fail:
6368 return NULL;
070c48b4
RD
6369}
6370
6371
1bd55598
RD
6372SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6373 PyObject *resultobj = 0;
6374 wxBitmap *arg1 = (wxBitmap *) 0 ;
6375 int result;
6376 void *argp1 = 0 ;
6377 int res1 = 0 ;
6378 PyObject *swig_obj[1] ;
6379
6380 if (!args) SWIG_fail;
6381 swig_obj[0] = args;
6382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6383 if (!SWIG_IsOK(res1)) {
6384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6385 }
6386 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6387 {
1bd55598 6388 result = (int)(arg1)->GetHeight();
1bd55598
RD
6389 if (PyErr_Occurred()) SWIG_fail;
6390 }
6391 resultobj = SWIG_From_int(static_cast< int >(result));
6392 return resultobj;
6393fail:
6394 return NULL;
d55e5bfc
RD
6395}
6396
6397
1bd55598
RD
6398SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6399 PyObject *resultobj = 0;
6400 wxBitmap *arg1 = (wxBitmap *) 0 ;
6401 int result;
6402 void *argp1 = 0 ;
6403 int res1 = 0 ;
6404 PyObject *swig_obj[1] ;
6405
6406 if (!args) SWIG_fail;
6407 swig_obj[0] = args;
6408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6409 if (!SWIG_IsOK(res1)) {
6410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6411 }
6412 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6413 {
1bd55598 6414 result = (int)(arg1)->GetDepth();
1bd55598
RD
6415 if (PyErr_Occurred()) SWIG_fail;
6416 }
6417 resultobj = SWIG_From_int(static_cast< int >(result));
6418 return resultobj;
6419fail:
6420 return NULL;
d55e5bfc
RD
6421}
6422
6423
1bd55598
RD
6424SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6425 PyObject *resultobj = 0;
6426 wxBitmap *arg1 = (wxBitmap *) 0 ;
6427 wxSize result;
6428 void *argp1 = 0 ;
6429 int res1 = 0 ;
6430 PyObject *swig_obj[1] ;
6431
6432 if (!args) SWIG_fail;
6433 swig_obj[0] = args;
6434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6435 if (!SWIG_IsOK(res1)) {
6436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6437 }
6438 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6439 {
1bd55598 6440 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6441 if (PyErr_Occurred()) SWIG_fail;
6442 }
6443 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6444 return resultobj;
6445fail:
6446 return NULL;
d55e5bfc
RD
6447}
6448
6449
1bd55598
RD
6450SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6451 PyObject *resultobj = 0;
6452 wxBitmap *arg1 = (wxBitmap *) 0 ;
6453 SwigValueWrapper<wxImage > result;
6454 void *argp1 = 0 ;
6455 int res1 = 0 ;
6456 PyObject *swig_obj[1] ;
6457
6458 if (!args) SWIG_fail;
6459 swig_obj[0] = args;
6460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6461 if (!SWIG_IsOK(res1)) {
6462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6463 }
6464 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6465 {
1bd55598 6466 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6470 return resultobj;
6471fail:
6472 return NULL;
d55e5bfc
RD
6473}
6474
6475
1bd55598
RD
6476SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6477 PyObject *resultobj = 0;
6478 wxBitmap *arg1 = (wxBitmap *) 0 ;
6479 wxMask *result = 0 ;
6480 void *argp1 = 0 ;
6481 int res1 = 0 ;
6482 PyObject *swig_obj[1] ;
6483
6484 if (!args) SWIG_fail;
6485 swig_obj[0] = args;
6486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6487 if (!SWIG_IsOK(res1)) {
6488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6489 }
6490 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6491 {
1bd55598 6492 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6493 if (PyErr_Occurred()) SWIG_fail;
6494 }
6495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6496 return resultobj;
6497fail:
6498 return NULL;
6499}
6500
6501
6502SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6503 PyObject *resultobj = 0;
6504 wxBitmap *arg1 = (wxBitmap *) 0 ;
6505 wxMask *arg2 = (wxMask *) 0 ;
6506 void *argp1 = 0 ;
6507 int res1 = 0 ;
6508 int res2 = 0 ;
6509 PyObject * obj0 = 0 ;
6510 PyObject * obj1 = 0 ;
6511 char * kwnames[] = {
6512 (char *) "self",(char *) "mask", NULL
6513 };
6514
6515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6517 if (!SWIG_IsOK(res1)) {
6518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6519 }
6520 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6521 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6522 if (!SWIG_IsOK(res2)) {
6523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6524 }
6525 {
1bd55598 6526 (arg1)->SetMask(arg2);
1bd55598
RD
6527 if (PyErr_Occurred()) SWIG_fail;
6528 }
6529 resultobj = SWIG_Py_Void();
6530 return resultobj;
6531fail:
6532 return NULL;
6533}
6534
6535
6536SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6537 PyObject *resultobj = 0;
6538 wxBitmap *arg1 = (wxBitmap *) 0 ;
6539 wxColour *arg2 = 0 ;
6540 void *argp1 = 0 ;
6541 int res1 = 0 ;
6542 wxColour temp2 ;
6543 PyObject * obj0 = 0 ;
6544 PyObject * obj1 = 0 ;
6545 char * kwnames[] = {
6546 (char *) "self",(char *) "colour", NULL
6547 };
6548
6549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6551 if (!SWIG_IsOK(res1)) {
6552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6553 }
6554 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6555 {
6556 arg2 = &temp2;
6557 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6558 }
6559 {
1bd55598 6560 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6561 if (PyErr_Occurred()) SWIG_fail;
6562 }
6563 resultobj = SWIG_Py_Void();
6564 return resultobj;
6565fail:
6566 return NULL;
6567}
6568
6569
6570SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6571 PyObject *resultobj = 0;
6572 wxBitmap *arg1 = (wxBitmap *) 0 ;
6573 wxRect *arg2 = 0 ;
6574 SwigValueWrapper<wxBitmap > result;
6575 void *argp1 = 0 ;
6576 int res1 = 0 ;
6577 wxRect temp2 ;
6578 PyObject * obj0 = 0 ;
6579 PyObject * obj1 = 0 ;
6580 char * kwnames[] = {
6581 (char *) "self",(char *) "rect", NULL
6582 };
6583
6584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6586 if (!SWIG_IsOK(res1)) {
6587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6588 }
6589 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6590 {
6591 arg2 = &temp2;
6592 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6593 }
6594 {
1bd55598 6595 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6596 if (PyErr_Occurred()) SWIG_fail;
6597 }
6598 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6599 return resultobj;
6600fail:
6601 return NULL;
6602}
6603
6604
6605SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6606 PyObject *resultobj = 0;
6607 wxBitmap *arg1 = (wxBitmap *) 0 ;
6608 wxString *arg2 = 0 ;
6609 wxBitmapType arg3 ;
6610 wxPalette *arg4 = (wxPalette *) NULL ;
6611 bool result;
6612 void *argp1 = 0 ;
6613 int res1 = 0 ;
6614 bool temp2 = false ;
6615 int val3 ;
6616 int ecode3 = 0 ;
6617 void *argp4 = 0 ;
6618 int res4 = 0 ;
6619 PyObject * obj0 = 0 ;
6620 PyObject * obj1 = 0 ;
6621 PyObject * obj2 = 0 ;
6622 PyObject * obj3 = 0 ;
6623 char * kwnames[] = {
6624 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6625 };
6626
6627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6629 if (!SWIG_IsOK(res1)) {
6630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6631 }
6632 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6633 {
6634 arg2 = wxString_in_helper(obj1);
6635 if (arg2 == NULL) SWIG_fail;
6636 temp2 = true;
6637 }
6638 ecode3 = SWIG_AsVal_int(obj2, &val3);
6639 if (!SWIG_IsOK(ecode3)) {
6640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6641 }
6642 arg3 = static_cast< wxBitmapType >(val3);
6643 if (obj3) {
6644 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6645 if (!SWIG_IsOK(res4)) {
6646 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6647 }
1bd55598
RD
6648 arg4 = reinterpret_cast< wxPalette * >(argp4);
6649 }
6650 {
1bd55598 6651 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6652 if (PyErr_Occurred()) SWIG_fail;
6653 }
6654 {
6655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6656 }
6657 {
6658 if (temp2)
6659 delete arg2;
6660 }
6661 return resultobj;
6662fail:
6663 {
6664 if (temp2)
6665 delete arg2;
6666 }
6667 return NULL;
6668}
6669
6670
6671SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6672 PyObject *resultobj = 0;
6673 wxBitmap *arg1 = (wxBitmap *) 0 ;
6674 wxString *arg2 = 0 ;
6675 wxBitmapType arg3 ;
6676 bool result;
6677 void *argp1 = 0 ;
6678 int res1 = 0 ;
6679 bool temp2 = false ;
6680 int val3 ;
6681 int ecode3 = 0 ;
6682 PyObject * obj0 = 0 ;
6683 PyObject * obj1 = 0 ;
6684 PyObject * obj2 = 0 ;
6685 char * kwnames[] = {
6686 (char *) "self",(char *) "name",(char *) "type", NULL
6687 };
6688
6689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6691 if (!SWIG_IsOK(res1)) {
6692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6693 }
6694 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6695 {
6696 arg2 = wxString_in_helper(obj1);
6697 if (arg2 == NULL) SWIG_fail;
6698 temp2 = true;
6699 }
6700 ecode3 = SWIG_AsVal_int(obj2, &val3);
6701 if (!SWIG_IsOK(ecode3)) {
6702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6703 }
6704 arg3 = static_cast< wxBitmapType >(val3);
6705 {
1bd55598 6706 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6707 if (PyErr_Occurred()) SWIG_fail;
6708 }
6709 {
6710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6711 }
6712 {
6713 if (temp2)
6714 delete arg2;
6715 }
6716 return resultobj;
6717fail:
6718 {
6719 if (temp2)
6720 delete arg2;
6721 }
6722 return NULL;
d04418a7
RD
6723}
6724
6725
1bd55598
RD
6726SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6727 PyObject *resultobj = 0;
6728 wxBitmap *arg1 = (wxBitmap *) 0 ;
6729 wxPalette *result = 0 ;
6730 void *argp1 = 0 ;
6731 int res1 = 0 ;
6732 PyObject *swig_obj[1] ;
6733
6734 if (!args) SWIG_fail;
6735 swig_obj[0] = args;
6736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6737 if (!SWIG_IsOK(res1)) {
6738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6739 }
6740 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6741 {
1bd55598 6742 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6743 if (PyErr_Occurred()) SWIG_fail;
6744 }
6745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6746 return resultobj;
6747fail:
6748 return NULL;
6749}
6750
6751
6752SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj = 0;
6754 wxBitmap *arg1 = (wxBitmap *) 0 ;
6755 wxIcon *arg2 = 0 ;
6756 bool result;
6757 void *argp1 = 0 ;
6758 int res1 = 0 ;
6759 void *argp2 = 0 ;
6760 int res2 = 0 ;
6761 PyObject * obj0 = 0 ;
6762 PyObject * obj1 = 0 ;
6763 char * kwnames[] = {
6764 (char *) "self",(char *) "icon", NULL
6765 };
6766
6767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6769 if (!SWIG_IsOK(res1)) {
6770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6771 }
6772 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6773 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6774 if (!SWIG_IsOK(res2)) {
6775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6776 }
6777 if (!argp2) {
6778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6779 }
6780 arg2 = reinterpret_cast< wxIcon * >(argp2);
6781 {
1bd55598 6782 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6783 if (PyErr_Occurred()) SWIG_fail;
6784 }
6785 {
6786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6787 }
6788 return resultobj;
6789fail:
6790 return NULL;
6791}
6792
6793
6794SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6795 PyObject *resultobj = 0;
6796 wxBitmap *arg1 = (wxBitmap *) 0 ;
6797 int arg2 ;
6798 void *argp1 = 0 ;
6799 int res1 = 0 ;
6800 int val2 ;
6801 int ecode2 = 0 ;
6802 PyObject * obj0 = 0 ;
6803 PyObject * obj1 = 0 ;
6804 char * kwnames[] = {
6805 (char *) "self",(char *) "height", NULL
6806 };
6807
6808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6810 if (!SWIG_IsOK(res1)) {
6811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6812 }
6813 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6814 ecode2 = SWIG_AsVal_int(obj1, &val2);
6815 if (!SWIG_IsOK(ecode2)) {
6816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6817 }
6818 arg2 = static_cast< int >(val2);
6819 {
1bd55598 6820 (arg1)->SetHeight(arg2);
1bd55598
RD
6821 if (PyErr_Occurred()) SWIG_fail;
6822 }
6823 resultobj = SWIG_Py_Void();
6824 return resultobj;
6825fail:
6826 return NULL;
6827}
6828
6829
6830SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6831 PyObject *resultobj = 0;
6832 wxBitmap *arg1 = (wxBitmap *) 0 ;
6833 int arg2 ;
6834 void *argp1 = 0 ;
6835 int res1 = 0 ;
6836 int val2 ;
6837 int ecode2 = 0 ;
6838 PyObject * obj0 = 0 ;
6839 PyObject * obj1 = 0 ;
6840 char * kwnames[] = {
6841 (char *) "self",(char *) "width", NULL
6842 };
6843
6844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6846 if (!SWIG_IsOK(res1)) {
6847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6848 }
6849 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6850 ecode2 = SWIG_AsVal_int(obj1, &val2);
6851 if (!SWIG_IsOK(ecode2)) {
6852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6853 }
6854 arg2 = static_cast< int >(val2);
6855 {
1bd55598 6856 (arg1)->SetWidth(arg2);
1bd55598
RD
6857 if (PyErr_Occurred()) SWIG_fail;
6858 }
6859 resultobj = SWIG_Py_Void();
6860 return resultobj;
6861fail:
6862 return NULL;
6863}
6864
6865
6866SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6867 PyObject *resultobj = 0;
6868 wxBitmap *arg1 = (wxBitmap *) 0 ;
6869 int arg2 ;
6870 void *argp1 = 0 ;
6871 int res1 = 0 ;
6872 int val2 ;
6873 int ecode2 = 0 ;
6874 PyObject * obj0 = 0 ;
6875 PyObject * obj1 = 0 ;
6876 char * kwnames[] = {
6877 (char *) "self",(char *) "depth", NULL
6878 };
6879
6880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6882 if (!SWIG_IsOK(res1)) {
6883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6884 }
6885 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6886 ecode2 = SWIG_AsVal_int(obj1, &val2);
6887 if (!SWIG_IsOK(ecode2)) {
6888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6889 }
6890 arg2 = static_cast< int >(val2);
6891 {
1bd55598 6892 (arg1)->SetDepth(arg2);
1bd55598
RD
6893 if (PyErr_Occurred()) SWIG_fail;
6894 }
6895 resultobj = SWIG_Py_Void();
6896 return resultobj;
6897fail:
6898 return NULL;
6899}
6900
6901
6902SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6903 PyObject *resultobj = 0;
6904 wxBitmap *arg1 = (wxBitmap *) 0 ;
6905 wxSize *arg2 = 0 ;
6906 void *argp1 = 0 ;
6907 int res1 = 0 ;
6908 wxSize temp2 ;
6909 PyObject * obj0 = 0 ;
6910 PyObject * obj1 = 0 ;
6911 char * kwnames[] = {
6912 (char *) "self",(char *) "size", NULL
6913 };
6914
6915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6917 if (!SWIG_IsOK(res1)) {
6918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6919 }
6920 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6921 {
6922 arg2 = &temp2;
6923 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6924 }
6925 {
1bd55598 6926 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = SWIG_Py_Void();
6930 return resultobj;
6931fail:
6932 return NULL;
6933}
6934
6935
6936SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxBitmap *arg1 = (wxBitmap *) 0 ;
6939 wxBitmap *arg2 = (wxBitmap *) 0 ;
6940 bool result;
6941 void *argp1 = 0 ;
6942 int res1 = 0 ;
6943 void *argp2 = 0 ;
6944 int res2 = 0 ;
6945 PyObject * obj0 = 0 ;
6946 PyObject * obj1 = 0 ;
6947 char * kwnames[] = {
6948 (char *) "self",(char *) "other", NULL
6949 };
6950
6951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6953 if (!SWIG_IsOK(res1)) {
6954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6955 }
6956 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6957 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6958 if (!SWIG_IsOK(res2)) {
6959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6960 }
6961 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6962 {
1bd55598 6963 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
6964 if (PyErr_Occurred()) SWIG_fail;
6965 }
6966 {
fc46b7f3
RD
6967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6968 }
6969 return resultobj;
6970fail:
6971 return NULL;
6972}
6973
6974
6975SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6976 PyObject *resultobj = 0;
6977 wxBitmap *arg1 = (wxBitmap *) 0 ;
6978 wxBitmap *arg2 = (wxBitmap *) 0 ;
6979 bool result;
6980 void *argp1 = 0 ;
6981 int res1 = 0 ;
6982 void *argp2 = 0 ;
6983 int res2 = 0 ;
6984 PyObject * obj0 = 0 ;
6985 PyObject * obj1 = 0 ;
6986 char * kwnames[] = {
6987 (char *) "self",(char *) "other", NULL
6988 };
6989
6990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6992 if (!SWIG_IsOK(res1)) {
6993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6994 }
6995 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6996 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6997 if (!SWIG_IsOK(res2)) {
6998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6999 }
7000 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7001 {
7002 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7003 if (PyErr_Occurred()) SWIG_fail;
7004 }
7005 {
7006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7007 }
7008 return resultobj;
7009fail:
7010 return NULL;
7011}
7012
7013
7014SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7015 PyObject *obj;
7016 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7017 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7018 return SWIG_Py_Void();
7019}
7020
7021SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7022 return SWIG_Python_InitShadowInstance(args);
7023}
7024
7025SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7026 PyObject *resultobj = 0;
7027 int arg1 ;
7028 int arg2 ;
7029 buffer arg3 ;
7030 int arg4 ;
7031 buffer arg5 ;
7032 int arg6 ;
7033 wxBitmap *result = 0 ;
7034 int val1 ;
7035 int ecode1 = 0 ;
7036 int val2 ;
7037 int ecode2 = 0 ;
8c9c423b
RD
7038 Py_ssize_t temp3 ;
7039 Py_ssize_t temp5 ;
fc46b7f3
RD
7040 PyObject * obj0 = 0 ;
7041 PyObject * obj1 = 0 ;
7042 PyObject * obj2 = 0 ;
7043 PyObject * obj3 = 0 ;
7044 char * kwnames[] = {
7045 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7046 };
7047
7048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7049 ecode1 = SWIG_AsVal_int(obj0, &val1);
7050 if (!SWIG_IsOK(ecode1)) {
7051 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7052 }
7053 arg1 = static_cast< int >(val1);
7054 ecode2 = SWIG_AsVal_int(obj1, &val2);
7055 if (!SWIG_IsOK(ecode2)) {
7056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7057 }
7058 arg2 = static_cast< int >(val2);
7059 {
8c9c423b
RD
7060 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7061 arg4 = (int)temp3;
fc46b7f3
RD
7062 }
7063 {
7064 if (obj3 != Py_None) {
8c9c423b
RD
7065 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7066 arg6 = (int)temp5;
fc46b7f3
RD
7067 }
7068 }
7069 {
7070 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7071 if (PyErr_Occurred()) SWIG_fail;
7072 }
7073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7074 return resultobj;
7075fail:
7076 return NULL;
7077}
7078
7079
7080SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7081 PyObject *resultobj = 0;
7082 int arg1 ;
7083 int arg2 ;
7084 buffer arg3 ;
7085 int arg4 ;
7086 wxBitmap *result = 0 ;
7087 int val1 ;
7088 int ecode1 = 0 ;
7089 int val2 ;
7090 int ecode2 = 0 ;
8c9c423b 7091 Py_ssize_t temp3 ;
fc46b7f3
RD
7092 PyObject * obj0 = 0 ;
7093 PyObject * obj1 = 0 ;
7094 PyObject * obj2 = 0 ;
7095 char * kwnames[] = {
7096 (char *) "width",(char *) "height",(char *) "data", NULL
7097 };
7098
7099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7100 ecode1 = SWIG_AsVal_int(obj0, &val1);
7101 if (!SWIG_IsOK(ecode1)) {
7102 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7103 }
7104 arg1 = static_cast< int >(val1);
7105 ecode2 = SWIG_AsVal_int(obj1, &val2);
7106 if (!SWIG_IsOK(ecode2)) {
7107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7108 }
7109 arg2 = static_cast< int >(val2);
7110 {
8c9c423b
RD
7111 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7112 arg4 = (int)temp3;
fc46b7f3
RD
7113 }
7114 {
7115 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7116 if (PyErr_Occurred()) SWIG_fail;
7117 }
7118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7119 return resultobj;
7120fail:
7121 return NULL;
7122}
7123
7124
7125SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7126 PyObject *resultobj = 0;
7127 int arg1 ;
7128 int arg2 ;
7129 buffer arg3 ;
7130 int arg4 ;
7131 wxBitmap *result = 0 ;
7132 int val1 ;
7133 int ecode1 = 0 ;
7134 int val2 ;
7135 int ecode2 = 0 ;
8c9c423b 7136 Py_ssize_t temp3 ;
fc46b7f3
RD
7137 PyObject * obj0 = 0 ;
7138 PyObject * obj1 = 0 ;
7139 PyObject * obj2 = 0 ;
7140 char * kwnames[] = {
7141 (char *) "width",(char *) "height",(char *) "data", NULL
7142 };
7143
7144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7145 ecode1 = SWIG_AsVal_int(obj0, &val1);
7146 if (!SWIG_IsOK(ecode1)) {
7147 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7148 }
7149 arg1 = static_cast< int >(val1);
7150 ecode2 = SWIG_AsVal_int(obj1, &val2);
7151 if (!SWIG_IsOK(ecode2)) {
7152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7153 }
7154 arg2 = static_cast< int >(val2);
7155 {
8c9c423b
RD
7156 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7157 arg4 = (int)temp3;
fc46b7f3
RD
7158 }
7159 {
7160 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7161 if (PyErr_Occurred()) SWIG_fail;
7162 }
7163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7164 return resultobj;
7165fail:
7166 return NULL;
7167}
7168
7169
7170SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7171 PyObject *resultobj = 0;
7172 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7173 wxPoint result;
7174 void *argp1 = 0 ;
7175 int res1 = 0 ;
7176 PyObject *swig_obj[1] ;
7177
7178 if (!args) SWIG_fail;
7179 swig_obj[0] = args;
7180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7181 if (!SWIG_IsOK(res1)) {
7182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7183 }
7184 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7185 {
7186 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7190 return resultobj;
7191fail:
7192 return NULL;
7193}
7194
7195
7196SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7197 PyObject *resultobj = 0;
7198 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7199 int result;
7200 void *argp1 = 0 ;
7201 int res1 = 0 ;
7202 PyObject *swig_obj[1] ;
7203
7204 if (!args) SWIG_fail;
7205 swig_obj[0] = args;
7206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7207 if (!SWIG_IsOK(res1)) {
7208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7209 }
7210 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7211 {
7212 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7213 if (PyErr_Occurred()) SWIG_fail;
7214 }
7215 resultobj = SWIG_From_int(static_cast< int >(result));
7216 return resultobj;
7217fail:
7218 return NULL;
7219}
7220
7221
7222SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7223 PyObject *resultobj = 0;
7224 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7225 int result;
7226 void *argp1 = 0 ;
7227 int res1 = 0 ;
7228 PyObject *swig_obj[1] ;
7229
7230 if (!args) SWIG_fail;
7231 swig_obj[0] = args;
7232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7233 if (!SWIG_IsOK(res1)) {
7234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7235 }
7236 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7237 {
7238 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 resultobj = SWIG_From_int(static_cast< int >(result));
7242 return resultobj;
7243fail:
7244 return NULL;
7245}
7246
7247
7248SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7249 PyObject *resultobj = 0;
7250 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7251 wxSize result;
7252 void *argp1 = 0 ;
7253 int res1 = 0 ;
7254 PyObject *swig_obj[1] ;
7255
7256 if (!args) SWIG_fail;
7257 swig_obj[0] = args;
7258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7259 if (!SWIG_IsOK(res1)) {
7260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7261 }
7262 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7263 {
7264 result = ((wxPixelDataBase const *)arg1)->GetSize();
7265 if (PyErr_Occurred()) SWIG_fail;
7266 }
7267 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7268 return resultobj;
7269fail:
7270 return NULL;
7271}
7272
7273
7274SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7275 PyObject *resultobj = 0;
7276 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7277 int result;
7278 void *argp1 = 0 ;
7279 int res1 = 0 ;
7280 PyObject *swig_obj[1] ;
7281
7282 if (!args) SWIG_fail;
7283 swig_obj[0] = args;
7284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7285 if (!SWIG_IsOK(res1)) {
7286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7287 }
7288 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7289 {
7290 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 resultobj = SWIG_From_int(static_cast< int >(result));
7294 return resultobj;
7295fail:
7296 return NULL;
7297}
7298
7299
7300SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7301 PyObject *obj;
7302 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7303 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7304 return SWIG_Py_Void();
7305}
7306
7307SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7308 PyObject *resultobj = 0;
7309 wxBitmap *arg1 = 0 ;
7310 wxNativePixelData *result = 0 ;
7311 void *argp1 = 0 ;
7312 int res1 = 0 ;
7313
7314 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7316 if (!SWIG_IsOK(res1)) {
7317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7318 }
7319 if (!argp1) {
7320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7321 }
7322 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7323 {
7324 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7325 if (PyErr_Occurred()) SWIG_fail;
7326 }
7327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7328 return resultobj;
7329fail:
7330 return NULL;
7331}
7332
7333
7334SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7335 PyObject *resultobj = 0;
7336 wxBitmap *arg1 = 0 ;
7337 wxRect *arg2 = 0 ;
7338 wxNativePixelData *result = 0 ;
7339 void *argp1 = 0 ;
7340 int res1 = 0 ;
7341 wxRect temp2 ;
7342
7343 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7345 if (!SWIG_IsOK(res1)) {
7346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7347 }
7348 if (!argp1) {
7349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7350 }
7351 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7352 {
7353 arg2 = &temp2;
7354 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7355 }
7356 {
7357 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7358 if (PyErr_Occurred()) SWIG_fail;
7359 }
7360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7361 return resultobj;
7362fail:
7363 return NULL;
7364}
7365
7366
7367SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7368 PyObject *resultobj = 0;
7369 wxBitmap *arg1 = 0 ;
7370 wxPoint *arg2 = 0 ;
7371 wxSize *arg3 = 0 ;
7372 wxNativePixelData *result = 0 ;
7373 void *argp1 = 0 ;
7374 int res1 = 0 ;
7375 wxPoint temp2 ;
7376 wxSize temp3 ;
7377
7378 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7380 if (!SWIG_IsOK(res1)) {
7381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7382 }
7383 if (!argp1) {
7384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7385 }
7386 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7387 {
7388 arg2 = &temp2;
7389 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7390 }
7391 {
7392 arg3 = &temp3;
7393 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7394 }
7395 {
7396 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7397 if (PyErr_Occurred()) SWIG_fail;
7398 }
7399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7400 return resultobj;
7401fail:
7402 return NULL;
7403}
7404
7405
7406SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7407 int argc;
7408 PyObject *argv[4];
7409
7410 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7411 --argc;
7412 if (argc == 1) {
7413 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7414 }
7415 if (argc == 2) {
7416 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7417 }
7418 if (argc == 3) {
7419 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7420 }
7421
7422fail:
7423 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7424 return NULL;
7425}
7426
7427
7428SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7429 PyObject *resultobj = 0;
7430 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7431 void *argp1 = 0 ;
7432 int res1 = 0 ;
7433 PyObject *swig_obj[1] ;
7434
7435 if (!args) SWIG_fail;
7436 swig_obj[0] = args;
7437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7438 if (!SWIG_IsOK(res1)) {
7439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7440 }
7441 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7442 {
7443 delete arg1;
7444
7445 if (PyErr_Occurred()) SWIG_fail;
7446 }
7447 resultobj = SWIG_Py_Void();
7448 return resultobj;
7449fail:
7450 return NULL;
7451}
7452
7453
7454SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7455 PyObject *resultobj = 0;
7456 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7457 wxNativePixelData_Accessor result;
7458 void *argp1 = 0 ;
7459 int res1 = 0 ;
7460 PyObject *swig_obj[1] ;
7461
7462 if (!args) SWIG_fail;
7463 swig_obj[0] = args;
7464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7465 if (!SWIG_IsOK(res1)) {
7466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7467 }
7468 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7469 {
7470 result = ((wxNativePixelData const *)arg1)->GetPixels();
7471 if (PyErr_Occurred()) SWIG_fail;
7472 }
7473 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7474 return resultobj;
7475fail:
7476 return NULL;
7477}
7478
7479
7480SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7481 PyObject *resultobj = 0;
7482 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7483 void *argp1 = 0 ;
7484 int res1 = 0 ;
7485 PyObject *swig_obj[1] ;
7486
7487 if (!args) SWIG_fail;
7488 swig_obj[0] = args;
7489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7490 if (!SWIG_IsOK(res1)) {
7491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7492 }
7493 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7494 {
7495 (arg1)->UseAlpha();
7496 if (PyErr_Occurred()) SWIG_fail;
7497 }
7498 resultobj = SWIG_Py_Void();
7499 return resultobj;
7500fail:
7501 return NULL;
7502}
7503
7504
7505SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7506 PyObject *resultobj = 0;
7507 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7508 bool result;
7509 void *argp1 = 0 ;
7510 int res1 = 0 ;
7511 PyObject *swig_obj[1] ;
7512
7513 if (!args) SWIG_fail;
7514 swig_obj[0] = args;
7515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7516 if (!SWIG_IsOK(res1)) {
7517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7518 }
7519 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7520 {
7521 result = (bool)wxNativePixelData___nonzero__(arg1);
7522 if (PyErr_Occurred()) SWIG_fail;
7523 }
7524 {
7525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7526 }
7527 return resultobj;
7528fail:
7529 return NULL;
7530}
7531
7532
7533SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7534 PyObject *obj;
7535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7536 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7537 return SWIG_Py_Void();
7538}
7539
7540SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7541 return SWIG_Python_InitShadowInstance(args);
7542}
7543
7544SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7545 PyObject *resultobj = 0;
7546 wxNativePixelData *arg1 = 0 ;
7547 wxNativePixelData_Accessor *result = 0 ;
7548 void *argp1 = 0 ;
7549 int res1 = 0 ;
7550
7551 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7553 if (!SWIG_IsOK(res1)) {
7554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7555 }
7556 if (!argp1) {
7557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7558 }
7559 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7560 {
7561 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7562 if (PyErr_Occurred()) SWIG_fail;
7563 }
7564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7565 return resultobj;
7566fail:
7567 return NULL;
7568}
7569
7570
7571SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7572 PyObject *resultobj = 0;
7573 wxBitmap *arg1 = 0 ;
7574 wxNativePixelData *arg2 = 0 ;
7575 wxNativePixelData_Accessor *result = 0 ;
7576 void *argp1 = 0 ;
7577 int res1 = 0 ;
7578 void *argp2 = 0 ;
7579 int res2 = 0 ;
7580
7581 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7583 if (!SWIG_IsOK(res1)) {
7584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7585 }
7586 if (!argp1) {
7587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7588 }
7589 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7590 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7591 if (!SWIG_IsOK(res2)) {
7592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7593 }
7594 if (!argp2) {
7595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7596 }
7597 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7598 {
7599 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7600 if (PyErr_Occurred()) SWIG_fail;
7601 }
7602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7603 return resultobj;
7604fail:
7605 return NULL;
7606}
7607
7608
7609SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7610 PyObject *resultobj = 0;
7611 wxNativePixelData_Accessor *result = 0 ;
7612
7613 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7614 {
7615 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7616 if (PyErr_Occurred()) SWIG_fail;
7617 }
7618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7619 return resultobj;
7620fail:
7621 return NULL;
7622}
7623
7624
7625SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7626 int argc;
7627 PyObject *argv[3];
7628
7629 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7630 --argc;
7631 if (argc == 0) {
7632 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7633 }
7634 if (argc == 1) {
7635 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7636 }
7637 if (argc == 2) {
7638 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7639 }
7640
7641fail:
7642 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7643 return NULL;
7644}
7645
7646
7647SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7648 PyObject *resultobj = 0;
7649 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7650 void *argp1 = 0 ;
7651 int res1 = 0 ;
7652 PyObject *swig_obj[1] ;
7653
7654 if (!args) SWIG_fail;
7655 swig_obj[0] = args;
7656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7657 if (!SWIG_IsOK(res1)) {
7658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7659 }
7660 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7661 {
7662 delete arg1;
7663
7664 if (PyErr_Occurred()) SWIG_fail;
7665 }
7666 resultobj = SWIG_Py_Void();
7667 return resultobj;
7668fail:
7669 return NULL;
7670}
7671
7672
7673SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7674 PyObject *resultobj = 0;
7675 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7676 wxNativePixelData *arg2 = 0 ;
7677 void *argp1 = 0 ;
7678 int res1 = 0 ;
7679 void *argp2 = 0 ;
7680 int res2 = 0 ;
7681 PyObject * obj0 = 0 ;
7682 PyObject * obj1 = 0 ;
7683 char * kwnames[] = {
7684 (char *) "self",(char *) "data", NULL
7685 };
7686
7687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7689 if (!SWIG_IsOK(res1)) {
7690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7691 }
7692 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7694 if (!SWIG_IsOK(res2)) {
7695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7696 }
7697 if (!argp2) {
7698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7699 }
7700 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7701 {
7702 (arg1)->Reset((wxNativePixelData const &)*arg2);
7703 if (PyErr_Occurred()) SWIG_fail;
7704 }
7705 resultobj = SWIG_Py_Void();
7706 return resultobj;
7707fail:
7708 return NULL;
7709}
7710
7711
7712SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7713 PyObject *resultobj = 0;
7714 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7715 bool result;
7716 void *argp1 = 0 ;
7717 int res1 = 0 ;
7718 PyObject *swig_obj[1] ;
7719
7720 if (!args) SWIG_fail;
7721 swig_obj[0] = args;
7722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7723 if (!SWIG_IsOK(res1)) {
7724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7725 }
7726 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7727 {
7728 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 {
7732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7733 }
7734 return resultobj;
7735fail:
7736 return NULL;
7737}
7738
7739
7740SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7741 PyObject *resultobj = 0;
7742 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7743 void *argp1 = 0 ;
7744 int res1 = 0 ;
7745 PyObject *swig_obj[1] ;
7746
7747 if (!args) SWIG_fail;
7748 swig_obj[0] = args;
7749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7750 if (!SWIG_IsOK(res1)) {
7751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7752 }
7753 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7754 {
7755 wxNativePixelData_Accessor_nextPixel(arg1);
7756 if (PyErr_Occurred()) SWIG_fail;
7757 }
7758 resultobj = SWIG_Py_Void();
7759 return resultobj;
7760fail:
7761 return NULL;
7762}
7763
7764
7765SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7766 PyObject *resultobj = 0;
7767 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7768 wxNativePixelData *arg2 = 0 ;
7769 int arg3 ;
7770 int arg4 ;
7771 void *argp1 = 0 ;
7772 int res1 = 0 ;
7773 void *argp2 = 0 ;
7774 int res2 = 0 ;
7775 int val3 ;
7776 int ecode3 = 0 ;
7777 int val4 ;
7778 int ecode4 = 0 ;
7779 PyObject * obj0 = 0 ;
7780 PyObject * obj1 = 0 ;
7781 PyObject * obj2 = 0 ;
7782 PyObject * obj3 = 0 ;
7783 char * kwnames[] = {
7784 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7785 };
7786
7787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7789 if (!SWIG_IsOK(res1)) {
7790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7791 }
7792 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7794 if (!SWIG_IsOK(res2)) {
7795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7796 }
7797 if (!argp2) {
7798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7799 }
7800 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7801 ecode3 = SWIG_AsVal_int(obj2, &val3);
7802 if (!SWIG_IsOK(ecode3)) {
7803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7804 }
7805 arg3 = static_cast< int >(val3);
7806 ecode4 = SWIG_AsVal_int(obj3, &val4);
7807 if (!SWIG_IsOK(ecode4)) {
7808 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7809 }
7810 arg4 = static_cast< int >(val4);
7811 {
7812 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7813 if (PyErr_Occurred()) SWIG_fail;
7814 }
7815 resultobj = SWIG_Py_Void();
7816 return resultobj;
7817fail:
7818 return NULL;
7819}
7820
7821
7822SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7823 PyObject *resultobj = 0;
7824 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7825 wxNativePixelData *arg2 = 0 ;
7826 int arg3 ;
7827 void *argp1 = 0 ;
7828 int res1 = 0 ;
7829 void *argp2 = 0 ;
7830 int res2 = 0 ;
7831 int val3 ;
7832 int ecode3 = 0 ;
7833 PyObject * obj0 = 0 ;
7834 PyObject * obj1 = 0 ;
7835 PyObject * obj2 = 0 ;
7836 char * kwnames[] = {
7837 (char *) "self",(char *) "data",(char *) "x", NULL
7838 };
7839
7840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7842 if (!SWIG_IsOK(res1)) {
7843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7844 }
7845 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7846 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7847 if (!SWIG_IsOK(res2)) {
7848 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7849 }
7850 if (!argp2) {
7851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7852 }
7853 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7854 ecode3 = SWIG_AsVal_int(obj2, &val3);
7855 if (!SWIG_IsOK(ecode3)) {
7856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7857 }
7858 arg3 = static_cast< int >(val3);
7859 {
7860 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7861 if (PyErr_Occurred()) SWIG_fail;
7862 }
7863 resultobj = SWIG_Py_Void();
7864 return resultobj;
7865fail:
7866 return NULL;
7867}
7868
7869
7870SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7871 PyObject *resultobj = 0;
7872 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7873 wxNativePixelData *arg2 = 0 ;
7874 int arg3 ;
7875 void *argp1 = 0 ;
7876 int res1 = 0 ;
7877 void *argp2 = 0 ;
7878 int res2 = 0 ;
7879 int val3 ;
7880 int ecode3 = 0 ;
7881 PyObject * obj0 = 0 ;
7882 PyObject * obj1 = 0 ;
7883 PyObject * obj2 = 0 ;
7884 char * kwnames[] = {
7885 (char *) "self",(char *) "data",(char *) "y", NULL
7886 };
7887
7888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7890 if (!SWIG_IsOK(res1)) {
7891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7892 }
7893 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7895 if (!SWIG_IsOK(res2)) {
7896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7897 }
7898 if (!argp2) {
7899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7900 }
7901 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7902 ecode3 = SWIG_AsVal_int(obj2, &val3);
7903 if (!SWIG_IsOK(ecode3)) {
7904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7905 }
7906 arg3 = static_cast< int >(val3);
7907 {
7908 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 resultobj = SWIG_Py_Void();
7912 return resultobj;
7913fail:
7914 return NULL;
7915}
7916
7917
7918SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7919 PyObject *resultobj = 0;
7920 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7921 wxNativePixelData *arg2 = 0 ;
7922 int arg3 ;
7923 int arg4 ;
7924 void *argp1 = 0 ;
7925 int res1 = 0 ;
7926 void *argp2 = 0 ;
7927 int res2 = 0 ;
7928 int val3 ;
7929 int ecode3 = 0 ;
7930 int val4 ;
7931 int ecode4 = 0 ;
7932 PyObject * obj0 = 0 ;
7933 PyObject * obj1 = 0 ;
7934 PyObject * obj2 = 0 ;
7935 PyObject * obj3 = 0 ;
7936 char * kwnames[] = {
7937 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7938 };
7939
7940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7942 if (!SWIG_IsOK(res1)) {
7943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7944 }
7945 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7946 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7947 if (!SWIG_IsOK(res2)) {
7948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7949 }
7950 if (!argp2) {
7951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7952 }
7953 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7954 ecode3 = SWIG_AsVal_int(obj2, &val3);
7955 if (!SWIG_IsOK(ecode3)) {
7956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7957 }
7958 arg3 = static_cast< int >(val3);
7959 ecode4 = SWIG_AsVal_int(obj3, &val4);
7960 if (!SWIG_IsOK(ecode4)) {
7961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7962 }
7963 arg4 = static_cast< int >(val4);
7964 {
7965 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 resultobj = SWIG_Py_Void();
7969 return resultobj;
7970fail:
7971 return NULL;
7972}
7973
7974
7975SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7976 PyObject *resultobj = 0;
7977 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7978 byte arg2 ;
7979 byte arg3 ;
7980 byte arg4 ;
7981 void *argp1 = 0 ;
7982 int res1 = 0 ;
7983 unsigned char val2 ;
7984 int ecode2 = 0 ;
7985 unsigned char val3 ;
7986 int ecode3 = 0 ;
7987 unsigned char val4 ;
7988 int ecode4 = 0 ;
7989 PyObject * obj0 = 0 ;
7990 PyObject * obj1 = 0 ;
7991 PyObject * obj2 = 0 ;
7992 PyObject * obj3 = 0 ;
7993 char * kwnames[] = {
7994 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7995 };
7996
7997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7999 if (!SWIG_IsOK(res1)) {
8000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8001 }
8002 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8003 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8004 if (!SWIG_IsOK(ecode2)) {
8005 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8006 }
8007 arg2 = static_cast< byte >(val2);
8008 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8009 if (!SWIG_IsOK(ecode3)) {
8010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8011 }
8012 arg3 = static_cast< byte >(val3);
8013 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8014 if (!SWIG_IsOK(ecode4)) {
8015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8016 }
8017 arg4 = static_cast< byte >(val4);
8018 {
8019 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8020 if (PyErr_Occurred()) SWIG_fail;
8021 }
8022 resultobj = SWIG_Py_Void();
8023 return resultobj;
8024fail:
8025 return NULL;
8026}
8027
8028
8029SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8030 PyObject *resultobj = 0;
8031 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8032 PyObject *result = 0 ;
8033 void *argp1 = 0 ;
8034 int res1 = 0 ;
8035 PyObject *swig_obj[1] ;
8036
8037 if (!args) SWIG_fail;
8038 swig_obj[0] = args;
8039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8040 if (!SWIG_IsOK(res1)) {
8041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8042 }
8043 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8044 {
8045 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8046 if (PyErr_Occurred()) SWIG_fail;
8047 }
8048 resultobj = result;
8049 return resultobj;
8050fail:
8051 return NULL;
8052}
8053
8054
8055SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8056 PyObject *obj;
8057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8058 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8059 return SWIG_Py_Void();
8060}
8061
8062SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8063 return SWIG_Python_InitShadowInstance(args);
8064}
8065
8066SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8067 PyObject *resultobj = 0;
8068 wxBitmap *arg1 = 0 ;
8069 wxAlphaPixelData *result = 0 ;
8070 void *argp1 = 0 ;
8071 int res1 = 0 ;
8072
8073 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8075 if (!SWIG_IsOK(res1)) {
8076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8077 }
8078 if (!argp1) {
8079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8080 }
8081 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8082 {
8083 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8084 if (PyErr_Occurred()) SWIG_fail;
8085 }
8086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8087 return resultobj;
8088fail:
8089 return NULL;
8090}
8091
8092
8093SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8094 PyObject *resultobj = 0;
8095 wxBitmap *arg1 = 0 ;
8096 wxRect *arg2 = 0 ;
8097 wxAlphaPixelData *result = 0 ;
8098 void *argp1 = 0 ;
8099 int res1 = 0 ;
8100 wxRect temp2 ;
8101
8102 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8104 if (!SWIG_IsOK(res1)) {
8105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8106 }
8107 if (!argp1) {
8108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8109 }
8110 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8111 {
8112 arg2 = &temp2;
8113 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8114 }
8115 {
8116 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8120 return resultobj;
8121fail:
8122 return NULL;
8123}
8124
8125
8126SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8127 PyObject *resultobj = 0;
8128 wxBitmap *arg1 = 0 ;
8129 wxPoint *arg2 = 0 ;
8130 wxSize *arg3 = 0 ;
8131 wxAlphaPixelData *result = 0 ;
8132 void *argp1 = 0 ;
8133 int res1 = 0 ;
8134 wxPoint temp2 ;
8135 wxSize temp3 ;
8136
8137 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8139 if (!SWIG_IsOK(res1)) {
8140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8141 }
8142 if (!argp1) {
8143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8144 }
8145 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8146 {
8147 arg2 = &temp2;
8148 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8149 }
8150 {
8151 arg3 = &temp3;
8152 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8153 }
8154 {
8155 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8156 if (PyErr_Occurred()) SWIG_fail;
8157 }
8158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8159 return resultobj;
8160fail:
8161 return NULL;
8162}
8163
8164
8165SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8166 int argc;
8167 PyObject *argv[4];
8168
8169 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8170 --argc;
8171 if (argc == 1) {
8172 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8173 }
8174 if (argc == 2) {
8175 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8176 }
8177 if (argc == 3) {
8178 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8179 }
8180
8181fail:
8182 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8183 return NULL;
8184}
8185
8186
8187SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8188 PyObject *resultobj = 0;
8189 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8190 void *argp1 = 0 ;
8191 int res1 = 0 ;
8192 PyObject *swig_obj[1] ;
8193
8194 if (!args) SWIG_fail;
8195 swig_obj[0] = args;
8196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8197 if (!SWIG_IsOK(res1)) {
8198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8199 }
8200 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8201 {
8202 delete arg1;
8203
8204 if (PyErr_Occurred()) SWIG_fail;
8205 }
8206 resultobj = SWIG_Py_Void();
8207 return resultobj;
8208fail:
8209 return NULL;
8210}
8211
8212
8213SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8214 PyObject *resultobj = 0;
8215 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8216 wxAlphaPixelData_Accessor result;
8217 void *argp1 = 0 ;
8218 int res1 = 0 ;
8219 PyObject *swig_obj[1] ;
8220
8221 if (!args) SWIG_fail;
8222 swig_obj[0] = args;
8223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8224 if (!SWIG_IsOK(res1)) {
8225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8226 }
8227 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8228 {
8229 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8233 return resultobj;
8234fail:
8235 return NULL;
8236}
8237
8238
8239SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8240 PyObject *resultobj = 0;
8241 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8242 void *argp1 = 0 ;
8243 int res1 = 0 ;
8244 PyObject *swig_obj[1] ;
8245
8246 if (!args) SWIG_fail;
8247 swig_obj[0] = args;
8248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8249 if (!SWIG_IsOK(res1)) {
8250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8251 }
8252 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8253 {
8254 (arg1)->UseAlpha();
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 resultobj = SWIG_Py_Void();
8258 return resultobj;
8259fail:
8260 return NULL;
8261}
8262
8263
8264SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8265 PyObject *resultobj = 0;
8266 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8267 bool result;
8268 void *argp1 = 0 ;
8269 int res1 = 0 ;
8270 PyObject *swig_obj[1] ;
8271
8272 if (!args) SWIG_fail;
8273 swig_obj[0] = args;
8274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8275 if (!SWIG_IsOK(res1)) {
8276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8277 }
8278 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8279 {
8280 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8281 if (PyErr_Occurred()) SWIG_fail;
8282 }
8283 {
8284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8285 }
8286 return resultobj;
8287fail:
8288 return NULL;
8289}
8290
8291
8292SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8293 PyObject *obj;
8294 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8295 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8296 return SWIG_Py_Void();
8297}
8298
8299SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8300 return SWIG_Python_InitShadowInstance(args);
8301}
8302
8303SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8304 PyObject *resultobj = 0;
8305 wxAlphaPixelData *arg1 = 0 ;
8306 wxAlphaPixelData_Accessor *result = 0 ;
8307 void *argp1 = 0 ;
8308 int res1 = 0 ;
8309
8310 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8312 if (!SWIG_IsOK(res1)) {
8313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8314 }
8315 if (!argp1) {
8316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8317 }
8318 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8319 {
8320 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8321 if (PyErr_Occurred()) SWIG_fail;
8322 }
8323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8324 return resultobj;
8325fail:
8326 return NULL;
8327}
8328
8329
8330SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8331 PyObject *resultobj = 0;
8332 wxBitmap *arg1 = 0 ;
8333 wxAlphaPixelData *arg2 = 0 ;
8334 wxAlphaPixelData_Accessor *result = 0 ;
8335 void *argp1 = 0 ;
8336 int res1 = 0 ;
8337 void *argp2 = 0 ;
8338 int res2 = 0 ;
8339
8340 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8342 if (!SWIG_IsOK(res1)) {
8343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8344 }
8345 if (!argp1) {
8346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8347 }
8348 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8349 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8350 if (!SWIG_IsOK(res2)) {
8351 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8352 }
8353 if (!argp2) {
8354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8355 }
8356 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8357 {
8358 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8359 if (PyErr_Occurred()) SWIG_fail;
8360 }
8361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8362 return resultobj;
8363fail:
8364 return NULL;
8365}
8366
8367
8368SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8369 PyObject *resultobj = 0;
8370 wxAlphaPixelData_Accessor *result = 0 ;
8371
8372 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8373 {
8374 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8375 if (PyErr_Occurred()) SWIG_fail;
8376 }
8377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8378 return resultobj;
8379fail:
8380 return NULL;
8381}
8382
8383
8384SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8385 int argc;
8386 PyObject *argv[3];
8387
8388 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8389 --argc;
8390 if (argc == 0) {
8391 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8392 }
8393 if (argc == 1) {
8394 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8395 }
8396 if (argc == 2) {
8397 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8398 }
8399
8400fail:
8401 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8402 return NULL;
8403}
8404
8405
8406SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8407 PyObject *resultobj = 0;
8408 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8409 void *argp1 = 0 ;
8410 int res1 = 0 ;
8411 PyObject *swig_obj[1] ;
8412
8413 if (!args) SWIG_fail;
8414 swig_obj[0] = args;
8415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8416 if (!SWIG_IsOK(res1)) {
8417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8418 }
8419 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8420 {
8421 delete arg1;
8422
8423 if (PyErr_Occurred()) SWIG_fail;
8424 }
8425 resultobj = SWIG_Py_Void();
8426 return resultobj;
8427fail:
8428 return NULL;
8429}
8430
8431
8432SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8433 PyObject *resultobj = 0;
8434 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8435 wxAlphaPixelData *arg2 = 0 ;
8436 void *argp1 = 0 ;
8437 int res1 = 0 ;
8438 void *argp2 = 0 ;
8439 int res2 = 0 ;
8440 PyObject * obj0 = 0 ;
8441 PyObject * obj1 = 0 ;
8442 char * kwnames[] = {
8443 (char *) "self",(char *) "data", NULL
8444 };
8445
8446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8448 if (!SWIG_IsOK(res1)) {
8449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8450 }
8451 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8452 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8453 if (!SWIG_IsOK(res2)) {
8454 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8455 }
8456 if (!argp2) {
8457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8458 }
8459 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8460 {
8461 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8462 if (PyErr_Occurred()) SWIG_fail;
8463 }
8464 resultobj = SWIG_Py_Void();
8465 return resultobj;
8466fail:
8467 return NULL;
8468}
8469
8470
8471SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8472 PyObject *resultobj = 0;
8473 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8474 bool result;
8475 void *argp1 = 0 ;
8476 int res1 = 0 ;
8477 PyObject *swig_obj[1] ;
8478
8479 if (!args) SWIG_fail;
8480 swig_obj[0] = args;
8481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8482 if (!SWIG_IsOK(res1)) {
8483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8484 }
8485 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8486 {
8487 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8488 if (PyErr_Occurred()) SWIG_fail;
8489 }
8490 {
8491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8492 }
8493 return resultobj;
8494fail:
8495 return NULL;
8496}
8497
8498
8499SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8500 PyObject *resultobj = 0;
8501 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8502 void *argp1 = 0 ;
8503 int res1 = 0 ;
8504 PyObject *swig_obj[1] ;
8505
8506 if (!args) SWIG_fail;
8507 swig_obj[0] = args;
8508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8509 if (!SWIG_IsOK(res1)) {
8510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8511 }
8512 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8513 {
8514 wxAlphaPixelData_Accessor_nextPixel(arg1);
8515 if (PyErr_Occurred()) SWIG_fail;
8516 }
8517 resultobj = SWIG_Py_Void();
8518 return resultobj;
8519fail:
8520 return NULL;
8521}
8522
8523
8524SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8525 PyObject *resultobj = 0;
8526 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8527 wxAlphaPixelData *arg2 = 0 ;
8528 int arg3 ;
8529 int arg4 ;
8530 void *argp1 = 0 ;
8531 int res1 = 0 ;
8532 void *argp2 = 0 ;
8533 int res2 = 0 ;
8534 int val3 ;
8535 int ecode3 = 0 ;
8536 int val4 ;
8537 int ecode4 = 0 ;
8538 PyObject * obj0 = 0 ;
8539 PyObject * obj1 = 0 ;
8540 PyObject * obj2 = 0 ;
8541 PyObject * obj3 = 0 ;
8542 char * kwnames[] = {
8543 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8544 };
8545
8546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8548 if (!SWIG_IsOK(res1)) {
8549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8550 }
8551 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8553 if (!SWIG_IsOK(res2)) {
8554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8555 }
8556 if (!argp2) {
8557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8558 }
8559 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8560 ecode3 = SWIG_AsVal_int(obj2, &val3);
8561 if (!SWIG_IsOK(ecode3)) {
8562 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8563 }
8564 arg3 = static_cast< int >(val3);
8565 ecode4 = SWIG_AsVal_int(obj3, &val4);
8566 if (!SWIG_IsOK(ecode4)) {
8567 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8568 }
8569 arg4 = static_cast< int >(val4);
8570 {
8571 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8572 if (PyErr_Occurred()) SWIG_fail;
8573 }
8574 resultobj = SWIG_Py_Void();
8575 return resultobj;
8576fail:
8577 return NULL;
8578}
8579
8580
8581SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8582 PyObject *resultobj = 0;
8583 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8584 wxAlphaPixelData *arg2 = 0 ;
8585 int arg3 ;
8586 void *argp1 = 0 ;
8587 int res1 = 0 ;
8588 void *argp2 = 0 ;
8589 int res2 = 0 ;
8590 int val3 ;
8591 int ecode3 = 0 ;
8592 PyObject * obj0 = 0 ;
8593 PyObject * obj1 = 0 ;
8594 PyObject * obj2 = 0 ;
8595 char * kwnames[] = {
8596 (char *) "self",(char *) "data",(char *) "x", NULL
8597 };
8598
8599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8601 if (!SWIG_IsOK(res1)) {
8602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8603 }
8604 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8606 if (!SWIG_IsOK(res2)) {
8607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8608 }
8609 if (!argp2) {
8610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8611 }
8612 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8613 ecode3 = SWIG_AsVal_int(obj2, &val3);
8614 if (!SWIG_IsOK(ecode3)) {
8615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8616 }
8617 arg3 = static_cast< int >(val3);
8618 {
8619 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8620 if (PyErr_Occurred()) SWIG_fail;
8621 }
8622 resultobj = SWIG_Py_Void();
8623 return resultobj;
8624fail:
8625 return NULL;
8626}
8627
8628
8629SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8630 PyObject *resultobj = 0;
8631 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8632 wxAlphaPixelData *arg2 = 0 ;
8633 int arg3 ;
8634 void *argp1 = 0 ;
8635 int res1 = 0 ;
8636 void *argp2 = 0 ;
8637 int res2 = 0 ;
8638 int val3 ;
8639 int ecode3 = 0 ;
8640 PyObject * obj0 = 0 ;
8641 PyObject * obj1 = 0 ;
8642 PyObject * obj2 = 0 ;
8643 char * kwnames[] = {
8644 (char *) "self",(char *) "data",(char *) "y", NULL
8645 };
8646
8647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8649 if (!SWIG_IsOK(res1)) {
8650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8651 }
8652 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8654 if (!SWIG_IsOK(res2)) {
8655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8656 }
8657 if (!argp2) {
8658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8659 }
8660 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8661 ecode3 = SWIG_AsVal_int(obj2, &val3);
8662 if (!SWIG_IsOK(ecode3)) {
8663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8664 }
8665 arg3 = static_cast< int >(val3);
8666 {
8667 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8668 if (PyErr_Occurred()) SWIG_fail;
8669 }
8670 resultobj = SWIG_Py_Void();
8671 return resultobj;
8672fail:
8673 return NULL;
8674}
8675
8676
8677SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8678 PyObject *resultobj = 0;
8679 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8680 wxAlphaPixelData *arg2 = 0 ;
8681 int arg3 ;
8682 int arg4 ;
8683 void *argp1 = 0 ;
8684 int res1 = 0 ;
8685 void *argp2 = 0 ;
8686 int res2 = 0 ;
8687 int val3 ;
8688 int ecode3 = 0 ;
8689 int val4 ;
8690 int ecode4 = 0 ;
8691 PyObject * obj0 = 0 ;
8692 PyObject * obj1 = 0 ;
8693 PyObject * obj2 = 0 ;
8694 PyObject * obj3 = 0 ;
8695 char * kwnames[] = {
8696 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8697 };
8698
8699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8701 if (!SWIG_IsOK(res1)) {
8702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8703 }
8704 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8705 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8706 if (!SWIG_IsOK(res2)) {
8707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8708 }
8709 if (!argp2) {
8710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8711 }
8712 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8713 ecode3 = SWIG_AsVal_int(obj2, &val3);
8714 if (!SWIG_IsOK(ecode3)) {
8715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8716 }
8717 arg3 = static_cast< int >(val3);
8718 ecode4 = SWIG_AsVal_int(obj3, &val4);
8719 if (!SWIG_IsOK(ecode4)) {
8720 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8721 }
8722 arg4 = static_cast< int >(val4);
8723 {
8724 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 resultobj = SWIG_Py_Void();
8728 return resultobj;
8729fail:
8730 return NULL;
8731}
8732
8733
8734SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8735 PyObject *resultobj = 0;
8736 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8737 byte arg2 ;
8738 byte arg3 ;
8739 byte arg4 ;
8740 byte arg5 ;
8741 void *argp1 = 0 ;
8742 int res1 = 0 ;
8743 unsigned char val2 ;
8744 int ecode2 = 0 ;
8745 unsigned char val3 ;
8746 int ecode3 = 0 ;
8747 unsigned char val4 ;
8748 int ecode4 = 0 ;
8749 unsigned char val5 ;
8750 int ecode5 = 0 ;
8751 PyObject * obj0 = 0 ;
8752 PyObject * obj1 = 0 ;
8753 PyObject * obj2 = 0 ;
8754 PyObject * obj3 = 0 ;
8755 PyObject * obj4 = 0 ;
8756 char * kwnames[] = {
8757 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8758 };
8759
8760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8762 if (!SWIG_IsOK(res1)) {
8763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8764 }
8765 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8766 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8767 if (!SWIG_IsOK(ecode2)) {
8768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8769 }
8770 arg2 = static_cast< byte >(val2);
8771 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8772 if (!SWIG_IsOK(ecode3)) {
8773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8774 }
8775 arg3 = static_cast< byte >(val3);
8776 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8777 if (!SWIG_IsOK(ecode4)) {
8778 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8779 }
8780 arg4 = static_cast< byte >(val4);
8781 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8782 if (!SWIG_IsOK(ecode5)) {
8783 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8784 }
8785 arg5 = static_cast< byte >(val5);
8786 {
8787 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8788 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8789 }
fc46b7f3 8790 resultobj = SWIG_Py_Void();
1bd55598
RD
8791 return resultobj;
8792fail:
8793 return NULL;
8794}
8795
8796
fc46b7f3 8797SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8798 PyObject *resultobj = 0;
fc46b7f3
RD
8799 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8800 PyObject *result = 0 ;
1bd55598
RD
8801 void *argp1 = 0 ;
8802 int res1 = 0 ;
fc46b7f3 8803 PyObject *swig_obj[1] ;
1bd55598 8804
fc46b7f3
RD
8805 if (!args) SWIG_fail;
8806 swig_obj[0] = args;
8807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8808 if (!SWIG_IsOK(res1)) {
fc46b7f3 8809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8810 }
fc46b7f3 8811 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8812 {
fc46b7f3 8813 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
fc46b7f3 8816 resultobj = result;
1bd55598
RD
8817 return resultobj;
8818fail:
8819 return NULL;
d55e5bfc
RD
8820}
8821
8822
fc46b7f3 8823SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8824 PyObject *obj;
8825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8826 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8827 return SWIG_Py_Void();
d55e5bfc
RD
8828}
8829
fc46b7f3 8830SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8831 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8832}
8833
1bd55598
RD
8834SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8835 PyObject *resultobj = 0;
8836 wxBitmap *arg1 = 0 ;
8837 wxColour const &arg2_defvalue = wxNullColour ;
8838 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8839 wxMask *result = 0 ;
8840 void *argp1 = 0 ;
8841 int res1 = 0 ;
8842 wxColour temp2 ;
8843 PyObject * obj0 = 0 ;
8844 PyObject * obj1 = 0 ;
8845 char * kwnames[] = {
8846 (char *) "bitmap",(char *) "colour", NULL
8847 };
8848
8849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8850 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8851 if (!SWIG_IsOK(res1)) {
8852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8853 }
8854 if (!argp1) {
8855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8856 }
8857 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8858 if (obj1) {
d55e5bfc 8859 {
1bd55598
RD
8860 arg2 = &temp2;
8861 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 8862 }
1bd55598
RD
8863 }
8864 {
8865 if (!wxPyCheckForApp()) SWIG_fail;
8866 PyThreadState* __tstate = wxPyBeginAllowThreads();
8867 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 }
8871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8872 return resultobj;
8873fail:
8874 return NULL;
d55e5bfc
RD
8875}
8876
8877
1bd55598
RD
8878SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8879 PyObject *resultobj = 0;
8880 wxMask *arg1 = (wxMask *) 0 ;
8881 void *argp1 = 0 ;
8882 int res1 = 0 ;
8883 PyObject *swig_obj[1] ;
8884
8885 if (!args) SWIG_fail;
8886 swig_obj[0] = args;
8887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8888 if (!SWIG_IsOK(res1)) {
8889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8890 }
8891 arg1 = reinterpret_cast< wxMask * >(argp1);
8892 {
1bd55598 8893 delete arg1;
d55e5bfc 8894
1bd55598
RD
8895 if (PyErr_Occurred()) SWIG_fail;
8896 }
8897 resultobj = SWIG_Py_Void();
8898 return resultobj;
8899fail:
8900 return NULL;
8901}
8902
8903
8904SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8905 PyObject *obj;
8906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8907 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8908 return SWIG_Py_Void();
8909}
8910
8911SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8912 return SWIG_Python_InitShadowInstance(args);
8913}
8914
8915SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8916 PyObject *resultobj = 0;
8917 wxString *arg1 = 0 ;
8918 wxBitmapType arg2 ;
8919 int arg3 = (int) -1 ;
8920 int arg4 = (int) -1 ;
8921 wxIcon *result = 0 ;
8922 bool temp1 = false ;
8923 int val2 ;
8924 int ecode2 = 0 ;
8925 int val3 ;
8926 int ecode3 = 0 ;
8927 int val4 ;
8928 int ecode4 = 0 ;
8929 PyObject * obj0 = 0 ;
8930 PyObject * obj1 = 0 ;
8931 PyObject * obj2 = 0 ;
8932 PyObject * obj3 = 0 ;
8933 char * kwnames[] = {
8934 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8935 };
8936
8937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8938 {
8939 arg1 = wxString_in_helper(obj0);
8940 if (arg1 == NULL) SWIG_fail;
8941 temp1 = true;
8942 }
8943 ecode2 = SWIG_AsVal_int(obj1, &val2);
8944 if (!SWIG_IsOK(ecode2)) {
8945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8946 }
8947 arg2 = static_cast< wxBitmapType >(val2);
8948 if (obj2) {
8949 ecode3 = SWIG_AsVal_int(obj2, &val3);
8950 if (!SWIG_IsOK(ecode3)) {
8951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8952 }
8953 arg3 = static_cast< int >(val3);
8954 }
8955 if (obj3) {
8956 ecode4 = SWIG_AsVal_int(obj3, &val4);
8957 if (!SWIG_IsOK(ecode4)) {
8958 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8959 }
8960 arg4 = static_cast< int >(val4);
8961 }
8962 {
8963 if (!wxPyCheckForApp()) SWIG_fail;
8964 PyThreadState* __tstate = wxPyBeginAllowThreads();
8965 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8966 wxPyEndAllowThreads(__tstate);
8967 if (PyErr_Occurred()) SWIG_fail;
8968 }
8969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8970 {
8971 if (temp1)
8972 delete arg1;
8973 }
8974 return resultobj;
8975fail:
8976 {
8977 if (temp1)
8978 delete arg1;
8979 }
8980 return NULL;
d55e5bfc
RD
8981}
8982
8983
1bd55598
RD
8984SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8985 PyObject *resultobj = 0;
8986 wxIcon *arg1 = (wxIcon *) 0 ;
8987 void *argp1 = 0 ;
8988 int res1 = 0 ;
8989 PyObject *swig_obj[1] ;
8990
8991 if (!args) SWIG_fail;
8992 swig_obj[0] = args;
8993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8994 if (!SWIG_IsOK(res1)) {
8995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8996 }
8997 arg1 = reinterpret_cast< wxIcon * >(argp1);
8998 {
8999 PyThreadState* __tstate = wxPyBeginAllowThreads();
9000 delete arg1;
d55e5bfc 9001
1bd55598
RD
9002 wxPyEndAllowThreads(__tstate);
9003 if (PyErr_Occurred()) SWIG_fail;
9004 }
9005 resultobj = SWIG_Py_Void();
9006 return resultobj;
9007fail:
9008 return NULL;
d55e5bfc
RD
9009}
9010
9011
1bd55598
RD
9012SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9013 PyObject *resultobj = 0;
9014 wxIcon *result = 0 ;
9015
9016 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9017 {
9018 if (!wxPyCheckForApp()) SWIG_fail;
9019 PyThreadState* __tstate = wxPyBeginAllowThreads();
9020 result = (wxIcon *)new wxIcon();
9021 wxPyEndAllowThreads(__tstate);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 }
9024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9025 return resultobj;
9026fail:
9027 return NULL;
9028}
9029
9030
9031SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9032 PyObject *resultobj = 0;
9033 wxIconLocation *arg1 = 0 ;
9034 wxIcon *result = 0 ;
9035 void *argp1 = 0 ;
9036 int res1 = 0 ;
9037 PyObject * obj0 = 0 ;
9038 char * kwnames[] = {
9039 (char *) "loc", NULL
9040 };
9041
9042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9043 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9044 if (!SWIG_IsOK(res1)) {
9045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9046 }
9047 if (!argp1) {
9048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9049 }
9050 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9051 {
9052 if (!wxPyCheckForApp()) SWIG_fail;
9053 PyThreadState* __tstate = wxPyBeginAllowThreads();
9054 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9055 wxPyEndAllowThreads(__tstate);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 }
9058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9059 return resultobj;
9060fail:
9061 return NULL;
9062}
9063
9064
9065SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9066 PyObject *resultobj = 0;
9067 wxBitmap *arg1 = 0 ;
9068 wxIcon *result = 0 ;
9069 void *argp1 = 0 ;
9070 int res1 = 0 ;
9071 PyObject * obj0 = 0 ;
9072 char * kwnames[] = {
9073 (char *) "bmp", NULL
9074 };
9075
9076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9077 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9078 if (!SWIG_IsOK(res1)) {
9079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9080 }
9081 if (!argp1) {
9082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9083 }
9084 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9085 {
9086 if (!wxPyCheckForApp()) SWIG_fail;
9087 PyThreadState* __tstate = wxPyBeginAllowThreads();
9088 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9089 wxPyEndAllowThreads(__tstate);
9090 if (PyErr_Occurred()) SWIG_fail;
9091 }
9092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9093 return resultobj;
9094fail:
9095 return NULL;
d55e5bfc
RD
9096}
9097
9098
1bd55598
RD
9099SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9100 PyObject *resultobj = 0;
9101 PyObject *arg1 = (PyObject *) 0 ;
9102 wxIcon *result = 0 ;
9103 PyObject * obj0 = 0 ;
9104 char * kwnames[] = {
9105 (char *) "listOfStrings", NULL
9106 };
9107
9108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9109 arg1 = obj0;
9110 {
9111 if (!wxPyCheckForApp()) SWIG_fail;
9112 PyThreadState* __tstate = wxPyBeginAllowThreads();
9113 result = (wxIcon *)new_wxIcon(arg1);
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9118 return resultobj;
9119fail:
9120 return NULL;
d55e5bfc
RD
9121}
9122
9123
b39fe951 9124SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9125 PyObject *resultobj = 0;
9126 wxIcon *arg1 = (wxIcon *) 0 ;
9127 bool result;
9128 void *argp1 = 0 ;
9129 int res1 = 0 ;
9130 PyObject *swig_obj[1] ;
9131
9132 if (!args) SWIG_fail;
9133 swig_obj[0] = args;
9134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9135 if (!SWIG_IsOK(res1)) {
b39fe951 9136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9137 }
9138 arg1 = reinterpret_cast< wxIcon * >(argp1);
9139 {
9140 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9141 result = (bool)(arg1)->IsOk();
1bd55598
RD
9142 wxPyEndAllowThreads(__tstate);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
9145 {
9146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9147 }
9148 return resultobj;
9149fail:
9150 return NULL;
d55e5bfc
RD
9151}
9152
9153
1bd55598
RD
9154SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9155 PyObject *resultobj = 0;
9156 wxIcon *arg1 = (wxIcon *) 0 ;
9157 int result;
9158 void *argp1 = 0 ;
9159 int res1 = 0 ;
9160 PyObject *swig_obj[1] ;
9161
9162 if (!args) SWIG_fail;
9163 swig_obj[0] = args;
9164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9165 if (!SWIG_IsOK(res1)) {
9166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9167 }
9168 arg1 = reinterpret_cast< wxIcon * >(argp1);
9169 {
9170 PyThreadState* __tstate = wxPyBeginAllowThreads();
9171 result = (int)(arg1)->GetWidth();
9172 wxPyEndAllowThreads(__tstate);
9173 if (PyErr_Occurred()) SWIG_fail;
9174 }
9175 resultobj = SWIG_From_int(static_cast< int >(result));
9176 return resultobj;
9177fail:
9178 return NULL;
d55e5bfc
RD
9179}
9180
9181
1bd55598
RD
9182SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9183 PyObject *resultobj = 0;
9184 wxIcon *arg1 = (wxIcon *) 0 ;
9185 int result;
9186 void *argp1 = 0 ;
9187 int res1 = 0 ;
9188 PyObject *swig_obj[1] ;
9189
9190 if (!args) SWIG_fail;
9191 swig_obj[0] = args;
9192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9193 if (!SWIG_IsOK(res1)) {
9194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9195 }
9196 arg1 = reinterpret_cast< wxIcon * >(argp1);
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 result = (int)(arg1)->GetHeight();
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 resultobj = SWIG_From_int(static_cast< int >(result));
9204 return resultobj;
9205fail:
9206 return NULL;
d55e5bfc
RD
9207}
9208
9209
1bd55598
RD
9210SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9211 PyObject *resultobj = 0;
9212 wxIcon *arg1 = (wxIcon *) 0 ;
9213 int result;
9214 void *argp1 = 0 ;
9215 int res1 = 0 ;
9216 PyObject *swig_obj[1] ;
9217
9218 if (!args) SWIG_fail;
9219 swig_obj[0] = args;
9220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9221 if (!SWIG_IsOK(res1)) {
9222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9223 }
9224 arg1 = reinterpret_cast< wxIcon * >(argp1);
9225 {
9226 PyThreadState* __tstate = wxPyBeginAllowThreads();
9227 result = (int)(arg1)->GetDepth();
9228 wxPyEndAllowThreads(__tstate);
9229 if (PyErr_Occurred()) SWIG_fail;
9230 }
9231 resultobj = SWIG_From_int(static_cast< int >(result));
9232 return resultobj;
9233fail:
9234 return NULL;
9235}
9236
9237
9238SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9239 PyObject *resultobj = 0;
9240 wxIcon *arg1 = (wxIcon *) 0 ;
9241 int arg2 ;
9242 void *argp1 = 0 ;
9243 int res1 = 0 ;
9244 int val2 ;
9245 int ecode2 = 0 ;
9246 PyObject * obj0 = 0 ;
9247 PyObject * obj1 = 0 ;
9248 char * kwnames[] = {
9249 (char *) "self",(char *) "w", NULL
9250 };
9251
9252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9254 if (!SWIG_IsOK(res1)) {
9255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9256 }
9257 arg1 = reinterpret_cast< wxIcon * >(argp1);
9258 ecode2 = SWIG_AsVal_int(obj1, &val2);
9259 if (!SWIG_IsOK(ecode2)) {
9260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9261 }
9262 arg2 = static_cast< int >(val2);
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 (arg1)->SetWidth(arg2);
9266 wxPyEndAllowThreads(__tstate);
9267 if (PyErr_Occurred()) SWIG_fail;
9268 }
9269 resultobj = SWIG_Py_Void();
9270 return resultobj;
9271fail:
9272 return NULL;
9273}
9274
9275
9276SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9277 PyObject *resultobj = 0;
9278 wxIcon *arg1 = (wxIcon *) 0 ;
9279 int arg2 ;
9280 void *argp1 = 0 ;
9281 int res1 = 0 ;
9282 int val2 ;
9283 int ecode2 = 0 ;
9284 PyObject * obj0 = 0 ;
9285 PyObject * obj1 = 0 ;
9286 char * kwnames[] = {
9287 (char *) "self",(char *) "h", NULL
9288 };
9289
9290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9292 if (!SWIG_IsOK(res1)) {
9293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9294 }
9295 arg1 = reinterpret_cast< wxIcon * >(argp1);
9296 ecode2 = SWIG_AsVal_int(obj1, &val2);
9297 if (!SWIG_IsOK(ecode2)) {
9298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9299 }
9300 arg2 = static_cast< int >(val2);
9301 {
9302 PyThreadState* __tstate = wxPyBeginAllowThreads();
9303 (arg1)->SetHeight(arg2);
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 resultobj = SWIG_Py_Void();
9308 return resultobj;
9309fail:
9310 return NULL;
9311}
9312
9313
9314SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9315 PyObject *resultobj = 0;
9316 wxIcon *arg1 = (wxIcon *) 0 ;
9317 int arg2 ;
9318 void *argp1 = 0 ;
9319 int res1 = 0 ;
9320 int val2 ;
9321 int ecode2 = 0 ;
9322 PyObject * obj0 = 0 ;
9323 PyObject * obj1 = 0 ;
9324 char * kwnames[] = {
9325 (char *) "self",(char *) "d", NULL
9326 };
9327
9328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9330 if (!SWIG_IsOK(res1)) {
9331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9332 }
9333 arg1 = reinterpret_cast< wxIcon * >(argp1);
9334 ecode2 = SWIG_AsVal_int(obj1, &val2);
9335 if (!SWIG_IsOK(ecode2)) {
9336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9337 }
9338 arg2 = static_cast< int >(val2);
9339 {
9340 PyThreadState* __tstate = wxPyBeginAllowThreads();
9341 (arg1)->SetDepth(arg2);
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 resultobj = SWIG_Py_Void();
9346 return resultobj;
9347fail:
9348 return NULL;
9349}
9350
9351
9352SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9353 PyObject *resultobj = 0;
9354 wxIcon *arg1 = (wxIcon *) 0 ;
9355 wxBitmap *arg2 = 0 ;
9356 void *argp1 = 0 ;
9357 int res1 = 0 ;
9358 void *argp2 = 0 ;
9359 int res2 = 0 ;
9360 PyObject * obj0 = 0 ;
9361 PyObject * obj1 = 0 ;
9362 char * kwnames[] = {
9363 (char *) "self",(char *) "bmp", NULL
9364 };
9365
9366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9368 if (!SWIG_IsOK(res1)) {
9369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9370 }
9371 arg1 = reinterpret_cast< wxIcon * >(argp1);
9372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9373 if (!SWIG_IsOK(res2)) {
9374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9375 }
9376 if (!argp2) {
9377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9378 }
9379 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 resultobj = SWIG_Py_Void();
9387 return resultobj;
9388fail:
9389 return NULL;
d55e5bfc
RD
9390}
9391
9392
1bd55598
RD
9393SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9394 PyObject *obj;
9395 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9396 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9397 return SWIG_Py_Void();
d55e5bfc
RD
9398}
9399
1bd55598
RD
9400SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9401 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9402}
9403
1bd55598
RD
9404SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9405 PyObject *resultobj = 0;
9406 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9407 int arg2 = (int) 0 ;
9408 wxIconLocation *result = 0 ;
9409 bool temp1 = false ;
9410 int val2 ;
9411 int ecode2 = 0 ;
9412 PyObject * obj0 = 0 ;
9413 PyObject * obj1 = 0 ;
9414 char * kwnames[] = {
9415 (char *) "filename",(char *) "num", NULL
9416 };
9417
9418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9419 if (obj0) {
d55e5bfc 9420 {
1bd55598
RD
9421 arg1 = wxString_in_helper(obj0);
9422 if (arg1 == NULL) SWIG_fail;
9423 temp1 = true;
d55e5bfc 9424 }
1bd55598
RD
9425 }
9426 if (obj1) {
9427 ecode2 = SWIG_AsVal_int(obj1, &val2);
9428 if (!SWIG_IsOK(ecode2)) {
9429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9430 }
9431 arg2 = static_cast< int >(val2);
9432 }
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9440 {
9441 if (temp1)
9442 delete arg1;
9443 }
9444 return resultobj;
9445fail:
9446 {
9447 if (temp1)
9448 delete arg1;
9449 }
9450 return NULL;
d55e5bfc
RD
9451}
9452
9453
1bd55598
RD
9454SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9455 PyObject *resultobj = 0;
9456 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9457 void *argp1 = 0 ;
9458 int res1 = 0 ;
9459 PyObject *swig_obj[1] ;
9460
9461 if (!args) SWIG_fail;
9462 swig_obj[0] = args;
9463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9464 if (!SWIG_IsOK(res1)) {
9465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9466 }
9467 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9468 {
9469 PyThreadState* __tstate = wxPyBeginAllowThreads();
9470 delete arg1;
d55e5bfc 9471
1bd55598
RD
9472 wxPyEndAllowThreads(__tstate);
9473 if (PyErr_Occurred()) SWIG_fail;
9474 }
9475 resultobj = SWIG_Py_Void();
9476 return resultobj;
9477fail:
9478 return NULL;
d55e5bfc
RD
9479}
9480
9481
1bd55598
RD
9482SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9483 PyObject *resultobj = 0;
9484 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9485 bool result;
9486 void *argp1 = 0 ;
9487 int res1 = 0 ;
9488 PyObject *swig_obj[1] ;
9489
9490 if (!args) SWIG_fail;
9491 swig_obj[0] = args;
9492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9493 if (!SWIG_IsOK(res1)) {
9494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9495 }
9496 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9497 {
9498 PyThreadState* __tstate = wxPyBeginAllowThreads();
9499 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9500 wxPyEndAllowThreads(__tstate);
9501 if (PyErr_Occurred()) SWIG_fail;
9502 }
9503 {
9504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9505 }
9506 return resultobj;
9507fail:
9508 return NULL;
9509}
9510
9511
9512SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9513 PyObject *resultobj = 0;
9514 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9515 wxString *arg2 = 0 ;
9516 void *argp1 = 0 ;
9517 int res1 = 0 ;
9518 bool temp2 = false ;
9519 PyObject * obj0 = 0 ;
9520 PyObject * obj1 = 0 ;
9521 char * kwnames[] = {
9522 (char *) "self",(char *) "filename", NULL
9523 };
9524
9525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9527 if (!SWIG_IsOK(res1)) {
9528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9529 }
9530 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9531 {
9532 arg2 = wxString_in_helper(obj1);
9533 if (arg2 == NULL) SWIG_fail;
9534 temp2 = true;
9535 }
9536 {
9537 PyThreadState* __tstate = wxPyBeginAllowThreads();
9538 (arg1)->SetFileName((wxString const &)*arg2);
9539 wxPyEndAllowThreads(__tstate);
9540 if (PyErr_Occurred()) SWIG_fail;
9541 }
9542 resultobj = SWIG_Py_Void();
9543 {
9544 if (temp2)
9545 delete arg2;
9546 }
9547 return resultobj;
9548fail:
9549 {
9550 if (temp2)
9551 delete arg2;
9552 }
9553 return NULL;
d55e5bfc
RD
9554}
9555
9556
1bd55598
RD
9557SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9558 PyObject *resultobj = 0;
9559 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9560 wxString *result = 0 ;
9561 void *argp1 = 0 ;
9562 int res1 = 0 ;
9563 PyObject *swig_obj[1] ;
9564
9565 if (!args) SWIG_fail;
9566 swig_obj[0] = args;
9567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9568 if (!SWIG_IsOK(res1)) {
9569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9570 }
9571 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9572 {
9573 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9574 {
1bd55598
RD
9575 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9576 result = (wxString *) &_result_ref;
d55e5bfc 9577 }
1bd55598
RD
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 {
9582#if wxUSE_UNICODE
9583 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9584#else
9585 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9586#endif
9587 }
9588 return resultobj;
9589fail:
9590 return NULL;
9591}
9592
9593
9594SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9595 PyObject *resultobj = 0;
9596 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9597 int arg2 ;
9598 void *argp1 = 0 ;
9599 int res1 = 0 ;
9600 int val2 ;
9601 int ecode2 = 0 ;
9602 PyObject * obj0 = 0 ;
9603 PyObject * obj1 = 0 ;
9604 char * kwnames[] = {
9605 (char *) "self",(char *) "num", NULL
9606 };
9607
9608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9612 }
9613 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9614 ecode2 = SWIG_AsVal_int(obj1, &val2);
9615 if (!SWIG_IsOK(ecode2)) {
9616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9617 }
9618 arg2 = static_cast< int >(val2);
9619 {
9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
9621 wxIconLocation_SetIndex(arg1,arg2);
9622 wxPyEndAllowThreads(__tstate);
9623 if (PyErr_Occurred()) SWIG_fail;
9624 }
9625 resultobj = SWIG_Py_Void();
9626 return resultobj;
9627fail:
9628 return NULL;
d55e5bfc
RD
9629}
9630
9631
1bd55598
RD
9632SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9633 PyObject *resultobj = 0;
9634 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9635 int result;
9636 void *argp1 = 0 ;
9637 int res1 = 0 ;
9638 PyObject *swig_obj[1] ;
9639
9640 if (!args) SWIG_fail;
9641 swig_obj[0] = args;
9642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9643 if (!SWIG_IsOK(res1)) {
9644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9645 }
9646 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9647 {
9648 PyThreadState* __tstate = wxPyBeginAllowThreads();
9649 result = (int)wxIconLocation_GetIndex(arg1);
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 resultobj = SWIG_From_int(static_cast< int >(result));
9654 return resultobj;
9655fail:
9656 return NULL;
d55e5bfc
RD
9657}
9658
9659
1bd55598
RD
9660SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9661 PyObject *obj;
9662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9663 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9664 return SWIG_Py_Void();
d55e5bfc
RD
9665}
9666
1bd55598
RD
9667SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9668 return SWIG_Python_InitShadowInstance(args);
9669}
d55e5bfc 9670
1bd55598
RD
9671SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9672 PyObject *resultobj = 0;
9673 wxIconBundle *result = 0 ;
9674
9675 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9676 {
9677 PyThreadState* __tstate = wxPyBeginAllowThreads();
9678 result = (wxIconBundle *)new wxIconBundle();
9679 wxPyEndAllowThreads(__tstate);
9680 if (PyErr_Occurred()) SWIG_fail;
9681 }
9682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9683 return resultobj;
9684fail:
9685 return NULL;
9686}
9687
9688
9689SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9690 PyObject *resultobj = 0;
9691 wxString *arg1 = 0 ;
9692 long arg2 ;
9693 wxIconBundle *result = 0 ;
9694 bool temp1 = false ;
9695 long val2 ;
9696 int ecode2 = 0 ;
9697 PyObject * obj0 = 0 ;
9698 PyObject * obj1 = 0 ;
9699 char * kwnames[] = {
9700 (char *) "file",(char *) "type", NULL
9701 };
9702
9703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9704 {
9705 arg1 = wxString_in_helper(obj0);
9706 if (arg1 == NULL) SWIG_fail;
9707 temp1 = true;
9708 }
9709 ecode2 = SWIG_AsVal_long(obj1, &val2);
9710 if (!SWIG_IsOK(ecode2)) {
9711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9712 }
9713 arg2 = static_cast< long >(val2);
9714 {
9715 PyThreadState* __tstate = wxPyBeginAllowThreads();
9716 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9717 wxPyEndAllowThreads(__tstate);
9718 if (PyErr_Occurred()) SWIG_fail;
9719 }
9720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9721 {
9722 if (temp1)
9723 delete arg1;
9724 }
9725 return resultobj;
9726fail:
9727 {
9728 if (temp1)
9729 delete arg1;
9730 }
9731 return NULL;
d55e5bfc
RD
9732}
9733
9734
1bd55598
RD
9735SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj = 0;
9737 wxIcon *arg1 = 0 ;
9738 wxIconBundle *result = 0 ;
9739 void *argp1 = 0 ;
9740 int res1 = 0 ;
9741 PyObject * obj0 = 0 ;
9742 char * kwnames[] = {
9743 (char *) "icon", NULL
9744 };
9745
9746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9747 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9748 if (!SWIG_IsOK(res1)) {
9749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9750 }
9751 if (!argp1) {
9752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9753 }
9754 arg1 = reinterpret_cast< wxIcon * >(argp1);
9755 {
9756 PyThreadState* __tstate = wxPyBeginAllowThreads();
9757 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9758 wxPyEndAllowThreads(__tstate);
9759 if (PyErr_Occurred()) SWIG_fail;
9760 }
9761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9762 return resultobj;
9763fail:
9764 return NULL;
d55e5bfc
RD
9765}
9766
9767
1bd55598
RD
9768SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9769 PyObject *resultobj = 0;
9770 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9771 void *argp1 = 0 ;
9772 int res1 = 0 ;
9773 PyObject *swig_obj[1] ;
9774
9775 if (!args) SWIG_fail;
9776 swig_obj[0] = args;
9777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9778 if (!SWIG_IsOK(res1)) {
9779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9780 }
9781 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9782 {
9783 PyThreadState* __tstate = wxPyBeginAllowThreads();
9784 delete arg1;
d55e5bfc 9785
1bd55598
RD
9786 wxPyEndAllowThreads(__tstate);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 resultobj = SWIG_Py_Void();
9790 return resultobj;
9791fail:
9792 return NULL;
9793}
9794
9795
9796SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9797 PyObject *resultobj = 0;
9798 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9799 wxIcon *arg2 = 0 ;
9800 void *argp1 = 0 ;
9801 int res1 = 0 ;
9802 void *argp2 = 0 ;
9803 int res2 = 0 ;
9804 PyObject * obj0 = 0 ;
9805 PyObject * obj1 = 0 ;
9806 char * kwnames[] = {
9807 (char *) "self",(char *) "icon", NULL
9808 };
9809
9810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9812 if (!SWIG_IsOK(res1)) {
9813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9814 }
9815 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9816 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9817 if (!SWIG_IsOK(res2)) {
9818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9819 }
9820 if (!argp2) {
9821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9822 }
9823 arg2 = reinterpret_cast< wxIcon * >(argp2);
9824 {
9825 PyThreadState* __tstate = wxPyBeginAllowThreads();
9826 (arg1)->AddIcon((wxIcon const &)*arg2);
9827 wxPyEndAllowThreads(__tstate);
9828 if (PyErr_Occurred()) SWIG_fail;
9829 }
9830 resultobj = SWIG_Py_Void();
9831 return resultobj;
9832fail:
9833 return NULL;
9834}
9835
9836
9837SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9838 PyObject *resultobj = 0;
9839 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9840 wxString *arg2 = 0 ;
9841 long arg3 ;
9842 void *argp1 = 0 ;
9843 int res1 = 0 ;
9844 bool temp2 = false ;
9845 long val3 ;
9846 int ecode3 = 0 ;
9847 PyObject * obj0 = 0 ;
9848 PyObject * obj1 = 0 ;
9849 PyObject * obj2 = 0 ;
9850 char * kwnames[] = {
9851 (char *) "self",(char *) "file",(char *) "type", NULL
9852 };
9853
9854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9856 if (!SWIG_IsOK(res1)) {
9857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9858 }
9859 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9860 {
9861 arg2 = wxString_in_helper(obj1);
9862 if (arg2 == NULL) SWIG_fail;
9863 temp2 = true;
9864 }
9865 ecode3 = SWIG_AsVal_long(obj2, &val3);
9866 if (!SWIG_IsOK(ecode3)) {
9867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9868 }
9869 arg3 = static_cast< long >(val3);
9870 {
9871 PyThreadState* __tstate = wxPyBeginAllowThreads();
9872 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9873 wxPyEndAllowThreads(__tstate);
9874 if (PyErr_Occurred()) SWIG_fail;
9875 }
9876 resultobj = SWIG_Py_Void();
9877 {
9878 if (temp2)
9879 delete arg2;
9880 }
9881 return resultobj;
9882fail:
9883 {
9884 if (temp2)
9885 delete arg2;
9886 }
9887 return NULL;
9888}
9889
9890
9891SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9892 PyObject *resultobj = 0;
9893 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9894 wxSize *arg2 = 0 ;
9895 wxIcon *result = 0 ;
9896 void *argp1 = 0 ;
9897 int res1 = 0 ;
9898 wxSize temp2 ;
9899 PyObject * obj0 = 0 ;
9900 PyObject * obj1 = 0 ;
9901 char * kwnames[] = {
9902 (char *) "self",(char *) "size", NULL
9903 };
9904
9905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9907 if (!SWIG_IsOK(res1)) {
9908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9909 }
9910 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9911 {
9912 arg2 = &temp2;
9913 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9914 }
9915 {
9916 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9917 {
1bd55598
RD
9918 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9919 result = (wxIcon *) &_result_ref;
d55e5bfc 9920 }
1bd55598
RD
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 }
9924 {
9925 wxIcon* resultptr = new wxIcon(*result);
9926 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9927 }
9928 return resultobj;
9929fail:
9930 return NULL;
9931}
9932
9933
9934SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9935 PyObject *obj;
9936 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9937 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9938 return SWIG_Py_Void();
9939}
9940
9941SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9942 return SWIG_Python_InitShadowInstance(args);
9943}
9944
9945SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9946 PyObject *resultobj = 0;
9947 wxString *arg1 = 0 ;
9948 long arg2 ;
9949 int arg3 = (int) 0 ;
9950 int arg4 = (int) 0 ;
9951 wxCursor *result = 0 ;
9952 bool temp1 = false ;
9953 long val2 ;
9954 int ecode2 = 0 ;
9955 int val3 ;
9956 int ecode3 = 0 ;
9957 int val4 ;
9958 int ecode4 = 0 ;
9959 PyObject * obj0 = 0 ;
9960 PyObject * obj1 = 0 ;
9961 PyObject * obj2 = 0 ;
9962 PyObject * obj3 = 0 ;
9963 char * kwnames[] = {
9964 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9965 };
9966
9967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9968 {
9969 arg1 = wxString_in_helper(obj0);
9970 if (arg1 == NULL) SWIG_fail;
9971 temp1 = true;
9972 }
9973 ecode2 = SWIG_AsVal_long(obj1, &val2);
9974 if (!SWIG_IsOK(ecode2)) {
9975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9976 }
9977 arg2 = static_cast< long >(val2);
9978 if (obj2) {
9979 ecode3 = SWIG_AsVal_int(obj2, &val3);
9980 if (!SWIG_IsOK(ecode3)) {
9981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9982 }
9983 arg3 = static_cast< int >(val3);
9984 }
9985 if (obj3) {
9986 ecode4 = SWIG_AsVal_int(obj3, &val4);
9987 if (!SWIG_IsOK(ecode4)) {
9988 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9989 }
9990 arg4 = static_cast< int >(val4);
9991 }
9992 {
9993 if (!wxPyCheckForApp()) SWIG_fail;
9994 PyThreadState* __tstate = wxPyBeginAllowThreads();
9995 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9996 wxPyEndAllowThreads(__tstate);
9997 if (PyErr_Occurred()) SWIG_fail;
9998 }
9999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10000 {
10001 if (temp1)
10002 delete arg1;
10003 }
10004 return resultobj;
10005fail:
10006 {
10007 if (temp1)
10008 delete arg1;
10009 }
10010 return NULL;
d55e5bfc
RD
10011}
10012
10013
1bd55598
RD
10014SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10015 PyObject *resultobj = 0;
10016 wxCursor *arg1 = (wxCursor *) 0 ;
10017 void *argp1 = 0 ;
10018 int res1 = 0 ;
10019 PyObject *swig_obj[1] ;
10020
10021 if (!args) SWIG_fail;
10022 swig_obj[0] = args;
10023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10024 if (!SWIG_IsOK(res1)) {
10025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10026 }
10027 arg1 = reinterpret_cast< wxCursor * >(argp1);
10028 {
10029 PyThreadState* __tstate = wxPyBeginAllowThreads();
10030 delete arg1;
d55e5bfc 10031
1bd55598
RD
10032 wxPyEndAllowThreads(__tstate);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 }
10035 resultobj = SWIG_Py_Void();
10036 return resultobj;
10037fail:
10038 return NULL;
10039}
10040
10041
10042SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10043 PyObject *resultobj = 0;
10044 int arg1 ;
10045 wxCursor *result = 0 ;
10046 int val1 ;
10047 int ecode1 = 0 ;
10048 PyObject * obj0 = 0 ;
10049 char * kwnames[] = {
10050 (char *) "id", NULL
10051 };
10052
10053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10054 ecode1 = SWIG_AsVal_int(obj0, &val1);
10055 if (!SWIG_IsOK(ecode1)) {
10056 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10057 }
10058 arg1 = static_cast< int >(val1);
10059 {
10060 if (!wxPyCheckForApp()) SWIG_fail;
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 result = (wxCursor *)new wxCursor(arg1);
10063 wxPyEndAllowThreads(__tstate);
10064 if (PyErr_Occurred()) SWIG_fail;
10065 }
10066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10067 return resultobj;
10068fail:
10069 return NULL;
10070}
10071
10072
10073SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10074 PyObject *resultobj = 0;
10075 wxImage *arg1 = 0 ;
10076 wxCursor *result = 0 ;
10077 void *argp1 = 0 ;
10078 int res1 = 0 ;
10079 PyObject * obj0 = 0 ;
10080 char * kwnames[] = {
10081 (char *) "image", NULL
10082 };
10083
10084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10085 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10086 if (!SWIG_IsOK(res1)) {
10087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10088 }
10089 if (!argp1) {
10090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10091 }
10092 arg1 = reinterpret_cast< wxImage * >(argp1);
10093 {
10094 if (!wxPyCheckForApp()) SWIG_fail;
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10101 return resultobj;
10102fail:
10103 return NULL;
d55e5bfc
RD
10104}
10105
10106
b39fe951 10107SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10108 PyObject *resultobj = 0;
10109 wxCursor *arg1 = (wxCursor *) 0 ;
10110 bool result;
10111 void *argp1 = 0 ;
10112 int res1 = 0 ;
10113 PyObject *swig_obj[1] ;
10114
10115 if (!args) SWIG_fail;
10116 swig_obj[0] = args;
10117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10118 if (!SWIG_IsOK(res1)) {
b39fe951 10119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10120 }
10121 arg1 = reinterpret_cast< wxCursor * >(argp1);
10122 {
10123 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10124 result = (bool)(arg1)->IsOk();
1bd55598
RD
10125 wxPyEndAllowThreads(__tstate);
10126 if (PyErr_Occurred()) SWIG_fail;
10127 }
10128 {
10129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10130 }
10131 return resultobj;
10132fail:
10133 return NULL;
10134}
10135
10136
10137SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10138 PyObject *obj;
10139 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10140 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10141 return SWIG_Py_Void();
10142}
10143
10144SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10145 return SWIG_Python_InitShadowInstance(args);
10146}
10147
10148SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10149 PyObject *resultobj = 0;
10150 int arg1 = (int) 0 ;
10151 int arg2 = (int) 0 ;
10152 int arg3 = (int) 0 ;
10153 int arg4 = (int) 0 ;
10154 wxRegion *result = 0 ;
10155 int val1 ;
10156 int ecode1 = 0 ;
10157 int val2 ;
10158 int ecode2 = 0 ;
10159 int val3 ;
10160 int ecode3 = 0 ;
10161 int val4 ;
10162 int ecode4 = 0 ;
10163 PyObject * obj0 = 0 ;
10164 PyObject * obj1 = 0 ;
10165 PyObject * obj2 = 0 ;
10166 PyObject * obj3 = 0 ;
10167 char * kwnames[] = {
10168 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10169 };
10170
10171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10172 if (obj0) {
10173 ecode1 = SWIG_AsVal_int(obj0, &val1);
10174 if (!SWIG_IsOK(ecode1)) {
10175 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10176 }
10177 arg1 = static_cast< int >(val1);
10178 }
10179 if (obj1) {
10180 ecode2 = SWIG_AsVal_int(obj1, &val2);
10181 if (!SWIG_IsOK(ecode2)) {
10182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10183 }
10184 arg2 = static_cast< int >(val2);
10185 }
10186 if (obj2) {
10187 ecode3 = SWIG_AsVal_int(obj2, &val3);
10188 if (!SWIG_IsOK(ecode3)) {
10189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10190 }
10191 arg3 = static_cast< int >(val3);
10192 }
10193 if (obj3) {
10194 ecode4 = SWIG_AsVal_int(obj3, &val4);
10195 if (!SWIG_IsOK(ecode4)) {
10196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10197 }
10198 arg4 = static_cast< int >(val4);
10199 }
10200 {
10201 if (!wxPyCheckForApp()) SWIG_fail;
10202 PyThreadState* __tstate = wxPyBeginAllowThreads();
10203 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10204 wxPyEndAllowThreads(__tstate);
10205 if (PyErr_Occurred()) SWIG_fail;
10206 }
10207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10208 return resultobj;
10209fail:
10210 return NULL;
10211}
10212
10213
10214SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10215 PyObject *resultobj = 0;
10216 wxBitmap *arg1 = 0 ;
10217 wxRegion *result = 0 ;
10218 void *argp1 = 0 ;
10219 int res1 = 0 ;
10220 PyObject * obj0 = 0 ;
10221 char * kwnames[] = {
10222 (char *) "bmp", NULL
10223 };
10224
10225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10226 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10227 if (!SWIG_IsOK(res1)) {
10228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10229 }
10230 if (!argp1) {
10231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10232 }
10233 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10234 {
10235 if (!wxPyCheckForApp()) SWIG_fail;
10236 PyThreadState* __tstate = wxPyBeginAllowThreads();
10237 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10238 wxPyEndAllowThreads(__tstate);
10239 if (PyErr_Occurred()) SWIG_fail;
10240 }
10241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10242 return resultobj;
10243fail:
10244 return NULL;
10245}
10246
10247
10248SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10249 PyObject *resultobj = 0;
10250 wxBitmap *arg1 = 0 ;
10251 wxColour *arg2 = 0 ;
10252 int arg3 = (int) 0 ;
10253 wxRegion *result = 0 ;
10254 void *argp1 = 0 ;
10255 int res1 = 0 ;
10256 wxColour temp2 ;
10257 int val3 ;
10258 int ecode3 = 0 ;
10259 PyObject * obj0 = 0 ;
10260 PyObject * obj1 = 0 ;
10261 PyObject * obj2 = 0 ;
10262 char * kwnames[] = {
10263 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10264 };
10265
10266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10267 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10268 if (!SWIG_IsOK(res1)) {
10269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10270 }
10271 if (!argp1) {
10272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10273 }
10274 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10275 {
10276 arg2 = &temp2;
10277 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10278 }
10279 if (obj2) {
10280 ecode3 = SWIG_AsVal_int(obj2, &val3);
10281 if (!SWIG_IsOK(ecode3)) {
10282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10283 }
10284 arg3 = static_cast< int >(val3);
10285 }
10286 {
10287 if (!wxPyCheckForApp()) SWIG_fail;
10288 PyThreadState* __tstate = wxPyBeginAllowThreads();
10289 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10290 wxPyEndAllowThreads(__tstate);
10291 if (PyErr_Occurred()) SWIG_fail;
10292 }
10293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10294 return resultobj;
10295fail:
10296 return NULL;
10297}
10298
10299
10300SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10301 PyObject *resultobj = 0;
10302 int arg1 ;
10303 wxPoint *arg2 = (wxPoint *) 0 ;
10304 int arg3 = (int) wxWINDING_RULE ;
10305 wxRegion *result = 0 ;
10306 int val3 ;
10307 int ecode3 = 0 ;
10308 PyObject * obj0 = 0 ;
10309 PyObject * obj1 = 0 ;
10310 char * kwnames[] = {
10311 (char *) "points",(char *) "fillStyle", NULL
10312 };
10313
10314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10315 {
10316 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10317 if (arg2 == NULL) SWIG_fail;
10318 }
10319 if (obj1) {
10320 ecode3 = SWIG_AsVal_int(obj1, &val3);
10321 if (!SWIG_IsOK(ecode3)) {
10322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10323 }
10324 arg3 = static_cast< int >(val3);
10325 }
10326 {
10327 if (!wxPyCheckForApp()) SWIG_fail;
10328 PyThreadState* __tstate = wxPyBeginAllowThreads();
10329 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10330 wxPyEndAllowThreads(__tstate);
10331 if (PyErr_Occurred()) SWIG_fail;
10332 }
10333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10334 {
10335 if (arg2) delete [] arg2;
10336 }
10337 return resultobj;
10338fail:
10339 {
10340 if (arg2) delete [] arg2;
10341 }
10342 return NULL;
d55e5bfc
RD
10343}
10344
10345
1bd55598
RD
10346SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10347 PyObject *resultobj = 0;
10348 wxRegion *arg1 = (wxRegion *) 0 ;
10349 void *argp1 = 0 ;
10350 int res1 = 0 ;
10351 PyObject *swig_obj[1] ;
10352
10353 if (!args) SWIG_fail;
10354 swig_obj[0] = args;
10355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10356 if (!SWIG_IsOK(res1)) {
10357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10358 }
10359 arg1 = reinterpret_cast< wxRegion * >(argp1);
10360 {
10361 PyThreadState* __tstate = wxPyBeginAllowThreads();
10362 delete arg1;
d55e5bfc 10363
1bd55598
RD
10364 wxPyEndAllowThreads(__tstate);
10365 if (PyErr_Occurred()) SWIG_fail;
10366 }
10367 resultobj = SWIG_Py_Void();
10368 return resultobj;
10369fail:
10370 return NULL;
d55e5bfc
RD
10371}
10372
10373
1bd55598
RD
10374SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10375 PyObject *resultobj = 0;
10376 wxRegion *arg1 = (wxRegion *) 0 ;
10377 void *argp1 = 0 ;
10378 int res1 = 0 ;
10379 PyObject *swig_obj[1] ;
10380
10381 if (!args) SWIG_fail;
10382 swig_obj[0] = args;
10383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10384 if (!SWIG_IsOK(res1)) {
10385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10386 }
10387 arg1 = reinterpret_cast< wxRegion * >(argp1);
10388 {
10389 PyThreadState* __tstate = wxPyBeginAllowThreads();
10390 (arg1)->Clear();
10391 wxPyEndAllowThreads(__tstate);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 resultobj = SWIG_Py_Void();
10395 return resultobj;
10396fail:
10397 return NULL;
10398}
10399
10400
10401SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10402 PyObject *resultobj = 0;
10403 wxRegion *arg1 = (wxRegion *) 0 ;
10404 int arg2 ;
10405 int arg3 ;
10406 bool result;
10407 void *argp1 = 0 ;
10408 int res1 = 0 ;
10409 int val2 ;
10410 int ecode2 = 0 ;
10411 int val3 ;
10412 int ecode3 = 0 ;
10413 PyObject * obj0 = 0 ;
10414 PyObject * obj1 = 0 ;
10415 PyObject * obj2 = 0 ;
10416 char * kwnames[] = {
10417 (char *) "self",(char *) "x",(char *) "y", NULL
10418 };
10419
10420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10422 if (!SWIG_IsOK(res1)) {
10423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10424 }
10425 arg1 = reinterpret_cast< wxRegion * >(argp1);
10426 ecode2 = SWIG_AsVal_int(obj1, &val2);
10427 if (!SWIG_IsOK(ecode2)) {
10428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10429 }
10430 arg2 = static_cast< int >(val2);
10431 ecode3 = SWIG_AsVal_int(obj2, &val3);
10432 if (!SWIG_IsOK(ecode3)) {
10433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10434 }
10435 arg3 = static_cast< int >(val3);
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 result = (bool)(arg1)->Offset(arg2,arg3);
10439 wxPyEndAllowThreads(__tstate);
10440 if (PyErr_Occurred()) SWIG_fail;
10441 }
10442 {
10443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10444 }
10445 return resultobj;
10446fail:
10447 return NULL;
10448}
10449
10450
10451SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10452 PyObject *resultobj = 0;
10453 wxRegion *arg1 = (wxRegion *) 0 ;
10454 int arg2 ;
10455 int arg3 ;
10456 wxRegionContain result;
10457 void *argp1 = 0 ;
10458 int res1 = 0 ;
10459 int val2 ;
10460 int ecode2 = 0 ;
10461 int val3 ;
10462 int ecode3 = 0 ;
10463 PyObject * obj0 = 0 ;
10464 PyObject * obj1 = 0 ;
10465 PyObject * obj2 = 0 ;
10466 char * kwnames[] = {
10467 (char *) "self",(char *) "x",(char *) "y", NULL
10468 };
10469
10470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10472 if (!SWIG_IsOK(res1)) {
10473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10474 }
10475 arg1 = reinterpret_cast< wxRegion * >(argp1);
10476 ecode2 = SWIG_AsVal_int(obj1, &val2);
10477 if (!SWIG_IsOK(ecode2)) {
10478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10479 }
10480 arg2 = static_cast< int >(val2);
10481 ecode3 = SWIG_AsVal_int(obj2, &val3);
10482 if (!SWIG_IsOK(ecode3)) {
10483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10484 }
10485 arg3 = static_cast< int >(val3);
10486 {
10487 PyThreadState* __tstate = wxPyBeginAllowThreads();
10488 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10489 wxPyEndAllowThreads(__tstate);
10490 if (PyErr_Occurred()) SWIG_fail;
10491 }
10492 resultobj = SWIG_From_int(static_cast< int >(result));
10493 return resultobj;
10494fail:
10495 return NULL;
10496}
10497
10498
10499SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10500 PyObject *resultobj = 0;
10501 wxRegion *arg1 = (wxRegion *) 0 ;
10502 wxPoint *arg2 = 0 ;
10503 wxRegionContain result;
10504 void *argp1 = 0 ;
10505 int res1 = 0 ;
10506 wxPoint temp2 ;
10507 PyObject * obj0 = 0 ;
10508 PyObject * obj1 = 0 ;
10509 char * kwnames[] = {
10510 (char *) "self",(char *) "pt", NULL
10511 };
10512
10513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10515 if (!SWIG_IsOK(res1)) {
10516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10517 }
10518 arg1 = reinterpret_cast< wxRegion * >(argp1);
10519 {
10520 arg2 = &temp2;
10521 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10522 }
10523 {
10524 PyThreadState* __tstate = wxPyBeginAllowThreads();
10525 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10526 wxPyEndAllowThreads(__tstate);
10527 if (PyErr_Occurred()) SWIG_fail;
10528 }
10529 resultobj = SWIG_From_int(static_cast< int >(result));
10530 return resultobj;
10531fail:
10532 return NULL;
10533}
10534
10535
10536SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10537 PyObject *resultobj = 0;
10538 wxRegion *arg1 = (wxRegion *) 0 ;
10539 wxRect *arg2 = 0 ;
10540 wxRegionContain result;
10541 void *argp1 = 0 ;
10542 int res1 = 0 ;
10543 wxRect temp2 ;
10544 PyObject * obj0 = 0 ;
10545 PyObject * obj1 = 0 ;
10546 char * kwnames[] = {
10547 (char *) "self",(char *) "rect", NULL
10548 };
10549
10550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10552 if (!SWIG_IsOK(res1)) {
10553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10554 }
10555 arg1 = reinterpret_cast< wxRegion * >(argp1);
10556 {
10557 arg2 = &temp2;
10558 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10559 }
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
10562 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 resultobj = SWIG_From_int(static_cast< int >(result));
10567 return resultobj;
10568fail:
10569 return NULL;
10570}
10571
10572
10573SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10574 PyObject *resultobj = 0;
10575 wxRegion *arg1 = (wxRegion *) 0 ;
10576 int arg2 ;
10577 int arg3 ;
10578 int arg4 ;
10579 int arg5 ;
10580 wxRegionContain result;
10581 void *argp1 = 0 ;
10582 int res1 = 0 ;
10583 int val2 ;
10584 int ecode2 = 0 ;
10585 int val3 ;
10586 int ecode3 = 0 ;
10587 int val4 ;
10588 int ecode4 = 0 ;
10589 int val5 ;
10590 int ecode5 = 0 ;
10591 PyObject * obj0 = 0 ;
10592 PyObject * obj1 = 0 ;
10593 PyObject * obj2 = 0 ;
10594 PyObject * obj3 = 0 ;
10595 PyObject * obj4 = 0 ;
10596 char * kwnames[] = {
10597 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10598 };
10599
10600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10602 if (!SWIG_IsOK(res1)) {
10603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10604 }
10605 arg1 = reinterpret_cast< wxRegion * >(argp1);
10606 ecode2 = SWIG_AsVal_int(obj1, &val2);
10607 if (!SWIG_IsOK(ecode2)) {
10608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10609 }
10610 arg2 = static_cast< int >(val2);
10611 ecode3 = SWIG_AsVal_int(obj2, &val3);
10612 if (!SWIG_IsOK(ecode3)) {
10613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10614 }
10615 arg3 = static_cast< int >(val3);
10616 ecode4 = SWIG_AsVal_int(obj3, &val4);
10617 if (!SWIG_IsOK(ecode4)) {
10618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10619 }
10620 arg4 = static_cast< int >(val4);
10621 ecode5 = SWIG_AsVal_int(obj4, &val5);
10622 if (!SWIG_IsOK(ecode5)) {
10623 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10624 }
10625 arg5 = static_cast< int >(val5);
10626 {
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10629 wxPyEndAllowThreads(__tstate);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 }
10632 resultobj = SWIG_From_int(static_cast< int >(result));
10633 return resultobj;
10634fail:
10635 return NULL;
d55e5bfc
RD
10636}
10637
10638
1bd55598
RD
10639SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10640 PyObject *resultobj = 0;
10641 wxRegion *arg1 = (wxRegion *) 0 ;
10642 wxRect result;
10643 void *argp1 = 0 ;
10644 int res1 = 0 ;
10645 PyObject *swig_obj[1] ;
10646
10647 if (!args) SWIG_fail;
10648 swig_obj[0] = args;
10649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10650 if (!SWIG_IsOK(res1)) {
10651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10652 }
10653 arg1 = reinterpret_cast< wxRegion * >(argp1);
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 result = (arg1)->GetBox();
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10661 return resultobj;
10662fail:
10663 return NULL;
10664}
10665
10666
10667SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10668 PyObject *resultobj = 0;
10669 wxRegion *arg1 = (wxRegion *) 0 ;
10670 int arg2 ;
10671 int arg3 ;
10672 int arg4 ;
10673 int arg5 ;
10674 bool result;
10675 void *argp1 = 0 ;
10676 int res1 = 0 ;
10677 int val2 ;
10678 int ecode2 = 0 ;
10679 int val3 ;
10680 int ecode3 = 0 ;
10681 int val4 ;
10682 int ecode4 = 0 ;
10683 int val5 ;
10684 int ecode5 = 0 ;
10685 PyObject * obj0 = 0 ;
10686 PyObject * obj1 = 0 ;
10687 PyObject * obj2 = 0 ;
10688 PyObject * obj3 = 0 ;
10689 PyObject * obj4 = 0 ;
10690 char * kwnames[] = {
10691 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10692 };
10693
10694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10696 if (!SWIG_IsOK(res1)) {
10697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10698 }
10699 arg1 = reinterpret_cast< wxRegion * >(argp1);
10700 ecode2 = SWIG_AsVal_int(obj1, &val2);
10701 if (!SWIG_IsOK(ecode2)) {
10702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10703 }
10704 arg2 = static_cast< int >(val2);
10705 ecode3 = SWIG_AsVal_int(obj2, &val3);
10706 if (!SWIG_IsOK(ecode3)) {
10707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10708 }
10709 arg3 = static_cast< int >(val3);
10710 ecode4 = SWIG_AsVal_int(obj3, &val4);
10711 if (!SWIG_IsOK(ecode4)) {
10712 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10713 }
10714 arg4 = static_cast< int >(val4);
10715 ecode5 = SWIG_AsVal_int(obj4, &val5);
10716 if (!SWIG_IsOK(ecode5)) {
10717 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10718 }
10719 arg5 = static_cast< int >(val5);
10720 {
10721 PyThreadState* __tstate = wxPyBeginAllowThreads();
10722 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 {
10727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10728 }
10729 return resultobj;
10730fail:
10731 return NULL;
10732}
10733
10734
10735SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10736 PyObject *resultobj = 0;
10737 wxRegion *arg1 = (wxRegion *) 0 ;
10738 wxRect *arg2 = 0 ;
10739 bool result;
10740 void *argp1 = 0 ;
10741 int res1 = 0 ;
10742 wxRect temp2 ;
10743 PyObject * obj0 = 0 ;
10744 PyObject * obj1 = 0 ;
10745 char * kwnames[] = {
10746 (char *) "self",(char *) "rect", NULL
10747 };
10748
10749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10751 if (!SWIG_IsOK(res1)) {
10752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10753 }
10754 arg1 = reinterpret_cast< wxRegion * >(argp1);
10755 {
10756 arg2 = &temp2;
10757 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10758 }
10759 {
10760 PyThreadState* __tstate = wxPyBeginAllowThreads();
10761 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10762 wxPyEndAllowThreads(__tstate);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 {
10766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10767 }
10768 return resultobj;
10769fail:
10770 return NULL;
10771}
10772
10773
10774SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10775 PyObject *resultobj = 0;
10776 wxRegion *arg1 = (wxRegion *) 0 ;
10777 wxRegion *arg2 = 0 ;
10778 bool result;
10779 void *argp1 = 0 ;
10780 int res1 = 0 ;
10781 void *argp2 = 0 ;
10782 int res2 = 0 ;
10783 PyObject * obj0 = 0 ;
10784 PyObject * obj1 = 0 ;
10785 char * kwnames[] = {
10786 (char *) "self",(char *) "region", NULL
10787 };
10788
10789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10791 if (!SWIG_IsOK(res1)) {
10792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10793 }
10794 arg1 = reinterpret_cast< wxRegion * >(argp1);
10795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10796 if (!SWIG_IsOK(res2)) {
10797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10798 }
10799 if (!argp2) {
10800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10801 }
10802 arg2 = reinterpret_cast< wxRegion * >(argp2);
10803 {
10804 PyThreadState* __tstate = wxPyBeginAllowThreads();
10805 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10806 wxPyEndAllowThreads(__tstate);
10807 if (PyErr_Occurred()) SWIG_fail;
10808 }
10809 {
10810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10811 }
10812 return resultobj;
10813fail:
10814 return NULL;
d55e5bfc
RD
10815}
10816
10817
1bd55598
RD
10818SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10819 PyObject *resultobj = 0;
10820 wxRegion *arg1 = (wxRegion *) 0 ;
10821 bool result;
10822 void *argp1 = 0 ;
10823 int res1 = 0 ;
10824 PyObject *swig_obj[1] ;
10825
10826 if (!args) SWIG_fail;
10827 swig_obj[0] = args;
10828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10829 if (!SWIG_IsOK(res1)) {
10830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10831 }
10832 arg1 = reinterpret_cast< wxRegion * >(argp1);
10833 {
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 result = (bool)(arg1)->IsEmpty();
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 {
10840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10841 }
10842 return resultobj;
10843fail:
10844 return NULL;
10845}
10846
10847
f5263701
RD
10848SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10849 PyObject *resultobj = 0;
10850 wxRegion *arg1 = (wxRegion *) 0 ;
10851 wxRegion *arg2 = 0 ;
10852 bool result;
10853 void *argp1 = 0 ;
10854 int res1 = 0 ;
10855 void *argp2 = 0 ;
10856 int res2 = 0 ;
10857 PyObject * obj0 = 0 ;
10858 PyObject * obj1 = 0 ;
10859 char * kwnames[] = {
10860 (char *) "self",(char *) "region", NULL
10861 };
10862
10863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10865 if (!SWIG_IsOK(res1)) {
10866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10867 }
10868 arg1 = reinterpret_cast< wxRegion * >(argp1);
10869 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10870 if (!SWIG_IsOK(res2)) {
10871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10872 }
10873 if (!argp2) {
10874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10875 }
10876 arg2 = reinterpret_cast< wxRegion * >(argp2);
10877 {
10878 PyThreadState* __tstate = wxPyBeginAllowThreads();
10879 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10880 wxPyEndAllowThreads(__tstate);
10881 if (PyErr_Occurred()) SWIG_fail;
10882 }
10883 {
10884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10885 }
10886 return resultobj;
10887fail:
10888 return NULL;
10889}
10890
10891
1bd55598
RD
10892SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10893 PyObject *resultobj = 0;
10894 wxRegion *arg1 = (wxRegion *) 0 ;
10895 int arg2 ;
10896 int arg3 ;
10897 int arg4 ;
10898 int arg5 ;
10899 bool result;
10900 void *argp1 = 0 ;
10901 int res1 = 0 ;
10902 int val2 ;
10903 int ecode2 = 0 ;
10904 int val3 ;
10905 int ecode3 = 0 ;
10906 int val4 ;
10907 int ecode4 = 0 ;
10908 int val5 ;
10909 int ecode5 = 0 ;
10910 PyObject * obj0 = 0 ;
10911 PyObject * obj1 = 0 ;
10912 PyObject * obj2 = 0 ;
10913 PyObject * obj3 = 0 ;
10914 PyObject * obj4 = 0 ;
10915 char * kwnames[] = {
10916 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10917 };
10918
10919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10923 }
10924 arg1 = reinterpret_cast< wxRegion * >(argp1);
10925 ecode2 = SWIG_AsVal_int(obj1, &val2);
10926 if (!SWIG_IsOK(ecode2)) {
10927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10928 }
10929 arg2 = static_cast< int >(val2);
10930 ecode3 = SWIG_AsVal_int(obj2, &val3);
10931 if (!SWIG_IsOK(ecode3)) {
10932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10933 }
10934 arg3 = static_cast< int >(val3);
10935 ecode4 = SWIG_AsVal_int(obj3, &val4);
10936 if (!SWIG_IsOK(ecode4)) {
10937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10938 }
10939 arg4 = static_cast< int >(val4);
10940 ecode5 = SWIG_AsVal_int(obj4, &val5);
10941 if (!SWIG_IsOK(ecode5)) {
10942 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10943 }
10944 arg5 = static_cast< int >(val5);
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10948 wxPyEndAllowThreads(__tstate);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 }
10951 {
10952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10953 }
10954 return resultobj;
10955fail:
10956 return NULL;
10957}
10958
10959
10960SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10961 PyObject *resultobj = 0;
10962 wxRegion *arg1 = (wxRegion *) 0 ;
10963 wxRect *arg2 = 0 ;
10964 bool result;
10965 void *argp1 = 0 ;
10966 int res1 = 0 ;
10967 wxRect temp2 ;
10968 PyObject * obj0 = 0 ;
10969 PyObject * obj1 = 0 ;
10970 char * kwnames[] = {
10971 (char *) "self",(char *) "rect", NULL
10972 };
10973
10974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10976 if (!SWIG_IsOK(res1)) {
10977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10978 }
10979 arg1 = reinterpret_cast< wxRegion * >(argp1);
10980 {
10981 arg2 = &temp2;
10982 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10983 }
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10987 wxPyEndAllowThreads(__tstate);
10988 if (PyErr_Occurred()) SWIG_fail;
10989 }
10990 {
10991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10992 }
10993 return resultobj;
10994fail:
10995 return NULL;
10996}
10997
10998
10999SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11000 PyObject *resultobj = 0;
11001 wxRegion *arg1 = (wxRegion *) 0 ;
11002 wxRegion *arg2 = 0 ;
11003 bool result;
11004 void *argp1 = 0 ;
11005 int res1 = 0 ;
11006 void *argp2 = 0 ;
11007 int res2 = 0 ;
11008 PyObject * obj0 = 0 ;
11009 PyObject * obj1 = 0 ;
11010 char * kwnames[] = {
11011 (char *) "self",(char *) "region", NULL
11012 };
11013
11014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11016 if (!SWIG_IsOK(res1)) {
11017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11018 }
11019 arg1 = reinterpret_cast< wxRegion * >(argp1);
11020 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11021 if (!SWIG_IsOK(res2)) {
11022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11023 }
11024 if (!argp2) {
11025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11026 }
11027 arg2 = reinterpret_cast< wxRegion * >(argp2);
11028 {
11029 PyThreadState* __tstate = wxPyBeginAllowThreads();
11030 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11031 wxPyEndAllowThreads(__tstate);
11032 if (PyErr_Occurred()) SWIG_fail;
11033 }
11034 {
11035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11036 }
11037 return resultobj;
11038fail:
11039 return NULL;
11040}
11041
11042
11043SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11044 PyObject *resultobj = 0;
11045 wxRegion *arg1 = (wxRegion *) 0 ;
11046 int arg2 ;
11047 int arg3 ;
11048 int arg4 ;
11049 int arg5 ;
11050 bool result;
11051 void *argp1 = 0 ;
11052 int res1 = 0 ;
11053 int val2 ;
11054 int ecode2 = 0 ;
11055 int val3 ;
11056 int ecode3 = 0 ;
11057 int val4 ;
11058 int ecode4 = 0 ;
11059 int val5 ;
11060 int ecode5 = 0 ;
11061 PyObject * obj0 = 0 ;
11062 PyObject * obj1 = 0 ;
11063 PyObject * obj2 = 0 ;
11064 PyObject * obj3 = 0 ;
11065 PyObject * obj4 = 0 ;
11066 char * kwnames[] = {
11067 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11068 };
11069
11070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11072 if (!SWIG_IsOK(res1)) {
11073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11074 }
11075 arg1 = reinterpret_cast< wxRegion * >(argp1);
11076 ecode2 = SWIG_AsVal_int(obj1, &val2);
11077 if (!SWIG_IsOK(ecode2)) {
11078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11079 }
11080 arg2 = static_cast< int >(val2);
11081 ecode3 = SWIG_AsVal_int(obj2, &val3);
11082 if (!SWIG_IsOK(ecode3)) {
11083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11084 }
11085 arg3 = static_cast< int >(val3);
11086 ecode4 = SWIG_AsVal_int(obj3, &val4);
11087 if (!SWIG_IsOK(ecode4)) {
11088 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11089 }
11090 arg4 = static_cast< int >(val4);
11091 ecode5 = SWIG_AsVal_int(obj4, &val5);
11092 if (!SWIG_IsOK(ecode5)) {
11093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11094 }
11095 arg5 = static_cast< int >(val5);
11096 {
11097 PyThreadState* __tstate = wxPyBeginAllowThreads();
11098 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11099 wxPyEndAllowThreads(__tstate);
11100 if (PyErr_Occurred()) SWIG_fail;
11101 }
11102 {
11103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11104 }
11105 return resultobj;
11106fail:
11107 return NULL;
11108}
11109
11110
11111SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11112 PyObject *resultobj = 0;
11113 wxRegion *arg1 = (wxRegion *) 0 ;
11114 wxRect *arg2 = 0 ;
11115 bool result;
11116 void *argp1 = 0 ;
11117 int res1 = 0 ;
11118 wxRect temp2 ;
11119 PyObject * obj0 = 0 ;
11120 PyObject * obj1 = 0 ;
11121 char * kwnames[] = {
11122 (char *) "self",(char *) "rect", NULL
11123 };
11124
11125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11127 if (!SWIG_IsOK(res1)) {
11128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11129 }
11130 arg1 = reinterpret_cast< wxRegion * >(argp1);
11131 {
11132 arg2 = &temp2;
11133 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11134 }
11135 {
11136 PyThreadState* __tstate = wxPyBeginAllowThreads();
11137 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11138 wxPyEndAllowThreads(__tstate);
11139 if (PyErr_Occurred()) SWIG_fail;
11140 }
11141 {
11142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11143 }
11144 return resultobj;
11145fail:
11146 return NULL;
11147}
11148
11149
11150SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11151 PyObject *resultobj = 0;
11152 wxRegion *arg1 = (wxRegion *) 0 ;
11153 wxRegion *arg2 = 0 ;
11154 bool result;
11155 void *argp1 = 0 ;
11156 int res1 = 0 ;
11157 void *argp2 = 0 ;
11158 int res2 = 0 ;
11159 PyObject * obj0 = 0 ;
11160 PyObject * obj1 = 0 ;
11161 char * kwnames[] = {
11162 (char *) "self",(char *) "region", NULL
11163 };
11164
11165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11167 if (!SWIG_IsOK(res1)) {
11168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11169 }
11170 arg1 = reinterpret_cast< wxRegion * >(argp1);
11171 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11172 if (!SWIG_IsOK(res2)) {
11173 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11174 }
11175 if (!argp2) {
11176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11177 }
11178 arg2 = reinterpret_cast< wxRegion * >(argp2);
11179 {
11180 PyThreadState* __tstate = wxPyBeginAllowThreads();
11181 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11182 wxPyEndAllowThreads(__tstate);
11183 if (PyErr_Occurred()) SWIG_fail;
11184 }
11185 {
11186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11187 }
11188 return resultobj;
11189fail:
11190 return NULL;
11191}
11192
11193
11194SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11195 PyObject *resultobj = 0;
11196 wxRegion *arg1 = (wxRegion *) 0 ;
11197 int arg2 ;
11198 int arg3 ;
11199 int arg4 ;
11200 int arg5 ;
11201 bool result;
11202 void *argp1 = 0 ;
11203 int res1 = 0 ;
11204 int val2 ;
11205 int ecode2 = 0 ;
11206 int val3 ;
11207 int ecode3 = 0 ;
11208 int val4 ;
11209 int ecode4 = 0 ;
11210 int val5 ;
11211 int ecode5 = 0 ;
11212 PyObject * obj0 = 0 ;
11213 PyObject * obj1 = 0 ;
11214 PyObject * obj2 = 0 ;
11215 PyObject * obj3 = 0 ;
11216 PyObject * obj4 = 0 ;
11217 char * kwnames[] = {
11218 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11219 };
11220
11221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11223 if (!SWIG_IsOK(res1)) {
11224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11225 }
11226 arg1 = reinterpret_cast< wxRegion * >(argp1);
11227 ecode2 = SWIG_AsVal_int(obj1, &val2);
11228 if (!SWIG_IsOK(ecode2)) {
11229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11230 }
11231 arg2 = static_cast< int >(val2);
11232 ecode3 = SWIG_AsVal_int(obj2, &val3);
11233 if (!SWIG_IsOK(ecode3)) {
11234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11235 }
11236 arg3 = static_cast< int >(val3);
11237 ecode4 = SWIG_AsVal_int(obj3, &val4);
11238 if (!SWIG_IsOK(ecode4)) {
11239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11240 }
11241 arg4 = static_cast< int >(val4);
11242 ecode5 = SWIG_AsVal_int(obj4, &val5);
11243 if (!SWIG_IsOK(ecode5)) {
11244 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11245 }
11246 arg5 = static_cast< int >(val5);
11247 {
11248 PyThreadState* __tstate = wxPyBeginAllowThreads();
11249 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11250 wxPyEndAllowThreads(__tstate);
11251 if (PyErr_Occurred()) SWIG_fail;
11252 }
11253 {
11254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11255 }
11256 return resultobj;
11257fail:
11258 return NULL;
11259}
11260
11261
11262SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11263 PyObject *resultobj = 0;
11264 wxRegion *arg1 = (wxRegion *) 0 ;
11265 wxRect *arg2 = 0 ;
11266 bool result;
11267 void *argp1 = 0 ;
11268 int res1 = 0 ;
11269 wxRect temp2 ;
11270 PyObject * obj0 = 0 ;
11271 PyObject * obj1 = 0 ;
11272 char * kwnames[] = {
11273 (char *) "self",(char *) "rect", NULL
11274 };
11275
11276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11278 if (!SWIG_IsOK(res1)) {
11279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11280 }
11281 arg1 = reinterpret_cast< wxRegion * >(argp1);
11282 {
11283 arg2 = &temp2;
11284 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11285 }
11286 {
11287 PyThreadState* __tstate = wxPyBeginAllowThreads();
11288 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 {
11293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11294 }
11295 return resultobj;
11296fail:
11297 return NULL;
11298}
11299
11300
11301SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11302 PyObject *resultobj = 0;
11303 wxRegion *arg1 = (wxRegion *) 0 ;
11304 wxRegion *arg2 = 0 ;
11305 bool result;
11306 void *argp1 = 0 ;
11307 int res1 = 0 ;
11308 void *argp2 = 0 ;
11309 int res2 = 0 ;
11310 PyObject * obj0 = 0 ;
11311 PyObject * obj1 = 0 ;
11312 char * kwnames[] = {
11313 (char *) "self",(char *) "region", NULL
11314 };
11315
11316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11318 if (!SWIG_IsOK(res1)) {
11319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11320 }
11321 arg1 = reinterpret_cast< wxRegion * >(argp1);
11322 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11323 if (!SWIG_IsOK(res2)) {
11324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11325 }
11326 if (!argp2) {
11327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11328 }
11329 arg2 = reinterpret_cast< wxRegion * >(argp2);
11330 {
11331 PyThreadState* __tstate = wxPyBeginAllowThreads();
11332 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11333 wxPyEndAllowThreads(__tstate);
11334 if (PyErr_Occurred()) SWIG_fail;
11335 }
11336 {
11337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11338 }
11339 return resultobj;
11340fail:
11341 return NULL;
d55e5bfc
RD
11342}
11343
11344
1bd55598
RD
11345SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11346 PyObject *resultobj = 0;
11347 wxRegion *arg1 = (wxRegion *) 0 ;
11348 SwigValueWrapper<wxBitmap > result;
11349 void *argp1 = 0 ;
11350 int res1 = 0 ;
11351 PyObject *swig_obj[1] ;
11352
11353 if (!args) SWIG_fail;
11354 swig_obj[0] = args;
11355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11356 if (!SWIG_IsOK(res1)) {
11357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11358 }
11359 arg1 = reinterpret_cast< wxRegion * >(argp1);
11360 {
11361 PyThreadState* __tstate = wxPyBeginAllowThreads();
11362 result = (arg1)->ConvertToBitmap();
11363 wxPyEndAllowThreads(__tstate);
11364 if (PyErr_Occurred()) SWIG_fail;
11365 }
11366 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11367 return resultobj;
11368fail:
11369 return NULL;
11370}
11371
11372
11373SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11374 PyObject *resultobj = 0;
11375 wxRegion *arg1 = (wxRegion *) 0 ;
11376 wxBitmap *arg2 = 0 ;
11377 bool result;
11378 void *argp1 = 0 ;
11379 int res1 = 0 ;
11380 void *argp2 = 0 ;
11381 int res2 = 0 ;
11382 PyObject * obj0 = 0 ;
11383 PyObject * obj1 = 0 ;
11384 char * kwnames[] = {
11385 (char *) "self",(char *) "bmp", NULL
11386 };
11387
11388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11390 if (!SWIG_IsOK(res1)) {
11391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11392 }
11393 arg1 = reinterpret_cast< wxRegion * >(argp1);
11394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11395 if (!SWIG_IsOK(res2)) {
11396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11397 }
11398 if (!argp2) {
11399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11400 }
11401 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11402 {
11403 PyThreadState* __tstate = wxPyBeginAllowThreads();
11404 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11405 wxPyEndAllowThreads(__tstate);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 {
11409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11410 }
11411 return resultobj;
11412fail:
11413 return NULL;
11414}
11415
11416
11417SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11418 PyObject *resultobj = 0;
11419 wxRegion *arg1 = (wxRegion *) 0 ;
11420 wxBitmap *arg2 = 0 ;
11421 wxColour *arg3 = 0 ;
11422 int arg4 = (int) 0 ;
11423 bool result;
11424 void *argp1 = 0 ;
11425 int res1 = 0 ;
11426 void *argp2 = 0 ;
11427 int res2 = 0 ;
11428 wxColour temp3 ;
11429 int val4 ;
11430 int ecode4 = 0 ;
11431 PyObject * obj0 = 0 ;
11432 PyObject * obj1 = 0 ;
11433 PyObject * obj2 = 0 ;
11434 PyObject * obj3 = 0 ;
11435 char * kwnames[] = {
11436 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11437 };
11438
11439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11441 if (!SWIG_IsOK(res1)) {
11442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11443 }
11444 arg1 = reinterpret_cast< wxRegion * >(argp1);
11445 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11446 if (!SWIG_IsOK(res2)) {
11447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11448 }
11449 if (!argp2) {
11450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11451 }
11452 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11453 {
11454 arg3 = &temp3;
11455 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11456 }
11457 if (obj3) {
11458 ecode4 = SWIG_AsVal_int(obj3, &val4);
11459 if (!SWIG_IsOK(ecode4)) {
11460 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11461 }
11462 arg4 = static_cast< int >(val4);
11463 }
11464 {
11465 PyThreadState* __tstate = wxPyBeginAllowThreads();
11466 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11467 wxPyEndAllowThreads(__tstate);
11468 if (PyErr_Occurred()) SWIG_fail;
11469 }
11470 {
11471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11472 }
11473 return resultobj;
11474fail:
11475 return NULL;
d55e5bfc
RD
11476}
11477
11478
1bd55598
RD
11479SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11480 PyObject *obj;
11481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11482 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11483 return SWIG_Py_Void();
d55e5bfc
RD
11484}
11485
1bd55598
RD
11486SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11487 return SWIG_Python_InitShadowInstance(args);
11488}
d55e5bfc 11489
1bd55598
RD
11490SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11491 PyObject *resultobj = 0;
11492 wxRegion *arg1 = 0 ;
11493 wxRegionIterator *result = 0 ;
11494 void *argp1 = 0 ;
11495 int res1 = 0 ;
11496 PyObject * obj0 = 0 ;
11497 char * kwnames[] = {
11498 (char *) "region", NULL
11499 };
11500
11501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11502 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11503 if (!SWIG_IsOK(res1)) {
11504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11505 }
11506 if (!argp1) {
11507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11508 }
11509 arg1 = reinterpret_cast< wxRegion * >(argp1);
11510 {
11511 if (!wxPyCheckForApp()) SWIG_fail;
11512 PyThreadState* __tstate = wxPyBeginAllowThreads();
11513 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11514 wxPyEndAllowThreads(__tstate);
11515 if (PyErr_Occurred()) SWIG_fail;
11516 }
11517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11518 return resultobj;
11519fail:
11520 return NULL;
d55e5bfc
RD
11521}
11522
11523
1bd55598
RD
11524SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11525 PyObject *resultobj = 0;
11526 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11527 void *argp1 = 0 ;
11528 int res1 = 0 ;
11529 PyObject *swig_obj[1] ;
11530
11531 if (!args) SWIG_fail;
11532 swig_obj[0] = args;
11533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11534 if (!SWIG_IsOK(res1)) {
11535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11536 }
11537 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11538 {
11539 PyThreadState* __tstate = wxPyBeginAllowThreads();
11540 delete arg1;
d55e5bfc 11541
1bd55598
RD
11542 wxPyEndAllowThreads(__tstate);
11543 if (PyErr_Occurred()) SWIG_fail;
11544 }
11545 resultobj = SWIG_Py_Void();
11546 return resultobj;
11547fail:
11548 return NULL;
d55e5bfc
RD
11549}
11550
11551
1bd55598
RD
11552SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11553 PyObject *resultobj = 0;
11554 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11555 int result;
11556 void *argp1 = 0 ;
11557 int res1 = 0 ;
11558 PyObject *swig_obj[1] ;
11559
11560 if (!args) SWIG_fail;
11561 swig_obj[0] = args;
11562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11563 if (!SWIG_IsOK(res1)) {
11564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11565 }
11566 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11567 {
11568 PyThreadState* __tstate = wxPyBeginAllowThreads();
11569 result = (int)(arg1)->GetX();
11570 wxPyEndAllowThreads(__tstate);
11571 if (PyErr_Occurred()) SWIG_fail;
11572 }
11573 resultobj = SWIG_From_int(static_cast< int >(result));
11574 return resultobj;
11575fail:
11576 return NULL;
d55e5bfc
RD
11577}
11578
11579
1bd55598
RD
11580SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11581 PyObject *resultobj = 0;
11582 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11583 int result;
11584 void *argp1 = 0 ;
11585 int res1 = 0 ;
11586 PyObject *swig_obj[1] ;
11587
11588 if (!args) SWIG_fail;
11589 swig_obj[0] = args;
11590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11591 if (!SWIG_IsOK(res1)) {
11592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11593 }
11594 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11595 {
11596 PyThreadState* __tstate = wxPyBeginAllowThreads();
11597 result = (int)(arg1)->GetY();
11598 wxPyEndAllowThreads(__tstate);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 resultobj = SWIG_From_int(static_cast< int >(result));
11602 return resultobj;
11603fail:
11604 return NULL;
d55e5bfc
RD
11605}
11606
11607
1bd55598
RD
11608SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11609 PyObject *resultobj = 0;
11610 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11611 int result;
11612 void *argp1 = 0 ;
11613 int res1 = 0 ;
11614 PyObject *swig_obj[1] ;
11615
11616 if (!args) SWIG_fail;
11617 swig_obj[0] = args;
11618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11619 if (!SWIG_IsOK(res1)) {
11620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11621 }
11622 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11623 {
11624 PyThreadState* __tstate = wxPyBeginAllowThreads();
11625 result = (int)(arg1)->GetW();
11626 wxPyEndAllowThreads(__tstate);
11627 if (PyErr_Occurred()) SWIG_fail;
11628 }
11629 resultobj = SWIG_From_int(static_cast< int >(result));
11630 return resultobj;
11631fail:
11632 return NULL;
d55e5bfc
RD
11633}
11634
11635
1bd55598
RD
11636SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11637 PyObject *resultobj = 0;
11638 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11639 int result;
11640 void *argp1 = 0 ;
11641 int res1 = 0 ;
11642 PyObject *swig_obj[1] ;
11643
11644 if (!args) SWIG_fail;
11645 swig_obj[0] = args;
11646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11647 if (!SWIG_IsOK(res1)) {
11648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11649 }
11650 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11651 {
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = (int)(arg1)->GetWidth();
11654 wxPyEndAllowThreads(__tstate);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 resultobj = SWIG_From_int(static_cast< int >(result));
11658 return resultobj;
11659fail:
11660 return NULL;
d55e5bfc
RD
11661}
11662
11663
1bd55598
RD
11664SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11665 PyObject *resultobj = 0;
11666 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11667 int result;
11668 void *argp1 = 0 ;
11669 int res1 = 0 ;
11670 PyObject *swig_obj[1] ;
11671
11672 if (!args) SWIG_fail;
11673 swig_obj[0] = args;
11674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11675 if (!SWIG_IsOK(res1)) {
11676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11677 }
11678 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11679 {
11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
11681 result = (int)(arg1)->GetH();
11682 wxPyEndAllowThreads(__tstate);
11683 if (PyErr_Occurred()) SWIG_fail;
11684 }
11685 resultobj = SWIG_From_int(static_cast< int >(result));
11686 return resultobj;
11687fail:
11688 return NULL;
d07096ad
RD
11689}
11690
11691
1bd55598
RD
11692SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11693 PyObject *resultobj = 0;
11694 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11695 int result;
11696 void *argp1 = 0 ;
11697 int res1 = 0 ;
11698 PyObject *swig_obj[1] ;
11699
11700 if (!args) SWIG_fail;
11701 swig_obj[0] = args;
11702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11703 if (!SWIG_IsOK(res1)) {
11704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11705 }
11706 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11707 {
11708 PyThreadState* __tstate = wxPyBeginAllowThreads();
11709 result = (int)(arg1)->GetHeight();
11710 wxPyEndAllowThreads(__tstate);
11711 if (PyErr_Occurred()) SWIG_fail;
11712 }
11713 resultobj = SWIG_From_int(static_cast< int >(result));
11714 return resultobj;
11715fail:
11716 return NULL;
d55e5bfc
RD
11717}
11718
11719
1bd55598
RD
11720SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11721 PyObject *resultobj = 0;
11722 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11723 wxRect result;
11724 void *argp1 = 0 ;
11725 int res1 = 0 ;
11726 PyObject *swig_obj[1] ;
11727
11728 if (!args) SWIG_fail;
11729 swig_obj[0] = args;
11730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11731 if (!SWIG_IsOK(res1)) {
11732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11733 }
11734 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11735 {
11736 PyThreadState* __tstate = wxPyBeginAllowThreads();
11737 result = (arg1)->GetRect();
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11742 return resultobj;
11743fail:
11744 return NULL;
d55e5bfc
RD
11745}
11746
11747
1bd55598
RD
11748SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11749 PyObject *resultobj = 0;
11750 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11751 bool result;
11752 void *argp1 = 0 ;
11753 int res1 = 0 ;
11754 PyObject *swig_obj[1] ;
11755
11756 if (!args) SWIG_fail;
11757 swig_obj[0] = args;
11758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11759 if (!SWIG_IsOK(res1)) {
11760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11761 }
11762 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11763 {
11764 PyThreadState* __tstate = wxPyBeginAllowThreads();
11765 result = (bool)(arg1)->HaveRects();
11766 wxPyEndAllowThreads(__tstate);
11767 if (PyErr_Occurred()) SWIG_fail;
11768 }
11769 {
11770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11771 }
11772 return resultobj;
11773fail:
11774 return NULL;
d55e5bfc
RD
11775}
11776
11777
1bd55598
RD
11778SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11779 PyObject *resultobj = 0;
11780 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11781 void *argp1 = 0 ;
11782 int res1 = 0 ;
11783 PyObject *swig_obj[1] ;
11784
11785 if (!args) SWIG_fail;
11786 swig_obj[0] = args;
11787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11788 if (!SWIG_IsOK(res1)) {
11789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11790 }
11791 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11792 {
11793 PyThreadState* __tstate = wxPyBeginAllowThreads();
11794 (arg1)->Reset();
11795 wxPyEndAllowThreads(__tstate);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 resultobj = SWIG_Py_Void();
11799 return resultobj;
11800fail:
11801 return NULL;
d55e5bfc
RD
11802}
11803
11804
1bd55598
RD
11805SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11806 PyObject *resultobj = 0;
11807 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11808 void *argp1 = 0 ;
11809 int res1 = 0 ;
11810 PyObject *swig_obj[1] ;
11811
11812 if (!args) SWIG_fail;
11813 swig_obj[0] = args;
11814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11815 if (!SWIG_IsOK(res1)) {
11816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11817 }
11818 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11819 {
11820 PyThreadState* __tstate = wxPyBeginAllowThreads();
11821 wxRegionIterator_Next(arg1);
11822 wxPyEndAllowThreads(__tstate);
11823 if (PyErr_Occurred()) SWIG_fail;
11824 }
11825 resultobj = SWIG_Py_Void();
11826 return resultobj;
11827fail:
11828 return NULL;
070c48b4
RD
11829}
11830
11831
1bd55598
RD
11832SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11833 PyObject *resultobj = 0;
11834 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11835 bool result;
11836 void *argp1 = 0 ;
11837 int res1 = 0 ;
11838 PyObject *swig_obj[1] ;
11839
11840 if (!args) SWIG_fail;
11841 swig_obj[0] = args;
11842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11843 if (!SWIG_IsOK(res1)) {
11844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11845 }
11846 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 result = (bool)wxRegionIterator___nonzero__(arg1);
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 {
11854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11855 }
11856 return resultobj;
11857fail:
11858 return NULL;
d55e5bfc
RD
11859}
11860
11861
1bd55598
RD
11862SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11863 PyObject *obj;
11864 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11865 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11866 return SWIG_Py_Void();
d55e5bfc
RD
11867}
11868
1bd55598
RD
11869SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11870 return SWIG_Python_InitShadowInstance(args);
11871}
d55e5bfc 11872
1bd55598
RD
11873SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11874 PyObject *resultobj = 0;
11875 wxNativeFontInfo *result = 0 ;
11876
11877 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11878 {
11879 PyThreadState* __tstate = wxPyBeginAllowThreads();
11880 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11881 wxPyEndAllowThreads(__tstate);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 }
11884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11885 return resultobj;
11886fail:
11887 return NULL;
d55e5bfc
RD
11888}
11889
11890
1bd55598
RD
11891SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11892 PyObject *resultobj = 0;
11893 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
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_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11901 if (!SWIG_IsOK(res1)) {
11902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11903 }
11904 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11905 {
11906 PyThreadState* __tstate = wxPyBeginAllowThreads();
11907 delete arg1;
d55e5bfc 11908
1bd55598
RD
11909 wxPyEndAllowThreads(__tstate);
11910 if (PyErr_Occurred()) SWIG_fail;
11911 }
11912 resultobj = SWIG_Py_Void();
11913 return resultobj;
11914fail:
11915 return NULL;
d55e5bfc
RD
11916}
11917
11918
1bd55598
RD
11919SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11920 PyObject *resultobj = 0;
11921 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11922 void *argp1 = 0 ;
11923 int res1 = 0 ;
11924 PyObject *swig_obj[1] ;
11925
11926 if (!args) SWIG_fail;
11927 swig_obj[0] = args;
11928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11929 if (!SWIG_IsOK(res1)) {
11930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11931 }
11932 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11933 {
11934 PyThreadState* __tstate = wxPyBeginAllowThreads();
11935 (arg1)->Init();
11936 wxPyEndAllowThreads(__tstate);
11937 if (PyErr_Occurred()) SWIG_fail;
11938 }
11939 resultobj = SWIG_Py_Void();
11940 return resultobj;
11941fail:
11942 return NULL;
11943}
11944
11945
11946SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11947 PyObject *resultobj = 0;
11948 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11949 wxFont *arg2 = 0 ;
11950 void *argp1 = 0 ;
11951 int res1 = 0 ;
11952 void *argp2 = 0 ;
11953 int res2 = 0 ;
11954 PyObject * obj0 = 0 ;
11955 PyObject * obj1 = 0 ;
11956 char * kwnames[] = {
11957 (char *) "self",(char *) "font", NULL
11958 };
11959
11960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11962 if (!SWIG_IsOK(res1)) {
11963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11964 }
11965 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11966 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11967 if (!SWIG_IsOK(res2)) {
11968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11969 }
11970 if (!argp2) {
11971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11972 }
11973 arg2 = reinterpret_cast< wxFont * >(argp2);
11974 {
11975 PyThreadState* __tstate = wxPyBeginAllowThreads();
11976 (arg1)->InitFromFont((wxFont const &)*arg2);
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 resultobj = SWIG_Py_Void();
11981 return resultobj;
11982fail:
11983 return NULL;
d55e5bfc
RD
11984}
11985
11986
1bd55598
RD
11987SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11988 PyObject *resultobj = 0;
11989 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11990 int result;
11991 void *argp1 = 0 ;
11992 int res1 = 0 ;
11993 PyObject *swig_obj[1] ;
11994
11995 if (!args) SWIG_fail;
11996 swig_obj[0] = args;
11997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11998 if (!SWIG_IsOK(res1)) {
11999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12000 }
12001 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 resultobj = SWIG_From_int(static_cast< int >(result));
12009 return resultobj;
12010fail:
12011 return NULL;
d55e5bfc
RD
12012}
12013
12014
1bd55598
RD
12015SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12016 PyObject *resultobj = 0;
12017 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12018 wxFontStyle result;
12019 void *argp1 = 0 ;
12020 int res1 = 0 ;
12021 PyObject *swig_obj[1] ;
12022
12023 if (!args) SWIG_fail;
12024 swig_obj[0] = args;
12025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12026 if (!SWIG_IsOK(res1)) {
12027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12028 }
12029 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12030 {
12031 PyThreadState* __tstate = wxPyBeginAllowThreads();
12032 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12033 wxPyEndAllowThreads(__tstate);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 }
12036 resultobj = SWIG_From_int(static_cast< int >(result));
12037 return resultobj;
12038fail:
12039 return NULL;
d55e5bfc
RD
12040}
12041
12042
1bd55598
RD
12043SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12044 PyObject *resultobj = 0;
12045 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12046 wxFontWeight result;
12047 void *argp1 = 0 ;
12048 int res1 = 0 ;
12049 PyObject *swig_obj[1] ;
12050
12051 if (!args) SWIG_fail;
12052 swig_obj[0] = args;
12053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12054 if (!SWIG_IsOK(res1)) {
12055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12056 }
12057 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12058 {
12059 PyThreadState* __tstate = wxPyBeginAllowThreads();
12060 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12061 wxPyEndAllowThreads(__tstate);
12062 if (PyErr_Occurred()) SWIG_fail;
12063 }
12064 resultobj = SWIG_From_int(static_cast< int >(result));
12065 return resultobj;
12066fail:
12067 return NULL;
d55e5bfc
RD
12068}
12069
12070
1bd55598
RD
12071SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12072 PyObject *resultobj = 0;
12073 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12074 bool result;
12075 void *argp1 = 0 ;
12076 int res1 = 0 ;
12077 PyObject *swig_obj[1] ;
12078
12079 if (!args) SWIG_fail;
12080 swig_obj[0] = args;
12081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12082 if (!SWIG_IsOK(res1)) {
12083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12084 }
12085 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12086 {
12087 PyThreadState* __tstate = wxPyBeginAllowThreads();
12088 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 {
12093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12094 }
12095 return resultobj;
12096fail:
12097 return NULL;
d55e5bfc
RD
12098}
12099
12100
1bd55598
RD
12101SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12102 PyObject *resultobj = 0;
12103 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12104 wxString result;
12105 void *argp1 = 0 ;
12106 int res1 = 0 ;
12107 PyObject *swig_obj[1] ;
12108
12109 if (!args) SWIG_fail;
12110 swig_obj[0] = args;
12111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12112 if (!SWIG_IsOK(res1)) {
12113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12114 }
12115 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 {
12123#if wxUSE_UNICODE
12124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12125#else
12126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12127#endif
12128 }
12129 return resultobj;
12130fail:
12131 return NULL;
d55e5bfc
RD
12132}
12133
12134
1bd55598
RD
12135SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12136 PyObject *resultobj = 0;
12137 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12138 wxFontFamily result;
12139 void *argp1 = 0 ;
12140 int res1 = 0 ;
12141 PyObject *swig_obj[1] ;
12142
12143 if (!args) SWIG_fail;
12144 swig_obj[0] = args;
12145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12146 if (!SWIG_IsOK(res1)) {
12147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12148 }
12149 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12150 {
12151 PyThreadState* __tstate = wxPyBeginAllowThreads();
12152 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12153 wxPyEndAllowThreads(__tstate);
12154 if (PyErr_Occurred()) SWIG_fail;
12155 }
12156 resultobj = SWIG_From_int(static_cast< int >(result));
12157 return resultobj;
12158fail:
12159 return NULL;
d55e5bfc
RD
12160}
12161
12162
1bd55598
RD
12163SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12164 PyObject *resultobj = 0;
12165 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12166 wxFontEncoding result;
12167 void *argp1 = 0 ;
12168 int res1 = 0 ;
12169 PyObject *swig_obj[1] ;
12170
12171 if (!args) SWIG_fail;
12172 swig_obj[0] = args;
12173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12174 if (!SWIG_IsOK(res1)) {
12175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12176 }
12177 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 resultobj = SWIG_From_int(static_cast< int >(result));
12185 return resultobj;
12186fail:
12187 return NULL;
12188}
12189
12190
12191SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12192 PyObject *resultobj = 0;
12193 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12194 int arg2 ;
12195 void *argp1 = 0 ;
12196 int res1 = 0 ;
12197 int val2 ;
12198 int ecode2 = 0 ;
12199 PyObject * obj0 = 0 ;
12200 PyObject * obj1 = 0 ;
12201 char * kwnames[] = {
12202 (char *) "self",(char *) "pointsize", NULL
12203 };
12204
12205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12207 if (!SWIG_IsOK(res1)) {
12208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12209 }
12210 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12211 ecode2 = SWIG_AsVal_int(obj1, &val2);
12212 if (!SWIG_IsOK(ecode2)) {
12213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12214 }
12215 arg2 = static_cast< int >(val2);
12216 {
12217 PyThreadState* __tstate = wxPyBeginAllowThreads();
12218 (arg1)->SetPointSize(arg2);
12219 wxPyEndAllowThreads(__tstate);
12220 if (PyErr_Occurred()) SWIG_fail;
12221 }
12222 resultobj = SWIG_Py_Void();
12223 return resultobj;
12224fail:
12225 return NULL;
12226}
12227
12228
12229SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12230 PyObject *resultobj = 0;
12231 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12232 wxFontStyle arg2 ;
12233 void *argp1 = 0 ;
12234 int res1 = 0 ;
12235 int val2 ;
12236 int ecode2 = 0 ;
12237 PyObject * obj0 = 0 ;
12238 PyObject * obj1 = 0 ;
12239 char * kwnames[] = {
12240 (char *) "self",(char *) "style", NULL
12241 };
12242
12243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12245 if (!SWIG_IsOK(res1)) {
12246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12247 }
12248 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12249 ecode2 = SWIG_AsVal_int(obj1, &val2);
12250 if (!SWIG_IsOK(ecode2)) {
12251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12252 }
12253 arg2 = static_cast< wxFontStyle >(val2);
12254 {
12255 PyThreadState* __tstate = wxPyBeginAllowThreads();
12256 (arg1)->SetStyle(arg2);
12257 wxPyEndAllowThreads(__tstate);
12258 if (PyErr_Occurred()) SWIG_fail;
12259 }
12260 resultobj = SWIG_Py_Void();
12261 return resultobj;
12262fail:
12263 return NULL;
12264}
12265
12266
12267SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12268 PyObject *resultobj = 0;
12269 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12270 wxFontWeight arg2 ;
12271 void *argp1 = 0 ;
12272 int res1 = 0 ;
12273 int val2 ;
12274 int ecode2 = 0 ;
12275 PyObject * obj0 = 0 ;
12276 PyObject * obj1 = 0 ;
12277 char * kwnames[] = {
12278 (char *) "self",(char *) "weight", NULL
12279 };
12280
12281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12283 if (!SWIG_IsOK(res1)) {
12284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12285 }
12286 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12287 ecode2 = SWIG_AsVal_int(obj1, &val2);
12288 if (!SWIG_IsOK(ecode2)) {
12289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12290 }
12291 arg2 = static_cast< wxFontWeight >(val2);
12292 {
12293 PyThreadState* __tstate = wxPyBeginAllowThreads();
12294 (arg1)->SetWeight(arg2);
12295 wxPyEndAllowThreads(__tstate);
12296 if (PyErr_Occurred()) SWIG_fail;
12297 }
12298 resultobj = SWIG_Py_Void();
12299 return resultobj;
12300fail:
12301 return NULL;
12302}
12303
12304
12305SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12306 PyObject *resultobj = 0;
12307 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12308 bool arg2 ;
12309 void *argp1 = 0 ;
12310 int res1 = 0 ;
12311 bool val2 ;
12312 int ecode2 = 0 ;
12313 PyObject * obj0 = 0 ;
12314 PyObject * obj1 = 0 ;
12315 char * kwnames[] = {
12316 (char *) "self",(char *) "underlined", NULL
12317 };
12318
12319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12321 if (!SWIG_IsOK(res1)) {
12322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12323 }
12324 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12325 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12326 if (!SWIG_IsOK(ecode2)) {
12327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12328 }
12329 arg2 = static_cast< bool >(val2);
12330 {
12331 PyThreadState* __tstate = wxPyBeginAllowThreads();
12332 (arg1)->SetUnderlined(arg2);
12333 wxPyEndAllowThreads(__tstate);
12334 if (PyErr_Occurred()) SWIG_fail;
12335 }
12336 resultobj = SWIG_Py_Void();
12337 return resultobj;
12338fail:
12339 return NULL;
12340}
12341
12342
12343SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12344 PyObject *resultobj = 0;
12345 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12346 wxString arg2 ;
704eda0c 12347 bool result;
1bd55598
RD
12348 void *argp1 = 0 ;
12349 int res1 = 0 ;
12350 PyObject * obj0 = 0 ;
12351 PyObject * obj1 = 0 ;
12352 char * kwnames[] = {
12353 (char *) "self",(char *) "facename", NULL
12354 };
12355
12356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12358 if (!SWIG_IsOK(res1)) {
12359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12360 }
12361 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12362 {
12363 wxString* sptr = wxString_in_helper(obj1);
12364 if (sptr == NULL) SWIG_fail;
12365 arg2 = *sptr;
12366 delete sptr;
12367 }
12368 {
12369 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12370 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12371 wxPyEndAllowThreads(__tstate);
12372 if (PyErr_Occurred()) SWIG_fail;
12373 }
704eda0c
RD
12374 {
12375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12376 }
1bd55598
RD
12377 return resultobj;
12378fail:
12379 return NULL;
12380}
12381
12382
12383SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12384 PyObject *resultobj = 0;
12385 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12386 wxFontFamily arg2 ;
12387 void *argp1 = 0 ;
12388 int res1 = 0 ;
12389 int val2 ;
12390 int ecode2 = 0 ;
12391 PyObject * obj0 = 0 ;
12392 PyObject * obj1 = 0 ;
12393 char * kwnames[] = {
12394 (char *) "self",(char *) "family", NULL
12395 };
12396
12397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12399 if (!SWIG_IsOK(res1)) {
12400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12401 }
12402 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12403 ecode2 = SWIG_AsVal_int(obj1, &val2);
12404 if (!SWIG_IsOK(ecode2)) {
12405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12406 }
12407 arg2 = static_cast< wxFontFamily >(val2);
12408 {
12409 PyThreadState* __tstate = wxPyBeginAllowThreads();
12410 (arg1)->SetFamily(arg2);
12411 wxPyEndAllowThreads(__tstate);
12412 if (PyErr_Occurred()) SWIG_fail;
12413 }
12414 resultobj = SWIG_Py_Void();
12415 return resultobj;
12416fail:
12417 return NULL;
12418}
12419
12420
12421SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12422 PyObject *resultobj = 0;
12423 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12424 wxFontEncoding arg2 ;
12425 void *argp1 = 0 ;
12426 int res1 = 0 ;
12427 int val2 ;
12428 int ecode2 = 0 ;
12429 PyObject * obj0 = 0 ;
12430 PyObject * obj1 = 0 ;
12431 char * kwnames[] = {
12432 (char *) "self",(char *) "encoding", NULL
12433 };
12434
12435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12437 if (!SWIG_IsOK(res1)) {
12438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12439 }
12440 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12441 ecode2 = SWIG_AsVal_int(obj1, &val2);
12442 if (!SWIG_IsOK(ecode2)) {
12443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12444 }
12445 arg2 = static_cast< wxFontEncoding >(val2);
12446 {
12447 PyThreadState* __tstate = wxPyBeginAllowThreads();
12448 (arg1)->SetEncoding(arg2);
12449 wxPyEndAllowThreads(__tstate);
12450 if (PyErr_Occurred()) SWIG_fail;
12451 }
12452 resultobj = SWIG_Py_Void();
12453 return resultobj;
12454fail:
12455 return NULL;
12456}
12457
12458
12459SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12460 PyObject *resultobj = 0;
12461 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12462 wxString *arg2 = 0 ;
12463 bool result;
12464 void *argp1 = 0 ;
12465 int res1 = 0 ;
12466 bool temp2 = false ;
12467 PyObject * obj0 = 0 ;
12468 PyObject * obj1 = 0 ;
12469 char * kwnames[] = {
12470 (char *) "self",(char *) "s", NULL
12471 };
12472
12473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12475 if (!SWIG_IsOK(res1)) {
12476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12477 }
12478 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12479 {
12480 arg2 = wxString_in_helper(obj1);
12481 if (arg2 == NULL) SWIG_fail;
12482 temp2 = true;
12483 }
12484 {
12485 PyThreadState* __tstate = wxPyBeginAllowThreads();
12486 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12487 wxPyEndAllowThreads(__tstate);
12488 if (PyErr_Occurred()) SWIG_fail;
12489 }
12490 {
12491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12492 }
12493 {
12494 if (temp2)
12495 delete arg2;
12496 }
12497 return resultobj;
12498fail:
12499 {
12500 if (temp2)
12501 delete arg2;
12502 }
12503 return NULL;
d55e5bfc
RD
12504}
12505
12506
1bd55598
RD
12507SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12508 PyObject *resultobj = 0;
12509 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12510 wxString result;
12511 void *argp1 = 0 ;
12512 int res1 = 0 ;
12513 PyObject *swig_obj[1] ;
12514
12515 if (!args) SWIG_fail;
12516 swig_obj[0] = args;
12517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12518 if (!SWIG_IsOK(res1)) {
12519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12520 }
12521 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12522 {
12523 PyThreadState* __tstate = wxPyBeginAllowThreads();
12524 result = ((wxNativeFontInfo const *)arg1)->ToString();
12525 wxPyEndAllowThreads(__tstate);
12526 if (PyErr_Occurred()) SWIG_fail;
12527 }
12528 {
12529#if wxUSE_UNICODE
12530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12531#else
12532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12533#endif
12534 }
12535 return resultobj;
12536fail:
12537 return NULL;
d55e5bfc
RD
12538}
12539
12540
1bd55598
RD
12541SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12542 PyObject *resultobj = 0;
12543 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12544 wxString result;
12545 void *argp1 = 0 ;
12546 int res1 = 0 ;
12547 PyObject *swig_obj[1] ;
12548
12549 if (!args) SWIG_fail;
12550 swig_obj[0] = args;
12551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12552 if (!SWIG_IsOK(res1)) {
12553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12554 }
12555 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12556 {
12557 PyThreadState* __tstate = wxPyBeginAllowThreads();
12558 result = wxNativeFontInfo___str__(arg1);
12559 wxPyEndAllowThreads(__tstate);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 {
12563#if wxUSE_UNICODE
12564 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12565#else
12566 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12567#endif
12568 }
12569 return resultobj;
12570fail:
12571 return NULL;
12572}
12573
12574
12575SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12576 PyObject *resultobj = 0;
12577 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12578 wxString *arg2 = 0 ;
12579 bool result;
12580 void *argp1 = 0 ;
12581 int res1 = 0 ;
12582 bool temp2 = false ;
12583 PyObject * obj0 = 0 ;
12584 PyObject * obj1 = 0 ;
12585 char * kwnames[] = {
12586 (char *) "self",(char *) "s", NULL
12587 };
12588
12589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12591 if (!SWIG_IsOK(res1)) {
12592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12593 }
12594 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12595 {
12596 arg2 = wxString_in_helper(obj1);
12597 if (arg2 == NULL) SWIG_fail;
12598 temp2 = true;
12599 }
12600 {
12601 PyThreadState* __tstate = wxPyBeginAllowThreads();
12602 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12603 wxPyEndAllowThreads(__tstate);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 {
12607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12608 }
12609 {
12610 if (temp2)
12611 delete arg2;
12612 }
12613 return resultobj;
12614fail:
12615 {
12616 if (temp2)
12617 delete arg2;
12618 }
12619 return NULL;
d55e5bfc
RD
12620}
12621
12622
1bd55598
RD
12623SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12624 PyObject *resultobj = 0;
12625 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12626 wxString result;
12627 void *argp1 = 0 ;
12628 int res1 = 0 ;
12629 PyObject *swig_obj[1] ;
12630
12631 if (!args) SWIG_fail;
12632 swig_obj[0] = args;
12633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12634 if (!SWIG_IsOK(res1)) {
12635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12636 }
12637 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12638 {
12639 PyThreadState* __tstate = wxPyBeginAllowThreads();
12640 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12641 wxPyEndAllowThreads(__tstate);
12642 if (PyErr_Occurred()) SWIG_fail;
12643 }
12644 {
36ed4f51 12645#if wxUSE_UNICODE
1bd55598 12646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12647#else
1bd55598 12648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12649#endif
1bd55598
RD
12650 }
12651 return resultobj;
12652fail:
12653 return NULL;
d55e5bfc
RD
12654}
12655
12656
1bd55598
RD
12657SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12658 PyObject *obj;
12659 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12660 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12661 return SWIG_Py_Void();
d55e5bfc
RD
12662}
12663
1bd55598
RD
12664SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12665 return SWIG_Python_InitShadowInstance(args);
12666}
d55e5bfc 12667
1bd55598
RD
12668SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12669 PyObject *resultobj = 0;
12670 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12671 wxString *arg2 = (wxString *) 0 ;
12672 void *argp1 = 0 ;
12673 int res1 = 0 ;
12674 bool temp2 = false ;
12675 PyObject *swig_obj[2] ;
12676
12677 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12679 if (!SWIG_IsOK(res1)) {
12680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12681 }
12682 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12683 {
12684 arg2 = wxString_in_helper(swig_obj[1]);
12685 if (arg2 == NULL) SWIG_fail;
12686 temp2 = true;
12687 }
12688 if (arg1) (arg1)->facename = *arg2;
12689
12690 resultobj = SWIG_Py_Void();
12691 {
12692 if (temp2)
12693 delete arg2;
12694 }
12695 return resultobj;
12696fail:
12697 {
12698 if (temp2)
12699 delete arg2;
12700 }
12701 return NULL;
d55e5bfc
RD
12702}
12703
12704
1bd55598
RD
12705SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12706 PyObject *resultobj = 0;
12707 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12708 wxString *result = 0 ;
12709 void *argp1 = 0 ;
12710 int res1 = 0 ;
12711 PyObject *swig_obj[1] ;
12712
12713 if (!args) SWIG_fail;
12714 swig_obj[0] = args;
12715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12716 if (!SWIG_IsOK(res1)) {
12717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12718 }
12719 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12720 result = (wxString *)& ((arg1)->facename);
12721 {
12722#if wxUSE_UNICODE
12723 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12724#else
12725 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12726#endif
12727 }
12728 return resultobj;
12729fail:
12730 return NULL;
d55e5bfc
RD
12731}
12732
12733
1bd55598
RD
12734SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12735 PyObject *resultobj = 0;
12736 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12737 wxFontEncoding arg2 ;
12738 void *argp1 = 0 ;
12739 int res1 = 0 ;
12740 int val2 ;
12741 int ecode2 = 0 ;
12742 PyObject *swig_obj[2] ;
12743
12744 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12746 if (!SWIG_IsOK(res1)) {
12747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12748 }
12749 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12750 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12751 if (!SWIG_IsOK(ecode2)) {
12752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12753 }
12754 arg2 = static_cast< wxFontEncoding >(val2);
12755 if (arg1) (arg1)->encoding = arg2;
12756
12757 resultobj = SWIG_Py_Void();
12758 return resultobj;
12759fail:
12760 return NULL;
d55e5bfc
RD
12761}
12762
12763
1bd55598
RD
12764SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12765 PyObject *resultobj = 0;
12766 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12767 wxFontEncoding result;
12768 void *argp1 = 0 ;
12769 int res1 = 0 ;
12770 PyObject *swig_obj[1] ;
12771
12772 if (!args) SWIG_fail;
12773 swig_obj[0] = args;
12774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12775 if (!SWIG_IsOK(res1)) {
12776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12777 }
12778 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12779 result = (wxFontEncoding) ((arg1)->encoding);
12780 resultobj = SWIG_From_int(static_cast< int >(result));
12781 return resultobj;
12782fail:
12783 return NULL;
d07096ad
RD
12784}
12785
12786
1bd55598
RD
12787SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12788 PyObject *resultobj = 0;
12789 wxNativeEncodingInfo *result = 0 ;
12790
12791 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12792 {
12793 PyThreadState* __tstate = wxPyBeginAllowThreads();
12794 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12795 wxPyEndAllowThreads(__tstate);
12796 if (PyErr_Occurred()) SWIG_fail;
12797 }
12798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12799 return resultobj;
12800fail:
12801 return NULL;
d55e5bfc
RD
12802}
12803
12804
1bd55598
RD
12805SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12806 PyObject *resultobj = 0;
12807 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12808 void *argp1 = 0 ;
12809 int res1 = 0 ;
12810 PyObject *swig_obj[1] ;
12811
12812 if (!args) SWIG_fail;
12813 swig_obj[0] = args;
12814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12815 if (!SWIG_IsOK(res1)) {
12816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12817 }
12818 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12819 {
12820 PyThreadState* __tstate = wxPyBeginAllowThreads();
12821 delete arg1;
d55e5bfc 12822
1bd55598
RD
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 resultobj = SWIG_Py_Void();
12827 return resultobj;
12828fail:
12829 return NULL;
12830}
12831
12832
12833SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12834 PyObject *resultobj = 0;
12835 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12836 wxString *arg2 = 0 ;
12837 bool result;
12838 void *argp1 = 0 ;
12839 int res1 = 0 ;
12840 bool temp2 = false ;
12841 PyObject * obj0 = 0 ;
12842 PyObject * obj1 = 0 ;
12843 char * kwnames[] = {
12844 (char *) "self",(char *) "s", NULL
12845 };
12846
12847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12849 if (!SWIG_IsOK(res1)) {
12850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12851 }
12852 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12853 {
12854 arg2 = wxString_in_helper(obj1);
12855 if (arg2 == NULL) SWIG_fail;
12856 temp2 = true;
12857 }
12858 {
12859 PyThreadState* __tstate = wxPyBeginAllowThreads();
12860 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12861 wxPyEndAllowThreads(__tstate);
12862 if (PyErr_Occurred()) SWIG_fail;
12863 }
12864 {
12865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12866 }
12867 {
12868 if (temp2)
12869 delete arg2;
12870 }
12871 return resultobj;
12872fail:
12873 {
12874 if (temp2)
12875 delete arg2;
12876 }
12877 return NULL;
d55e5bfc
RD
12878}
12879
12880
1bd55598
RD
12881SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12882 PyObject *resultobj = 0;
12883 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12884 wxString result;
12885 void *argp1 = 0 ;
12886 int res1 = 0 ;
12887 PyObject *swig_obj[1] ;
12888
12889 if (!args) SWIG_fail;
12890 swig_obj[0] = args;
12891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12892 if (!SWIG_IsOK(res1)) {
12893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12894 }
12895 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12896 {
12897 PyThreadState* __tstate = wxPyBeginAllowThreads();
12898 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12899 wxPyEndAllowThreads(__tstate);
12900 if (PyErr_Occurred()) SWIG_fail;
12901 }
12902 {
12903#if wxUSE_UNICODE
12904 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12905#else
12906 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12907#endif
12908 }
12909 return resultobj;
12910fail:
12911 return NULL;
d55e5bfc
RD
12912}
12913
12914
1bd55598
RD
12915SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12916 PyObject *obj;
12917 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12918 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12919 return SWIG_Py_Void();
d55e5bfc
RD
12920}
12921
1bd55598
RD
12922SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12923 return SWIG_Python_InitShadowInstance(args);
12924}
d55e5bfc 12925
1bd55598
RD
12926SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12927 PyObject *resultobj = 0;
12928 wxFontEncoding arg1 ;
12929 wxNativeEncodingInfo *result = 0 ;
12930 int val1 ;
12931 int ecode1 = 0 ;
12932 PyObject * obj0 = 0 ;
12933 char * kwnames[] = {
12934 (char *) "encoding", NULL
12935 };
12936
12937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12938 ecode1 = SWIG_AsVal_int(obj0, &val1);
12939 if (!SWIG_IsOK(ecode1)) {
12940 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12941 }
12942 arg1 = static_cast< wxFontEncoding >(val1);
12943 {
12944 PyThreadState* __tstate = wxPyBeginAllowThreads();
12945 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12946 wxPyEndAllowThreads(__tstate);
12947 if (PyErr_Occurred()) SWIG_fail;
12948 }
12949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12950 return resultobj;
12951fail:
12952 return NULL;
12953}
12954
12955
12956SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12957 PyObject *resultobj = 0;
12958 wxNativeEncodingInfo *arg1 = 0 ;
12959 bool result;
12960 void *argp1 = 0 ;
12961 int res1 = 0 ;
12962 PyObject * obj0 = 0 ;
12963 char * kwnames[] = {
12964 (char *) "info", NULL
12965 };
12966
12967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12968 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12969 if (!SWIG_IsOK(res1)) {
12970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12971 }
12972 if (!argp1) {
12973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12974 }
12975 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12976 {
12977 PyThreadState* __tstate = wxPyBeginAllowThreads();
12978 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12979 wxPyEndAllowThreads(__tstate);
12980 if (PyErr_Occurred()) SWIG_fail;
12981 }
12982 {
12983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12984 }
12985 return resultobj;
12986fail:
12987 return NULL;
d55e5bfc
RD
12988}
12989
12990
1bd55598
RD
12991SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12992 PyObject *resultobj = 0;
12993 wxFontMapper *result = 0 ;
12994
12995 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12996 {
12997 PyThreadState* __tstate = wxPyBeginAllowThreads();
12998 result = (wxFontMapper *)new wxFontMapper();
12999 wxPyEndAllowThreads(__tstate);
13000 if (PyErr_Occurred()) SWIG_fail;
13001 }
13002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13003 return resultobj;
13004fail:
13005 return NULL;
d55e5bfc
RD
13006}
13007
13008
1bd55598
RD
13009SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13010 PyObject *resultobj = 0;
13011 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13012 void *argp1 = 0 ;
13013 int res1 = 0 ;
13014 PyObject *swig_obj[1] ;
13015
13016 if (!args) SWIG_fail;
13017 swig_obj[0] = args;
13018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13019 if (!SWIG_IsOK(res1)) {
13020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13021 }
13022 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13023 {
13024 PyThreadState* __tstate = wxPyBeginAllowThreads();
13025 delete arg1;
d55e5bfc 13026
1bd55598
RD
13027 wxPyEndAllowThreads(__tstate);
13028 if (PyErr_Occurred()) SWIG_fail;
13029 }
13030 resultobj = SWIG_Py_Void();
13031 return resultobj;
13032fail:
13033 return NULL;
d55e5bfc
RD
13034}
13035
13036
1bd55598
RD
13037SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13038 PyObject *resultobj = 0;
13039 wxFontMapper *result = 0 ;
13040
13041 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13042 {
13043 PyThreadState* __tstate = wxPyBeginAllowThreads();
13044 result = (wxFontMapper *)wxFontMapper::Get();
13045 wxPyEndAllowThreads(__tstate);
13046 if (PyErr_Occurred()) SWIG_fail;
13047 }
13048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13049 return resultobj;
13050fail:
13051 return NULL;
13052}
13053
13054
13055SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13056 PyObject *resultobj = 0;
13057 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13058 wxFontMapper *result = 0 ;
13059 void *argp1 = 0 ;
13060 int res1 = 0 ;
13061 PyObject * obj0 = 0 ;
13062 char * kwnames[] = {
13063 (char *) "mapper", NULL
13064 };
13065
13066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13068 if (!SWIG_IsOK(res1)) {
13069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13070 }
13071 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13072 {
13073 PyThreadState* __tstate = wxPyBeginAllowThreads();
13074 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13075 wxPyEndAllowThreads(__tstate);
13076 if (PyErr_Occurred()) SWIG_fail;
13077 }
13078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13079 return resultobj;
13080fail:
13081 return NULL;
13082}
13083
13084
13085SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13086 PyObject *resultobj = 0;
13087 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13088 wxString *arg2 = 0 ;
13089 bool arg3 = (bool) true ;
13090 wxFontEncoding result;
13091 void *argp1 = 0 ;
13092 int res1 = 0 ;
13093 bool temp2 = false ;
13094 bool val3 ;
13095 int ecode3 = 0 ;
13096 PyObject * obj0 = 0 ;
13097 PyObject * obj1 = 0 ;
13098 PyObject * obj2 = 0 ;
13099 char * kwnames[] = {
13100 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13101 };
13102
13103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13105 if (!SWIG_IsOK(res1)) {
13106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13107 }
13108 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13109 {
13110 arg2 = wxString_in_helper(obj1);
13111 if (arg2 == NULL) SWIG_fail;
13112 temp2 = true;
13113 }
13114 if (obj2) {
13115 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13116 if (!SWIG_IsOK(ecode3)) {
13117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13118 }
13119 arg3 = static_cast< bool >(val3);
13120 }
13121 {
13122 PyThreadState* __tstate = wxPyBeginAllowThreads();
13123 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 resultobj = SWIG_From_int(static_cast< int >(result));
13128 {
13129 if (temp2)
13130 delete arg2;
13131 }
13132 return resultobj;
13133fail:
13134 {
13135 if (temp2)
13136 delete arg2;
13137 }
13138 return NULL;
d55e5bfc
RD
13139}
13140
13141
1bd55598
RD
13142SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13143 PyObject *resultobj = 0;
13144 size_t result;
13145
13146 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13150 wxPyEndAllowThreads(__tstate);
13151 if (PyErr_Occurred()) SWIG_fail;
13152 }
13153 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13154 return resultobj;
13155fail:
13156 return NULL;
13157}
13158
13159
13160SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13161 PyObject *resultobj = 0;
13162 size_t arg1 ;
13163 wxFontEncoding result;
13164 size_t val1 ;
13165 int ecode1 = 0 ;
13166 PyObject * obj0 = 0 ;
13167 char * kwnames[] = {
13168 (char *) "n", NULL
13169 };
13170
13171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13172 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13173 if (!SWIG_IsOK(ecode1)) {
13174 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13175 }
13176 arg1 = static_cast< size_t >(val1);
13177 {
13178 PyThreadState* __tstate = wxPyBeginAllowThreads();
13179 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13180 wxPyEndAllowThreads(__tstate);
13181 if (PyErr_Occurred()) SWIG_fail;
13182 }
13183 resultobj = SWIG_From_int(static_cast< int >(result));
13184 return resultobj;
13185fail:
13186 return NULL;
13187}
13188
13189
13190SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13191 PyObject *resultobj = 0;
13192 wxFontEncoding arg1 ;
13193 wxString result;
13194 int val1 ;
13195 int ecode1 = 0 ;
13196 PyObject * obj0 = 0 ;
13197 char * kwnames[] = {
13198 (char *) "encoding", NULL
13199 };
13200
13201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13202 ecode1 = SWIG_AsVal_int(obj0, &val1);
13203 if (!SWIG_IsOK(ecode1)) {
13204 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13205 }
13206 arg1 = static_cast< wxFontEncoding >(val1);
13207 {
13208 PyThreadState* __tstate = wxPyBeginAllowThreads();
13209 result = wxFontMapper::GetEncodingName(arg1);
13210 wxPyEndAllowThreads(__tstate);
13211 if (PyErr_Occurred()) SWIG_fail;
13212 }
13213 {
13214#if wxUSE_UNICODE
13215 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13216#else
13217 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13218#endif
13219 }
13220 return resultobj;
13221fail:
13222 return NULL;
d55e5bfc
RD
13223}
13224
13225
1bd55598
RD
13226SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13227 PyObject *resultobj = 0;
13228 wxFontEncoding arg1 ;
13229 wxString result;
13230 int val1 ;
13231 int ecode1 = 0 ;
13232 PyObject * obj0 = 0 ;
13233 char * kwnames[] = {
13234 (char *) "encoding", NULL
13235 };
13236
13237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13238 ecode1 = SWIG_AsVal_int(obj0, &val1);
13239 if (!SWIG_IsOK(ecode1)) {
13240 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13241 }
13242 arg1 = static_cast< wxFontEncoding >(val1);
13243 {
13244 PyThreadState* __tstate = wxPyBeginAllowThreads();
13245 result = wxFontMapper::GetEncodingDescription(arg1);
13246 wxPyEndAllowThreads(__tstate);
13247 if (PyErr_Occurred()) SWIG_fail;
13248 }
13249 {
13250#if wxUSE_UNICODE
13251 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13252#else
13253 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13254#endif
13255 }
13256 return resultobj;
13257fail:
13258 return NULL;
d55e5bfc
RD
13259}
13260
13261
1bd55598
RD
13262SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13263 PyObject *resultobj = 0;
13264 wxString *arg1 = 0 ;
13265 wxFontEncoding result;
13266 bool temp1 = false ;
13267 PyObject * obj0 = 0 ;
13268 char * kwnames[] = {
13269 (char *) "name", NULL
13270 };
13271
13272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13273 {
13274 arg1 = wxString_in_helper(obj0);
13275 if (arg1 == NULL) SWIG_fail;
13276 temp1 = true;
13277 }
13278 {
13279 PyThreadState* __tstate = wxPyBeginAllowThreads();
13280 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13281 wxPyEndAllowThreads(__tstate);
13282 if (PyErr_Occurred()) SWIG_fail;
13283 }
13284 resultobj = SWIG_From_int(static_cast< int >(result));
13285 {
13286 if (temp1)
13287 delete arg1;
13288 }
13289 return resultobj;
13290fail:
13291 {
13292 if (temp1)
13293 delete arg1;
13294 }
13295 return NULL;
d55e5bfc
RD
13296}
13297
13298
1bd55598
RD
13299SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13300 PyObject *resultobj = 0;
13301 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13302 wxString *arg2 = 0 ;
13303 void *argp1 = 0 ;
13304 int res1 = 0 ;
13305 bool temp2 = false ;
13306 PyObject * obj0 = 0 ;
13307 PyObject * obj1 = 0 ;
13308 char * kwnames[] = {
13309 (char *) "self",(char *) "prefix", NULL
13310 };
13311
13312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13314 if (!SWIG_IsOK(res1)) {
13315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13316 }
13317 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13318 {
13319 arg2 = wxString_in_helper(obj1);
13320 if (arg2 == NULL) SWIG_fail;
13321 temp2 = true;
13322 }
13323 {
13324 PyThreadState* __tstate = wxPyBeginAllowThreads();
13325 (arg1)->SetConfigPath((wxString const &)*arg2);
13326 wxPyEndAllowThreads(__tstate);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 resultobj = SWIG_Py_Void();
13330 {
13331 if (temp2)
13332 delete arg2;
13333 }
13334 return resultobj;
13335fail:
13336 {
13337 if (temp2)
13338 delete arg2;
13339 }
13340 return NULL;
13341}
13342
13343
13344SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13345 PyObject *resultobj = 0;
13346 wxString result;
13347
13348 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13349 {
13350 PyThreadState* __tstate = wxPyBeginAllowThreads();
13351 result = wxFontMapper::GetDefaultConfigPath();
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 {
13356#if wxUSE_UNICODE
13357 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13358#else
13359 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13360#endif
13361 }
13362 return resultobj;
13363fail:
13364 return NULL;
13365}
13366
13367
13368SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13369 PyObject *resultobj = 0;
13370 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13371 wxFontEncoding arg2 ;
13372 wxString const &arg3_defvalue = wxPyEmptyString ;
13373 wxString *arg3 = (wxString *) &arg3_defvalue ;
13374 bool arg4 = (bool) true ;
13375 PyObject *result = 0 ;
13376 void *argp1 = 0 ;
13377 int res1 = 0 ;
13378 int val2 ;
13379 int ecode2 = 0 ;
13380 bool temp3 = false ;
13381 bool val4 ;
13382 int ecode4 = 0 ;
13383 PyObject * obj0 = 0 ;
13384 PyObject * obj1 = 0 ;
13385 PyObject * obj2 = 0 ;
13386 PyObject * obj3 = 0 ;
13387 char * kwnames[] = {
13388 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13389 };
13390
13391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13393 if (!SWIG_IsOK(res1)) {
13394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13395 }
13396 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13397 ecode2 = SWIG_AsVal_int(obj1, &val2);
13398 if (!SWIG_IsOK(ecode2)) {
13399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13400 }
13401 arg2 = static_cast< wxFontEncoding >(val2);
13402 if (obj2) {
36ed4f51 13403 {
1bd55598
RD
13404 arg3 = wxString_in_helper(obj2);
13405 if (arg3 == NULL) SWIG_fail;
13406 temp3 = true;
36ed4f51 13407 }
1bd55598
RD
13408 }
13409 if (obj3) {
13410 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13411 if (!SWIG_IsOK(ecode4)) {
13412 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13413 }
13414 arg4 = static_cast< bool >(val4);
13415 }
13416 {
13417 PyThreadState* __tstate = wxPyBeginAllowThreads();
13418 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13419 wxPyEndAllowThreads(__tstate);
13420 if (PyErr_Occurred()) SWIG_fail;
13421 }
13422 resultobj = result;
13423 {
13424 if (temp3)
13425 delete arg3;
13426 }
13427 return resultobj;
13428fail:
13429 {
13430 if (temp3)
13431 delete arg3;
13432 }
13433 return NULL;
13434}
13435
13436
13437SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13438 PyObject *resultobj = 0;
13439 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13440 wxFontEncoding arg2 ;
13441 wxString const &arg3_defvalue = wxPyEmptyString ;
13442 wxString *arg3 = (wxString *) &arg3_defvalue ;
13443 bool result;
13444 void *argp1 = 0 ;
13445 int res1 = 0 ;
13446 int val2 ;
13447 int ecode2 = 0 ;
13448 bool temp3 = false ;
13449 PyObject * obj0 = 0 ;
13450 PyObject * obj1 = 0 ;
13451 PyObject * obj2 = 0 ;
13452 char * kwnames[] = {
13453 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13454 };
13455
13456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13458 if (!SWIG_IsOK(res1)) {
13459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13460 }
13461 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13462 ecode2 = SWIG_AsVal_int(obj1, &val2);
13463 if (!SWIG_IsOK(ecode2)) {
13464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13465 }
13466 arg2 = static_cast< wxFontEncoding >(val2);
13467 if (obj2) {
36ed4f51 13468 {
1bd55598
RD
13469 arg3 = wxString_in_helper(obj2);
13470 if (arg3 == NULL) SWIG_fail;
13471 temp3 = true;
36ed4f51 13472 }
1bd55598
RD
13473 }
13474 {
13475 PyThreadState* __tstate = wxPyBeginAllowThreads();
13476 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13477 wxPyEndAllowThreads(__tstate);
13478 if (PyErr_Occurred()) SWIG_fail;
13479 }
13480 {
13481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13482 }
13483 {
13484 if (temp3)
13485 delete arg3;
13486 }
13487 return resultobj;
13488fail:
13489 {
13490 if (temp3)
13491 delete arg3;
13492 }
13493 return NULL;
13494}
13495
13496
13497SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13498 PyObject *resultobj = 0;
13499 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13500 wxWindow *arg2 = (wxWindow *) 0 ;
13501 void *argp1 = 0 ;
13502 int res1 = 0 ;
13503 void *argp2 = 0 ;
13504 int res2 = 0 ;
13505 PyObject * obj0 = 0 ;
13506 PyObject * obj1 = 0 ;
13507 char * kwnames[] = {
13508 (char *) "self",(char *) "parent", NULL
13509 };
13510
13511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13513 if (!SWIG_IsOK(res1)) {
13514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13515 }
13516 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13517 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13518 if (!SWIG_IsOK(res2)) {
13519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13520 }
13521 arg2 = reinterpret_cast< wxWindow * >(argp2);
13522 {
13523 PyThreadState* __tstate = wxPyBeginAllowThreads();
13524 (arg1)->SetDialogParent(arg2);
13525 wxPyEndAllowThreads(__tstate);
13526 if (PyErr_Occurred()) SWIG_fail;
13527 }
13528 resultobj = SWIG_Py_Void();
13529 return resultobj;
13530fail:
13531 return NULL;
13532}
13533
13534
13535SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13536 PyObject *resultobj = 0;
13537 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13538 wxString *arg2 = 0 ;
13539 void *argp1 = 0 ;
13540 int res1 = 0 ;
13541 bool temp2 = false ;
13542 PyObject * obj0 = 0 ;
13543 PyObject * obj1 = 0 ;
13544 char * kwnames[] = {
13545 (char *) "self",(char *) "title", NULL
13546 };
13547
13548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13550 if (!SWIG_IsOK(res1)) {
13551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13552 }
13553 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13554 {
13555 arg2 = wxString_in_helper(obj1);
13556 if (arg2 == NULL) SWIG_fail;
13557 temp2 = true;
13558 }
13559 {
13560 PyThreadState* __tstate = wxPyBeginAllowThreads();
13561 (arg1)->SetDialogTitle((wxString const &)*arg2);
13562 wxPyEndAllowThreads(__tstate);
13563 if (PyErr_Occurred()) SWIG_fail;
13564 }
13565 resultobj = SWIG_Py_Void();
13566 {
13567 if (temp2)
13568 delete arg2;
13569 }
13570 return resultobj;
13571fail:
13572 {
13573 if (temp2)
13574 delete arg2;
13575 }
13576 return NULL;
13577}
13578
13579
13580SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13581 PyObject *obj;
13582 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13583 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13584 return SWIG_Py_Void();
13585}
13586
13587SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13588 return SWIG_Python_InitShadowInstance(args);
13589}
13590
13591SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13592 PyObject *resultobj = 0;
13593 int arg1 ;
13594 int arg2 ;
13595 int arg3 ;
13596 int arg4 ;
13597 bool arg5 = (bool) false ;
13598 wxString const &arg6_defvalue = wxPyEmptyString ;
13599 wxString *arg6 = (wxString *) &arg6_defvalue ;
13600 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13601 wxFont *result = 0 ;
13602 int val1 ;
13603 int ecode1 = 0 ;
13604 int val2 ;
13605 int ecode2 = 0 ;
13606 int val3 ;
13607 int ecode3 = 0 ;
13608 int val4 ;
13609 int ecode4 = 0 ;
13610 bool val5 ;
13611 int ecode5 = 0 ;
13612 bool temp6 = false ;
13613 int val7 ;
13614 int ecode7 = 0 ;
13615 PyObject * obj0 = 0 ;
13616 PyObject * obj1 = 0 ;
13617 PyObject * obj2 = 0 ;
13618 PyObject * obj3 = 0 ;
13619 PyObject * obj4 = 0 ;
13620 PyObject * obj5 = 0 ;
13621 PyObject * obj6 = 0 ;
13622 char * kwnames[] = {
13623 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13624 };
13625
13626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13627 ecode1 = SWIG_AsVal_int(obj0, &val1);
13628 if (!SWIG_IsOK(ecode1)) {
13629 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13630 }
13631 arg1 = static_cast< int >(val1);
13632 ecode2 = SWIG_AsVal_int(obj1, &val2);
13633 if (!SWIG_IsOK(ecode2)) {
13634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13635 }
13636 arg2 = static_cast< int >(val2);
13637 ecode3 = SWIG_AsVal_int(obj2, &val3);
13638 if (!SWIG_IsOK(ecode3)) {
13639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13640 }
13641 arg3 = static_cast< int >(val3);
13642 ecode4 = SWIG_AsVal_int(obj3, &val4);
13643 if (!SWIG_IsOK(ecode4)) {
13644 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13645 }
13646 arg4 = static_cast< int >(val4);
13647 if (obj4) {
13648 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13649 if (!SWIG_IsOK(ecode5)) {
13650 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13651 }
13652 arg5 = static_cast< bool >(val5);
13653 }
13654 if (obj5) {
d55e5bfc 13655 {
1bd55598
RD
13656 arg6 = wxString_in_helper(obj5);
13657 if (arg6 == NULL) SWIG_fail;
13658 temp6 = true;
d55e5bfc 13659 }
1bd55598
RD
13660 }
13661 if (obj6) {
13662 ecode7 = SWIG_AsVal_int(obj6, &val7);
13663 if (!SWIG_IsOK(ecode7)) {
13664 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13665 }
13666 arg7 = static_cast< wxFontEncoding >(val7);
13667 }
13668 {
13669 if (!wxPyCheckForApp()) SWIG_fail;
13670 PyThreadState* __tstate = wxPyBeginAllowThreads();
13671 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13672 wxPyEndAllowThreads(__tstate);
13673 if (PyErr_Occurred()) SWIG_fail;
13674 }
13675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13676 {
13677 if (temp6)
13678 delete arg6;
13679 }
13680 return resultobj;
13681fail:
13682 {
13683 if (temp6)
13684 delete arg6;
13685 }
13686 return NULL;
d55e5bfc
RD
13687}
13688
13689
1bd55598
RD
13690SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13691 PyObject *resultobj = 0;
13692 wxFont *arg1 = (wxFont *) 0 ;
13693 void *argp1 = 0 ;
13694 int res1 = 0 ;
13695 PyObject *swig_obj[1] ;
13696
13697 if (!args) SWIG_fail;
13698 swig_obj[0] = args;
13699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13700 if (!SWIG_IsOK(res1)) {
13701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13702 }
13703 arg1 = reinterpret_cast< wxFont * >(argp1);
13704 {
13705 PyThreadState* __tstate = wxPyBeginAllowThreads();
13706 delete arg1;
d55e5bfc 13707
1bd55598
RD
13708 wxPyEndAllowThreads(__tstate);
13709 if (PyErr_Occurred()) SWIG_fail;
13710 }
13711 resultobj = SWIG_Py_Void();
13712 return resultobj;
13713fail:
13714 return NULL;
13715}
13716
13717
13718SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13719 PyObject *resultobj = 0;
13720 wxNativeFontInfo *arg1 = 0 ;
13721 wxFont *result = 0 ;
13722 void *argp1 = 0 ;
13723 int res1 = 0 ;
13724 PyObject * obj0 = 0 ;
13725 char * kwnames[] = {
13726 (char *) "info", NULL
13727 };
13728
13729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13730 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13731 if (!SWIG_IsOK(res1)) {
13732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13733 }
13734 if (!argp1) {
13735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13736 }
13737 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13738 {
13739 if (!wxPyCheckForApp()) SWIG_fail;
13740 PyThreadState* __tstate = wxPyBeginAllowThreads();
13741 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13746 return resultobj;
13747fail:
13748 return NULL;
d55e5bfc
RD
13749}
13750
13751
1bd55598
RD
13752SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13753 PyObject *resultobj = 0;
13754 wxString *arg1 = 0 ;
13755 wxFont *result = 0 ;
13756 bool temp1 = false ;
13757 PyObject * obj0 = 0 ;
13758 char * kwnames[] = {
13759 (char *) "info", NULL
13760 };
13761
13762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13763 {
13764 arg1 = wxString_in_helper(obj0);
13765 if (arg1 == NULL) SWIG_fail;
13766 temp1 = true;
13767 }
13768 {
13769 if (!wxPyCheckForApp()) SWIG_fail;
13770 PyThreadState* __tstate = wxPyBeginAllowThreads();
13771 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13772 wxPyEndAllowThreads(__tstate);
13773 if (PyErr_Occurred()) SWIG_fail;
13774 }
13775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13776 {
13777 if (temp1)
13778 delete arg1;
13779 }
13780 return resultobj;
13781fail:
13782 {
13783 if (temp1)
13784 delete arg1;
13785 }
13786 return NULL;
13787}
13788
13789
13790SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13791 PyObject *resultobj = 0;
13792 int arg1 ;
13793 wxFontFamily arg2 ;
13794 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13795 wxString const &arg4_defvalue = wxPyEmptyString ;
13796 wxString *arg4 = (wxString *) &arg4_defvalue ;
13797 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13798 wxFont *result = 0 ;
13799 int val1 ;
13800 int ecode1 = 0 ;
13801 int val2 ;
13802 int ecode2 = 0 ;
13803 int val3 ;
13804 int ecode3 = 0 ;
13805 bool temp4 = false ;
13806 int val5 ;
13807 int ecode5 = 0 ;
13808 PyObject * obj0 = 0 ;
13809 PyObject * obj1 = 0 ;
13810 PyObject * obj2 = 0 ;
13811 PyObject * obj3 = 0 ;
13812 PyObject * obj4 = 0 ;
13813 char * kwnames[] = {
13814 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13815 };
13816
13817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13818 ecode1 = SWIG_AsVal_int(obj0, &val1);
13819 if (!SWIG_IsOK(ecode1)) {
13820 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13821 }
13822 arg1 = static_cast< int >(val1);
13823 ecode2 = SWIG_AsVal_int(obj1, &val2);
13824 if (!SWIG_IsOK(ecode2)) {
13825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13826 }
13827 arg2 = static_cast< wxFontFamily >(val2);
13828 if (obj2) {
13829 ecode3 = SWIG_AsVal_int(obj2, &val3);
13830 if (!SWIG_IsOK(ecode3)) {
13831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13832 }
13833 arg3 = static_cast< int >(val3);
13834 }
13835 if (obj3) {
36ed4f51 13836 {
1bd55598
RD
13837 arg4 = wxString_in_helper(obj3);
13838 if (arg4 == NULL) SWIG_fail;
13839 temp4 = true;
36ed4f51 13840 }
1bd55598
RD
13841 }
13842 if (obj4) {
13843 ecode5 = SWIG_AsVal_int(obj4, &val5);
13844 if (!SWIG_IsOK(ecode5)) {
13845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13846 }
13847 arg5 = static_cast< wxFontEncoding >(val5);
13848 }
13849 {
13850 if (!wxPyCheckForApp()) SWIG_fail;
13851 PyThreadState* __tstate = wxPyBeginAllowThreads();
13852 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13853 wxPyEndAllowThreads(__tstate);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
13856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13857 {
13858 if (temp4)
13859 delete arg4;
13860 }
13861 return resultobj;
13862fail:
13863 {
13864 if (temp4)
13865 delete arg4;
13866 }
13867 return NULL;
13868}
13869
13870
13871SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13872 PyObject *resultobj = 0;
13873 wxSize *arg1 = 0 ;
13874 int arg2 ;
13875 int arg3 ;
13876 int arg4 ;
13877 bool arg5 = (bool) false ;
13878 wxString const &arg6_defvalue = wxEmptyString ;
13879 wxString *arg6 = (wxString *) &arg6_defvalue ;
13880 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13881 wxFont *result = 0 ;
13882 wxSize temp1 ;
13883 int val2 ;
13884 int ecode2 = 0 ;
13885 int val3 ;
13886 int ecode3 = 0 ;
13887 int val4 ;
13888 int ecode4 = 0 ;
13889 bool val5 ;
13890 int ecode5 = 0 ;
13891 bool temp6 = false ;
13892 int val7 ;
13893 int ecode7 = 0 ;
13894 PyObject * obj0 = 0 ;
13895 PyObject * obj1 = 0 ;
13896 PyObject * obj2 = 0 ;
13897 PyObject * obj3 = 0 ;
13898 PyObject * obj4 = 0 ;
13899 PyObject * obj5 = 0 ;
13900 PyObject * obj6 = 0 ;
13901 char * kwnames[] = {
13902 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13903 };
13904
13905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13906 {
13907 arg1 = &temp1;
13908 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13909 }
13910 ecode2 = SWIG_AsVal_int(obj1, &val2);
13911 if (!SWIG_IsOK(ecode2)) {
13912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13913 }
13914 arg2 = static_cast< int >(val2);
13915 ecode3 = SWIG_AsVal_int(obj2, &val3);
13916 if (!SWIG_IsOK(ecode3)) {
13917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13918 }
13919 arg3 = static_cast< int >(val3);
13920 ecode4 = SWIG_AsVal_int(obj3, &val4);
13921 if (!SWIG_IsOK(ecode4)) {
13922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13923 }
13924 arg4 = static_cast< int >(val4);
13925 if (obj4) {
13926 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13927 if (!SWIG_IsOK(ecode5)) {
13928 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13929 }
13930 arg5 = static_cast< bool >(val5);
13931 }
13932 if (obj5) {
d55e5bfc 13933 {
1bd55598
RD
13934 arg6 = wxString_in_helper(obj5);
13935 if (arg6 == NULL) SWIG_fail;
13936 temp6 = true;
d55e5bfc 13937 }
1bd55598
RD
13938 }
13939 if (obj6) {
13940 ecode7 = SWIG_AsVal_int(obj6, &val7);
13941 if (!SWIG_IsOK(ecode7)) {
13942 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13943 }
13944 arg7 = static_cast< wxFontEncoding >(val7);
13945 }
13946 {
13947 if (!wxPyCheckForApp()) SWIG_fail;
13948 PyThreadState* __tstate = wxPyBeginAllowThreads();
13949 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13950 wxPyEndAllowThreads(__tstate);
13951 if (PyErr_Occurred()) SWIG_fail;
13952 }
13953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13954 {
13955 if (temp6)
13956 delete arg6;
13957 }
13958 return resultobj;
13959fail:
13960 {
13961 if (temp6)
13962 delete arg6;
13963 }
13964 return NULL;
13965}
13966
13967
13968SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13969 PyObject *resultobj = 0;
13970 wxSize *arg1 = 0 ;
13971 wxFontFamily arg2 ;
13972 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13973 wxString const &arg4_defvalue = wxEmptyString ;
13974 wxString *arg4 = (wxString *) &arg4_defvalue ;
13975 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13976 wxFont *result = 0 ;
13977 wxSize temp1 ;
13978 int val2 ;
13979 int ecode2 = 0 ;
13980 int val3 ;
13981 int ecode3 = 0 ;
13982 bool temp4 = false ;
13983 int val5 ;
13984 int ecode5 = 0 ;
13985 PyObject * obj0 = 0 ;
13986 PyObject * obj1 = 0 ;
13987 PyObject * obj2 = 0 ;
13988 PyObject * obj3 = 0 ;
13989 PyObject * obj4 = 0 ;
13990 char * kwnames[] = {
13991 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13992 };
13993
13994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13995 {
13996 arg1 = &temp1;
13997 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13998 }
13999 ecode2 = SWIG_AsVal_int(obj1, &val2);
14000 if (!SWIG_IsOK(ecode2)) {
14001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14002 }
14003 arg2 = static_cast< wxFontFamily >(val2);
14004 if (obj2) {
14005 ecode3 = SWIG_AsVal_int(obj2, &val3);
14006 if (!SWIG_IsOK(ecode3)) {
14007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14008 }
14009 arg3 = static_cast< int >(val3);
14010 }
14011 if (obj3) {
36ed4f51 14012 {
1bd55598
RD
14013 arg4 = wxString_in_helper(obj3);
14014 if (arg4 == NULL) SWIG_fail;
14015 temp4 = true;
36ed4f51 14016 }
1bd55598
RD
14017 }
14018 if (obj4) {
14019 ecode5 = SWIG_AsVal_int(obj4, &val5);
14020 if (!SWIG_IsOK(ecode5)) {
14021 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14022 }
14023 arg5 = static_cast< wxFontEncoding >(val5);
14024 }
14025 {
14026 if (!wxPyCheckForApp()) SWIG_fail;
14027 PyThreadState* __tstate = wxPyBeginAllowThreads();
14028 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14029 wxPyEndAllowThreads(__tstate);
14030 if (PyErr_Occurred()) SWIG_fail;
14031 }
14032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14033 {
14034 if (temp4)
14035 delete arg4;
14036 }
14037 return resultobj;
14038fail:
14039 {
14040 if (temp4)
14041 delete arg4;
14042 }
14043 return NULL;
d55e5bfc
RD
14044}
14045
14046
b39fe951 14047SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14048 PyObject *resultobj = 0;
14049 wxFont *arg1 = (wxFont *) 0 ;
14050 bool result;
14051 void *argp1 = 0 ;
14052 int res1 = 0 ;
14053 PyObject *swig_obj[1] ;
14054
14055 if (!args) SWIG_fail;
14056 swig_obj[0] = args;
14057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14058 if (!SWIG_IsOK(res1)) {
b39fe951 14059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14060 }
14061 arg1 = reinterpret_cast< wxFont * >(argp1);
14062 {
14063 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14064 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14065 wxPyEndAllowThreads(__tstate);
14066 if (PyErr_Occurred()) SWIG_fail;
14067 }
14068 {
14069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14070 }
14071 return resultobj;
14072fail:
14073 return NULL;
14074}
14075
14076
14077SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14078 PyObject *resultobj = 0;
14079 wxFont *arg1 = (wxFont *) 0 ;
14080 wxFont *arg2 = (wxFont *) 0 ;
14081 bool result;
14082 void *argp1 = 0 ;
14083 int res1 = 0 ;
14084 void *argp2 = 0 ;
14085 int res2 = 0 ;
14086 PyObject * obj0 = 0 ;
14087 PyObject * obj1 = 0 ;
14088 char * kwnames[] = {
14089 (char *) "self",(char *) "other", NULL
14090 };
14091
14092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14094 if (!SWIG_IsOK(res1)) {
14095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14096 }
14097 arg1 = reinterpret_cast< wxFont * >(argp1);
14098 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14099 if (!SWIG_IsOK(res2)) {
14100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14101 }
14102 arg2 = reinterpret_cast< wxFont * >(argp2);
14103 {
14104 PyThreadState* __tstate = wxPyBeginAllowThreads();
14105 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14106 wxPyEndAllowThreads(__tstate);
14107 if (PyErr_Occurred()) SWIG_fail;
14108 }
14109 {
14110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14111 }
14112 return resultobj;
14113fail:
14114 return NULL;
14115}
14116
14117
14118SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14119 PyObject *resultobj = 0;
14120 wxFont *arg1 = (wxFont *) 0 ;
14121 wxFont *arg2 = (wxFont *) 0 ;
14122 bool result;
14123 void *argp1 = 0 ;
14124 int res1 = 0 ;
14125 void *argp2 = 0 ;
14126 int res2 = 0 ;
14127 PyObject * obj0 = 0 ;
14128 PyObject * obj1 = 0 ;
14129 char * kwnames[] = {
14130 (char *) "self",(char *) "other", NULL
14131 };
14132
14133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14135 if (!SWIG_IsOK(res1)) {
14136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14137 }
14138 arg1 = reinterpret_cast< wxFont * >(argp1);
14139 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14140 if (!SWIG_IsOK(res2)) {
14141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14142 }
14143 arg2 = reinterpret_cast< wxFont * >(argp2);
14144 {
14145 PyThreadState* __tstate = wxPyBeginAllowThreads();
14146 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14147 wxPyEndAllowThreads(__tstate);
14148 if (PyErr_Occurred()) SWIG_fail;
14149 }
14150 {
14151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14152 }
14153 return resultobj;
14154fail:
14155 return NULL;
d55e5bfc
RD
14156}
14157
14158
1bd55598
RD
14159SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14160 PyObject *resultobj = 0;
14161 wxFont *arg1 = (wxFont *) 0 ;
14162 int result;
14163 void *argp1 = 0 ;
14164 int res1 = 0 ;
14165 PyObject *swig_obj[1] ;
14166
14167 if (!args) SWIG_fail;
14168 swig_obj[0] = args;
14169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14170 if (!SWIG_IsOK(res1)) {
14171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14172 }
14173 arg1 = reinterpret_cast< wxFont * >(argp1);
14174 {
14175 PyThreadState* __tstate = wxPyBeginAllowThreads();
14176 result = (int)((wxFont const *)arg1)->GetPointSize();
14177 wxPyEndAllowThreads(__tstate);
14178 if (PyErr_Occurred()) SWIG_fail;
14179 }
14180 resultobj = SWIG_From_int(static_cast< int >(result));
14181 return resultobj;
14182fail:
14183 return NULL;
d55e5bfc
RD
14184}
14185
14186
1bd55598
RD
14187SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14188 PyObject *resultobj = 0;
14189 wxFont *arg1 = (wxFont *) 0 ;
14190 wxSize result;
14191 void *argp1 = 0 ;
14192 int res1 = 0 ;
14193 PyObject *swig_obj[1] ;
14194
14195 if (!args) SWIG_fail;
14196 swig_obj[0] = args;
14197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14198 if (!SWIG_IsOK(res1)) {
14199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14200 }
14201 arg1 = reinterpret_cast< wxFont * >(argp1);
14202 {
14203 PyThreadState* __tstate = wxPyBeginAllowThreads();
14204 result = ((wxFont const *)arg1)->GetPixelSize();
14205 wxPyEndAllowThreads(__tstate);
14206 if (PyErr_Occurred()) SWIG_fail;
14207 }
14208 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14209 return resultobj;
14210fail:
14211 return NULL;
d55e5bfc
RD
14212}
14213
14214
1bd55598
RD
14215SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14216 PyObject *resultobj = 0;
14217 wxFont *arg1 = (wxFont *) 0 ;
14218 bool result;
14219 void *argp1 = 0 ;
14220 int res1 = 0 ;
14221 PyObject *swig_obj[1] ;
14222
14223 if (!args) SWIG_fail;
14224 swig_obj[0] = args;
14225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14226 if (!SWIG_IsOK(res1)) {
14227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14228 }
14229 arg1 = reinterpret_cast< wxFont * >(argp1);
14230 {
14231 PyThreadState* __tstate = wxPyBeginAllowThreads();
14232 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14233 wxPyEndAllowThreads(__tstate);
14234 if (PyErr_Occurred()) SWIG_fail;
14235 }
14236 {
14237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14238 }
14239 return resultobj;
14240fail:
14241 return NULL;
d55e5bfc
RD
14242}
14243
14244
1bd55598
RD
14245SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14246 PyObject *resultobj = 0;
14247 wxFont *arg1 = (wxFont *) 0 ;
14248 int result;
14249 void *argp1 = 0 ;
14250 int res1 = 0 ;
14251 PyObject *swig_obj[1] ;
14252
14253 if (!args) SWIG_fail;
14254 swig_obj[0] = args;
14255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14256 if (!SWIG_IsOK(res1)) {
14257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14258 }
14259 arg1 = reinterpret_cast< wxFont * >(argp1);
14260 {
14261 PyThreadState* __tstate = wxPyBeginAllowThreads();
14262 result = (int)((wxFont const *)arg1)->GetFamily();
14263 wxPyEndAllowThreads(__tstate);
14264 if (PyErr_Occurred()) SWIG_fail;
14265 }
14266 resultobj = SWIG_From_int(static_cast< int >(result));
14267 return resultobj;
14268fail:
14269 return NULL;
d55e5bfc
RD
14270}
14271
14272
1bd55598
RD
14273SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14274 PyObject *resultobj = 0;
14275 wxFont *arg1 = (wxFont *) 0 ;
14276 int result;
14277 void *argp1 = 0 ;
14278 int res1 = 0 ;
14279 PyObject *swig_obj[1] ;
14280
14281 if (!args) SWIG_fail;
14282 swig_obj[0] = args;
14283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14284 if (!SWIG_IsOK(res1)) {
14285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14286 }
14287 arg1 = reinterpret_cast< wxFont * >(argp1);
14288 {
14289 PyThreadState* __tstate = wxPyBeginAllowThreads();
14290 result = (int)((wxFont const *)arg1)->GetStyle();
14291 wxPyEndAllowThreads(__tstate);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 }
14294 resultobj = SWIG_From_int(static_cast< int >(result));
14295 return resultobj;
14296fail:
14297 return NULL;
d55e5bfc
RD
14298}
14299
14300
1bd55598
RD
14301SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14302 PyObject *resultobj = 0;
14303 wxFont *arg1 = (wxFont *) 0 ;
14304 int result;
14305 void *argp1 = 0 ;
14306 int res1 = 0 ;
14307 PyObject *swig_obj[1] ;
14308
14309 if (!args) SWIG_fail;
14310 swig_obj[0] = args;
14311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14312 if (!SWIG_IsOK(res1)) {
14313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14314 }
14315 arg1 = reinterpret_cast< wxFont * >(argp1);
14316 {
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 result = (int)((wxFont const *)arg1)->GetWeight();
14319 wxPyEndAllowThreads(__tstate);
14320 if (PyErr_Occurred()) SWIG_fail;
14321 }
14322 resultobj = SWIG_From_int(static_cast< int >(result));
14323 return resultobj;
14324fail:
14325 return NULL;
d55e5bfc
RD
14326}
14327
14328
1bd55598
RD
14329SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14330 PyObject *resultobj = 0;
14331 wxFont *arg1 = (wxFont *) 0 ;
14332 bool 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_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14342 }
14343 arg1 = reinterpret_cast< wxFont * >(argp1);
14344 {
14345 PyThreadState* __tstate = wxPyBeginAllowThreads();
14346 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14347 wxPyEndAllowThreads(__tstate);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 {
14351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14352 }
14353 return resultobj;
14354fail:
14355 return NULL;
d55e5bfc
RD
14356}
14357
14358
1bd55598
RD
14359SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14360 PyObject *resultobj = 0;
14361 wxFont *arg1 = (wxFont *) 0 ;
14362 wxString result;
14363 void *argp1 = 0 ;
14364 int res1 = 0 ;
14365 PyObject *swig_obj[1] ;
14366
14367 if (!args) SWIG_fail;
14368 swig_obj[0] = args;
14369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14370 if (!SWIG_IsOK(res1)) {
14371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14372 }
14373 arg1 = reinterpret_cast< wxFont * >(argp1);
14374 {
14375 PyThreadState* __tstate = wxPyBeginAllowThreads();
14376 result = ((wxFont const *)arg1)->GetFaceName();
14377 wxPyEndAllowThreads(__tstate);
14378 if (PyErr_Occurred()) SWIG_fail;
14379 }
14380 {
14381#if wxUSE_UNICODE
14382 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14383#else
14384 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14385#endif
14386 }
14387 return resultobj;
14388fail:
14389 return NULL;
d55e5bfc
RD
14390}
14391
14392
1bd55598
RD
14393SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14394 PyObject *resultobj = 0;
14395 wxFont *arg1 = (wxFont *) 0 ;
14396 wxFontEncoding result;
14397 void *argp1 = 0 ;
14398 int res1 = 0 ;
14399 PyObject *swig_obj[1] ;
14400
14401 if (!args) SWIG_fail;
14402 swig_obj[0] = args;
14403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14404 if (!SWIG_IsOK(res1)) {
14405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14406 }
14407 arg1 = reinterpret_cast< wxFont * >(argp1);
14408 {
14409 PyThreadState* __tstate = wxPyBeginAllowThreads();
14410 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14411 wxPyEndAllowThreads(__tstate);
14412 if (PyErr_Occurred()) SWIG_fail;
14413 }
14414 resultobj = SWIG_From_int(static_cast< int >(result));
14415 return resultobj;
14416fail:
14417 return NULL;
d55e5bfc
RD
14418}
14419
14420
1bd55598
RD
14421SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14422 PyObject *resultobj = 0;
14423 wxFont *arg1 = (wxFont *) 0 ;
14424 wxNativeFontInfo *result = 0 ;
14425 void *argp1 = 0 ;
14426 int res1 = 0 ;
14427 PyObject *swig_obj[1] ;
14428
14429 if (!args) SWIG_fail;
14430 swig_obj[0] = args;
14431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14432 if (!SWIG_IsOK(res1)) {
14433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14434 }
14435 arg1 = reinterpret_cast< wxFont * >(argp1);
14436 {
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14439 wxPyEndAllowThreads(__tstate);
14440 if (PyErr_Occurred()) SWIG_fail;
14441 }
14442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14443 return resultobj;
14444fail:
14445 return NULL;
d55e5bfc
RD
14446}
14447
14448
1bd55598
RD
14449SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14450 PyObject *resultobj = 0;
14451 wxFont *arg1 = (wxFont *) 0 ;
14452 bool result;
14453 void *argp1 = 0 ;
14454 int res1 = 0 ;
14455 PyObject *swig_obj[1] ;
14456
14457 if (!args) SWIG_fail;
14458 swig_obj[0] = args;
14459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14460 if (!SWIG_IsOK(res1)) {
14461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14462 }
14463 arg1 = reinterpret_cast< wxFont * >(argp1);
14464 {
14465 PyThreadState* __tstate = wxPyBeginAllowThreads();
14466 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14467 wxPyEndAllowThreads(__tstate);
14468 if (PyErr_Occurred()) SWIG_fail;
14469 }
14470 {
14471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14472 }
14473 return resultobj;
14474fail:
14475 return NULL;
d55e5bfc
RD
14476}
14477
14478
1bd55598
RD
14479SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14480 PyObject *resultobj = 0;
14481 wxFont *arg1 = (wxFont *) 0 ;
14482 wxString result;
14483 void *argp1 = 0 ;
14484 int res1 = 0 ;
14485 PyObject *swig_obj[1] ;
14486
14487 if (!args) SWIG_fail;
14488 swig_obj[0] = args;
14489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14490 if (!SWIG_IsOK(res1)) {
14491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14492 }
14493 arg1 = reinterpret_cast< wxFont * >(argp1);
14494 {
14495 PyThreadState* __tstate = wxPyBeginAllowThreads();
14496 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14497 wxPyEndAllowThreads(__tstate);
14498 if (PyErr_Occurred()) SWIG_fail;
14499 }
14500 {
14501#if wxUSE_UNICODE
14502 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14503#else
14504 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14505#endif
14506 }
14507 return resultobj;
14508fail:
14509 return NULL;
d55e5bfc
RD
14510}
14511
14512
1bd55598
RD
14513SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14514 PyObject *resultobj = 0;
14515 wxFont *arg1 = (wxFont *) 0 ;
14516 wxString result;
14517 void *argp1 = 0 ;
14518 int res1 = 0 ;
14519 PyObject *swig_obj[1] ;
14520
14521 if (!args) SWIG_fail;
14522 swig_obj[0] = args;
14523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14524 if (!SWIG_IsOK(res1)) {
14525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14526 }
14527 arg1 = reinterpret_cast< wxFont * >(argp1);
14528 {
14529 PyThreadState* __tstate = wxPyBeginAllowThreads();
14530 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14531 wxPyEndAllowThreads(__tstate);
14532 if (PyErr_Occurred()) SWIG_fail;
14533 }
14534 {
14535#if wxUSE_UNICODE
14536 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14537#else
14538 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14539#endif
14540 }
14541 return resultobj;
14542fail:
14543 return NULL;
14544}
14545
14546
14547SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14548 PyObject *resultobj = 0;
14549 wxFont *arg1 = (wxFont *) 0 ;
14550 int arg2 ;
14551 void *argp1 = 0 ;
14552 int res1 = 0 ;
14553 int val2 ;
14554 int ecode2 = 0 ;
14555 PyObject * obj0 = 0 ;
14556 PyObject * obj1 = 0 ;
14557 char * kwnames[] = {
14558 (char *) "self",(char *) "pointSize", NULL
14559 };
14560
14561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14563 if (!SWIG_IsOK(res1)) {
14564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14565 }
14566 arg1 = reinterpret_cast< wxFont * >(argp1);
14567 ecode2 = SWIG_AsVal_int(obj1, &val2);
14568 if (!SWIG_IsOK(ecode2)) {
14569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14570 }
14571 arg2 = static_cast< int >(val2);
14572 {
14573 PyThreadState* __tstate = wxPyBeginAllowThreads();
14574 (arg1)->SetPointSize(arg2);
14575 wxPyEndAllowThreads(__tstate);
14576 if (PyErr_Occurred()) SWIG_fail;
14577 }
14578 resultobj = SWIG_Py_Void();
14579 return resultobj;
14580fail:
14581 return NULL;
14582}
14583
14584
14585SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14586 PyObject *resultobj = 0;
14587 wxFont *arg1 = (wxFont *) 0 ;
14588 wxSize *arg2 = 0 ;
14589 void *argp1 = 0 ;
14590 int res1 = 0 ;
14591 wxSize temp2 ;
14592 PyObject * obj0 = 0 ;
14593 PyObject * obj1 = 0 ;
14594 char * kwnames[] = {
14595 (char *) "self",(char *) "pixelSize", NULL
14596 };
14597
14598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14600 if (!SWIG_IsOK(res1)) {
14601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14602 }
14603 arg1 = reinterpret_cast< wxFont * >(argp1);
14604 {
14605 arg2 = &temp2;
14606 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14607 }
14608 {
14609 PyThreadState* __tstate = wxPyBeginAllowThreads();
14610 (arg1)->SetPixelSize((wxSize const &)*arg2);
14611 wxPyEndAllowThreads(__tstate);
14612 if (PyErr_Occurred()) SWIG_fail;
14613 }
14614 resultobj = SWIG_Py_Void();
14615 return resultobj;
14616fail:
14617 return NULL;
14618}
14619
14620
14621SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14622 PyObject *resultobj = 0;
14623 wxFont *arg1 = (wxFont *) 0 ;
14624 int arg2 ;
14625 void *argp1 = 0 ;
14626 int res1 = 0 ;
14627 int val2 ;
14628 int ecode2 = 0 ;
14629 PyObject * obj0 = 0 ;
14630 PyObject * obj1 = 0 ;
14631 char * kwnames[] = {
14632 (char *) "self",(char *) "family", NULL
14633 };
14634
14635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14637 if (!SWIG_IsOK(res1)) {
14638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14639 }
14640 arg1 = reinterpret_cast< wxFont * >(argp1);
14641 ecode2 = SWIG_AsVal_int(obj1, &val2);
14642 if (!SWIG_IsOK(ecode2)) {
14643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14644 }
14645 arg2 = static_cast< int >(val2);
14646 {
14647 PyThreadState* __tstate = wxPyBeginAllowThreads();
14648 (arg1)->SetFamily(arg2);
14649 wxPyEndAllowThreads(__tstate);
14650 if (PyErr_Occurred()) SWIG_fail;
14651 }
14652 resultobj = SWIG_Py_Void();
14653 return resultobj;
14654fail:
14655 return NULL;
14656}
14657
14658
14659SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14660 PyObject *resultobj = 0;
14661 wxFont *arg1 = (wxFont *) 0 ;
14662 int arg2 ;
14663 void *argp1 = 0 ;
14664 int res1 = 0 ;
14665 int val2 ;
14666 int ecode2 = 0 ;
14667 PyObject * obj0 = 0 ;
14668 PyObject * obj1 = 0 ;
14669 char * kwnames[] = {
14670 (char *) "self",(char *) "style", NULL
14671 };
14672
14673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14675 if (!SWIG_IsOK(res1)) {
14676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14677 }
14678 arg1 = reinterpret_cast< wxFont * >(argp1);
14679 ecode2 = SWIG_AsVal_int(obj1, &val2);
14680 if (!SWIG_IsOK(ecode2)) {
14681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14682 }
14683 arg2 = static_cast< int >(val2);
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 (arg1)->SetStyle(arg2);
14687 wxPyEndAllowThreads(__tstate);
14688 if (PyErr_Occurred()) SWIG_fail;
14689 }
14690 resultobj = SWIG_Py_Void();
14691 return resultobj;
14692fail:
14693 return NULL;
14694}
14695
14696
14697SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14698 PyObject *resultobj = 0;
14699 wxFont *arg1 = (wxFont *) 0 ;
14700 int arg2 ;
14701 void *argp1 = 0 ;
14702 int res1 = 0 ;
14703 int val2 ;
14704 int ecode2 = 0 ;
14705 PyObject * obj0 = 0 ;
14706 PyObject * obj1 = 0 ;
14707 char * kwnames[] = {
14708 (char *) "self",(char *) "weight", NULL
14709 };
14710
14711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14713 if (!SWIG_IsOK(res1)) {
14714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14715 }
14716 arg1 = reinterpret_cast< wxFont * >(argp1);
14717 ecode2 = SWIG_AsVal_int(obj1, &val2);
14718 if (!SWIG_IsOK(ecode2)) {
14719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14720 }
14721 arg2 = static_cast< int >(val2);
14722 {
14723 PyThreadState* __tstate = wxPyBeginAllowThreads();
14724 (arg1)->SetWeight(arg2);
14725 wxPyEndAllowThreads(__tstate);
14726 if (PyErr_Occurred()) SWIG_fail;
14727 }
14728 resultobj = SWIG_Py_Void();
14729 return resultobj;
14730fail:
14731 return NULL;
14732}
14733
14734
14735SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14736 PyObject *resultobj = 0;
14737 wxFont *arg1 = (wxFont *) 0 ;
14738 wxString *arg2 = 0 ;
704eda0c 14739 bool result;
1bd55598
RD
14740 void *argp1 = 0 ;
14741 int res1 = 0 ;
14742 bool temp2 = false ;
14743 PyObject * obj0 = 0 ;
14744 PyObject * obj1 = 0 ;
14745 char * kwnames[] = {
14746 (char *) "self",(char *) "faceName", NULL
14747 };
14748
14749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14751 if (!SWIG_IsOK(res1)) {
14752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14753 }
14754 arg1 = reinterpret_cast< wxFont * >(argp1);
14755 {
14756 arg2 = wxString_in_helper(obj1);
14757 if (arg2 == NULL) SWIG_fail;
14758 temp2 = true;
14759 }
14760 {
14761 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14762 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14763 wxPyEndAllowThreads(__tstate);
14764 if (PyErr_Occurred()) SWIG_fail;
14765 }
704eda0c
RD
14766 {
14767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14768 }
1bd55598
RD
14769 {
14770 if (temp2)
14771 delete arg2;
14772 }
14773 return resultobj;
14774fail:
14775 {
14776 if (temp2)
14777 delete arg2;
14778 }
14779 return NULL;
14780}
14781
14782
14783SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14784 PyObject *resultobj = 0;
14785 wxFont *arg1 = (wxFont *) 0 ;
14786 bool arg2 ;
14787 void *argp1 = 0 ;
14788 int res1 = 0 ;
14789 bool val2 ;
14790 int ecode2 = 0 ;
14791 PyObject * obj0 = 0 ;
14792 PyObject * obj1 = 0 ;
14793 char * kwnames[] = {
14794 (char *) "self",(char *) "underlined", NULL
14795 };
14796
14797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14799 if (!SWIG_IsOK(res1)) {
14800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14801 }
14802 arg1 = reinterpret_cast< wxFont * >(argp1);
14803 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14804 if (!SWIG_IsOK(ecode2)) {
14805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14806 }
14807 arg2 = static_cast< bool >(val2);
14808 {
14809 PyThreadState* __tstate = wxPyBeginAllowThreads();
14810 (arg1)->SetUnderlined(arg2);
14811 wxPyEndAllowThreads(__tstate);
14812 if (PyErr_Occurred()) SWIG_fail;
14813 }
14814 resultobj = SWIG_Py_Void();
14815 return resultobj;
14816fail:
14817 return NULL;
14818}
14819
14820
14821SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14822 PyObject *resultobj = 0;
14823 wxFont *arg1 = (wxFont *) 0 ;
14824 wxFontEncoding arg2 ;
14825 void *argp1 = 0 ;
14826 int res1 = 0 ;
14827 int val2 ;
14828 int ecode2 = 0 ;
14829 PyObject * obj0 = 0 ;
14830 PyObject * obj1 = 0 ;
14831 char * kwnames[] = {
14832 (char *) "self",(char *) "encoding", NULL
14833 };
14834
14835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14837 if (!SWIG_IsOK(res1)) {
14838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14839 }
14840 arg1 = reinterpret_cast< wxFont * >(argp1);
14841 ecode2 = SWIG_AsVal_int(obj1, &val2);
14842 if (!SWIG_IsOK(ecode2)) {
14843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14844 }
14845 arg2 = static_cast< wxFontEncoding >(val2);
14846 {
14847 PyThreadState* __tstate = wxPyBeginAllowThreads();
14848 (arg1)->SetEncoding(arg2);
14849 wxPyEndAllowThreads(__tstate);
14850 if (PyErr_Occurred()) SWIG_fail;
14851 }
14852 resultobj = SWIG_Py_Void();
14853 return resultobj;
14854fail:
14855 return NULL;
14856}
14857
14858
14859SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14860 PyObject *resultobj = 0;
14861 wxFont *arg1 = (wxFont *) 0 ;
14862 wxNativeFontInfo *arg2 = 0 ;
14863 void *argp1 = 0 ;
14864 int res1 = 0 ;
14865 void *argp2 = 0 ;
14866 int res2 = 0 ;
14867 PyObject * obj0 = 0 ;
14868 PyObject * obj1 = 0 ;
14869 char * kwnames[] = {
14870 (char *) "self",(char *) "info", NULL
14871 };
14872
14873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14875 if (!SWIG_IsOK(res1)) {
14876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14877 }
14878 arg1 = reinterpret_cast< wxFont * >(argp1);
14879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14880 if (!SWIG_IsOK(res2)) {
14881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14882 }
14883 if (!argp2) {
14884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14885 }
14886 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14887 {
14888 PyThreadState* __tstate = wxPyBeginAllowThreads();
14889 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14890 wxPyEndAllowThreads(__tstate);
14891 if (PyErr_Occurred()) SWIG_fail;
14892 }
14893 resultobj = SWIG_Py_Void();
14894 return resultobj;
14895fail:
14896 return NULL;
14897}
14898
14899
14900SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14901 PyObject *resultobj = 0;
14902 wxFont *arg1 = (wxFont *) 0 ;
14903 wxString *arg2 = 0 ;
704eda0c 14904 bool result;
1bd55598
RD
14905 void *argp1 = 0 ;
14906 int res1 = 0 ;
14907 bool temp2 = false ;
14908 PyObject * obj0 = 0 ;
14909 PyObject * obj1 = 0 ;
14910 char * kwnames[] = {
14911 (char *) "self",(char *) "info", NULL
14912 };
14913
14914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14916 if (!SWIG_IsOK(res1)) {
14917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14918 }
14919 arg1 = reinterpret_cast< wxFont * >(argp1);
14920 {
14921 arg2 = wxString_in_helper(obj1);
14922 if (arg2 == NULL) SWIG_fail;
14923 temp2 = true;
14924 }
14925 {
14926 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14927 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
14928 wxPyEndAllowThreads(__tstate);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
704eda0c
RD
14931 {
14932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14933 }
1bd55598
RD
14934 {
14935 if (temp2)
14936 delete arg2;
14937 }
14938 return resultobj;
14939fail:
14940 {
14941 if (temp2)
14942 delete arg2;
14943 }
14944 return NULL;
d55e5bfc
RD
14945}
14946
14947
1bd55598
RD
14948SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14949 PyObject *resultobj = 0;
14950 wxFont *arg1 = (wxFont *) 0 ;
14951 wxString *arg2 = 0 ;
704eda0c 14952 bool result;
1bd55598
RD
14953 void *argp1 = 0 ;
14954 int res1 = 0 ;
14955 bool temp2 = false ;
14956 PyObject * obj0 = 0 ;
14957 PyObject * obj1 = 0 ;
14958 char * kwnames[] = {
14959 (char *) "self",(char *) "info", NULL
14960 };
14961
14962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14964 if (!SWIG_IsOK(res1)) {
14965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14966 }
14967 arg1 = reinterpret_cast< wxFont * >(argp1);
14968 {
14969 arg2 = wxString_in_helper(obj1);
14970 if (arg2 == NULL) SWIG_fail;
14971 temp2 = true;
14972 }
14973 {
14974 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14975 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
14976 wxPyEndAllowThreads(__tstate);
14977 if (PyErr_Occurred()) SWIG_fail;
14978 }
704eda0c
RD
14979 {
14980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14981 }
1bd55598
RD
14982 {
14983 if (temp2)
14984 delete arg2;
14985 }
14986 return resultobj;
14987fail:
14988 {
14989 if (temp2)
14990 delete arg2;
14991 }
14992 return NULL;
d55e5bfc
RD
14993}
14994
14995
1bd55598
RD
14996SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14997 PyObject *resultobj = 0;
14998 wxFont *arg1 = (wxFont *) 0 ;
14999 wxString result;
15000 void *argp1 = 0 ;
15001 int res1 = 0 ;
15002 PyObject *swig_obj[1] ;
15003
15004 if (!args) SWIG_fail;
15005 swig_obj[0] = args;
15006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15007 if (!SWIG_IsOK(res1)) {
15008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15009 }
15010 arg1 = reinterpret_cast< wxFont * >(argp1);
15011 {
15012 PyThreadState* __tstate = wxPyBeginAllowThreads();
15013 result = ((wxFont const *)arg1)->GetFamilyString();
15014 wxPyEndAllowThreads(__tstate);
15015 if (PyErr_Occurred()) SWIG_fail;
15016 }
15017 {
15018#if wxUSE_UNICODE
15019 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15020#else
15021 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15022#endif
15023 }
15024 return resultobj;
15025fail:
15026 return NULL;
d55e5bfc
RD
15027}
15028
15029
1bd55598
RD
15030SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15031 PyObject *resultobj = 0;
15032 wxFont *arg1 = (wxFont *) 0 ;
15033 wxString result;
15034 void *argp1 = 0 ;
15035 int res1 = 0 ;
15036 PyObject *swig_obj[1] ;
15037
15038 if (!args) SWIG_fail;
15039 swig_obj[0] = args;
15040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15041 if (!SWIG_IsOK(res1)) {
15042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15043 }
15044 arg1 = reinterpret_cast< wxFont * >(argp1);
15045 {
15046 PyThreadState* __tstate = wxPyBeginAllowThreads();
15047 result = ((wxFont const *)arg1)->GetStyleString();
15048 wxPyEndAllowThreads(__tstate);
15049 if (PyErr_Occurred()) SWIG_fail;
15050 }
15051 {
15052#if wxUSE_UNICODE
15053 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15054#else
15055 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15056#endif
15057 }
15058 return resultobj;
15059fail:
15060 return NULL;
d55e5bfc
RD
15061}
15062
15063
1bd55598
RD
15064SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15065 PyObject *resultobj = 0;
15066 wxFont *arg1 = (wxFont *) 0 ;
15067 wxString result;
15068 void *argp1 = 0 ;
15069 int res1 = 0 ;
15070 PyObject *swig_obj[1] ;
15071
15072 if (!args) SWIG_fail;
15073 swig_obj[0] = args;
15074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15075 if (!SWIG_IsOK(res1)) {
15076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15077 }
15078 arg1 = reinterpret_cast< wxFont * >(argp1);
15079 {
15080 PyThreadState* __tstate = wxPyBeginAllowThreads();
15081 result = ((wxFont const *)arg1)->GetWeightString();
15082 wxPyEndAllowThreads(__tstate);
15083 if (PyErr_Occurred()) SWIG_fail;
15084 }
15085 {
15086#if wxUSE_UNICODE
15087 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15088#else
15089 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15090#endif
15091 }
15092 return resultobj;
15093fail:
15094 return NULL;
15095}
15096
15097
15098SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15099 PyObject *resultobj = 0;
15100 wxFont *arg1 = (wxFont *) 0 ;
15101 bool arg2 = (bool) true ;
15102 void *argp1 = 0 ;
15103 int res1 = 0 ;
15104 bool val2 ;
15105 int ecode2 = 0 ;
15106 PyObject * obj0 = 0 ;
15107 PyObject * obj1 = 0 ;
15108 char * kwnames[] = {
15109 (char *) "self",(char *) "no", NULL
15110 };
15111
15112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15114 if (!SWIG_IsOK(res1)) {
15115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15116 }
15117 arg1 = reinterpret_cast< wxFont * >(argp1);
15118 if (obj1) {
15119 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15120 if (!SWIG_IsOK(ecode2)) {
15121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15122 }
15123 arg2 = static_cast< bool >(val2);
15124 }
15125 {
15126 PyThreadState* __tstate = wxPyBeginAllowThreads();
15127 (arg1)->SetNoAntiAliasing(arg2);
15128 wxPyEndAllowThreads(__tstate);
15129 if (PyErr_Occurred()) SWIG_fail;
15130 }
15131 resultobj = SWIG_Py_Void();
15132 return resultobj;
15133fail:
15134 return NULL;
d55e5bfc
RD
15135}
15136
15137
1bd55598
RD
15138SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15139 PyObject *resultobj = 0;
15140 wxFont *arg1 = (wxFont *) 0 ;
15141 bool result;
15142 void *argp1 = 0 ;
15143 int res1 = 0 ;
15144 PyObject *swig_obj[1] ;
15145
15146 if (!args) SWIG_fail;
15147 swig_obj[0] = args;
15148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15149 if (!SWIG_IsOK(res1)) {
15150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15151 }
15152 arg1 = reinterpret_cast< wxFont * >(argp1);
15153 {
15154 PyThreadState* __tstate = wxPyBeginAllowThreads();
15155 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15156 wxPyEndAllowThreads(__tstate);
15157 if (PyErr_Occurred()) SWIG_fail;
15158 }
15159 {
15160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15161 }
15162 return resultobj;
15163fail:
15164 return NULL;
d55e5bfc
RD
15165}
15166
15167
1bd55598
RD
15168SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15169 PyObject *resultobj = 0;
15170 wxFontEncoding result;
15171
15172 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15173 {
15174 if (!wxPyCheckForApp()) SWIG_fail;
15175 PyThreadState* __tstate = wxPyBeginAllowThreads();
15176 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15177 wxPyEndAllowThreads(__tstate);
15178 if (PyErr_Occurred()) SWIG_fail;
15179 }
15180 resultobj = SWIG_From_int(static_cast< int >(result));
15181 return resultobj;
15182fail:
15183 return NULL;
d55e5bfc
RD
15184}
15185
15186
1bd55598
RD
15187SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15188 PyObject *resultobj = 0;
15189 wxFontEncoding arg1 ;
15190 int val1 ;
15191 int ecode1 = 0 ;
15192 PyObject * obj0 = 0 ;
15193 char * kwnames[] = {
15194 (char *) "encoding", NULL
15195 };
15196
15197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15198 ecode1 = SWIG_AsVal_int(obj0, &val1);
15199 if (!SWIG_IsOK(ecode1)) {
15200 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15201 }
15202 arg1 = static_cast< wxFontEncoding >(val1);
15203 {
15204 if (!wxPyCheckForApp()) SWIG_fail;
15205 PyThreadState* __tstate = wxPyBeginAllowThreads();
15206 wxFont::SetDefaultEncoding(arg1);
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 resultobj = SWIG_Py_Void();
15211 return resultobj;
15212fail:
15213 return NULL;
d55e5bfc
RD
15214}
15215
15216
1bd55598
RD
15217SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15218 PyObject *obj;
15219 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15220 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15221 return SWIG_Py_Void();
d55e5bfc 15222}
d55e5bfc 15223
1bd55598
RD
15224SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15225 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15226}
15227
1bd55598
RD
15228SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15229 PyObject *resultobj = 0;
15230 wxPyFontEnumerator *result = 0 ;
15231
15232 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15233 {
15234 if (!wxPyCheckForApp()) SWIG_fail;
15235 PyThreadState* __tstate = wxPyBeginAllowThreads();
15236 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15241 return resultobj;
15242fail:
15243 return NULL;
d55e5bfc
RD
15244}
15245
15246
1bd55598
RD
15247SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15248 PyObject *resultobj = 0;
15249 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15250 void *argp1 = 0 ;
15251 int res1 = 0 ;
15252 PyObject *swig_obj[1] ;
15253
15254 if (!args) SWIG_fail;
15255 swig_obj[0] = args;
15256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15257 if (!SWIG_IsOK(res1)) {
15258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15259 }
15260 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15261 {
15262 PyThreadState* __tstate = wxPyBeginAllowThreads();
15263 delete arg1;
d55e5bfc 15264
1bd55598
RD
15265 wxPyEndAllowThreads(__tstate);
15266 if (PyErr_Occurred()) SWIG_fail;
15267 }
15268 resultobj = SWIG_Py_Void();
15269 return resultobj;
15270fail:
15271 return NULL;
15272}
15273
15274
15275SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15276 PyObject *resultobj = 0;
15277 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15278 PyObject *arg2 = (PyObject *) 0 ;
15279 PyObject *arg3 = (PyObject *) 0 ;
15280 bool arg4 ;
15281 void *argp1 = 0 ;
15282 int res1 = 0 ;
15283 bool val4 ;
15284 int ecode4 = 0 ;
15285 PyObject * obj0 = 0 ;
15286 PyObject * obj1 = 0 ;
15287 PyObject * obj2 = 0 ;
15288 PyObject * obj3 = 0 ;
15289 char * kwnames[] = {
15290 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15291 };
15292
15293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15295 if (!SWIG_IsOK(res1)) {
15296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15297 }
15298 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15299 arg2 = obj1;
15300 arg3 = obj2;
15301 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15302 if (!SWIG_IsOK(ecode4)) {
15303 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15304 }
15305 arg4 = static_cast< bool >(val4);
15306 {
15307 PyThreadState* __tstate = wxPyBeginAllowThreads();
15308 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15309 wxPyEndAllowThreads(__tstate);
15310 if (PyErr_Occurred()) SWIG_fail;
15311 }
15312 resultobj = SWIG_Py_Void();
15313 return resultobj;
15314fail:
15315 return NULL;
15316}
15317
15318
15319SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15320 PyObject *resultobj = 0;
15321 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15322 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15323 bool arg3 = (bool) false ;
15324 bool result;
15325 void *argp1 = 0 ;
15326 int res1 = 0 ;
15327 int val2 ;
15328 int ecode2 = 0 ;
15329 bool val3 ;
15330 int ecode3 = 0 ;
15331 PyObject * obj0 = 0 ;
15332 PyObject * obj1 = 0 ;
15333 PyObject * obj2 = 0 ;
15334 char * kwnames[] = {
15335 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15336 };
15337
15338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15340 if (!SWIG_IsOK(res1)) {
15341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15342 }
15343 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15344 if (obj1) {
15345 ecode2 = SWIG_AsVal_int(obj1, &val2);
15346 if (!SWIG_IsOK(ecode2)) {
15347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15348 }
15349 arg2 = static_cast< wxFontEncoding >(val2);
15350 }
15351 if (obj2) {
15352 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15353 if (!SWIG_IsOK(ecode3)) {
15354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15355 }
15356 arg3 = static_cast< bool >(val3);
15357 }
15358 {
15359 PyThreadState* __tstate = wxPyBeginAllowThreads();
15360 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15361 wxPyEndAllowThreads(__tstate);
15362 if (PyErr_Occurred()) SWIG_fail;
15363 }
15364 {
15365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15366 }
15367 return resultobj;
15368fail:
15369 return NULL;
15370}
15371
15372
15373SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15374 PyObject *resultobj = 0;
15375 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15376 wxString const &arg2_defvalue = wxPyEmptyString ;
15377 wxString *arg2 = (wxString *) &arg2_defvalue ;
15378 bool result;
15379 void *argp1 = 0 ;
15380 int res1 = 0 ;
15381 bool temp2 = false ;
15382 PyObject * obj0 = 0 ;
15383 PyObject * obj1 = 0 ;
15384 char * kwnames[] = {
15385 (char *) "self",(char *) "facename", NULL
15386 };
15387
15388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15390 if (!SWIG_IsOK(res1)) {
15391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15392 }
15393 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15394 if (obj1) {
36ed4f51 15395 {
1bd55598
RD
15396 arg2 = wxString_in_helper(obj1);
15397 if (arg2 == NULL) SWIG_fail;
15398 temp2 = true;
36ed4f51 15399 }
1bd55598
RD
15400 }
15401 {
15402 PyThreadState* __tstate = wxPyBeginAllowThreads();
15403 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15404 wxPyEndAllowThreads(__tstate);
15405 if (PyErr_Occurred()) SWIG_fail;
15406 }
15407 {
15408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15409 }
15410 {
15411 if (temp2)
15412 delete arg2;
15413 }
15414 return resultobj;
15415fail:
15416 {
15417 if (temp2)
15418 delete arg2;
15419 }
15420 return NULL;
d55e5bfc
RD
15421}
15422
15423
1bd55598
RD
15424SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15425 PyObject *resultobj = 0;
1bd55598 15426 PyObject *result = 0 ;
1bd55598 15427
704eda0c 15428 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15429 {
15430 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15431 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15432 wxPyEndAllowThreads(__tstate);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 }
15435 resultobj = result;
15436 return resultobj;
15437fail:
15438 return NULL;
d55e5bfc
RD
15439}
15440
15441
1bd55598
RD
15442SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15443 PyObject *resultobj = 0;
1bd55598 15444 PyObject *result = 0 ;
1bd55598 15445
704eda0c 15446 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15447 {
15448 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15449 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15450 wxPyEndAllowThreads(__tstate);
15451 if (PyErr_Occurred()) SWIG_fail;
15452 }
15453 resultobj = result;
15454 return resultobj;
15455fail:
15456 return NULL;
d55e5bfc
RD
15457}
15458
15459
704eda0c
RD
15460SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15461 PyObject *resultobj = 0;
15462 wxString *arg1 = 0 ;
15463 bool result;
15464 bool temp1 = false ;
15465 PyObject * obj0 = 0 ;
15466 char * kwnames[] = {
15467 (char *) "str", NULL
15468 };
15469
15470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15471 {
15472 arg1 = wxString_in_helper(obj0);
15473 if (arg1 == NULL) SWIG_fail;
15474 temp1 = true;
15475 }
15476 {
15477 PyThreadState* __tstate = wxPyBeginAllowThreads();
15478 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15479 wxPyEndAllowThreads(__tstate);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 }
15482 {
15483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15484 }
15485 {
15486 if (temp1)
15487 delete arg1;
15488 }
15489 return resultobj;
15490fail:
15491 {
15492 if (temp1)
15493 delete arg1;
15494 }
15495 return NULL;
15496}
15497
15498
1bd55598
RD
15499SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15500 PyObject *obj;
15501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15502 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15503 return SWIG_Py_Void();
d55e5bfc
RD
15504}
15505
1bd55598
RD
15506SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15507 return SWIG_Python_InitShadowInstance(args);
15508}
d55e5bfc 15509
1bd55598
RD
15510SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15511 PyObject *resultobj = 0;
15512 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15513 int arg2 ;
15514 void *argp1 = 0 ;
15515 int res1 = 0 ;
15516 int val2 ;
15517 int ecode2 = 0 ;
15518 PyObject *swig_obj[2] ;
15519
15520 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15522 if (!SWIG_IsOK(res1)) {
15523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15524 }
15525 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15526 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15527 if (!SWIG_IsOK(ecode2)) {
15528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15529 }
15530 arg2 = static_cast< int >(val2);
15531 if (arg1) (arg1)->Language = arg2;
15532
15533 resultobj = SWIG_Py_Void();
15534 return resultobj;
15535fail:
15536 return NULL;
d55e5bfc
RD
15537}
15538
15539
1bd55598
RD
15540SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15541 PyObject *resultobj = 0;
15542 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15543 int result;
15544 void *argp1 = 0 ;
15545 int res1 = 0 ;
15546 PyObject *swig_obj[1] ;
15547
15548 if (!args) SWIG_fail;
15549 swig_obj[0] = args;
15550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15551 if (!SWIG_IsOK(res1)) {
15552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15553 }
15554 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15555 result = (int) ((arg1)->Language);
15556 resultobj = SWIG_From_int(static_cast< int >(result));
15557 return resultobj;
15558fail:
15559 return NULL;
15560}
15561
15562
15563SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15564 PyObject *resultobj = 0;
15565 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15566 wxString *arg2 = (wxString *) 0 ;
15567 void *argp1 = 0 ;
15568 int res1 = 0 ;
15569 bool temp2 = false ;
15570 PyObject *swig_obj[2] ;
15571
15572 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15574 if (!SWIG_IsOK(res1)) {
15575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15576 }
15577 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15578 {
15579 arg2 = wxString_in_helper(swig_obj[1]);
15580 if (arg2 == NULL) SWIG_fail;
15581 temp2 = true;
15582 }
15583 if (arg1) (arg1)->CanonicalName = *arg2;
15584
15585 resultobj = SWIG_Py_Void();
15586 {
15587 if (temp2)
15588 delete arg2;
15589 }
15590 return resultobj;
15591fail:
15592 {
15593 if (temp2)
15594 delete arg2;
15595 }
15596 return NULL;
d55e5bfc
RD
15597}
15598
15599
1bd55598
RD
15600SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15601 PyObject *resultobj = 0;
15602 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15603 wxString *result = 0 ;
15604 void *argp1 = 0 ;
15605 int res1 = 0 ;
15606 PyObject *swig_obj[1] ;
15607
15608 if (!args) SWIG_fail;
15609 swig_obj[0] = args;
15610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15611 if (!SWIG_IsOK(res1)) {
15612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15613 }
15614 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15615 result = (wxString *)& ((arg1)->CanonicalName);
15616 {
15617#if wxUSE_UNICODE
15618 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15619#else
15620 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15621#endif
15622 }
15623 return resultobj;
15624fail:
15625 return NULL;
d55e5bfc
RD
15626}
15627
15628
1bd55598
RD
15629SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15630 PyObject *resultobj = 0;
15631 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15632 wxString *arg2 = (wxString *) 0 ;
15633 void *argp1 = 0 ;
15634 int res1 = 0 ;
15635 bool temp2 = false ;
15636 PyObject *swig_obj[2] ;
15637
15638 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15640 if (!SWIG_IsOK(res1)) {
15641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15642 }
15643 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15644 {
15645 arg2 = wxString_in_helper(swig_obj[1]);
15646 if (arg2 == NULL) SWIG_fail;
15647 temp2 = true;
15648 }
15649 if (arg1) (arg1)->Description = *arg2;
15650
15651 resultobj = SWIG_Py_Void();
15652 {
15653 if (temp2)
15654 delete arg2;
15655 }
15656 return resultobj;
15657fail:
15658 {
15659 if (temp2)
15660 delete arg2;
15661 }
15662 return NULL;
d55e5bfc
RD
15663}
15664
15665
1bd55598
RD
15666SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15667 PyObject *resultobj = 0;
15668 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15669 wxString *result = 0 ;
15670 void *argp1 = 0 ;
15671 int res1 = 0 ;
15672 PyObject *swig_obj[1] ;
15673
15674 if (!args) SWIG_fail;
15675 swig_obj[0] = args;
15676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15677 if (!SWIG_IsOK(res1)) {
15678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15679 }
15680 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15681 result = (wxString *)& ((arg1)->Description);
15682 {
15683#if wxUSE_UNICODE
15684 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15685#else
15686 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15687#endif
15688 }
15689 return resultobj;
15690fail:
15691 return NULL;
15692}
15693
15694
15695SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15696 PyObject *obj;
15697 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15698 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15699 return SWIG_Py_Void();
15700}
15701
15702SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15703 PyObject *resultobj = 0;
15704 int arg1 = (int) -1 ;
15705 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15706 wxLocale *result = 0 ;
15707 int val1 ;
15708 int ecode1 = 0 ;
15709 int val2 ;
15710 int ecode2 = 0 ;
15711 PyObject * obj0 = 0 ;
15712 PyObject * obj1 = 0 ;
15713 char * kwnames[] = {
15714 (char *) "language",(char *) "flags", NULL
15715 };
15716
15717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15718 if (obj0) {
15719 ecode1 = SWIG_AsVal_int(obj0, &val1);
15720 if (!SWIG_IsOK(ecode1)) {
15721 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15722 }
15723 arg1 = static_cast< int >(val1);
15724 }
15725 if (obj1) {
15726 ecode2 = SWIG_AsVal_int(obj1, &val2);
15727 if (!SWIG_IsOK(ecode2)) {
15728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15729 }
15730 arg2 = static_cast< int >(val2);
15731 }
15732 {
15733 PyThreadState* __tstate = wxPyBeginAllowThreads();
15734 result = (wxLocale *)new_wxLocale(arg1,arg2);
15735 wxPyEndAllowThreads(__tstate);
15736 if (PyErr_Occurred()) SWIG_fail;
15737 }
15738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15739 return resultobj;
15740fail:
15741 return NULL;
d55e5bfc
RD
15742}
15743
15744
1bd55598
RD
15745SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15746 PyObject *resultobj = 0;
15747 wxLocale *arg1 = (wxLocale *) 0 ;
15748 void *argp1 = 0 ;
15749 int res1 = 0 ;
15750 PyObject *swig_obj[1] ;
15751
15752 if (!args) SWIG_fail;
15753 swig_obj[0] = args;
15754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15755 if (!SWIG_IsOK(res1)) {
15756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15757 }
15758 arg1 = reinterpret_cast< wxLocale * >(argp1);
15759 {
15760 PyThreadState* __tstate = wxPyBeginAllowThreads();
15761 delete arg1;
d55e5bfc 15762
1bd55598
RD
15763 wxPyEndAllowThreads(__tstate);
15764 if (PyErr_Occurred()) SWIG_fail;
15765 }
15766 resultobj = SWIG_Py_Void();
15767 return resultobj;
15768fail:
15769 return NULL;
15770}
15771
15772
15773SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15774 PyObject *resultobj = 0;
15775 wxLocale *arg1 = (wxLocale *) 0 ;
15776 wxString *arg2 = 0 ;
15777 wxString const &arg3_defvalue = wxPyEmptyString ;
15778 wxString *arg3 = (wxString *) &arg3_defvalue ;
15779 wxString const &arg4_defvalue = wxPyEmptyString ;
15780 wxString *arg4 = (wxString *) &arg4_defvalue ;
15781 bool arg5 = (bool) true ;
15782 bool arg6 = (bool) false ;
15783 bool result;
15784 void *argp1 = 0 ;
15785 int res1 = 0 ;
15786 bool temp2 = false ;
15787 bool temp3 = false ;
15788 bool temp4 = false ;
15789 bool val5 ;
15790 int ecode5 = 0 ;
15791 bool val6 ;
15792 int ecode6 = 0 ;
15793 PyObject * obj0 = 0 ;
15794 PyObject * obj1 = 0 ;
15795 PyObject * obj2 = 0 ;
15796 PyObject * obj3 = 0 ;
15797 PyObject * obj4 = 0 ;
15798 PyObject * obj5 = 0 ;
15799 char * kwnames[] = {
15800 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15801 };
15802
15803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15805 if (!SWIG_IsOK(res1)) {
15806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15807 }
15808 arg1 = reinterpret_cast< wxLocale * >(argp1);
15809 {
15810 arg2 = wxString_in_helper(obj1);
15811 if (arg2 == NULL) SWIG_fail;
15812 temp2 = true;
15813 }
15814 if (obj2) {
d55e5bfc 15815 {
1bd55598
RD
15816 arg3 = wxString_in_helper(obj2);
15817 if (arg3 == NULL) SWIG_fail;
15818 temp3 = true;
d55e5bfc 15819 }
1bd55598
RD
15820 }
15821 if (obj3) {
36ed4f51 15822 {
1bd55598
RD
15823 arg4 = wxString_in_helper(obj3);
15824 if (arg4 == NULL) SWIG_fail;
15825 temp4 = true;
36ed4f51 15826 }
1bd55598
RD
15827 }
15828 if (obj4) {
15829 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15830 if (!SWIG_IsOK(ecode5)) {
15831 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15832 }
15833 arg5 = static_cast< bool >(val5);
15834 }
15835 if (obj5) {
15836 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15837 if (!SWIG_IsOK(ecode6)) {
15838 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15839 }
15840 arg6 = static_cast< bool >(val6);
15841 }
15842 {
15843 PyThreadState* __tstate = wxPyBeginAllowThreads();
15844 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15845 wxPyEndAllowThreads(__tstate);
15846 if (PyErr_Occurred()) SWIG_fail;
15847 }
15848 {
15849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15850 }
15851 {
15852 if (temp2)
15853 delete arg2;
15854 }
15855 {
15856 if (temp3)
15857 delete arg3;
15858 }
15859 {
15860 if (temp4)
15861 delete arg4;
15862 }
15863 return resultobj;
15864fail:
15865 {
15866 if (temp2)
15867 delete arg2;
15868 }
15869 {
15870 if (temp3)
15871 delete arg3;
15872 }
15873 {
15874 if (temp4)
15875 delete arg4;
15876 }
15877 return NULL;
15878}
15879
15880
15881SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15882 PyObject *resultobj = 0;
15883 wxLocale *arg1 = (wxLocale *) 0 ;
15884 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15885 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15886 bool result;
15887 void *argp1 = 0 ;
15888 int res1 = 0 ;
15889 int val2 ;
15890 int ecode2 = 0 ;
15891 int val3 ;
15892 int ecode3 = 0 ;
15893 PyObject * obj0 = 0 ;
15894 PyObject * obj1 = 0 ;
15895 PyObject * obj2 = 0 ;
15896 char * kwnames[] = {
15897 (char *) "self",(char *) "language",(char *) "flags", NULL
15898 };
15899
15900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15902 if (!SWIG_IsOK(res1)) {
15903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15904 }
15905 arg1 = reinterpret_cast< wxLocale * >(argp1);
15906 if (obj1) {
15907 ecode2 = SWIG_AsVal_int(obj1, &val2);
15908 if (!SWIG_IsOK(ecode2)) {
15909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15910 }
15911 arg2 = static_cast< int >(val2);
15912 }
15913 if (obj2) {
15914 ecode3 = SWIG_AsVal_int(obj2, &val3);
15915 if (!SWIG_IsOK(ecode3)) {
15916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15917 }
15918 arg3 = static_cast< int >(val3);
15919 }
15920 {
15921 PyThreadState* __tstate = wxPyBeginAllowThreads();
15922 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15923 wxPyEndAllowThreads(__tstate);
15924 if (PyErr_Occurred()) SWIG_fail;
15925 }
15926 {
15927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15928 }
15929 return resultobj;
15930fail:
15931 return NULL;
d55e5bfc
RD
15932}
15933
15934
1bd55598
RD
15935SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15936 PyObject *resultobj = 0;
15937 int result;
15938
15939 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15940 {
15941 PyThreadState* __tstate = wxPyBeginAllowThreads();
15942 result = (int)wxLocale::GetSystemLanguage();
15943 wxPyEndAllowThreads(__tstate);
15944 if (PyErr_Occurred()) SWIG_fail;
15945 }
15946 resultobj = SWIG_From_int(static_cast< int >(result));
15947 return resultobj;
15948fail:
15949 return NULL;
d55e5bfc
RD
15950}
15951
15952
1bd55598
RD
15953SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15954 PyObject *resultobj = 0;
15955 wxFontEncoding result;
15956
15957 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15958 {
15959 PyThreadState* __tstate = wxPyBeginAllowThreads();
15960 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15961 wxPyEndAllowThreads(__tstate);
15962 if (PyErr_Occurred()) SWIG_fail;
15963 }
15964 resultobj = SWIG_From_int(static_cast< int >(result));
15965 return resultobj;
15966fail:
15967 return NULL;
d55e5bfc
RD
15968}
15969
15970
1bd55598
RD
15971SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15972 PyObject *resultobj = 0;
15973 wxString result;
15974
15975 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15976 {
15977 PyThreadState* __tstate = wxPyBeginAllowThreads();
15978 result = wxLocale::GetSystemEncodingName();
15979 wxPyEndAllowThreads(__tstate);
15980 if (PyErr_Occurred()) SWIG_fail;
15981 }
15982 {
15983#if wxUSE_UNICODE
15984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15985#else
15986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15987#endif
15988 }
15989 return resultobj;
15990fail:
15991 return NULL;
d55e5bfc
RD
15992}
15993
15994
1bd55598
RD
15995SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15996 PyObject *resultobj = 0;
15997 wxLocale *arg1 = (wxLocale *) 0 ;
15998 bool result;
15999 void *argp1 = 0 ;
16000 int res1 = 0 ;
16001 PyObject *swig_obj[1] ;
16002
16003 if (!args) SWIG_fail;
16004 swig_obj[0] = args;
16005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16006 if (!SWIG_IsOK(res1)) {
16007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16008 }
16009 arg1 = reinterpret_cast< wxLocale * >(argp1);
16010 {
16011 PyThreadState* __tstate = wxPyBeginAllowThreads();
16012 result = (bool)((wxLocale const *)arg1)->IsOk();
16013 wxPyEndAllowThreads(__tstate);
16014 if (PyErr_Occurred()) SWIG_fail;
16015 }
16016 {
16017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16018 }
16019 return resultobj;
16020fail:
16021 return NULL;
d55e5bfc
RD
16022}
16023
16024
1bd55598
RD
16025SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16026 PyObject *resultobj = 0;
16027 wxLocale *arg1 = (wxLocale *) 0 ;
16028 wxString result;
16029 void *argp1 = 0 ;
16030 int res1 = 0 ;
16031 PyObject *swig_obj[1] ;
16032
16033 if (!args) SWIG_fail;
16034 swig_obj[0] = args;
16035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16036 if (!SWIG_IsOK(res1)) {
16037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16038 }
16039 arg1 = reinterpret_cast< wxLocale * >(argp1);
16040 {
16041 PyThreadState* __tstate = wxPyBeginAllowThreads();
16042 result = ((wxLocale const *)arg1)->GetLocale();
16043 wxPyEndAllowThreads(__tstate);
16044 if (PyErr_Occurred()) SWIG_fail;
16045 }
16046 {
16047#if wxUSE_UNICODE
16048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16049#else
16050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16051#endif
16052 }
16053 return resultobj;
16054fail:
16055 return NULL;
d55e5bfc
RD
16056}
16057
16058
1bd55598
RD
16059SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16060 PyObject *resultobj = 0;
16061 wxLocale *arg1 = (wxLocale *) 0 ;
16062 int result;
16063 void *argp1 = 0 ;
16064 int res1 = 0 ;
16065 PyObject *swig_obj[1] ;
16066
16067 if (!args) SWIG_fail;
16068 swig_obj[0] = args;
16069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16070 if (!SWIG_IsOK(res1)) {
16071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16072 }
16073 arg1 = reinterpret_cast< wxLocale * >(argp1);
16074 {
16075 PyThreadState* __tstate = wxPyBeginAllowThreads();
16076 result = (int)((wxLocale const *)arg1)->GetLanguage();
16077 wxPyEndAllowThreads(__tstate);
16078 if (PyErr_Occurred()) SWIG_fail;
16079 }
16080 resultobj = SWIG_From_int(static_cast< int >(result));
16081 return resultobj;
16082fail:
16083 return NULL;
d55e5bfc
RD
16084}
16085
16086
1bd55598
RD
16087SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16088 PyObject *resultobj = 0;
16089 wxLocale *arg1 = (wxLocale *) 0 ;
16090 wxString result;
16091 void *argp1 = 0 ;
16092 int res1 = 0 ;
16093 PyObject *swig_obj[1] ;
16094
16095 if (!args) SWIG_fail;
16096 swig_obj[0] = args;
16097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16098 if (!SWIG_IsOK(res1)) {
16099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16100 }
16101 arg1 = reinterpret_cast< wxLocale * >(argp1);
16102 {
16103 PyThreadState* __tstate = wxPyBeginAllowThreads();
16104 result = ((wxLocale const *)arg1)->GetSysName();
16105 wxPyEndAllowThreads(__tstate);
16106 if (PyErr_Occurred()) SWIG_fail;
16107 }
16108 {
36ed4f51 16109#if wxUSE_UNICODE
1bd55598 16110 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16111#else
1bd55598 16112 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16113#endif
1bd55598
RD
16114 }
16115 return resultobj;
16116fail:
16117 return NULL;
d55e5bfc
RD
16118}
16119
16120
1bd55598
RD
16121SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16122 PyObject *resultobj = 0;
16123 wxLocale *arg1 = (wxLocale *) 0 ;
16124 wxString result;
16125 void *argp1 = 0 ;
16126 int res1 = 0 ;
16127 PyObject *swig_obj[1] ;
16128
16129 if (!args) SWIG_fail;
16130 swig_obj[0] = args;
16131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16132 if (!SWIG_IsOK(res1)) {
16133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16134 }
16135 arg1 = reinterpret_cast< wxLocale * >(argp1);
16136 {
16137 PyThreadState* __tstate = wxPyBeginAllowThreads();
16138 result = ((wxLocale const *)arg1)->GetCanonicalName();
16139 wxPyEndAllowThreads(__tstate);
16140 if (PyErr_Occurred()) SWIG_fail;
16141 }
16142 {
16143#if wxUSE_UNICODE
16144 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16145#else
16146 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16147#endif
16148 }
16149 return resultobj;
16150fail:
16151 return NULL;
d55e5bfc
RD
16152}
16153
16154
1bd55598
RD
16155SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16156 PyObject *resultobj = 0;
16157 wxString *arg1 = 0 ;
16158 bool temp1 = false ;
16159 PyObject * obj0 = 0 ;
16160 char * kwnames[] = {
16161 (char *) "prefix", NULL
16162 };
16163
16164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16165 {
16166 arg1 = wxString_in_helper(obj0);
16167 if (arg1 == NULL) SWIG_fail;
16168 temp1 = true;
16169 }
16170 {
16171 PyThreadState* __tstate = wxPyBeginAllowThreads();
16172 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16173 wxPyEndAllowThreads(__tstate);
16174 if (PyErr_Occurred()) SWIG_fail;
16175 }
16176 resultobj = SWIG_Py_Void();
16177 {
16178 if (temp1)
16179 delete arg1;
16180 }
16181 return resultobj;
16182fail:
16183 {
16184 if (temp1)
16185 delete arg1;
16186 }
16187 return NULL;
16188}
16189
16190
16191SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16192 PyObject *resultobj = 0;
16193 wxLocale *arg1 = (wxLocale *) 0 ;
16194 wxString *arg2 = 0 ;
16195 bool result;
16196 void *argp1 = 0 ;
16197 int res1 = 0 ;
16198 bool temp2 = false ;
16199 PyObject * obj0 = 0 ;
16200 PyObject * obj1 = 0 ;
16201 char * kwnames[] = {
16202 (char *) "self",(char *) "szDomain", NULL
16203 };
16204
16205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16207 if (!SWIG_IsOK(res1)) {
16208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16209 }
16210 arg1 = reinterpret_cast< wxLocale * >(argp1);
16211 {
16212 arg2 = wxString_in_helper(obj1);
16213 if (arg2 == NULL) SWIG_fail;
16214 temp2 = true;
16215 }
16216 {
16217 PyThreadState* __tstate = wxPyBeginAllowThreads();
16218 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16219 wxPyEndAllowThreads(__tstate);
16220 if (PyErr_Occurred()) SWIG_fail;
16221 }
16222 {
16223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16224 }
16225 {
16226 if (temp2)
16227 delete arg2;
16228 }
16229 return resultobj;
16230fail:
16231 {
16232 if (temp2)
16233 delete arg2;
16234 }
16235 return NULL;
16236}
16237
16238
33d6fd3b
RD
16239SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16240 PyObject *resultobj = 0;
16241 int arg1 ;
16242 bool result;
16243 int val1 ;
16244 int ecode1 = 0 ;
16245 PyObject * obj0 = 0 ;
16246 char * kwnames[] = {
16247 (char *) "lang", NULL
16248 };
16249
16250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16251 ecode1 = SWIG_AsVal_int(obj0, &val1);
16252 if (!SWIG_IsOK(ecode1)) {
16253 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16254 }
16255 arg1 = static_cast< int >(val1);
16256 {
16257 PyThreadState* __tstate = wxPyBeginAllowThreads();
16258 result = (bool)wxLocale::IsAvailable(arg1);
16259 wxPyEndAllowThreads(__tstate);
16260 if (PyErr_Occurred()) SWIG_fail;
16261 }
16262 {
16263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16264 }
16265 return resultobj;
16266fail:
16267 return NULL;
16268}
16269
16270
1bd55598
RD
16271SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16272 PyObject *resultobj = 0;
16273 wxLocale *arg1 = (wxLocale *) 0 ;
16274 wxString *arg2 = 0 ;
16275 bool result;
16276 void *argp1 = 0 ;
16277 int res1 = 0 ;
16278 bool temp2 = false ;
16279 PyObject * obj0 = 0 ;
16280 PyObject * obj1 = 0 ;
16281 char * kwnames[] = {
16282 (char *) "self",(char *) "szDomain", NULL
16283 };
16284
16285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16287 if (!SWIG_IsOK(res1)) {
16288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16289 }
16290 arg1 = reinterpret_cast< wxLocale * >(argp1);
16291 {
16292 arg2 = wxString_in_helper(obj1);
16293 if (arg2 == NULL) SWIG_fail;
16294 temp2 = true;
16295 }
16296 {
16297 PyThreadState* __tstate = wxPyBeginAllowThreads();
16298 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16299 wxPyEndAllowThreads(__tstate);
16300 if (PyErr_Occurred()) SWIG_fail;
16301 }
16302 {
16303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16304 }
16305 {
16306 if (temp2)
16307 delete arg2;
16308 }
16309 return resultobj;
16310fail:
16311 {
16312 if (temp2)
16313 delete arg2;
16314 }
16315 return NULL;
d55e5bfc
RD
16316}
16317
16318
1bd55598
RD
16319SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16320 PyObject *resultobj = 0;
16321 int arg1 ;
16322 wxLanguageInfo *result = 0 ;
16323 int val1 ;
16324 int ecode1 = 0 ;
16325 PyObject * obj0 = 0 ;
16326 char * kwnames[] = {
16327 (char *) "lang", NULL
16328 };
16329
16330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16331 ecode1 = SWIG_AsVal_int(obj0, &val1);
16332 if (!SWIG_IsOK(ecode1)) {
16333 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16334 }
16335 arg1 = static_cast< int >(val1);
16336 {
16337 PyThreadState* __tstate = wxPyBeginAllowThreads();
16338 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16339 wxPyEndAllowThreads(__tstate);
16340 if (PyErr_Occurred()) SWIG_fail;
16341 }
16342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16343 return resultobj;
16344fail:
16345 return NULL;
16346}
16347
16348
16349SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16350 PyObject *resultobj = 0;
16351 int arg1 ;
16352 wxString result;
16353 int val1 ;
16354 int ecode1 = 0 ;
16355 PyObject * obj0 = 0 ;
16356 char * kwnames[] = {
16357 (char *) "lang", NULL
16358 };
16359
16360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16361 ecode1 = SWIG_AsVal_int(obj0, &val1);
16362 if (!SWIG_IsOK(ecode1)) {
16363 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16364 }
16365 arg1 = static_cast< int >(val1);
16366 {
16367 PyThreadState* __tstate = wxPyBeginAllowThreads();
16368 result = wxLocale::GetLanguageName(arg1);
16369 wxPyEndAllowThreads(__tstate);
16370 if (PyErr_Occurred()) SWIG_fail;
16371 }
16372 {
16373#if wxUSE_UNICODE
16374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16375#else
16376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16377#endif
16378 }
16379 return resultobj;
16380fail:
16381 return NULL;
d55e5bfc
RD
16382}
16383
16384
1bd55598
RD
16385SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16386 PyObject *resultobj = 0;
16387 wxString *arg1 = 0 ;
16388 wxLanguageInfo *result = 0 ;
16389 bool temp1 = false ;
16390 PyObject * obj0 = 0 ;
16391 char * kwnames[] = {
16392 (char *) "locale", NULL
16393 };
16394
16395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16396 {
16397 arg1 = wxString_in_helper(obj0);
16398 if (arg1 == NULL) SWIG_fail;
16399 temp1 = true;
16400 }
16401 {
16402 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16403 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16404 wxPyEndAllowThreads(__tstate);
16405 if (PyErr_Occurred()) SWIG_fail;
16406 }
16407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16408 {
16409 if (temp1)
16410 delete arg1;
16411 }
16412 return resultobj;
16413fail:
16414 {
16415 if (temp1)
16416 delete arg1;
16417 }
16418 return NULL;
16419}
16420
16421
16422SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16423 PyObject *resultobj = 0;
16424 wxLanguageInfo *arg1 = 0 ;
16425 void *argp1 = 0 ;
16426 int res1 = 0 ;
16427 PyObject * obj0 = 0 ;
16428 char * kwnames[] = {
16429 (char *) "info", NULL
16430 };
16431
16432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16433 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16434 if (!SWIG_IsOK(res1)) {
16435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16436 }
16437 if (!argp1) {
16438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16439 }
16440 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16441 {
16442 PyThreadState* __tstate = wxPyBeginAllowThreads();
16443 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16444 wxPyEndAllowThreads(__tstate);
16445 if (PyErr_Occurred()) SWIG_fail;
16446 }
16447 resultobj = SWIG_Py_Void();
16448 return resultobj;
16449fail:
16450 return NULL;
16451}
16452
16453
16454SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16455 PyObject *resultobj = 0;
16456 wxLocale *arg1 = (wxLocale *) 0 ;
16457 wxString *arg2 = 0 ;
16458 wxString const &arg3_defvalue = wxPyEmptyString ;
16459 wxString *arg3 = (wxString *) &arg3_defvalue ;
16460 wxString result;
16461 void *argp1 = 0 ;
16462 int res1 = 0 ;
16463 bool temp2 = false ;
16464 bool temp3 = false ;
16465 PyObject * obj0 = 0 ;
16466 PyObject * obj1 = 0 ;
16467 PyObject * obj2 = 0 ;
16468 char * kwnames[] = {
16469 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16470 };
16471
16472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16474 if (!SWIG_IsOK(res1)) {
16475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16476 }
16477 arg1 = reinterpret_cast< wxLocale * >(argp1);
16478 {
16479 arg2 = wxString_in_helper(obj1);
16480 if (arg2 == NULL) SWIG_fail;
16481 temp2 = true;
16482 }
16483 if (obj2) {
16484 {
16485 arg3 = wxString_in_helper(obj2);
16486 if (arg3 == NULL) SWIG_fail;
16487 temp3 = true;
16488 }
16489 }
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
16492 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16493 wxPyEndAllowThreads(__tstate);
16494 if (PyErr_Occurred()) SWIG_fail;
16495 }
16496 {
16497#if wxUSE_UNICODE
16498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16499#else
16500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16501#endif
16502 }
16503 {
16504 if (temp2)
16505 delete arg2;
16506 }
16507 {
16508 if (temp3)
16509 delete arg3;
16510 }
16511 return resultobj;
16512fail:
16513 {
16514 if (temp2)
16515 delete arg2;
16516 }
16517 {
16518 if (temp3)
16519 delete arg3;
16520 }
16521 return NULL;
16522}
16523
16524
16525SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16526 PyObject *resultobj = 0;
16527 wxLocale *arg1 = (wxLocale *) 0 ;
16528 wxString *result = 0 ;
16529 void *argp1 = 0 ;
16530 int res1 = 0 ;
16531 PyObject *swig_obj[1] ;
16532
16533 if (!args) SWIG_fail;
16534 swig_obj[0] = args;
16535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16536 if (!SWIG_IsOK(res1)) {
16537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16538 }
16539 arg1 = reinterpret_cast< wxLocale * >(argp1);
16540 {
16541 PyThreadState* __tstate = wxPyBeginAllowThreads();
16542 {
16543 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16544 result = (wxString *) &_result_ref;
16545 }
16546 wxPyEndAllowThreads(__tstate);
16547 if (PyErr_Occurred()) SWIG_fail;
16548 }
16549 {
16550#if wxUSE_UNICODE
16551 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16552#else
16553 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16554#endif
16555 }
16556 return resultobj;
16557fail:
16558 return NULL;
16559}
16560
16561
16562SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16563 PyObject *obj;
16564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16565 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16566 return SWIG_Py_Void();
16567}
16568
16569SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16570 return SWIG_Python_InitShadowInstance(args);
16571}
16572
16573SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16574 PyObject *resultobj = 0;
16575 int arg1 = (int) -1 ;
16576 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16577 wxPyLocale *result = 0 ;
16578 int val1 ;
16579 int ecode1 = 0 ;
16580 int val2 ;
16581 int ecode2 = 0 ;
16582 PyObject * obj0 = 0 ;
16583 PyObject * obj1 = 0 ;
16584 char * kwnames[] = {
16585 (char *) "language",(char *) "flags", NULL
16586 };
16587
16588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16589 if (obj0) {
16590 ecode1 = SWIG_AsVal_int(obj0, &val1);
16591 if (!SWIG_IsOK(ecode1)) {
16592 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16593 }
16594 arg1 = static_cast< int >(val1);
16595 }
16596 if (obj1) {
16597 ecode2 = SWIG_AsVal_int(obj1, &val2);
16598 if (!SWIG_IsOK(ecode2)) {
16599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16600 }
16601 arg2 = static_cast< int >(val2);
16602 }
16603 {
16604 PyThreadState* __tstate = wxPyBeginAllowThreads();
16605 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16606 wxPyEndAllowThreads(__tstate);
16607 if (PyErr_Occurred()) SWIG_fail;
16608 }
16609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16610 return resultobj;
16611fail:
16612 return NULL;
16613}
16614
16615
16616SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16617 PyObject *resultobj = 0;
16618 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16619 void *argp1 = 0 ;
16620 int res1 = 0 ;
16621 PyObject *swig_obj[1] ;
16622
16623 if (!args) SWIG_fail;
16624 swig_obj[0] = args;
16625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16626 if (!SWIG_IsOK(res1)) {
16627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16628 }
16629 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16630 {
16631 PyThreadState* __tstate = wxPyBeginAllowThreads();
16632 delete arg1;
16633
1bd55598
RD
16634 wxPyEndAllowThreads(__tstate);
16635 if (PyErr_Occurred()) SWIG_fail;
16636 }
fc46b7f3 16637 resultobj = SWIG_Py_Void();
1bd55598
RD
16638 return resultobj;
16639fail:
1bd55598 16640 return NULL;
d55e5bfc
RD
16641}
16642
16643
fc46b7f3 16644SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16645 PyObject *resultobj = 0;
fc46b7f3
RD
16646 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16647 PyObject *arg2 = (PyObject *) 0 ;
16648 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16649 void *argp1 = 0 ;
16650 int res1 = 0 ;
16651 PyObject * obj0 = 0 ;
fc46b7f3
RD
16652 PyObject * obj1 = 0 ;
16653 PyObject * obj2 = 0 ;
1bd55598 16654 char * kwnames[] = {
fc46b7f3 16655 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16656 };
16657
fc46b7f3
RD
16658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16660 if (!SWIG_IsOK(res1)) {
fc46b7f3 16661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16662 }
fc46b7f3
RD
16663 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16664 arg2 = obj1;
16665 arg3 = obj2;
1bd55598
RD
16666 {
16667 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16668 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16669 wxPyEndAllowThreads(__tstate);
16670 if (PyErr_Occurred()) SWIG_fail;
16671 }
16672 resultobj = SWIG_Py_Void();
16673 return resultobj;
16674fail:
16675 return NULL;
16676}
16677
16678
fc46b7f3 16679SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16680 PyObject *resultobj = 0;
fc46b7f3
RD
16681 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16682 wxChar *arg2 = (wxChar *) 0 ;
16683 wxChar *arg3 = (wxChar *) NULL ;
16684 wxChar *result = 0 ;
1bd55598
RD
16685 void *argp1 = 0 ;
16686 int res1 = 0 ;
fc46b7f3
RD
16687 void *argp2 = 0 ;
16688 int res2 = 0 ;
16689 void *argp3 = 0 ;
16690 int res3 = 0 ;
1bd55598
RD
16691 PyObject * obj0 = 0 ;
16692 PyObject * obj1 = 0 ;
16693 PyObject * obj2 = 0 ;
16694 char * kwnames[] = {
16695 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16696 };
16697
fc46b7f3
RD
16698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16700 if (!SWIG_IsOK(res1)) {
fc46b7f3 16701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16702 }
fc46b7f3
RD
16703 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16704 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16705 if (!SWIG_IsOK(res2)) {
16706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16707 }
fc46b7f3 16708 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16709 if (obj2) {
fc46b7f3
RD
16710 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16711 if (!SWIG_IsOK(res3)) {
16712 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16713 }
fc46b7f3 16714 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16715 }
16716 {
16717 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16718 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16719 wxPyEndAllowThreads(__tstate);
16720 if (PyErr_Occurred()) SWIG_fail;
16721 }
fc46b7f3 16722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16723 return resultobj;
16724fail:
1bd55598 16725 return NULL;
d55e5bfc
RD
16726}
16727
16728
fc46b7f3 16729SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16730 PyObject *resultobj = 0;
fc46b7f3
RD
16731 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16732 wxChar *arg2 = (wxChar *) 0 ;
16733 wxChar *arg3 = (wxChar *) 0 ;
16734 size_t arg4 ;
16735 wxChar *arg5 = (wxChar *) NULL ;
16736 wxChar *result = 0 ;
1bd55598
RD
16737 void *argp1 = 0 ;
16738 int res1 = 0 ;
fc46b7f3
RD
16739 void *argp2 = 0 ;
16740 int res2 = 0 ;
16741 void *argp3 = 0 ;
16742 int res3 = 0 ;
16743 size_t val4 ;
16744 int ecode4 = 0 ;
16745 void *argp5 = 0 ;
16746 int res5 = 0 ;
16747 PyObject * obj0 = 0 ;
16748 PyObject * obj1 = 0 ;
16749 PyObject * obj2 = 0 ;
16750 PyObject * obj3 = 0 ;
16751 PyObject * obj4 = 0 ;
16752 char * kwnames[] = {
16753 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16754 };
1bd55598 16755
fc46b7f3
RD
16756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16758 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16760 }
16761 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16762 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16763 if (!SWIG_IsOK(res2)) {
16764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16765 }
16766 arg2 = reinterpret_cast< wxChar * >(argp2);
16767 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16768 if (!SWIG_IsOK(res3)) {
16769 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16770 }
16771 arg3 = reinterpret_cast< wxChar * >(argp3);
16772 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16773 if (!SWIG_IsOK(ecode4)) {
16774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16775 }
16776 arg4 = static_cast< size_t >(val4);
16777 if (obj4) {
16778 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16779 if (!SWIG_IsOK(res5)) {
16780 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16781 }
16782 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16783 }
1bd55598
RD
16784 {
16785 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16786 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16787 wxPyEndAllowThreads(__tstate);
16788 if (PyErr_Occurred()) SWIG_fail;
16789 }
fc46b7f3 16790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16791 return resultobj;
16792fail:
16793 return NULL;
d55e5bfc
RD
16794}
16795
16796
fc46b7f3 16797SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16798 PyObject *obj;
16799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16800 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16801 return SWIG_Py_Void();
d55e5bfc
RD
16802}
16803
fc46b7f3 16804SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16805 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16806}
16807
1bd55598
RD
16808SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16809 PyObject *resultobj = 0;
16810 wxLocale *result = 0 ;
16811
16812 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16813 {
16814 PyThreadState* __tstate = wxPyBeginAllowThreads();
16815 result = (wxLocale *)wxGetLocale();
16816 wxPyEndAllowThreads(__tstate);
16817 if (PyErr_Occurred()) SWIG_fail;
16818 }
16819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16820 return resultobj;
16821fail:
16822 return NULL;
d55e5bfc
RD
16823}
16824
16825
1bd55598
RD
16826SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16827 PyObject *resultobj = 0;
16828 wxString *arg1 = 0 ;
16829 wxString result;
16830 bool temp1 = false ;
16831
16832 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16833 {
16834 arg1 = wxString_in_helper(swig_obj[0]);
16835 if (arg1 == NULL) SWIG_fail;
16836 temp1 = true;
16837 }
16838 {
16839 PyThreadState* __tstate = wxPyBeginAllowThreads();
16840 result = wxGetTranslation((wxString const &)*arg1);
16841 wxPyEndAllowThreads(__tstate);
16842 if (PyErr_Occurred()) SWIG_fail;
16843 }
16844 {
36ed4f51 16845#if wxUSE_UNICODE
1bd55598 16846 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16847#else
1bd55598 16848 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16849#endif
1bd55598
RD
16850 }
16851 {
16852 if (temp1)
16853 delete arg1;
16854 }
16855 return resultobj;
16856fail:
16857 {
16858 if (temp1)
16859 delete arg1;
16860 }
16861 return NULL;
5e483524
RD
16862}
16863
16864
1bd55598 16865SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16866 PyObject *resultobj = 0;
16867 wxString *arg1 = 0 ;
16868 wxString *arg2 = 0 ;
16869 wxString result;
16870 bool temp1 = false ;
16871 bool temp2 = false ;
16872
16873 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16874 {
16875 arg1 = wxString_in_helper(swig_obj[0]);
16876 if (arg1 == NULL) SWIG_fail;
16877 temp1 = true;
16878 }
16879 {
16880 arg2 = wxString_in_helper(swig_obj[1]);
16881 if (arg2 == NULL) SWIG_fail;
16882 temp2 = true;
16883 }
16884 {
16885 PyThreadState* __tstate = wxPyBeginAllowThreads();
16886 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16887 wxPyEndAllowThreads(__tstate);
16888 if (PyErr_Occurred()) SWIG_fail;
16889 }
16890 {
16891#if wxUSE_UNICODE
16892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16893#else
16894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16895#endif
16896 }
16897 {
16898 if (temp1)
16899 delete arg1;
16900 }
16901 {
16902 if (temp2)
16903 delete arg2;
16904 }
16905 return resultobj;
16906fail:
16907 {
16908 if (temp1)
16909 delete arg1;
16910 }
16911 {
16912 if (temp2)
16913 delete arg2;
16914 }
16915 return NULL;
16916}
16917
16918
16919SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
16920 PyObject *resultobj = 0;
16921 wxString *arg1 = 0 ;
16922 wxString *arg2 = 0 ;
16923 size_t arg3 ;
16924 wxString result;
16925 bool temp1 = false ;
16926 bool temp2 = false ;
16927 size_t val3 ;
16928 int ecode3 = 0 ;
16929
16930 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16931 {
16932 arg1 = wxString_in_helper(swig_obj[0]);
16933 if (arg1 == NULL) SWIG_fail;
16934 temp1 = true;
16935 }
16936 {
16937 arg2 = wxString_in_helper(swig_obj[1]);
16938 if (arg2 == NULL) SWIG_fail;
16939 temp2 = true;
16940 }
16941 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16942 if (!SWIG_IsOK(ecode3)) {
16943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16944 }
16945 arg3 = static_cast< size_t >(val3);
16946 {
16947 PyThreadState* __tstate = wxPyBeginAllowThreads();
16948 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16949 wxPyEndAllowThreads(__tstate);
16950 if (PyErr_Occurred()) SWIG_fail;
16951 }
16952 {
36ed4f51 16953#if wxUSE_UNICODE
1bd55598 16954 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16955#else
1bd55598 16956 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16957#endif
1bd55598
RD
16958 }
16959 {
16960 if (temp1)
16961 delete arg1;
16962 }
16963 {
16964 if (temp2)
16965 delete arg2;
16966 }
16967 return resultobj;
16968fail:
16969 {
16970 if (temp1)
16971 delete arg1;
16972 }
16973 {
16974 if (temp2)
16975 delete arg2;
16976 }
16977 return NULL;
d55e5bfc
RD
16978}
16979
16980
fc46b7f3
RD
16981SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16982 PyObject *resultobj = 0;
16983 wxString *arg1 = 0 ;
16984 wxString *arg2 = 0 ;
16985 size_t arg3 ;
16986 wxString *arg4 = 0 ;
16987 wxString result;
16988 bool temp1 = false ;
16989 bool temp2 = false ;
16990 size_t val3 ;
16991 int ecode3 = 0 ;
16992 bool temp4 = false ;
16993
16994 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16995 {
16996 arg1 = wxString_in_helper(swig_obj[0]);
16997 if (arg1 == NULL) SWIG_fail;
16998 temp1 = true;
16999 }
17000 {
17001 arg2 = wxString_in_helper(swig_obj[1]);
17002 if (arg2 == NULL) SWIG_fail;
17003 temp2 = true;
17004 }
17005 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17006 if (!SWIG_IsOK(ecode3)) {
17007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17008 }
17009 arg3 = static_cast< size_t >(val3);
17010 {
17011 arg4 = wxString_in_helper(swig_obj[3]);
17012 if (arg4 == NULL) SWIG_fail;
17013 temp4 = true;
17014 }
17015 {
17016 PyThreadState* __tstate = wxPyBeginAllowThreads();
17017 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17018 wxPyEndAllowThreads(__tstate);
17019 if (PyErr_Occurred()) SWIG_fail;
17020 }
17021 {
17022#if wxUSE_UNICODE
17023 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17024#else
17025 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17026#endif
17027 }
17028 {
17029 if (temp1)
17030 delete arg1;
17031 }
17032 {
17033 if (temp2)
17034 delete arg2;
17035 }
17036 {
17037 if (temp4)
17038 delete arg4;
17039 }
17040 return resultobj;
17041fail:
17042 {
17043 if (temp1)
17044 delete arg1;
17045 }
17046 {
17047 if (temp2)
17048 delete arg2;
17049 }
17050 {
17051 if (temp4)
17052 delete arg4;
17053 }
17054 return NULL;
17055}
17056
17057
1bd55598
RD
17058SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17059 int argc;
fc46b7f3 17060 PyObject *argv[5];
1bd55598 17061
fc46b7f3 17062 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17063 --argc;
17064 if (argc == 1) {
17065 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17066 }
fc46b7f3 17067 if (argc == 2) {
1bd55598
RD
17068 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17069 }
fc46b7f3
RD
17070 if (argc == 3) {
17071 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17072 }
17073 if (argc == 4) {
17074 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17075 }
1bd55598
RD
17076
17077fail:
17078 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17079 return NULL;
d55e5bfc
RD
17080}
17081
17082
1bd55598
RD
17083SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17084 PyObject *resultobj = 0;
17085 wxEncodingConverter *result = 0 ;
17086
17087 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17088 {
17089 PyThreadState* __tstate = wxPyBeginAllowThreads();
17090 result = (wxEncodingConverter *)new wxEncodingConverter();
17091 wxPyEndAllowThreads(__tstate);
17092 if (PyErr_Occurred()) SWIG_fail;
17093 }
17094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17095 return resultobj;
17096fail:
17097 return NULL;
d55e5bfc
RD
17098}
17099
17100
1bd55598
RD
17101SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17102 PyObject *resultobj = 0;
17103 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17104 void *argp1 = 0 ;
17105 int res1 = 0 ;
17106 PyObject *swig_obj[1] ;
17107
17108 if (!args) SWIG_fail;
17109 swig_obj[0] = args;
17110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17111 if (!SWIG_IsOK(res1)) {
17112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17113 }
17114 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17115 {
17116 PyThreadState* __tstate = wxPyBeginAllowThreads();
17117 delete arg1;
d55e5bfc 17118
1bd55598
RD
17119 wxPyEndAllowThreads(__tstate);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 resultobj = SWIG_Py_Void();
17123 return resultobj;
17124fail:
17125 return NULL;
17126}
17127
17128
17129SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17130 PyObject *resultobj = 0;
17131 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17132 wxFontEncoding arg2 ;
17133 wxFontEncoding arg3 ;
17134 int arg4 = (int) wxCONVERT_STRICT ;
17135 bool result;
17136 void *argp1 = 0 ;
17137 int res1 = 0 ;
17138 int val2 ;
17139 int ecode2 = 0 ;
17140 int val3 ;
17141 int ecode3 = 0 ;
17142 int val4 ;
17143 int ecode4 = 0 ;
17144 PyObject * obj0 = 0 ;
17145 PyObject * obj1 = 0 ;
17146 PyObject * obj2 = 0 ;
17147 PyObject * obj3 = 0 ;
17148 char * kwnames[] = {
17149 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17150 };
17151
17152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17154 if (!SWIG_IsOK(res1)) {
17155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17156 }
17157 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17158 ecode2 = SWIG_AsVal_int(obj1, &val2);
17159 if (!SWIG_IsOK(ecode2)) {
17160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17161 }
17162 arg2 = static_cast< wxFontEncoding >(val2);
17163 ecode3 = SWIG_AsVal_int(obj2, &val3);
17164 if (!SWIG_IsOK(ecode3)) {
17165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17166 }
17167 arg3 = static_cast< wxFontEncoding >(val3);
17168 if (obj3) {
17169 ecode4 = SWIG_AsVal_int(obj3, &val4);
17170 if (!SWIG_IsOK(ecode4)) {
17171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17172 }
17173 arg4 = static_cast< int >(val4);
17174 }
17175 {
17176 PyThreadState* __tstate = wxPyBeginAllowThreads();
17177 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17178 wxPyEndAllowThreads(__tstate);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
17181 {
17182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17183 }
17184 return resultobj;
17185fail:
17186 return NULL;
17187}
17188
17189
17190SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17191 PyObject *resultobj = 0;
17192 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17193 wxString *arg2 = 0 ;
17194 wxString result;
17195 void *argp1 = 0 ;
17196 int res1 = 0 ;
17197 bool temp2 = false ;
17198 PyObject * obj0 = 0 ;
17199 PyObject * obj1 = 0 ;
17200 char * kwnames[] = {
17201 (char *) "self",(char *) "input", NULL
17202 };
17203
17204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17206 if (!SWIG_IsOK(res1)) {
17207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17208 }
17209 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17210 {
17211 arg2 = wxString_in_helper(obj1);
17212 if (arg2 == NULL) SWIG_fail;
17213 temp2 = true;
17214 }
17215 {
17216 PyThreadState* __tstate = wxPyBeginAllowThreads();
17217 result = (arg1)->Convert((wxString const &)*arg2);
17218 wxPyEndAllowThreads(__tstate);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 }
17221 {
d55e5bfc 17222#if wxUSE_UNICODE
1bd55598 17223 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17224#else
1bd55598 17225 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17226#endif
1bd55598
RD
17227 }
17228 {
17229 if (temp2)
17230 delete arg2;
17231 }
17232 return resultobj;
17233fail:
17234 {
17235 if (temp2)
17236 delete arg2;
17237 }
17238 return NULL;
17239}
17240
17241
17242SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17243 PyObject *resultobj = 0;
17244 wxFontEncoding arg1 ;
17245 int arg2 = (int) wxPLATFORM_CURRENT ;
17246 wxFontEncodingArray result;
17247 int val1 ;
17248 int ecode1 = 0 ;
17249 int val2 ;
17250 int ecode2 = 0 ;
17251 PyObject * obj0 = 0 ;
17252 PyObject * obj1 = 0 ;
17253 char * kwnames[] = {
17254 (char *) "enc",(char *) "platform", NULL
17255 };
17256
17257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17258 ecode1 = SWIG_AsVal_int(obj0, &val1);
17259 if (!SWIG_IsOK(ecode1)) {
17260 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17261 }
17262 arg1 = static_cast< wxFontEncoding >(val1);
17263 if (obj1) {
17264 ecode2 = SWIG_AsVal_int(obj1, &val2);
17265 if (!SWIG_IsOK(ecode2)) {
17266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17267 }
17268 arg2 = static_cast< int >(val2);
17269 }
17270 {
17271 PyThreadState* __tstate = wxPyBeginAllowThreads();
17272 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17273 wxPyEndAllowThreads(__tstate);
17274 if (PyErr_Occurred()) SWIG_fail;
17275 }
17276 {
17277 resultobj = PyList_New(0);
17278 for (size_t i=0; i < (&result)->GetCount(); i++) {
17279 PyObject* number = PyInt_FromLong((&result)->Item(i));
17280 PyList_Append(resultobj, number);
17281 Py_DECREF(number);
d55e5bfc 17282 }
1bd55598
RD
17283 }
17284 return resultobj;
17285fail:
17286 return NULL;
d55e5bfc
RD
17287}
17288
17289
1bd55598
RD
17290SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17291 PyObject *resultobj = 0;
17292 wxFontEncoding arg1 ;
17293 wxFontEncodingArray result;
17294 int val1 ;
17295 int ecode1 = 0 ;
17296 PyObject * obj0 = 0 ;
17297 char * kwnames[] = {
17298 (char *) "enc", NULL
17299 };
17300
17301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17302 ecode1 = SWIG_AsVal_int(obj0, &val1);
17303 if (!SWIG_IsOK(ecode1)) {
17304 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17305 }
17306 arg1 = static_cast< wxFontEncoding >(val1);
17307 {
17308 PyThreadState* __tstate = wxPyBeginAllowThreads();
17309 result = wxEncodingConverter::GetAllEquivalents(arg1);
17310 wxPyEndAllowThreads(__tstate);
17311 if (PyErr_Occurred()) SWIG_fail;
17312 }
17313 {
17314 resultobj = PyList_New(0);
17315 for (size_t i=0; i < (&result)->GetCount(); i++) {
17316 PyObject* number = PyInt_FromLong((&result)->Item(i));
17317 PyList_Append(resultobj, number);
17318 Py_DECREF(number);
d55e5bfc 17319 }
1bd55598
RD
17320 }
17321 return resultobj;
17322fail:
17323 return NULL;
17324}
17325
17326
17327SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17328 PyObject *resultobj = 0;
17329 wxFontEncoding arg1 ;
17330 wxFontEncoding arg2 ;
17331 bool result;
17332 int val1 ;
17333 int ecode1 = 0 ;
17334 int val2 ;
17335 int ecode2 = 0 ;
17336 PyObject * obj0 = 0 ;
17337 PyObject * obj1 = 0 ;
17338 char * kwnames[] = {
17339 (char *) "encIn",(char *) "encOut", NULL
17340 };
17341
17342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17343 ecode1 = SWIG_AsVal_int(obj0, &val1);
17344 if (!SWIG_IsOK(ecode1)) {
17345 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17346 }
17347 arg1 = static_cast< wxFontEncoding >(val1);
17348 ecode2 = SWIG_AsVal_int(obj1, &val2);
17349 if (!SWIG_IsOK(ecode2)) {
17350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17351 }
17352 arg2 = static_cast< wxFontEncoding >(val2);
17353 {
17354 PyThreadState* __tstate = wxPyBeginAllowThreads();
17355 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17356 wxPyEndAllowThreads(__tstate);
17357 if (PyErr_Occurred()) SWIG_fail;
17358 }
17359 {
17360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17361 }
17362 return resultobj;
17363fail:
17364 return NULL;
d55e5bfc
RD
17365}
17366
17367
1bd55598
RD
17368SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17369 PyObject *obj;
17370 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17371 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17372 return SWIG_Py_Void();
d55e5bfc
RD
17373}
17374
1bd55598
RD
17375SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17376 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17377}
17378
1bd55598
RD
17379SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17380 PyObject *resultobj = 0;
17381 wxDC *arg1 = (wxDC *) 0 ;
17382 void *argp1 = 0 ;
17383 int res1 = 0 ;
17384 PyObject *swig_obj[1] ;
17385
17386 if (!args) SWIG_fail;
17387 swig_obj[0] = args;
17388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17389 if (!SWIG_IsOK(res1)) {
17390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17391 }
17392 arg1 = reinterpret_cast< wxDC * >(argp1);
17393 {
17394 PyThreadState* __tstate = wxPyBeginAllowThreads();
17395 delete arg1;
d55e5bfc 17396
1bd55598
RD
17397 wxPyEndAllowThreads(__tstate);
17398 if (PyErr_Occurred()) SWIG_fail;
17399 }
17400 resultobj = SWIG_Py_Void();
17401 return resultobj;
17402fail:
17403 return NULL;
17404}
17405
17406
17407SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17408 PyObject *resultobj = 0;
17409 wxDC *arg1 = (wxDC *) 0 ;
17410 int arg2 ;
17411 int arg3 ;
17412 wxColour *arg4 = 0 ;
17413 int arg5 = (int) wxFLOOD_SURFACE ;
17414 bool result;
17415 void *argp1 = 0 ;
17416 int res1 = 0 ;
17417 int val2 ;
17418 int ecode2 = 0 ;
17419 int val3 ;
17420 int ecode3 = 0 ;
17421 wxColour temp4 ;
17422 int val5 ;
17423 int ecode5 = 0 ;
17424 PyObject * obj0 = 0 ;
17425 PyObject * obj1 = 0 ;
17426 PyObject * obj2 = 0 ;
17427 PyObject * obj3 = 0 ;
17428 PyObject * obj4 = 0 ;
17429 char * kwnames[] = {
17430 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17431 };
17432
17433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17435 if (!SWIG_IsOK(res1)) {
17436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17437 }
17438 arg1 = reinterpret_cast< wxDC * >(argp1);
17439 ecode2 = SWIG_AsVal_int(obj1, &val2);
17440 if (!SWIG_IsOK(ecode2)) {
17441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17442 }
17443 arg2 = static_cast< int >(val2);
17444 ecode3 = SWIG_AsVal_int(obj2, &val3);
17445 if (!SWIG_IsOK(ecode3)) {
17446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17447 }
17448 arg3 = static_cast< int >(val3);
17449 {
17450 arg4 = &temp4;
17451 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17452 }
17453 if (obj4) {
17454 ecode5 = SWIG_AsVal_int(obj4, &val5);
17455 if (!SWIG_IsOK(ecode5)) {
17456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17457 }
17458 arg5 = static_cast< int >(val5);
17459 }
17460 {
17461 PyThreadState* __tstate = wxPyBeginAllowThreads();
17462 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17463 wxPyEndAllowThreads(__tstate);
17464 if (PyErr_Occurred()) SWIG_fail;
17465 }
17466 {
17467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17468 }
17469 return resultobj;
17470fail:
17471 return NULL;
17472}
17473
17474
17475SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17476 PyObject *resultobj = 0;
17477 wxDC *arg1 = (wxDC *) 0 ;
17478 wxPoint *arg2 = 0 ;
17479 wxColour *arg3 = 0 ;
17480 int arg4 = (int) wxFLOOD_SURFACE ;
17481 bool result;
17482 void *argp1 = 0 ;
17483 int res1 = 0 ;
17484 wxPoint temp2 ;
17485 wxColour temp3 ;
17486 int val4 ;
17487 int ecode4 = 0 ;
17488 PyObject * obj0 = 0 ;
17489 PyObject * obj1 = 0 ;
17490 PyObject * obj2 = 0 ;
17491 PyObject * obj3 = 0 ;
17492 char * kwnames[] = {
17493 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17494 };
17495
17496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17498 if (!SWIG_IsOK(res1)) {
17499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17500 }
17501 arg1 = reinterpret_cast< wxDC * >(argp1);
17502 {
17503 arg2 = &temp2;
17504 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17505 }
17506 {
17507 arg3 = &temp3;
17508 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17509 }
17510 if (obj3) {
17511 ecode4 = SWIG_AsVal_int(obj3, &val4);
17512 if (!SWIG_IsOK(ecode4)) {
17513 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17514 }
17515 arg4 = static_cast< int >(val4);
17516 }
17517 {
17518 PyThreadState* __tstate = wxPyBeginAllowThreads();
17519 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17520 wxPyEndAllowThreads(__tstate);
17521 if (PyErr_Occurred()) SWIG_fail;
17522 }
17523 {
17524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17525 }
17526 return resultobj;
17527fail:
17528 return NULL;
17529}
17530
17531
17532SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17533 PyObject *resultobj = 0;
17534 wxDC *arg1 = (wxDC *) 0 ;
17535 wxRect *arg2 = 0 ;
17536 wxColour *arg3 = 0 ;
17537 wxColour *arg4 = 0 ;
17538 wxPoint *arg5 = 0 ;
17539 void *argp1 = 0 ;
17540 int res1 = 0 ;
17541 wxRect temp2 ;
17542 wxColour temp3 ;
17543 wxColour temp4 ;
17544 wxPoint temp5 ;
17545 PyObject * obj0 = 0 ;
17546 PyObject * obj1 = 0 ;
17547 PyObject * obj2 = 0 ;
17548 PyObject * obj3 = 0 ;
17549 PyObject * obj4 = 0 ;
17550 char * kwnames[] = {
17551 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17552 };
17553
17554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17556 if (!SWIG_IsOK(res1)) {
17557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17558 }
17559 arg1 = reinterpret_cast< wxDC * >(argp1);
17560 {
17561 arg2 = &temp2;
17562 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17563 }
17564 {
17565 arg3 = &temp3;
17566 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17567 }
17568 {
17569 arg4 = &temp4;
17570 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17571 }
17572 {
17573 arg5 = &temp5;
17574 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17575 }
17576 {
17577 PyThreadState* __tstate = wxPyBeginAllowThreads();
17578 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17579 wxPyEndAllowThreads(__tstate);
17580 if (PyErr_Occurred()) SWIG_fail;
17581 }
17582 resultobj = SWIG_Py_Void();
17583 return resultobj;
17584fail:
17585 return NULL;
17586}
17587
17588
17589SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17590 PyObject *resultobj = 0;
17591 wxDC *arg1 = (wxDC *) 0 ;
17592 wxRect *arg2 = 0 ;
17593 wxColour *arg3 = 0 ;
17594 wxColour *arg4 = 0 ;
17595 wxDirection arg5 = (wxDirection) wxEAST ;
17596 void *argp1 = 0 ;
17597 int res1 = 0 ;
17598 wxRect temp2 ;
17599 wxColour temp3 ;
17600 wxColour temp4 ;
17601 int val5 ;
17602 int ecode5 = 0 ;
17603 PyObject * obj0 = 0 ;
17604 PyObject * obj1 = 0 ;
17605 PyObject * obj2 = 0 ;
17606 PyObject * obj3 = 0 ;
17607 PyObject * obj4 = 0 ;
17608 char * kwnames[] = {
17609 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17610 };
17611
17612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17614 if (!SWIG_IsOK(res1)) {
17615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17616 }
17617 arg1 = reinterpret_cast< wxDC * >(argp1);
17618 {
17619 arg2 = &temp2;
17620 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17621 }
17622 {
17623 arg3 = &temp3;
17624 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17625 }
17626 {
17627 arg4 = &temp4;
17628 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17629 }
17630 if (obj4) {
17631 ecode5 = SWIG_AsVal_int(obj4, &val5);
17632 if (!SWIG_IsOK(ecode5)) {
17633 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17634 }
17635 arg5 = static_cast< wxDirection >(val5);
17636 }
17637 {
17638 PyThreadState* __tstate = wxPyBeginAllowThreads();
17639 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17640 wxPyEndAllowThreads(__tstate);
17641 if (PyErr_Occurred()) SWIG_fail;
17642 }
17643 resultobj = SWIG_Py_Void();
17644 return resultobj;
17645fail:
17646 return NULL;
17647}
17648
17649
17650SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17651 PyObject *resultobj = 0;
17652 wxDC *arg1 = (wxDC *) 0 ;
17653 int arg2 ;
17654 int arg3 ;
17655 wxColour result;
17656 void *argp1 = 0 ;
17657 int res1 = 0 ;
17658 int val2 ;
17659 int ecode2 = 0 ;
17660 int val3 ;
17661 int ecode3 = 0 ;
17662 PyObject * obj0 = 0 ;
17663 PyObject * obj1 = 0 ;
17664 PyObject * obj2 = 0 ;
17665 char * kwnames[] = {
17666 (char *) "self",(char *) "x",(char *) "y", NULL
17667 };
17668
17669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17671 if (!SWIG_IsOK(res1)) {
17672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17673 }
17674 arg1 = reinterpret_cast< wxDC * >(argp1);
17675 ecode2 = SWIG_AsVal_int(obj1, &val2);
17676 if (!SWIG_IsOK(ecode2)) {
17677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17678 }
17679 arg2 = static_cast< int >(val2);
17680 ecode3 = SWIG_AsVal_int(obj2, &val3);
17681 if (!SWIG_IsOK(ecode3)) {
17682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17683 }
17684 arg3 = static_cast< int >(val3);
17685 {
17686 PyThreadState* __tstate = wxPyBeginAllowThreads();
17687 result = wxDC_GetPixel(arg1,arg2,arg3);
17688 wxPyEndAllowThreads(__tstate);
17689 if (PyErr_Occurred()) SWIG_fail;
17690 }
17691 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17692 return resultobj;
17693fail:
17694 return NULL;
17695}
17696
17697
17698SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17699 PyObject *resultobj = 0;
17700 wxDC *arg1 = (wxDC *) 0 ;
17701 wxPoint *arg2 = 0 ;
17702 wxColour result;
17703 void *argp1 = 0 ;
17704 int res1 = 0 ;
17705 wxPoint temp2 ;
17706 PyObject * obj0 = 0 ;
17707 PyObject * obj1 = 0 ;
17708 char * kwnames[] = {
17709 (char *) "self",(char *) "pt", NULL
17710 };
17711
17712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17714 if (!SWIG_IsOK(res1)) {
17715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17716 }
17717 arg1 = reinterpret_cast< wxDC * >(argp1);
17718 {
17719 arg2 = &temp2;
17720 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17721 }
17722 {
17723 PyThreadState* __tstate = wxPyBeginAllowThreads();
17724 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17729 return resultobj;
17730fail:
17731 return NULL;
17732}
17733
17734
17735SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj = 0;
17737 wxDC *arg1 = (wxDC *) 0 ;
17738 int arg2 ;
17739 int arg3 ;
17740 int arg4 ;
17741 int arg5 ;
17742 void *argp1 = 0 ;
17743 int res1 = 0 ;
17744 int val2 ;
17745 int ecode2 = 0 ;
17746 int val3 ;
17747 int ecode3 = 0 ;
17748 int val4 ;
17749 int ecode4 = 0 ;
17750 int val5 ;
17751 int ecode5 = 0 ;
17752 PyObject * obj0 = 0 ;
17753 PyObject * obj1 = 0 ;
17754 PyObject * obj2 = 0 ;
17755 PyObject * obj3 = 0 ;
17756 PyObject * obj4 = 0 ;
17757 char * kwnames[] = {
17758 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17759 };
17760
17761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17763 if (!SWIG_IsOK(res1)) {
17764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17765 }
17766 arg1 = reinterpret_cast< wxDC * >(argp1);
17767 ecode2 = SWIG_AsVal_int(obj1, &val2);
17768 if (!SWIG_IsOK(ecode2)) {
17769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17770 }
17771 arg2 = static_cast< int >(val2);
17772 ecode3 = SWIG_AsVal_int(obj2, &val3);
17773 if (!SWIG_IsOK(ecode3)) {
17774 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17775 }
17776 arg3 = static_cast< int >(val3);
17777 ecode4 = SWIG_AsVal_int(obj3, &val4);
17778 if (!SWIG_IsOK(ecode4)) {
17779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17780 }
17781 arg4 = static_cast< int >(val4);
17782 ecode5 = SWIG_AsVal_int(obj4, &val5);
17783 if (!SWIG_IsOK(ecode5)) {
17784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17785 }
17786 arg5 = static_cast< int >(val5);
17787 {
17788 PyThreadState* __tstate = wxPyBeginAllowThreads();
17789 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17790 wxPyEndAllowThreads(__tstate);
17791 if (PyErr_Occurred()) SWIG_fail;
17792 }
17793 resultobj = SWIG_Py_Void();
17794 return resultobj;
17795fail:
17796 return NULL;
17797}
17798
17799
17800SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17801 PyObject *resultobj = 0;
17802 wxDC *arg1 = (wxDC *) 0 ;
17803 wxPoint *arg2 = 0 ;
17804 wxPoint *arg3 = 0 ;
17805 void *argp1 = 0 ;
17806 int res1 = 0 ;
17807 wxPoint temp2 ;
17808 wxPoint temp3 ;
17809 PyObject * obj0 = 0 ;
17810 PyObject * obj1 = 0 ;
17811 PyObject * obj2 = 0 ;
17812 char * kwnames[] = {
17813 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17814 };
17815
17816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17818 if (!SWIG_IsOK(res1)) {
17819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17820 }
17821 arg1 = reinterpret_cast< wxDC * >(argp1);
17822 {
17823 arg2 = &temp2;
17824 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17825 }
17826 {
17827 arg3 = &temp3;
17828 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17829 }
17830 {
17831 PyThreadState* __tstate = wxPyBeginAllowThreads();
17832 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17833 wxPyEndAllowThreads(__tstate);
17834 if (PyErr_Occurred()) SWIG_fail;
17835 }
17836 resultobj = SWIG_Py_Void();
17837 return resultobj;
17838fail:
17839 return NULL;
17840}
17841
17842
17843SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17844 PyObject *resultobj = 0;
17845 wxDC *arg1 = (wxDC *) 0 ;
17846 int arg2 ;
17847 int arg3 ;
17848 void *argp1 = 0 ;
17849 int res1 = 0 ;
17850 int val2 ;
17851 int ecode2 = 0 ;
17852 int val3 ;
17853 int ecode3 = 0 ;
17854 PyObject * obj0 = 0 ;
17855 PyObject * obj1 = 0 ;
17856 PyObject * obj2 = 0 ;
17857 char * kwnames[] = {
17858 (char *) "self",(char *) "x",(char *) "y", NULL
17859 };
17860
17861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17863 if (!SWIG_IsOK(res1)) {
17864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17865 }
17866 arg1 = reinterpret_cast< wxDC * >(argp1);
17867 ecode2 = SWIG_AsVal_int(obj1, &val2);
17868 if (!SWIG_IsOK(ecode2)) {
17869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17870 }
17871 arg2 = static_cast< int >(val2);
17872 ecode3 = SWIG_AsVal_int(obj2, &val3);
17873 if (!SWIG_IsOK(ecode3)) {
17874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17875 }
17876 arg3 = static_cast< int >(val3);
17877 {
17878 PyThreadState* __tstate = wxPyBeginAllowThreads();
17879 (arg1)->CrossHair(arg2,arg3);
17880 wxPyEndAllowThreads(__tstate);
17881 if (PyErr_Occurred()) SWIG_fail;
17882 }
17883 resultobj = SWIG_Py_Void();
17884 return resultobj;
17885fail:
17886 return NULL;
17887}
17888
17889
17890SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17891 PyObject *resultobj = 0;
17892 wxDC *arg1 = (wxDC *) 0 ;
17893 wxPoint *arg2 = 0 ;
17894 void *argp1 = 0 ;
17895 int res1 = 0 ;
17896 wxPoint temp2 ;
17897 PyObject * obj0 = 0 ;
17898 PyObject * obj1 = 0 ;
17899 char * kwnames[] = {
17900 (char *) "self",(char *) "pt", NULL
17901 };
17902
17903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17905 if (!SWIG_IsOK(res1)) {
17906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17907 }
17908 arg1 = reinterpret_cast< wxDC * >(argp1);
17909 {
17910 arg2 = &temp2;
17911 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17912 }
17913 {
17914 PyThreadState* __tstate = wxPyBeginAllowThreads();
17915 (arg1)->CrossHair((wxPoint const &)*arg2);
17916 wxPyEndAllowThreads(__tstate);
17917 if (PyErr_Occurred()) SWIG_fail;
17918 }
17919 resultobj = SWIG_Py_Void();
17920 return resultobj;
17921fail:
17922 return NULL;
17923}
17924
17925
17926SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17927 PyObject *resultobj = 0;
17928 wxDC *arg1 = (wxDC *) 0 ;
17929 int arg2 ;
17930 int arg3 ;
17931 int arg4 ;
17932 int arg5 ;
17933 int arg6 ;
17934 int arg7 ;
17935 void *argp1 = 0 ;
17936 int res1 = 0 ;
17937 int val2 ;
17938 int ecode2 = 0 ;
17939 int val3 ;
17940 int ecode3 = 0 ;
17941 int val4 ;
17942 int ecode4 = 0 ;
17943 int val5 ;
17944 int ecode5 = 0 ;
17945 int val6 ;
17946 int ecode6 = 0 ;
17947 int val7 ;
17948 int ecode7 = 0 ;
17949 PyObject * obj0 = 0 ;
17950 PyObject * obj1 = 0 ;
17951 PyObject * obj2 = 0 ;
17952 PyObject * obj3 = 0 ;
17953 PyObject * obj4 = 0 ;
17954 PyObject * obj5 = 0 ;
17955 PyObject * obj6 = 0 ;
17956 char * kwnames[] = {
17957 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17958 };
17959
17960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17962 if (!SWIG_IsOK(res1)) {
17963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17964 }
17965 arg1 = reinterpret_cast< wxDC * >(argp1);
17966 ecode2 = SWIG_AsVal_int(obj1, &val2);
17967 if (!SWIG_IsOK(ecode2)) {
17968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17969 }
17970 arg2 = static_cast< int >(val2);
17971 ecode3 = SWIG_AsVal_int(obj2, &val3);
17972 if (!SWIG_IsOK(ecode3)) {
17973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17974 }
17975 arg3 = static_cast< int >(val3);
17976 ecode4 = SWIG_AsVal_int(obj3, &val4);
17977 if (!SWIG_IsOK(ecode4)) {
17978 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17979 }
17980 arg4 = static_cast< int >(val4);
17981 ecode5 = SWIG_AsVal_int(obj4, &val5);
17982 if (!SWIG_IsOK(ecode5)) {
17983 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17984 }
17985 arg5 = static_cast< int >(val5);
17986 ecode6 = SWIG_AsVal_int(obj5, &val6);
17987 if (!SWIG_IsOK(ecode6)) {
17988 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17989 }
17990 arg6 = static_cast< int >(val6);
17991 ecode7 = SWIG_AsVal_int(obj6, &val7);
17992 if (!SWIG_IsOK(ecode7)) {
17993 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17994 }
17995 arg7 = static_cast< int >(val7);
17996 {
17997 PyThreadState* __tstate = wxPyBeginAllowThreads();
17998 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17999 wxPyEndAllowThreads(__tstate);
18000 if (PyErr_Occurred()) SWIG_fail;
18001 }
18002 resultobj = SWIG_Py_Void();
18003 return resultobj;
18004fail:
18005 return NULL;
18006}
18007
18008
18009SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18010 PyObject *resultobj = 0;
18011 wxDC *arg1 = (wxDC *) 0 ;
18012 wxPoint *arg2 = 0 ;
18013 wxPoint *arg3 = 0 ;
18014 wxPoint *arg4 = 0 ;
18015 void *argp1 = 0 ;
18016 int res1 = 0 ;
18017 wxPoint temp2 ;
18018 wxPoint temp3 ;
18019 wxPoint temp4 ;
18020 PyObject * obj0 = 0 ;
18021 PyObject * obj1 = 0 ;
18022 PyObject * obj2 = 0 ;
18023 PyObject * obj3 = 0 ;
18024 char * kwnames[] = {
18025 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18026 };
18027
18028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18030 if (!SWIG_IsOK(res1)) {
18031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18032 }
18033 arg1 = reinterpret_cast< wxDC * >(argp1);
18034 {
18035 arg2 = &temp2;
18036 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18037 }
18038 {
18039 arg3 = &temp3;
18040 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18041 }
18042 {
18043 arg4 = &temp4;
18044 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18045 }
18046 {
18047 PyThreadState* __tstate = wxPyBeginAllowThreads();
18048 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18049 wxPyEndAllowThreads(__tstate);
18050 if (PyErr_Occurred()) SWIG_fail;
18051 }
18052 resultobj = SWIG_Py_Void();
18053 return resultobj;
18054fail:
18055 return NULL;
18056}
18057
18058
18059SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18060 PyObject *resultobj = 0;
18061 wxDC *arg1 = (wxDC *) 0 ;
18062 int arg2 ;
18063 int arg3 ;
18064 int arg4 ;
18065 int arg5 ;
18066 void *argp1 = 0 ;
18067 int res1 = 0 ;
18068 int val2 ;
18069 int ecode2 = 0 ;
18070 int val3 ;
18071 int ecode3 = 0 ;
18072 int val4 ;
18073 int ecode4 = 0 ;
18074 int val5 ;
18075 int ecode5 = 0 ;
18076 PyObject * obj0 = 0 ;
18077 PyObject * obj1 = 0 ;
18078 PyObject * obj2 = 0 ;
18079 PyObject * obj3 = 0 ;
18080 PyObject * obj4 = 0 ;
18081 char * kwnames[] = {
18082 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18083 };
18084
18085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18087 if (!SWIG_IsOK(res1)) {
18088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18089 }
18090 arg1 = reinterpret_cast< wxDC * >(argp1);
18091 ecode2 = SWIG_AsVal_int(obj1, &val2);
18092 if (!SWIG_IsOK(ecode2)) {
18093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18094 }
18095 arg2 = static_cast< int >(val2);
18096 ecode3 = SWIG_AsVal_int(obj2, &val3);
18097 if (!SWIG_IsOK(ecode3)) {
18098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18099 }
18100 arg3 = static_cast< int >(val3);
18101 ecode4 = SWIG_AsVal_int(obj3, &val4);
18102 if (!SWIG_IsOK(ecode4)) {
18103 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18104 }
18105 arg4 = static_cast< int >(val4);
18106 ecode5 = SWIG_AsVal_int(obj4, &val5);
18107 if (!SWIG_IsOK(ecode5)) {
18108 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18109 }
18110 arg5 = static_cast< int >(val5);
18111 {
18112 PyThreadState* __tstate = wxPyBeginAllowThreads();
18113 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18114 wxPyEndAllowThreads(__tstate);
18115 if (PyErr_Occurred()) SWIG_fail;
18116 }
18117 resultobj = SWIG_Py_Void();
18118 return resultobj;
18119fail:
18120 return NULL;
18121}
18122
18123
18124SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18125 PyObject *resultobj = 0;
18126 wxDC *arg1 = (wxDC *) 0 ;
18127 wxRect *arg2 = 0 ;
18128 void *argp1 = 0 ;
18129 int res1 = 0 ;
18130 wxRect temp2 ;
18131 PyObject * obj0 = 0 ;
18132 PyObject * obj1 = 0 ;
18133 char * kwnames[] = {
18134 (char *) "self",(char *) "rect", NULL
18135 };
18136
18137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18139 if (!SWIG_IsOK(res1)) {
18140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18141 }
18142 arg1 = reinterpret_cast< wxDC * >(argp1);
18143 {
18144 arg2 = &temp2;
18145 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18146 }
18147 {
18148 PyThreadState* __tstate = wxPyBeginAllowThreads();
18149 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18150 wxPyEndAllowThreads(__tstate);
18151 if (PyErr_Occurred()) SWIG_fail;
18152 }
18153 resultobj = SWIG_Py_Void();
18154 return resultobj;
18155fail:
18156 return NULL;
18157}
18158
18159
18160SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18161 PyObject *resultobj = 0;
18162 wxDC *arg1 = (wxDC *) 0 ;
18163 int arg2 ;
18164 int arg3 ;
18165 int arg4 ;
18166 int arg5 ;
18167 double arg6 ;
18168 double arg7 ;
18169 void *argp1 = 0 ;
18170 int res1 = 0 ;
18171 int val2 ;
18172 int ecode2 = 0 ;
18173 int val3 ;
18174 int ecode3 = 0 ;
18175 int val4 ;
18176 int ecode4 = 0 ;
18177 int val5 ;
18178 int ecode5 = 0 ;
18179 double val6 ;
18180 int ecode6 = 0 ;
18181 double val7 ;
18182 int ecode7 = 0 ;
18183 PyObject * obj0 = 0 ;
18184 PyObject * obj1 = 0 ;
18185 PyObject * obj2 = 0 ;
18186 PyObject * obj3 = 0 ;
18187 PyObject * obj4 = 0 ;
18188 PyObject * obj5 = 0 ;
18189 PyObject * obj6 = 0 ;
18190 char * kwnames[] = {
18191 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18192 };
18193
18194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18196 if (!SWIG_IsOK(res1)) {
18197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18198 }
18199 arg1 = reinterpret_cast< wxDC * >(argp1);
18200 ecode2 = SWIG_AsVal_int(obj1, &val2);
18201 if (!SWIG_IsOK(ecode2)) {
18202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18203 }
18204 arg2 = static_cast< int >(val2);
18205 ecode3 = SWIG_AsVal_int(obj2, &val3);
18206 if (!SWIG_IsOK(ecode3)) {
18207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18208 }
18209 arg3 = static_cast< int >(val3);
18210 ecode4 = SWIG_AsVal_int(obj3, &val4);
18211 if (!SWIG_IsOK(ecode4)) {
18212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18213 }
18214 arg4 = static_cast< int >(val4);
18215 ecode5 = SWIG_AsVal_int(obj4, &val5);
18216 if (!SWIG_IsOK(ecode5)) {
18217 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18218 }
18219 arg5 = static_cast< int >(val5);
18220 ecode6 = SWIG_AsVal_double(obj5, &val6);
18221 if (!SWIG_IsOK(ecode6)) {
18222 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18223 }
18224 arg6 = static_cast< double >(val6);
18225 ecode7 = SWIG_AsVal_double(obj6, &val7);
18226 if (!SWIG_IsOK(ecode7)) {
18227 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18228 }
18229 arg7 = static_cast< double >(val7);
18230 {
18231 PyThreadState* __tstate = wxPyBeginAllowThreads();
18232 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18233 wxPyEndAllowThreads(__tstate);
18234 if (PyErr_Occurred()) SWIG_fail;
18235 }
18236 resultobj = SWIG_Py_Void();
18237 return resultobj;
18238fail:
18239 return NULL;
18240}
18241
18242
18243SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18244 PyObject *resultobj = 0;
18245 wxDC *arg1 = (wxDC *) 0 ;
18246 wxPoint *arg2 = 0 ;
18247 wxSize *arg3 = 0 ;
18248 double arg4 ;
18249 double arg5 ;
18250 void *argp1 = 0 ;
18251 int res1 = 0 ;
18252 wxPoint temp2 ;
18253 wxSize temp3 ;
18254 double val4 ;
18255 int ecode4 = 0 ;
18256 double val5 ;
18257 int ecode5 = 0 ;
18258 PyObject * obj0 = 0 ;
18259 PyObject * obj1 = 0 ;
18260 PyObject * obj2 = 0 ;
18261 PyObject * obj3 = 0 ;
18262 PyObject * obj4 = 0 ;
18263 char * kwnames[] = {
18264 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18265 };
18266
18267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18269 if (!SWIG_IsOK(res1)) {
18270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18271 }
18272 arg1 = reinterpret_cast< wxDC * >(argp1);
18273 {
18274 arg2 = &temp2;
18275 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18276 }
18277 {
18278 arg3 = &temp3;
18279 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18280 }
18281 ecode4 = SWIG_AsVal_double(obj3, &val4);
18282 if (!SWIG_IsOK(ecode4)) {
18283 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18284 }
18285 arg4 = static_cast< double >(val4);
18286 ecode5 = SWIG_AsVal_double(obj4, &val5);
18287 if (!SWIG_IsOK(ecode5)) {
18288 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18289 }
18290 arg5 = static_cast< double >(val5);
18291 {
18292 PyThreadState* __tstate = wxPyBeginAllowThreads();
18293 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18294 wxPyEndAllowThreads(__tstate);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 }
18297 resultobj = SWIG_Py_Void();
18298 return resultobj;
18299fail:
18300 return NULL;
18301}
18302
18303
18304SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18305 PyObject *resultobj = 0;
18306 wxDC *arg1 = (wxDC *) 0 ;
18307 int arg2 ;
18308 int arg3 ;
18309 void *argp1 = 0 ;
18310 int res1 = 0 ;
18311 int val2 ;
18312 int ecode2 = 0 ;
18313 int val3 ;
18314 int ecode3 = 0 ;
18315 PyObject * obj0 = 0 ;
18316 PyObject * obj1 = 0 ;
18317 PyObject * obj2 = 0 ;
18318 char * kwnames[] = {
18319 (char *) "self",(char *) "x",(char *) "y", NULL
18320 };
18321
18322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18324 if (!SWIG_IsOK(res1)) {
18325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18326 }
18327 arg1 = reinterpret_cast< wxDC * >(argp1);
18328 ecode2 = SWIG_AsVal_int(obj1, &val2);
18329 if (!SWIG_IsOK(ecode2)) {
18330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18331 }
18332 arg2 = static_cast< int >(val2);
18333 ecode3 = SWIG_AsVal_int(obj2, &val3);
18334 if (!SWIG_IsOK(ecode3)) {
18335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18336 }
18337 arg3 = static_cast< int >(val3);
18338 {
18339 PyThreadState* __tstate = wxPyBeginAllowThreads();
18340 (arg1)->DrawPoint(arg2,arg3);
18341 wxPyEndAllowThreads(__tstate);
18342 if (PyErr_Occurred()) SWIG_fail;
18343 }
18344 resultobj = SWIG_Py_Void();
18345 return resultobj;
18346fail:
18347 return NULL;
18348}
18349
18350
18351SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18352 PyObject *resultobj = 0;
18353 wxDC *arg1 = (wxDC *) 0 ;
18354 wxPoint *arg2 = 0 ;
18355 void *argp1 = 0 ;
18356 int res1 = 0 ;
18357 wxPoint temp2 ;
18358 PyObject * obj0 = 0 ;
18359 PyObject * obj1 = 0 ;
18360 char * kwnames[] = {
18361 (char *) "self",(char *) "pt", NULL
18362 };
18363
18364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18366 if (!SWIG_IsOK(res1)) {
18367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18368 }
18369 arg1 = reinterpret_cast< wxDC * >(argp1);
18370 {
18371 arg2 = &temp2;
18372 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18373 }
18374 {
18375 PyThreadState* __tstate = wxPyBeginAllowThreads();
18376 (arg1)->DrawPoint((wxPoint const &)*arg2);
18377 wxPyEndAllowThreads(__tstate);
18378 if (PyErr_Occurred()) SWIG_fail;
18379 }
18380 resultobj = SWIG_Py_Void();
18381 return resultobj;
18382fail:
18383 return NULL;
18384}
18385
18386
18387SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18388 PyObject *resultobj = 0;
18389 wxDC *arg1 = (wxDC *) 0 ;
18390 int arg2 ;
18391 int arg3 ;
18392 int arg4 ;
18393 int arg5 ;
18394 void *argp1 = 0 ;
18395 int res1 = 0 ;
18396 int val2 ;
18397 int ecode2 = 0 ;
18398 int val3 ;
18399 int ecode3 = 0 ;
18400 int val4 ;
18401 int ecode4 = 0 ;
18402 int val5 ;
18403 int ecode5 = 0 ;
18404 PyObject * obj0 = 0 ;
18405 PyObject * obj1 = 0 ;
18406 PyObject * obj2 = 0 ;
18407 PyObject * obj3 = 0 ;
18408 PyObject * obj4 = 0 ;
18409 char * kwnames[] = {
18410 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18411 };
18412
18413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18415 if (!SWIG_IsOK(res1)) {
18416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18417 }
18418 arg1 = reinterpret_cast< wxDC * >(argp1);
18419 ecode2 = SWIG_AsVal_int(obj1, &val2);
18420 if (!SWIG_IsOK(ecode2)) {
18421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18422 }
18423 arg2 = static_cast< int >(val2);
18424 ecode3 = SWIG_AsVal_int(obj2, &val3);
18425 if (!SWIG_IsOK(ecode3)) {
18426 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18427 }
18428 arg3 = static_cast< int >(val3);
18429 ecode4 = SWIG_AsVal_int(obj3, &val4);
18430 if (!SWIG_IsOK(ecode4)) {
18431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18432 }
18433 arg4 = static_cast< int >(val4);
18434 ecode5 = SWIG_AsVal_int(obj4, &val5);
18435 if (!SWIG_IsOK(ecode5)) {
18436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18437 }
18438 arg5 = static_cast< int >(val5);
18439 {
18440 PyThreadState* __tstate = wxPyBeginAllowThreads();
18441 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18442 wxPyEndAllowThreads(__tstate);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
18445 resultobj = SWIG_Py_Void();
18446 return resultobj;
18447fail:
18448 return NULL;
18449}
18450
18451
18452SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18453 PyObject *resultobj = 0;
18454 wxDC *arg1 = (wxDC *) 0 ;
18455 wxRect *arg2 = 0 ;
18456 void *argp1 = 0 ;
18457 int res1 = 0 ;
18458 wxRect temp2 ;
18459 PyObject * obj0 = 0 ;
18460 PyObject * obj1 = 0 ;
18461 char * kwnames[] = {
18462 (char *) "self",(char *) "rect", NULL
18463 };
18464
18465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18467 if (!SWIG_IsOK(res1)) {
18468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18469 }
18470 arg1 = reinterpret_cast< wxDC * >(argp1);
18471 {
18472 arg2 = &temp2;
18473 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18474 }
18475 {
18476 PyThreadState* __tstate = wxPyBeginAllowThreads();
18477 (arg1)->DrawRectangle((wxRect const &)*arg2);
18478 wxPyEndAllowThreads(__tstate);
18479 if (PyErr_Occurred()) SWIG_fail;
18480 }
18481 resultobj = SWIG_Py_Void();
18482 return resultobj;
18483fail:
18484 return NULL;
18485}
18486
18487
18488SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18489 PyObject *resultobj = 0;
18490 wxDC *arg1 = (wxDC *) 0 ;
18491 wxPoint *arg2 = 0 ;
18492 wxSize *arg3 = 0 ;
18493 void *argp1 = 0 ;
18494 int res1 = 0 ;
18495 wxPoint temp2 ;
18496 wxSize temp3 ;
18497 PyObject * obj0 = 0 ;
18498 PyObject * obj1 = 0 ;
18499 PyObject * obj2 = 0 ;
18500 char * kwnames[] = {
18501 (char *) "self",(char *) "pt",(char *) "sz", NULL
18502 };
18503
18504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18506 if (!SWIG_IsOK(res1)) {
18507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18508 }
18509 arg1 = reinterpret_cast< wxDC * >(argp1);
18510 {
18511 arg2 = &temp2;
18512 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18513 }
18514 {
18515 arg3 = &temp3;
18516 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18517 }
18518 {
18519 PyThreadState* __tstate = wxPyBeginAllowThreads();
18520 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18521 wxPyEndAllowThreads(__tstate);
18522 if (PyErr_Occurred()) SWIG_fail;
18523 }
18524 resultobj = SWIG_Py_Void();
18525 return resultobj;
18526fail:
18527 return NULL;
18528}
18529
18530
18531SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18532 PyObject *resultobj = 0;
18533 wxDC *arg1 = (wxDC *) 0 ;
18534 int arg2 ;
18535 int arg3 ;
18536 int arg4 ;
18537 int arg5 ;
18538 double arg6 ;
18539 void *argp1 = 0 ;
18540 int res1 = 0 ;
18541 int val2 ;
18542 int ecode2 = 0 ;
18543 int val3 ;
18544 int ecode3 = 0 ;
18545 int val4 ;
18546 int ecode4 = 0 ;
18547 int val5 ;
18548 int ecode5 = 0 ;
18549 double val6 ;
18550 int ecode6 = 0 ;
18551 PyObject * obj0 = 0 ;
18552 PyObject * obj1 = 0 ;
18553 PyObject * obj2 = 0 ;
18554 PyObject * obj3 = 0 ;
18555 PyObject * obj4 = 0 ;
18556 PyObject * obj5 = 0 ;
18557 char * kwnames[] = {
18558 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18559 };
18560
18561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18563 if (!SWIG_IsOK(res1)) {
18564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18565 }
18566 arg1 = reinterpret_cast< wxDC * >(argp1);
18567 ecode2 = SWIG_AsVal_int(obj1, &val2);
18568 if (!SWIG_IsOK(ecode2)) {
18569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18570 }
18571 arg2 = static_cast< int >(val2);
18572 ecode3 = SWIG_AsVal_int(obj2, &val3);
18573 if (!SWIG_IsOK(ecode3)) {
18574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18575 }
18576 arg3 = static_cast< int >(val3);
18577 ecode4 = SWIG_AsVal_int(obj3, &val4);
18578 if (!SWIG_IsOK(ecode4)) {
18579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18580 }
18581 arg4 = static_cast< int >(val4);
18582 ecode5 = SWIG_AsVal_int(obj4, &val5);
18583 if (!SWIG_IsOK(ecode5)) {
18584 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18585 }
18586 arg5 = static_cast< int >(val5);
18587 ecode6 = SWIG_AsVal_double(obj5, &val6);
18588 if (!SWIG_IsOK(ecode6)) {
18589 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18590 }
18591 arg6 = static_cast< double >(val6);
18592 {
18593 PyThreadState* __tstate = wxPyBeginAllowThreads();
18594 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18595 wxPyEndAllowThreads(__tstate);
18596 if (PyErr_Occurred()) SWIG_fail;
18597 }
18598 resultobj = SWIG_Py_Void();
18599 return resultobj;
18600fail:
18601 return NULL;
18602}
18603
18604
18605SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18606 PyObject *resultobj = 0;
18607 wxDC *arg1 = (wxDC *) 0 ;
18608 wxRect *arg2 = 0 ;
18609 double arg3 ;
18610 void *argp1 = 0 ;
18611 int res1 = 0 ;
18612 wxRect temp2 ;
18613 double val3 ;
18614 int ecode3 = 0 ;
18615 PyObject * obj0 = 0 ;
18616 PyObject * obj1 = 0 ;
18617 PyObject * obj2 = 0 ;
18618 char * kwnames[] = {
18619 (char *) "self",(char *) "r",(char *) "radius", NULL
18620 };
18621
18622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18624 if (!SWIG_IsOK(res1)) {
18625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18626 }
18627 arg1 = reinterpret_cast< wxDC * >(argp1);
18628 {
18629 arg2 = &temp2;
18630 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18631 }
18632 ecode3 = SWIG_AsVal_double(obj2, &val3);
18633 if (!SWIG_IsOK(ecode3)) {
18634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18635 }
18636 arg3 = static_cast< double >(val3);
18637 {
18638 PyThreadState* __tstate = wxPyBeginAllowThreads();
18639 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18640 wxPyEndAllowThreads(__tstate);
18641 if (PyErr_Occurred()) SWIG_fail;
18642 }
18643 resultobj = SWIG_Py_Void();
18644 return resultobj;
18645fail:
18646 return NULL;
18647}
18648
18649
18650SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18651 PyObject *resultobj = 0;
18652 wxDC *arg1 = (wxDC *) 0 ;
18653 wxPoint *arg2 = 0 ;
18654 wxSize *arg3 = 0 ;
18655 double arg4 ;
18656 void *argp1 = 0 ;
18657 int res1 = 0 ;
18658 wxPoint temp2 ;
18659 wxSize temp3 ;
18660 double val4 ;
18661 int ecode4 = 0 ;
18662 PyObject * obj0 = 0 ;
18663 PyObject * obj1 = 0 ;
18664 PyObject * obj2 = 0 ;
18665 PyObject * obj3 = 0 ;
18666 char * kwnames[] = {
18667 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18668 };
18669
18670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18672 if (!SWIG_IsOK(res1)) {
18673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18674 }
18675 arg1 = reinterpret_cast< wxDC * >(argp1);
18676 {
18677 arg2 = &temp2;
18678 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18679 }
18680 {
18681 arg3 = &temp3;
18682 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18683 }
18684 ecode4 = SWIG_AsVal_double(obj3, &val4);
18685 if (!SWIG_IsOK(ecode4)) {
18686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18687 }
18688 arg4 = static_cast< double >(val4);
18689 {
18690 PyThreadState* __tstate = wxPyBeginAllowThreads();
18691 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18692 wxPyEndAllowThreads(__tstate);
18693 if (PyErr_Occurred()) SWIG_fail;
18694 }
18695 resultobj = SWIG_Py_Void();
18696 return resultobj;
18697fail:
18698 return NULL;
18699}
18700
18701
18702SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18703 PyObject *resultobj = 0;
18704 wxDC *arg1 = (wxDC *) 0 ;
18705 int arg2 ;
18706 int arg3 ;
18707 int arg4 ;
18708 void *argp1 = 0 ;
18709 int res1 = 0 ;
18710 int val2 ;
18711 int ecode2 = 0 ;
18712 int val3 ;
18713 int ecode3 = 0 ;
18714 int val4 ;
18715 int ecode4 = 0 ;
18716 PyObject * obj0 = 0 ;
18717 PyObject * obj1 = 0 ;
18718 PyObject * obj2 = 0 ;
18719 PyObject * obj3 = 0 ;
18720 char * kwnames[] = {
18721 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18722 };
18723
18724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18726 if (!SWIG_IsOK(res1)) {
18727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18728 }
18729 arg1 = reinterpret_cast< wxDC * >(argp1);
18730 ecode2 = SWIG_AsVal_int(obj1, &val2);
18731 if (!SWIG_IsOK(ecode2)) {
18732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18733 }
18734 arg2 = static_cast< int >(val2);
18735 ecode3 = SWIG_AsVal_int(obj2, &val3);
18736 if (!SWIG_IsOK(ecode3)) {
18737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18738 }
18739 arg3 = static_cast< int >(val3);
18740 ecode4 = SWIG_AsVal_int(obj3, &val4);
18741 if (!SWIG_IsOK(ecode4)) {
18742 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18743 }
18744 arg4 = static_cast< int >(val4);
18745 {
18746 PyThreadState* __tstate = wxPyBeginAllowThreads();
18747 (arg1)->DrawCircle(arg2,arg3,arg4);
18748 wxPyEndAllowThreads(__tstate);
18749 if (PyErr_Occurred()) SWIG_fail;
18750 }
18751 resultobj = SWIG_Py_Void();
18752 return resultobj;
18753fail:
18754 return NULL;
18755}
18756
18757
18758SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18759 PyObject *resultobj = 0;
18760 wxDC *arg1 = (wxDC *) 0 ;
18761 wxPoint *arg2 = 0 ;
18762 int arg3 ;
18763 void *argp1 = 0 ;
18764 int res1 = 0 ;
18765 wxPoint temp2 ;
18766 int val3 ;
18767 int ecode3 = 0 ;
18768 PyObject * obj0 = 0 ;
18769 PyObject * obj1 = 0 ;
18770 PyObject * obj2 = 0 ;
18771 char * kwnames[] = {
18772 (char *) "self",(char *) "pt",(char *) "radius", NULL
18773 };
18774
18775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18777 if (!SWIG_IsOK(res1)) {
18778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18779 }
18780 arg1 = reinterpret_cast< wxDC * >(argp1);
18781 {
18782 arg2 = &temp2;
18783 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18784 }
18785 ecode3 = SWIG_AsVal_int(obj2, &val3);
18786 if (!SWIG_IsOK(ecode3)) {
18787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18788 }
18789 arg3 = static_cast< int >(val3);
18790 {
18791 PyThreadState* __tstate = wxPyBeginAllowThreads();
18792 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18793 wxPyEndAllowThreads(__tstate);
18794 if (PyErr_Occurred()) SWIG_fail;
18795 }
18796 resultobj = SWIG_Py_Void();
18797 return resultobj;
18798fail:
18799 return NULL;
18800}
18801
18802
18803SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18804 PyObject *resultobj = 0;
18805 wxDC *arg1 = (wxDC *) 0 ;
18806 int arg2 ;
18807 int arg3 ;
18808 int arg4 ;
18809 int arg5 ;
18810 void *argp1 = 0 ;
18811 int res1 = 0 ;
18812 int val2 ;
18813 int ecode2 = 0 ;
18814 int val3 ;
18815 int ecode3 = 0 ;
18816 int val4 ;
18817 int ecode4 = 0 ;
18818 int val5 ;
18819 int ecode5 = 0 ;
18820 PyObject * obj0 = 0 ;
18821 PyObject * obj1 = 0 ;
18822 PyObject * obj2 = 0 ;
18823 PyObject * obj3 = 0 ;
18824 PyObject * obj4 = 0 ;
18825 char * kwnames[] = {
18826 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18827 };
18828
18829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18831 if (!SWIG_IsOK(res1)) {
18832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18833 }
18834 arg1 = reinterpret_cast< wxDC * >(argp1);
18835 ecode2 = SWIG_AsVal_int(obj1, &val2);
18836 if (!SWIG_IsOK(ecode2)) {
18837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18838 }
18839 arg2 = static_cast< int >(val2);
18840 ecode3 = SWIG_AsVal_int(obj2, &val3);
18841 if (!SWIG_IsOK(ecode3)) {
18842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18843 }
18844 arg3 = static_cast< int >(val3);
18845 ecode4 = SWIG_AsVal_int(obj3, &val4);
18846 if (!SWIG_IsOK(ecode4)) {
18847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18848 }
18849 arg4 = static_cast< int >(val4);
18850 ecode5 = SWIG_AsVal_int(obj4, &val5);
18851 if (!SWIG_IsOK(ecode5)) {
18852 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18853 }
18854 arg5 = static_cast< int >(val5);
18855 {
18856 PyThreadState* __tstate = wxPyBeginAllowThreads();
18857 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18858 wxPyEndAllowThreads(__tstate);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
18861 resultobj = SWIG_Py_Void();
18862 return resultobj;
18863fail:
18864 return NULL;
18865}
18866
18867
18868SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18869 PyObject *resultobj = 0;
18870 wxDC *arg1 = (wxDC *) 0 ;
18871 wxRect *arg2 = 0 ;
18872 void *argp1 = 0 ;
18873 int res1 = 0 ;
18874 wxRect temp2 ;
18875 PyObject * obj0 = 0 ;
18876 PyObject * obj1 = 0 ;
18877 char * kwnames[] = {
18878 (char *) "self",(char *) "rect", NULL
18879 };
18880
18881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18883 if (!SWIG_IsOK(res1)) {
18884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18885 }
18886 arg1 = reinterpret_cast< wxDC * >(argp1);
18887 {
18888 arg2 = &temp2;
18889 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18890 }
18891 {
18892 PyThreadState* __tstate = wxPyBeginAllowThreads();
18893 (arg1)->DrawEllipse((wxRect const &)*arg2);
18894 wxPyEndAllowThreads(__tstate);
18895 if (PyErr_Occurred()) SWIG_fail;
18896 }
18897 resultobj = SWIG_Py_Void();
18898 return resultobj;
18899fail:
18900 return NULL;
18901}
18902
18903
18904SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18905 PyObject *resultobj = 0;
18906 wxDC *arg1 = (wxDC *) 0 ;
18907 wxPoint *arg2 = 0 ;
18908 wxSize *arg3 = 0 ;
18909 void *argp1 = 0 ;
18910 int res1 = 0 ;
18911 wxPoint temp2 ;
18912 wxSize temp3 ;
18913 PyObject * obj0 = 0 ;
18914 PyObject * obj1 = 0 ;
18915 PyObject * obj2 = 0 ;
18916 char * kwnames[] = {
18917 (char *) "self",(char *) "pt",(char *) "sz", NULL
18918 };
18919
18920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18922 if (!SWIG_IsOK(res1)) {
18923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18924 }
18925 arg1 = reinterpret_cast< wxDC * >(argp1);
18926 {
18927 arg2 = &temp2;
18928 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18929 }
18930 {
18931 arg3 = &temp3;
18932 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18933 }
18934 {
18935 PyThreadState* __tstate = wxPyBeginAllowThreads();
18936 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18937 wxPyEndAllowThreads(__tstate);
18938 if (PyErr_Occurred()) SWIG_fail;
18939 }
18940 resultobj = SWIG_Py_Void();
18941 return resultobj;
18942fail:
18943 return NULL;
18944}
18945
18946
18947SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18948 PyObject *resultobj = 0;
18949 wxDC *arg1 = (wxDC *) 0 ;
18950 wxIcon *arg2 = 0 ;
18951 int arg3 ;
18952 int arg4 ;
18953 void *argp1 = 0 ;
18954 int res1 = 0 ;
18955 void *argp2 = 0 ;
18956 int res2 = 0 ;
18957 int val3 ;
18958 int ecode3 = 0 ;
18959 int val4 ;
18960 int ecode4 = 0 ;
18961 PyObject * obj0 = 0 ;
18962 PyObject * obj1 = 0 ;
18963 PyObject * obj2 = 0 ;
18964 PyObject * obj3 = 0 ;
18965 char * kwnames[] = {
18966 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18967 };
18968
18969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18971 if (!SWIG_IsOK(res1)) {
18972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18973 }
18974 arg1 = reinterpret_cast< wxDC * >(argp1);
18975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18976 if (!SWIG_IsOK(res2)) {
18977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18978 }
18979 if (!argp2) {
18980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18981 }
18982 arg2 = reinterpret_cast< wxIcon * >(argp2);
18983 ecode3 = SWIG_AsVal_int(obj2, &val3);
18984 if (!SWIG_IsOK(ecode3)) {
18985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18986 }
18987 arg3 = static_cast< int >(val3);
18988 ecode4 = SWIG_AsVal_int(obj3, &val4);
18989 if (!SWIG_IsOK(ecode4)) {
18990 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18991 }
18992 arg4 = static_cast< int >(val4);
18993 {
18994 PyThreadState* __tstate = wxPyBeginAllowThreads();
18995 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18996 wxPyEndAllowThreads(__tstate);
18997 if (PyErr_Occurred()) SWIG_fail;
18998 }
18999 resultobj = SWIG_Py_Void();
19000 return resultobj;
19001fail:
19002 return NULL;
19003}
19004
19005
19006SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19007 PyObject *resultobj = 0;
19008 wxDC *arg1 = (wxDC *) 0 ;
19009 wxIcon *arg2 = 0 ;
19010 wxPoint *arg3 = 0 ;
19011 void *argp1 = 0 ;
19012 int res1 = 0 ;
19013 void *argp2 = 0 ;
19014 int res2 = 0 ;
19015 wxPoint temp3 ;
19016 PyObject * obj0 = 0 ;
19017 PyObject * obj1 = 0 ;
19018 PyObject * obj2 = 0 ;
19019 char * kwnames[] = {
19020 (char *) "self",(char *) "icon",(char *) "pt", NULL
19021 };
19022
19023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19025 if (!SWIG_IsOK(res1)) {
19026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19027 }
19028 arg1 = reinterpret_cast< wxDC * >(argp1);
19029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19030 if (!SWIG_IsOK(res2)) {
19031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19032 }
19033 if (!argp2) {
19034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19035 }
19036 arg2 = reinterpret_cast< wxIcon * >(argp2);
19037 {
19038 arg3 = &temp3;
19039 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19040 }
19041 {
19042 PyThreadState* __tstate = wxPyBeginAllowThreads();
19043 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19044 wxPyEndAllowThreads(__tstate);
19045 if (PyErr_Occurred()) SWIG_fail;
19046 }
19047 resultobj = SWIG_Py_Void();
19048 return resultobj;
19049fail:
19050 return NULL;
19051}
19052
19053
19054SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19055 PyObject *resultobj = 0;
19056 wxDC *arg1 = (wxDC *) 0 ;
19057 wxBitmap *arg2 = 0 ;
19058 int arg3 ;
19059 int arg4 ;
19060 bool arg5 = (bool) false ;
19061 void *argp1 = 0 ;
19062 int res1 = 0 ;
19063 void *argp2 = 0 ;
19064 int res2 = 0 ;
19065 int val3 ;
19066 int ecode3 = 0 ;
19067 int val4 ;
19068 int ecode4 = 0 ;
19069 bool val5 ;
19070 int ecode5 = 0 ;
19071 PyObject * obj0 = 0 ;
19072 PyObject * obj1 = 0 ;
19073 PyObject * obj2 = 0 ;
19074 PyObject * obj3 = 0 ;
19075 PyObject * obj4 = 0 ;
19076 char * kwnames[] = {
19077 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19078 };
19079
19080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19082 if (!SWIG_IsOK(res1)) {
19083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19084 }
19085 arg1 = reinterpret_cast< wxDC * >(argp1);
19086 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19087 if (!SWIG_IsOK(res2)) {
19088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19089 }
19090 if (!argp2) {
19091 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19092 }
19093 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19094 ecode3 = SWIG_AsVal_int(obj2, &val3);
19095 if (!SWIG_IsOK(ecode3)) {
19096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19097 }
19098 arg3 = static_cast< int >(val3);
19099 ecode4 = SWIG_AsVal_int(obj3, &val4);
19100 if (!SWIG_IsOK(ecode4)) {
19101 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19102 }
19103 arg4 = static_cast< int >(val4);
19104 if (obj4) {
19105 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19106 if (!SWIG_IsOK(ecode5)) {
19107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19108 }
19109 arg5 = static_cast< bool >(val5);
19110 }
19111 {
19112 PyThreadState* __tstate = wxPyBeginAllowThreads();
19113 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19114 wxPyEndAllowThreads(__tstate);
19115 if (PyErr_Occurred()) SWIG_fail;
19116 }
19117 resultobj = SWIG_Py_Void();
19118 return resultobj;
19119fail:
19120 return NULL;
19121}
19122
19123
19124SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19125 PyObject *resultobj = 0;
19126 wxDC *arg1 = (wxDC *) 0 ;
19127 wxBitmap *arg2 = 0 ;
19128 wxPoint *arg3 = 0 ;
19129 bool arg4 = (bool) false ;
19130 void *argp1 = 0 ;
19131 int res1 = 0 ;
19132 void *argp2 = 0 ;
19133 int res2 = 0 ;
19134 wxPoint temp3 ;
19135 bool val4 ;
19136 int ecode4 = 0 ;
19137 PyObject * obj0 = 0 ;
19138 PyObject * obj1 = 0 ;
19139 PyObject * obj2 = 0 ;
19140 PyObject * obj3 = 0 ;
19141 char * kwnames[] = {
19142 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19143 };
19144
19145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19147 if (!SWIG_IsOK(res1)) {
19148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19149 }
19150 arg1 = reinterpret_cast< wxDC * >(argp1);
19151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19152 if (!SWIG_IsOK(res2)) {
19153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19154 }
19155 if (!argp2) {
19156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19157 }
19158 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19159 {
19160 arg3 = &temp3;
19161 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19162 }
19163 if (obj3) {
19164 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19165 if (!SWIG_IsOK(ecode4)) {
19166 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19167 }
19168 arg4 = static_cast< bool >(val4);
19169 }
19170 {
19171 PyThreadState* __tstate = wxPyBeginAllowThreads();
19172 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19173 wxPyEndAllowThreads(__tstate);
19174 if (PyErr_Occurred()) SWIG_fail;
19175 }
19176 resultobj = SWIG_Py_Void();
19177 return resultobj;
19178fail:
19179 return NULL;
19180}
19181
19182
19183SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19184 PyObject *resultobj = 0;
19185 wxDC *arg1 = (wxDC *) 0 ;
19186 wxString *arg2 = 0 ;
19187 int arg3 ;
19188 int arg4 ;
19189 void *argp1 = 0 ;
19190 int res1 = 0 ;
19191 bool temp2 = false ;
19192 int val3 ;
19193 int ecode3 = 0 ;
19194 int val4 ;
19195 int ecode4 = 0 ;
19196 PyObject * obj0 = 0 ;
19197 PyObject * obj1 = 0 ;
19198 PyObject * obj2 = 0 ;
19199 PyObject * obj3 = 0 ;
19200 char * kwnames[] = {
19201 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19202 };
19203
19204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19206 if (!SWIG_IsOK(res1)) {
19207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19208 }
19209 arg1 = reinterpret_cast< wxDC * >(argp1);
19210 {
19211 arg2 = wxString_in_helper(obj1);
19212 if (arg2 == NULL) SWIG_fail;
19213 temp2 = true;
19214 }
19215 ecode3 = SWIG_AsVal_int(obj2, &val3);
19216 if (!SWIG_IsOK(ecode3)) {
19217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19218 }
19219 arg3 = static_cast< int >(val3);
19220 ecode4 = SWIG_AsVal_int(obj3, &val4);
19221 if (!SWIG_IsOK(ecode4)) {
19222 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19223 }
19224 arg4 = static_cast< int >(val4);
19225 {
19226 PyThreadState* __tstate = wxPyBeginAllowThreads();
19227 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19228 wxPyEndAllowThreads(__tstate);
19229 if (PyErr_Occurred()) SWIG_fail;
19230 }
19231 resultobj = SWIG_Py_Void();
19232 {
19233 if (temp2)
19234 delete arg2;
19235 }
19236 return resultobj;
19237fail:
19238 {
19239 if (temp2)
19240 delete arg2;
19241 }
19242 return NULL;
19243}
19244
19245
19246SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19247 PyObject *resultobj = 0;
19248 wxDC *arg1 = (wxDC *) 0 ;
19249 wxString *arg2 = 0 ;
19250 wxPoint *arg3 = 0 ;
19251 void *argp1 = 0 ;
19252 int res1 = 0 ;
19253 bool temp2 = false ;
19254 wxPoint temp3 ;
19255 PyObject * obj0 = 0 ;
19256 PyObject * obj1 = 0 ;
19257 PyObject * obj2 = 0 ;
19258 char * kwnames[] = {
19259 (char *) "self",(char *) "text",(char *) "pt", NULL
19260 };
19261
19262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19264 if (!SWIG_IsOK(res1)) {
19265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19266 }
19267 arg1 = reinterpret_cast< wxDC * >(argp1);
19268 {
19269 arg2 = wxString_in_helper(obj1);
19270 if (arg2 == NULL) SWIG_fail;
19271 temp2 = true;
19272 }
19273 {
19274 arg3 = &temp3;
19275 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19276 }
19277 {
19278 PyThreadState* __tstate = wxPyBeginAllowThreads();
19279 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19280 wxPyEndAllowThreads(__tstate);
19281 if (PyErr_Occurred()) SWIG_fail;
19282 }
19283 resultobj = SWIG_Py_Void();
19284 {
19285 if (temp2)
19286 delete arg2;
19287 }
19288 return resultobj;
19289fail:
19290 {
19291 if (temp2)
19292 delete arg2;
19293 }
19294 return NULL;
19295}
19296
19297
19298SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19299 PyObject *resultobj = 0;
19300 wxDC *arg1 = (wxDC *) 0 ;
19301 wxString *arg2 = 0 ;
19302 int arg3 ;
19303 int arg4 ;
19304 double arg5 ;
19305 void *argp1 = 0 ;
19306 int res1 = 0 ;
19307 bool temp2 = false ;
19308 int val3 ;
19309 int ecode3 = 0 ;
19310 int val4 ;
19311 int ecode4 = 0 ;
19312 double val5 ;
19313 int ecode5 = 0 ;
19314 PyObject * obj0 = 0 ;
19315 PyObject * obj1 = 0 ;
19316 PyObject * obj2 = 0 ;
19317 PyObject * obj3 = 0 ;
19318 PyObject * obj4 = 0 ;
19319 char * kwnames[] = {
19320 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19321 };
19322
19323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19325 if (!SWIG_IsOK(res1)) {
19326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19327 }
19328 arg1 = reinterpret_cast< wxDC * >(argp1);
19329 {
19330 arg2 = wxString_in_helper(obj1);
19331 if (arg2 == NULL) SWIG_fail;
19332 temp2 = true;
19333 }
19334 ecode3 = SWIG_AsVal_int(obj2, &val3);
19335 if (!SWIG_IsOK(ecode3)) {
19336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19337 }
19338 arg3 = static_cast< int >(val3);
19339 ecode4 = SWIG_AsVal_int(obj3, &val4);
19340 if (!SWIG_IsOK(ecode4)) {
19341 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19342 }
19343 arg4 = static_cast< int >(val4);
19344 ecode5 = SWIG_AsVal_double(obj4, &val5);
19345 if (!SWIG_IsOK(ecode5)) {
19346 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19347 }
19348 arg5 = static_cast< double >(val5);
19349 {
19350 PyThreadState* __tstate = wxPyBeginAllowThreads();
19351 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19352 wxPyEndAllowThreads(__tstate);
19353 if (PyErr_Occurred()) SWIG_fail;
19354 }
19355 resultobj = SWIG_Py_Void();
19356 {
19357 if (temp2)
19358 delete arg2;
19359 }
19360 return resultobj;
19361fail:
19362 {
19363 if (temp2)
19364 delete arg2;
19365 }
19366 return NULL;
19367}
19368
19369
19370SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19371 PyObject *resultobj = 0;
19372 wxDC *arg1 = (wxDC *) 0 ;
19373 wxString *arg2 = 0 ;
19374 wxPoint *arg3 = 0 ;
19375 double arg4 ;
19376 void *argp1 = 0 ;
19377 int res1 = 0 ;
19378 bool temp2 = false ;
19379 wxPoint temp3 ;
19380 double val4 ;
19381 int ecode4 = 0 ;
19382 PyObject * obj0 = 0 ;
19383 PyObject * obj1 = 0 ;
19384 PyObject * obj2 = 0 ;
19385 PyObject * obj3 = 0 ;
19386 char * kwnames[] = {
19387 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19388 };
19389
19390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19392 if (!SWIG_IsOK(res1)) {
19393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19394 }
19395 arg1 = reinterpret_cast< wxDC * >(argp1);
19396 {
19397 arg2 = wxString_in_helper(obj1);
19398 if (arg2 == NULL) SWIG_fail;
19399 temp2 = true;
19400 }
19401 {
19402 arg3 = &temp3;
19403 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19404 }
19405 ecode4 = SWIG_AsVal_double(obj3, &val4);
19406 if (!SWIG_IsOK(ecode4)) {
19407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19408 }
19409 arg4 = static_cast< double >(val4);
19410 {
19411 PyThreadState* __tstate = wxPyBeginAllowThreads();
19412 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19413 wxPyEndAllowThreads(__tstate);
19414 if (PyErr_Occurred()) SWIG_fail;
19415 }
19416 resultobj = SWIG_Py_Void();
19417 {
19418 if (temp2)
19419 delete arg2;
19420 }
19421 return resultobj;
19422fail:
19423 {
19424 if (temp2)
19425 delete arg2;
19426 }
19427 return NULL;
19428}
19429
19430
19431SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19432 PyObject *resultobj = 0;
19433 wxDC *arg1 = (wxDC *) 0 ;
19434 int arg2 ;
19435 int arg3 ;
19436 int arg4 ;
19437 int arg5 ;
19438 wxDC *arg6 = (wxDC *) 0 ;
19439 int arg7 ;
19440 int arg8 ;
19441 int arg9 = (int) wxCOPY ;
19442 bool arg10 = (bool) false ;
19443 int arg11 = (int) -1 ;
19444 int arg12 = (int) -1 ;
19445 bool result;
19446 void *argp1 = 0 ;
19447 int res1 = 0 ;
19448 int val2 ;
19449 int ecode2 = 0 ;
19450 int val3 ;
19451 int ecode3 = 0 ;
19452 int val4 ;
19453 int ecode4 = 0 ;
19454 int val5 ;
19455 int ecode5 = 0 ;
19456 void *argp6 = 0 ;
19457 int res6 = 0 ;
19458 int val7 ;
19459 int ecode7 = 0 ;
19460 int val8 ;
19461 int ecode8 = 0 ;
19462 int val9 ;
19463 int ecode9 = 0 ;
19464 bool val10 ;
19465 int ecode10 = 0 ;
19466 int val11 ;
19467 int ecode11 = 0 ;
19468 int val12 ;
19469 int ecode12 = 0 ;
19470 PyObject * obj0 = 0 ;
19471 PyObject * obj1 = 0 ;
19472 PyObject * obj2 = 0 ;
19473 PyObject * obj3 = 0 ;
19474 PyObject * obj4 = 0 ;
19475 PyObject * obj5 = 0 ;
19476 PyObject * obj6 = 0 ;
19477 PyObject * obj7 = 0 ;
19478 PyObject * obj8 = 0 ;
19479 PyObject * obj9 = 0 ;
19480 PyObject * obj10 = 0 ;
19481 PyObject * obj11 = 0 ;
19482 char * kwnames[] = {
19483 (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
19484 };
19485
19486 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;
19487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19488 if (!SWIG_IsOK(res1)) {
19489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19490 }
19491 arg1 = reinterpret_cast< wxDC * >(argp1);
19492 ecode2 = SWIG_AsVal_int(obj1, &val2);
19493 if (!SWIG_IsOK(ecode2)) {
19494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19495 }
19496 arg2 = static_cast< int >(val2);
19497 ecode3 = SWIG_AsVal_int(obj2, &val3);
19498 if (!SWIG_IsOK(ecode3)) {
19499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19500 }
19501 arg3 = static_cast< int >(val3);
19502 ecode4 = SWIG_AsVal_int(obj3, &val4);
19503 if (!SWIG_IsOK(ecode4)) {
19504 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19505 }
19506 arg4 = static_cast< int >(val4);
19507 ecode5 = SWIG_AsVal_int(obj4, &val5);
19508 if (!SWIG_IsOK(ecode5)) {
19509 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19510 }
19511 arg5 = static_cast< int >(val5);
19512 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19513 if (!SWIG_IsOK(res6)) {
19514 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19515 }
19516 arg6 = reinterpret_cast< wxDC * >(argp6);
19517 ecode7 = SWIG_AsVal_int(obj6, &val7);
19518 if (!SWIG_IsOK(ecode7)) {
19519 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19520 }
19521 arg7 = static_cast< int >(val7);
19522 ecode8 = SWIG_AsVal_int(obj7, &val8);
19523 if (!SWIG_IsOK(ecode8)) {
19524 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19525 }
19526 arg8 = static_cast< int >(val8);
19527 if (obj8) {
19528 ecode9 = SWIG_AsVal_int(obj8, &val9);
19529 if (!SWIG_IsOK(ecode9)) {
19530 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19531 }
19532 arg9 = static_cast< int >(val9);
19533 }
19534 if (obj9) {
19535 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19536 if (!SWIG_IsOK(ecode10)) {
19537 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19538 }
19539 arg10 = static_cast< bool >(val10);
19540 }
19541 if (obj10) {
19542 ecode11 = SWIG_AsVal_int(obj10, &val11);
19543 if (!SWIG_IsOK(ecode11)) {
19544 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19545 }
19546 arg11 = static_cast< int >(val11);
19547 }
19548 if (obj11) {
19549 ecode12 = SWIG_AsVal_int(obj11, &val12);
19550 if (!SWIG_IsOK(ecode12)) {
19551 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19552 }
19553 arg12 = static_cast< int >(val12);
19554 }
19555 {
19556 PyThreadState* __tstate = wxPyBeginAllowThreads();
19557 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19558 wxPyEndAllowThreads(__tstate);
19559 if (PyErr_Occurred()) SWIG_fail;
19560 }
19561 {
19562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19563 }
19564 return resultobj;
19565fail:
19566 return NULL;
19567}
19568
19569
19570SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19571 PyObject *resultobj = 0;
19572 wxDC *arg1 = (wxDC *) 0 ;
19573 wxPoint *arg2 = 0 ;
19574 wxSize *arg3 = 0 ;
19575 wxDC *arg4 = (wxDC *) 0 ;
19576 wxPoint *arg5 = 0 ;
19577 int arg6 = (int) wxCOPY ;
19578 bool arg7 = (bool) false ;
19579 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19580 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19581 bool result;
19582 void *argp1 = 0 ;
19583 int res1 = 0 ;
19584 wxPoint temp2 ;
19585 wxSize temp3 ;
19586 void *argp4 = 0 ;
19587 int res4 = 0 ;
19588 wxPoint temp5 ;
19589 int val6 ;
19590 int ecode6 = 0 ;
19591 bool val7 ;
19592 int ecode7 = 0 ;
19593 wxPoint temp8 ;
19594 PyObject * obj0 = 0 ;
19595 PyObject * obj1 = 0 ;
19596 PyObject * obj2 = 0 ;
19597 PyObject * obj3 = 0 ;
19598 PyObject * obj4 = 0 ;
19599 PyObject * obj5 = 0 ;
19600 PyObject * obj6 = 0 ;
19601 PyObject * obj7 = 0 ;
19602 char * kwnames[] = {
19603 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19604 };
19605
19606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19608 if (!SWIG_IsOK(res1)) {
19609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19610 }
19611 arg1 = reinterpret_cast< wxDC * >(argp1);
19612 {
19613 arg2 = &temp2;
19614 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19615 }
19616 {
19617 arg3 = &temp3;
19618 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19619 }
19620 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19621 if (!SWIG_IsOK(res4)) {
19622 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19623 }
19624 arg4 = reinterpret_cast< wxDC * >(argp4);
19625 {
19626 arg5 = &temp5;
19627 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19628 }
19629 if (obj5) {
19630 ecode6 = SWIG_AsVal_int(obj5, &val6);
19631 if (!SWIG_IsOK(ecode6)) {
19632 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19633 }
19634 arg6 = static_cast< int >(val6);
19635 }
19636 if (obj6) {
19637 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19638 if (!SWIG_IsOK(ecode7)) {
19639 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19640 }
19641 arg7 = static_cast< bool >(val7);
19642 }
19643 if (obj7) {
36ed4f51 19644 {
1bd55598
RD
19645 arg8 = &temp8;
19646 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19647 }
1bd55598
RD
19648 }
19649 {
19650 PyThreadState* __tstate = wxPyBeginAllowThreads();
19651 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19652 wxPyEndAllowThreads(__tstate);
19653 if (PyErr_Occurred()) SWIG_fail;
19654 }
19655 {
19656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19657 }
19658 return resultobj;
19659fail:
19660 return NULL;
19661}
19662
19663
19664SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19665 PyObject *resultobj = 0;
19666 wxDC *arg1 = (wxDC *) 0 ;
19667 int arg2 ;
19668 int arg3 ;
19669 int arg4 ;
19670 int arg5 ;
19671 void *argp1 = 0 ;
19672 int res1 = 0 ;
19673 int val2 ;
19674 int ecode2 = 0 ;
19675 int val3 ;
19676 int ecode3 = 0 ;
19677 int val4 ;
19678 int ecode4 = 0 ;
19679 int val5 ;
19680 int ecode5 = 0 ;
19681 PyObject * obj0 = 0 ;
19682 PyObject * obj1 = 0 ;
19683 PyObject * obj2 = 0 ;
19684 PyObject * obj3 = 0 ;
19685 PyObject * obj4 = 0 ;
19686 char * kwnames[] = {
19687 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19688 };
19689
19690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19692 if (!SWIG_IsOK(res1)) {
19693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19694 }
19695 arg1 = reinterpret_cast< wxDC * >(argp1);
19696 ecode2 = SWIG_AsVal_int(obj1, &val2);
19697 if (!SWIG_IsOK(ecode2)) {
19698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19699 }
19700 arg2 = static_cast< int >(val2);
19701 ecode3 = SWIG_AsVal_int(obj2, &val3);
19702 if (!SWIG_IsOK(ecode3)) {
19703 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19704 }
19705 arg3 = static_cast< int >(val3);
19706 ecode4 = SWIG_AsVal_int(obj3, &val4);
19707 if (!SWIG_IsOK(ecode4)) {
19708 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19709 }
19710 arg4 = static_cast< int >(val4);
19711 ecode5 = SWIG_AsVal_int(obj4, &val5);
19712 if (!SWIG_IsOK(ecode5)) {
19713 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19714 }
19715 arg5 = static_cast< int >(val5);
19716 {
19717 PyThreadState* __tstate = wxPyBeginAllowThreads();
19718 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19719 wxPyEndAllowThreads(__tstate);
19720 if (PyErr_Occurred()) SWIG_fail;
19721 }
19722 resultobj = SWIG_Py_Void();
19723 return resultobj;
19724fail:
19725 return NULL;
19726}
19727
19728
19729SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19730 PyObject *resultobj = 0;
19731 wxDC *arg1 = (wxDC *) 0 ;
19732 wxPoint *arg2 = 0 ;
19733 wxSize *arg3 = 0 ;
19734 void *argp1 = 0 ;
19735 int res1 = 0 ;
19736 wxPoint temp2 ;
19737 wxSize temp3 ;
19738 PyObject * obj0 = 0 ;
19739 PyObject * obj1 = 0 ;
19740 PyObject * obj2 = 0 ;
19741 char * kwnames[] = {
19742 (char *) "self",(char *) "pt",(char *) "sz", NULL
19743 };
19744
19745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19747 if (!SWIG_IsOK(res1)) {
19748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19749 }
19750 arg1 = reinterpret_cast< wxDC * >(argp1);
19751 {
19752 arg2 = &temp2;
19753 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19754 }
19755 {
19756 arg3 = &temp3;
19757 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19758 }
19759 {
19760 PyThreadState* __tstate = wxPyBeginAllowThreads();
19761 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19762 wxPyEndAllowThreads(__tstate);
19763 if (PyErr_Occurred()) SWIG_fail;
19764 }
19765 resultobj = SWIG_Py_Void();
19766 return resultobj;
19767fail:
19768 return NULL;
19769}
19770
19771
19772SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19773 PyObject *resultobj = 0;
19774 wxDC *arg1 = (wxDC *) 0 ;
19775 wxRegion *arg2 = 0 ;
19776 void *argp1 = 0 ;
19777 int res1 = 0 ;
19778 void *argp2 = 0 ;
19779 int res2 = 0 ;
19780 PyObject * obj0 = 0 ;
19781 PyObject * obj1 = 0 ;
19782 char * kwnames[] = {
19783 (char *) "self",(char *) "region", NULL
19784 };
19785
19786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19788 if (!SWIG_IsOK(res1)) {
19789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19790 }
19791 arg1 = reinterpret_cast< wxDC * >(argp1);
19792 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19793 if (!SWIG_IsOK(res2)) {
19794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19795 }
19796 if (!argp2) {
19797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19798 }
19799 arg2 = reinterpret_cast< wxRegion * >(argp2);
19800 {
19801 PyThreadState* __tstate = wxPyBeginAllowThreads();
19802 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19803 wxPyEndAllowThreads(__tstate);
19804 if (PyErr_Occurred()) SWIG_fail;
19805 }
19806 resultobj = SWIG_Py_Void();
19807 return resultobj;
19808fail:
19809 return NULL;
19810}
19811
19812
19813SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19814 PyObject *resultobj = 0;
19815 wxDC *arg1 = (wxDC *) 0 ;
19816 wxRect *arg2 = 0 ;
19817 void *argp1 = 0 ;
19818 int res1 = 0 ;
19819 wxRect temp2 ;
19820 PyObject * obj0 = 0 ;
19821 PyObject * obj1 = 0 ;
19822 char * kwnames[] = {
19823 (char *) "self",(char *) "rect", NULL
19824 };
19825
19826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19828 if (!SWIG_IsOK(res1)) {
19829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19830 }
19831 arg1 = reinterpret_cast< wxDC * >(argp1);
19832 {
19833 arg2 = &temp2;
19834 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19835 }
19836 {
19837 PyThreadState* __tstate = wxPyBeginAllowThreads();
19838 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19839 wxPyEndAllowThreads(__tstate);
19840 if (PyErr_Occurred()) SWIG_fail;
19841 }
19842 resultobj = SWIG_Py_Void();
19843 return resultobj;
19844fail:
19845 return NULL;
19846}
19847
19848
19849SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19850 PyObject *resultobj = 0;
19851 wxDC *arg1 = (wxDC *) 0 ;
19852 int arg2 ;
19853 wxPoint *arg3 = (wxPoint *) 0 ;
19854 int arg4 = (int) 0 ;
19855 int arg5 = (int) 0 ;
19856 void *argp1 = 0 ;
19857 int res1 = 0 ;
19858 int val4 ;
19859 int ecode4 = 0 ;
19860 int val5 ;
19861 int ecode5 = 0 ;
19862 PyObject * obj0 = 0 ;
19863 PyObject * obj1 = 0 ;
19864 PyObject * obj2 = 0 ;
19865 PyObject * obj3 = 0 ;
19866 char * kwnames[] = {
19867 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19868 };
19869
19870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19872 if (!SWIG_IsOK(res1)) {
19873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19874 }
19875 arg1 = reinterpret_cast< wxDC * >(argp1);
19876 {
19877 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19878 if (arg3 == NULL) SWIG_fail;
19879 }
19880 if (obj2) {
19881 ecode4 = SWIG_AsVal_int(obj2, &val4);
19882 if (!SWIG_IsOK(ecode4)) {
19883 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19884 }
19885 arg4 = static_cast< int >(val4);
19886 }
19887 if (obj3) {
19888 ecode5 = SWIG_AsVal_int(obj3, &val5);
19889 if (!SWIG_IsOK(ecode5)) {
19890 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19891 }
19892 arg5 = static_cast< int >(val5);
19893 }
19894 {
19895 PyThreadState* __tstate = wxPyBeginAllowThreads();
19896 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19897 wxPyEndAllowThreads(__tstate);
19898 if (PyErr_Occurred()) SWIG_fail;
19899 }
19900 resultobj = SWIG_Py_Void();
19901 {
19902 if (arg3) delete [] arg3;
19903 }
19904 return resultobj;
19905fail:
19906 {
19907 if (arg3) delete [] arg3;
19908 }
19909 return NULL;
19910}
19911
19912
19913SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19914 PyObject *resultobj = 0;
19915 wxDC *arg1 = (wxDC *) 0 ;
19916 int arg2 ;
19917 wxPoint *arg3 = (wxPoint *) 0 ;
19918 int arg4 = (int) 0 ;
19919 int arg5 = (int) 0 ;
19920 int arg6 = (int) wxODDEVEN_RULE ;
19921 void *argp1 = 0 ;
19922 int res1 = 0 ;
19923 int val4 ;
19924 int ecode4 = 0 ;
19925 int val5 ;
19926 int ecode5 = 0 ;
19927 int val6 ;
19928 int ecode6 = 0 ;
19929 PyObject * obj0 = 0 ;
19930 PyObject * obj1 = 0 ;
19931 PyObject * obj2 = 0 ;
19932 PyObject * obj3 = 0 ;
19933 PyObject * obj4 = 0 ;
19934 char * kwnames[] = {
19935 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19936 };
19937
19938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19940 if (!SWIG_IsOK(res1)) {
19941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19942 }
19943 arg1 = reinterpret_cast< wxDC * >(argp1);
19944 {
19945 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19946 if (arg3 == NULL) SWIG_fail;
19947 }
19948 if (obj2) {
19949 ecode4 = SWIG_AsVal_int(obj2, &val4);
19950 if (!SWIG_IsOK(ecode4)) {
19951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19952 }
19953 arg4 = static_cast< int >(val4);
19954 }
19955 if (obj3) {
19956 ecode5 = SWIG_AsVal_int(obj3, &val5);
19957 if (!SWIG_IsOK(ecode5)) {
19958 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19959 }
19960 arg5 = static_cast< int >(val5);
19961 }
19962 if (obj4) {
19963 ecode6 = SWIG_AsVal_int(obj4, &val6);
19964 if (!SWIG_IsOK(ecode6)) {
19965 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19966 }
19967 arg6 = static_cast< int >(val6);
19968 }
19969 {
19970 PyThreadState* __tstate = wxPyBeginAllowThreads();
19971 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19972 wxPyEndAllowThreads(__tstate);
19973 if (PyErr_Occurred()) SWIG_fail;
19974 }
19975 resultobj = SWIG_Py_Void();
19976 {
19977 if (arg3) delete [] arg3;
19978 }
19979 return resultobj;
19980fail:
19981 {
19982 if (arg3) delete [] arg3;
19983 }
19984 return NULL;
19985}
19986
19987
19988SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19989 PyObject *resultobj = 0;
19990 wxDC *arg1 = (wxDC *) 0 ;
19991 wxString *arg2 = 0 ;
19992 wxRect *arg3 = 0 ;
19993 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19994 int arg5 = (int) -1 ;
19995 void *argp1 = 0 ;
19996 int res1 = 0 ;
19997 bool temp2 = false ;
19998 wxRect temp3 ;
19999 int val4 ;
20000 int ecode4 = 0 ;
20001 int val5 ;
20002 int ecode5 = 0 ;
20003 PyObject * obj0 = 0 ;
20004 PyObject * obj1 = 0 ;
20005 PyObject * obj2 = 0 ;
20006 PyObject * obj3 = 0 ;
20007 PyObject * obj4 = 0 ;
20008 char * kwnames[] = {
20009 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20010 };
20011
20012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20014 if (!SWIG_IsOK(res1)) {
20015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20016 }
20017 arg1 = reinterpret_cast< wxDC * >(argp1);
20018 {
20019 arg2 = wxString_in_helper(obj1);
20020 if (arg2 == NULL) SWIG_fail;
20021 temp2 = true;
20022 }
20023 {
20024 arg3 = &temp3;
20025 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20026 }
20027 if (obj3) {
20028 ecode4 = SWIG_AsVal_int(obj3, &val4);
20029 if (!SWIG_IsOK(ecode4)) {
20030 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20031 }
20032 arg4 = static_cast< int >(val4);
20033 }
20034 if (obj4) {
20035 ecode5 = SWIG_AsVal_int(obj4, &val5);
20036 if (!SWIG_IsOK(ecode5)) {
20037 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20038 }
20039 arg5 = static_cast< int >(val5);
20040 }
20041 {
20042 PyThreadState* __tstate = wxPyBeginAllowThreads();
20043 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20044 wxPyEndAllowThreads(__tstate);
20045 if (PyErr_Occurred()) SWIG_fail;
20046 }
20047 resultobj = SWIG_Py_Void();
20048 {
20049 if (temp2)
20050 delete arg2;
20051 }
20052 return resultobj;
20053fail:
20054 {
20055 if (temp2)
20056 delete arg2;
20057 }
20058 return NULL;
20059}
20060
20061
20062SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20063 PyObject *resultobj = 0;
20064 wxDC *arg1 = (wxDC *) 0 ;
20065 wxString *arg2 = 0 ;
20066 wxBitmap *arg3 = 0 ;
20067 wxRect *arg4 = 0 ;
20068 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20069 int arg6 = (int) -1 ;
20070 wxRect result;
20071 void *argp1 = 0 ;
20072 int res1 = 0 ;
20073 bool temp2 = false ;
20074 void *argp3 = 0 ;
20075 int res3 = 0 ;
20076 wxRect temp4 ;
20077 int val5 ;
20078 int ecode5 = 0 ;
20079 int val6 ;
20080 int ecode6 = 0 ;
20081 PyObject * obj0 = 0 ;
20082 PyObject * obj1 = 0 ;
20083 PyObject * obj2 = 0 ;
20084 PyObject * obj3 = 0 ;
20085 PyObject * obj4 = 0 ;
20086 PyObject * obj5 = 0 ;
20087 char * kwnames[] = {
20088 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20089 };
20090
20091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20093 if (!SWIG_IsOK(res1)) {
20094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20095 }
20096 arg1 = reinterpret_cast< wxDC * >(argp1);
20097 {
20098 arg2 = wxString_in_helper(obj1);
20099 if (arg2 == NULL) SWIG_fail;
20100 temp2 = true;
20101 }
20102 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20103 if (!SWIG_IsOK(res3)) {
20104 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20105 }
20106 if (!argp3) {
20107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20108 }
20109 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20110 {
20111 arg4 = &temp4;
20112 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20113 }
20114 if (obj4) {
20115 ecode5 = SWIG_AsVal_int(obj4, &val5);
20116 if (!SWIG_IsOK(ecode5)) {
20117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20118 }
20119 arg5 = static_cast< int >(val5);
20120 }
20121 if (obj5) {
20122 ecode6 = SWIG_AsVal_int(obj5, &val6);
20123 if (!SWIG_IsOK(ecode6)) {
20124 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20125 }
20126 arg6 = static_cast< int >(val6);
20127 }
20128 {
20129 PyThreadState* __tstate = wxPyBeginAllowThreads();
20130 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20131 wxPyEndAllowThreads(__tstate);
20132 if (PyErr_Occurred()) SWIG_fail;
20133 }
20134 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20135 {
20136 if (temp2)
20137 delete arg2;
20138 }
20139 return resultobj;
20140fail:
20141 {
20142 if (temp2)
20143 delete arg2;
20144 }
20145 return NULL;
20146}
20147
20148
20149SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20150 PyObject *resultobj = 0;
20151 wxDC *arg1 = (wxDC *) 0 ;
20152 int arg2 ;
20153 wxPoint *arg3 = (wxPoint *) 0 ;
20154 void *argp1 = 0 ;
20155 int res1 = 0 ;
20156 PyObject * obj0 = 0 ;
20157 PyObject * obj1 = 0 ;
20158 char * kwnames[] = {
20159 (char *) "self",(char *) "points", NULL
20160 };
20161
20162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20164 if (!SWIG_IsOK(res1)) {
20165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20166 }
20167 arg1 = reinterpret_cast< wxDC * >(argp1);
20168 {
20169 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20170 if (arg3 == NULL) SWIG_fail;
20171 }
20172 {
20173 PyThreadState* __tstate = wxPyBeginAllowThreads();
20174 (arg1)->DrawSpline(arg2,arg3);
20175 wxPyEndAllowThreads(__tstate);
20176 if (PyErr_Occurred()) SWIG_fail;
20177 }
20178 resultobj = SWIG_Py_Void();
20179 {
20180 if (arg3) delete [] arg3;
20181 }
20182 return resultobj;
20183fail:
20184 {
20185 if (arg3) delete [] arg3;
20186 }
20187 return NULL;
20188}
20189
20190
20191SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20192 PyObject *resultobj = 0;
20193 wxDC *arg1 = (wxDC *) 0 ;
20194 void *argp1 = 0 ;
20195 int res1 = 0 ;
20196 PyObject *swig_obj[1] ;
20197
20198 if (!args) SWIG_fail;
20199 swig_obj[0] = args;
20200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20201 if (!SWIG_IsOK(res1)) {
20202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20203 }
20204 arg1 = reinterpret_cast< wxDC * >(argp1);
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 (arg1)->Clear();
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 resultobj = SWIG_Py_Void();
20212 return resultobj;
20213fail:
20214 return NULL;
20215}
20216
20217
20218SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20219 PyObject *resultobj = 0;
20220 wxDC *arg1 = (wxDC *) 0 ;
20221 wxString *arg2 = 0 ;
20222 bool result;
20223 void *argp1 = 0 ;
20224 int res1 = 0 ;
20225 bool temp2 = false ;
20226 PyObject * obj0 = 0 ;
20227 PyObject * obj1 = 0 ;
20228 char * kwnames[] = {
20229 (char *) "self",(char *) "message", NULL
20230 };
20231
20232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20234 if (!SWIG_IsOK(res1)) {
20235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20236 }
20237 arg1 = reinterpret_cast< wxDC * >(argp1);
20238 {
20239 arg2 = wxString_in_helper(obj1);
20240 if (arg2 == NULL) SWIG_fail;
20241 temp2 = true;
20242 }
20243 {
20244 PyThreadState* __tstate = wxPyBeginAllowThreads();
20245 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20246 wxPyEndAllowThreads(__tstate);
20247 if (PyErr_Occurred()) SWIG_fail;
20248 }
20249 {
20250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20251 }
20252 {
20253 if (temp2)
20254 delete arg2;
20255 }
20256 return resultobj;
20257fail:
20258 {
20259 if (temp2)
20260 delete arg2;
20261 }
20262 return NULL;
20263}
20264
20265
20266SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20267 PyObject *resultobj = 0;
20268 wxDC *arg1 = (wxDC *) 0 ;
20269 void *argp1 = 0 ;
20270 int res1 = 0 ;
20271 PyObject *swig_obj[1] ;
20272
20273 if (!args) SWIG_fail;
20274 swig_obj[0] = args;
20275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20276 if (!SWIG_IsOK(res1)) {
20277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20278 }
20279 arg1 = reinterpret_cast< wxDC * >(argp1);
20280 {
20281 PyThreadState* __tstate = wxPyBeginAllowThreads();
20282 (arg1)->EndDoc();
20283 wxPyEndAllowThreads(__tstate);
20284 if (PyErr_Occurred()) SWIG_fail;
20285 }
20286 resultobj = SWIG_Py_Void();
20287 return resultobj;
20288fail:
20289 return NULL;
20290}
20291
20292
20293SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20294 PyObject *resultobj = 0;
20295 wxDC *arg1 = (wxDC *) 0 ;
20296 void *argp1 = 0 ;
20297 int res1 = 0 ;
20298 PyObject *swig_obj[1] ;
20299
20300 if (!args) SWIG_fail;
20301 swig_obj[0] = args;
20302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20303 if (!SWIG_IsOK(res1)) {
20304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20305 }
20306 arg1 = reinterpret_cast< wxDC * >(argp1);
20307 {
20308 PyThreadState* __tstate = wxPyBeginAllowThreads();
20309 (arg1)->StartPage();
20310 wxPyEndAllowThreads(__tstate);
20311 if (PyErr_Occurred()) SWIG_fail;
20312 }
20313 resultobj = SWIG_Py_Void();
20314 return resultobj;
20315fail:
20316 return NULL;
20317}
20318
20319
20320SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20321 PyObject *resultobj = 0;
20322 wxDC *arg1 = (wxDC *) 0 ;
20323 void *argp1 = 0 ;
20324 int res1 = 0 ;
20325 PyObject *swig_obj[1] ;
20326
20327 if (!args) SWIG_fail;
20328 swig_obj[0] = args;
20329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20330 if (!SWIG_IsOK(res1)) {
20331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20332 }
20333 arg1 = reinterpret_cast< wxDC * >(argp1);
20334 {
20335 PyThreadState* __tstate = wxPyBeginAllowThreads();
20336 (arg1)->EndPage();
20337 wxPyEndAllowThreads(__tstate);
20338 if (PyErr_Occurred()) SWIG_fail;
20339 }
20340 resultobj = SWIG_Py_Void();
20341 return resultobj;
20342fail:
20343 return NULL;
20344}
20345
20346
20347SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20348 PyObject *resultobj = 0;
20349 wxDC *arg1 = (wxDC *) 0 ;
20350 wxFont *arg2 = 0 ;
20351 void *argp1 = 0 ;
20352 int res1 = 0 ;
20353 void *argp2 = 0 ;
20354 int res2 = 0 ;
20355 PyObject * obj0 = 0 ;
20356 PyObject * obj1 = 0 ;
20357 char * kwnames[] = {
20358 (char *) "self",(char *) "font", NULL
20359 };
20360
20361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20363 if (!SWIG_IsOK(res1)) {
20364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20365 }
20366 arg1 = reinterpret_cast< wxDC * >(argp1);
20367 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20368 if (!SWIG_IsOK(res2)) {
20369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20370 }
20371 if (!argp2) {
20372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20373 }
20374 arg2 = reinterpret_cast< wxFont * >(argp2);
20375 {
20376 PyThreadState* __tstate = wxPyBeginAllowThreads();
20377 (arg1)->SetFont((wxFont const &)*arg2);
20378 wxPyEndAllowThreads(__tstate);
20379 if (PyErr_Occurred()) SWIG_fail;
20380 }
20381 resultobj = SWIG_Py_Void();
20382 return resultobj;
20383fail:
20384 return NULL;
20385}
20386
20387
20388SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20389 PyObject *resultobj = 0;
20390 wxDC *arg1 = (wxDC *) 0 ;
20391 wxPen *arg2 = 0 ;
20392 void *argp1 = 0 ;
20393 int res1 = 0 ;
20394 void *argp2 = 0 ;
20395 int res2 = 0 ;
20396 PyObject * obj0 = 0 ;
20397 PyObject * obj1 = 0 ;
20398 char * kwnames[] = {
20399 (char *) "self",(char *) "pen", NULL
20400 };
20401
20402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20404 if (!SWIG_IsOK(res1)) {
20405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20406 }
20407 arg1 = reinterpret_cast< wxDC * >(argp1);
20408 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20409 if (!SWIG_IsOK(res2)) {
20410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20411 }
20412 if (!argp2) {
20413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20414 }
20415 arg2 = reinterpret_cast< wxPen * >(argp2);
20416 {
20417 PyThreadState* __tstate = wxPyBeginAllowThreads();
20418 (arg1)->SetPen((wxPen const &)*arg2);
20419 wxPyEndAllowThreads(__tstate);
20420 if (PyErr_Occurred()) SWIG_fail;
20421 }
20422 resultobj = SWIG_Py_Void();
20423 return resultobj;
20424fail:
20425 return NULL;
20426}
20427
20428
20429SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20430 PyObject *resultobj = 0;
20431 wxDC *arg1 = (wxDC *) 0 ;
20432 wxBrush *arg2 = 0 ;
20433 void *argp1 = 0 ;
20434 int res1 = 0 ;
20435 void *argp2 = 0 ;
20436 int res2 = 0 ;
20437 PyObject * obj0 = 0 ;
20438 PyObject * obj1 = 0 ;
20439 char * kwnames[] = {
20440 (char *) "self",(char *) "brush", NULL
20441 };
20442
20443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20445 if (!SWIG_IsOK(res1)) {
20446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20447 }
20448 arg1 = reinterpret_cast< wxDC * >(argp1);
20449 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20450 if (!SWIG_IsOK(res2)) {
20451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20452 }
20453 if (!argp2) {
20454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20455 }
20456 arg2 = reinterpret_cast< wxBrush * >(argp2);
20457 {
20458 PyThreadState* __tstate = wxPyBeginAllowThreads();
20459 (arg1)->SetBrush((wxBrush const &)*arg2);
20460 wxPyEndAllowThreads(__tstate);
20461 if (PyErr_Occurred()) SWIG_fail;
20462 }
20463 resultobj = SWIG_Py_Void();
20464 return resultobj;
20465fail:
20466 return NULL;
20467}
20468
20469
20470SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20471 PyObject *resultobj = 0;
20472 wxDC *arg1 = (wxDC *) 0 ;
20473 wxBrush *arg2 = 0 ;
20474 void *argp1 = 0 ;
20475 int res1 = 0 ;
20476 void *argp2 = 0 ;
20477 int res2 = 0 ;
20478 PyObject * obj0 = 0 ;
20479 PyObject * obj1 = 0 ;
20480 char * kwnames[] = {
20481 (char *) "self",(char *) "brush", NULL
20482 };
20483
20484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20486 if (!SWIG_IsOK(res1)) {
20487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20488 }
20489 arg1 = reinterpret_cast< wxDC * >(argp1);
20490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20491 if (!SWIG_IsOK(res2)) {
20492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20493 }
20494 if (!argp2) {
20495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20496 }
20497 arg2 = reinterpret_cast< wxBrush * >(argp2);
20498 {
20499 PyThreadState* __tstate = wxPyBeginAllowThreads();
20500 (arg1)->SetBackground((wxBrush const &)*arg2);
20501 wxPyEndAllowThreads(__tstate);
20502 if (PyErr_Occurred()) SWIG_fail;
20503 }
20504 resultobj = SWIG_Py_Void();
20505 return resultobj;
20506fail:
20507 return NULL;
20508}
20509
20510
20511SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20512 PyObject *resultobj = 0;
20513 wxDC *arg1 = (wxDC *) 0 ;
20514 int arg2 ;
20515 void *argp1 = 0 ;
20516 int res1 = 0 ;
20517 int val2 ;
20518 int ecode2 = 0 ;
20519 PyObject * obj0 = 0 ;
20520 PyObject * obj1 = 0 ;
20521 char * kwnames[] = {
20522 (char *) "self",(char *) "mode", NULL
20523 };
20524
20525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20527 if (!SWIG_IsOK(res1)) {
20528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20529 }
20530 arg1 = reinterpret_cast< wxDC * >(argp1);
20531 ecode2 = SWIG_AsVal_int(obj1, &val2);
20532 if (!SWIG_IsOK(ecode2)) {
20533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20534 }
20535 arg2 = static_cast< int >(val2);
20536 {
20537 PyThreadState* __tstate = wxPyBeginAllowThreads();
20538 (arg1)->SetBackgroundMode(arg2);
20539 wxPyEndAllowThreads(__tstate);
20540 if (PyErr_Occurred()) SWIG_fail;
20541 }
20542 resultobj = SWIG_Py_Void();
20543 return resultobj;
20544fail:
20545 return NULL;
20546}
20547
20548
20549SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20550 PyObject *resultobj = 0;
20551 wxDC *arg1 = (wxDC *) 0 ;
20552 wxPalette *arg2 = 0 ;
20553 void *argp1 = 0 ;
20554 int res1 = 0 ;
20555 void *argp2 = 0 ;
20556 int res2 = 0 ;
20557 PyObject * obj0 = 0 ;
20558 PyObject * obj1 = 0 ;
20559 char * kwnames[] = {
20560 (char *) "self",(char *) "palette", NULL
20561 };
20562
20563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20565 if (!SWIG_IsOK(res1)) {
20566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20567 }
20568 arg1 = reinterpret_cast< wxDC * >(argp1);
20569 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20570 if (!SWIG_IsOK(res2)) {
20571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20572 }
20573 if (!argp2) {
20574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20575 }
20576 arg2 = reinterpret_cast< wxPalette * >(argp2);
20577 {
20578 PyThreadState* __tstate = wxPyBeginAllowThreads();
20579 (arg1)->SetPalette((wxPalette const &)*arg2);
20580 wxPyEndAllowThreads(__tstate);
20581 if (PyErr_Occurred()) SWIG_fail;
20582 }
20583 resultobj = SWIG_Py_Void();
20584 return resultobj;
20585fail:
20586 return NULL;
20587}
20588
20589
20590SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20591 PyObject *resultobj = 0;
20592 wxDC *arg1 = (wxDC *) 0 ;
20593 void *argp1 = 0 ;
20594 int res1 = 0 ;
20595 PyObject *swig_obj[1] ;
20596
20597 if (!args) SWIG_fail;
20598 swig_obj[0] = args;
20599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20600 if (!SWIG_IsOK(res1)) {
20601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20602 }
20603 arg1 = reinterpret_cast< wxDC * >(argp1);
20604 {
20605 PyThreadState* __tstate = wxPyBeginAllowThreads();
20606 (arg1)->DestroyClippingRegion();
20607 wxPyEndAllowThreads(__tstate);
20608 if (PyErr_Occurred()) SWIG_fail;
20609 }
20610 resultobj = SWIG_Py_Void();
20611 return resultobj;
20612fail:
20613 return NULL;
20614}
20615
20616
20617SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20618 PyObject *resultobj = 0;
20619 wxDC *arg1 = (wxDC *) 0 ;
20620 int *arg2 = (int *) 0 ;
20621 int *arg3 = (int *) 0 ;
20622 int *arg4 = (int *) 0 ;
20623 int *arg5 = (int *) 0 ;
20624 void *argp1 = 0 ;
20625 int res1 = 0 ;
20626 int temp2 ;
20627 int res2 = SWIG_TMPOBJ ;
20628 int temp3 ;
20629 int res3 = SWIG_TMPOBJ ;
20630 int temp4 ;
20631 int res4 = SWIG_TMPOBJ ;
20632 int temp5 ;
20633 int res5 = SWIG_TMPOBJ ;
20634 PyObject *swig_obj[1] ;
20635
20636 arg2 = &temp2;
20637 arg3 = &temp3;
20638 arg4 = &temp4;
20639 arg5 = &temp5;
20640 if (!args) SWIG_fail;
20641 swig_obj[0] = args;
20642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20643 if (!SWIG_IsOK(res1)) {
20644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20645 }
20646 arg1 = reinterpret_cast< wxDC * >(argp1);
20647 {
20648 PyThreadState* __tstate = wxPyBeginAllowThreads();
20649 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20650 wxPyEndAllowThreads(__tstate);
20651 if (PyErr_Occurred()) SWIG_fail;
20652 }
20653 resultobj = SWIG_Py_Void();
20654 if (SWIG_IsTmpObj(res2)) {
20655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20656 } else {
20657 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20659 }
20660 if (SWIG_IsTmpObj(res3)) {
20661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20662 } else {
20663 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20665 }
20666 if (SWIG_IsTmpObj(res4)) {
20667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20668 } else {
20669 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20670 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20671 }
20672 if (SWIG_IsTmpObj(res5)) {
20673 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20674 } else {
20675 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20676 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20677 }
20678 return resultobj;
20679fail:
20680 return NULL;
20681}
20682
20683
20684SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20685 PyObject *resultobj = 0;
20686 wxDC *arg1 = (wxDC *) 0 ;
20687 wxRect result;
20688 void *argp1 = 0 ;
20689 int res1 = 0 ;
20690 PyObject *swig_obj[1] ;
20691
20692 if (!args) SWIG_fail;
20693 swig_obj[0] = args;
20694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20695 if (!SWIG_IsOK(res1)) {
20696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20697 }
20698 arg1 = reinterpret_cast< wxDC * >(argp1);
20699 {
20700 PyThreadState* __tstate = wxPyBeginAllowThreads();
20701 result = wxDC_GetClippingRect(arg1);
20702 wxPyEndAllowThreads(__tstate);
20703 if (PyErr_Occurred()) SWIG_fail;
20704 }
20705 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20706 return resultobj;
20707fail:
20708 return NULL;
20709}
20710
20711
20712SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20713 PyObject *resultobj = 0;
20714 wxDC *arg1 = (wxDC *) 0 ;
20715 int result;
20716 void *argp1 = 0 ;
20717 int res1 = 0 ;
20718 PyObject *swig_obj[1] ;
20719
20720 if (!args) SWIG_fail;
20721 swig_obj[0] = args;
20722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20723 if (!SWIG_IsOK(res1)) {
20724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20725 }
20726 arg1 = reinterpret_cast< wxDC * >(argp1);
20727 {
20728 PyThreadState* __tstate = wxPyBeginAllowThreads();
20729 result = (int)((wxDC const *)arg1)->GetCharHeight();
20730 wxPyEndAllowThreads(__tstate);
20731 if (PyErr_Occurred()) SWIG_fail;
20732 }
20733 resultobj = SWIG_From_int(static_cast< int >(result));
20734 return resultobj;
20735fail:
20736 return NULL;
20737}
20738
20739
20740SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20741 PyObject *resultobj = 0;
20742 wxDC *arg1 = (wxDC *) 0 ;
20743 int result;
20744 void *argp1 = 0 ;
20745 int res1 = 0 ;
20746 PyObject *swig_obj[1] ;
20747
20748 if (!args) SWIG_fail;
20749 swig_obj[0] = args;
20750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20751 if (!SWIG_IsOK(res1)) {
20752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20753 }
20754 arg1 = reinterpret_cast< wxDC * >(argp1);
20755 {
20756 PyThreadState* __tstate = wxPyBeginAllowThreads();
20757 result = (int)((wxDC const *)arg1)->GetCharWidth();
20758 wxPyEndAllowThreads(__tstate);
20759 if (PyErr_Occurred()) SWIG_fail;
20760 }
20761 resultobj = SWIG_From_int(static_cast< int >(result));
20762 return resultobj;
20763fail:
20764 return NULL;
20765}
20766
20767
20768SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20769 PyObject *resultobj = 0;
20770 wxDC *arg1 = (wxDC *) 0 ;
20771 wxString *arg2 = 0 ;
20772 int *arg3 = (int *) 0 ;
20773 int *arg4 = (int *) 0 ;
20774 void *argp1 = 0 ;
20775 int res1 = 0 ;
20776 bool temp2 = false ;
20777 int temp3 ;
20778 int res3 = SWIG_TMPOBJ ;
20779 int temp4 ;
20780 int res4 = SWIG_TMPOBJ ;
20781 PyObject * obj0 = 0 ;
20782 PyObject * obj1 = 0 ;
20783 char * kwnames[] = {
20784 (char *) "self",(char *) "string", NULL
20785 };
20786
20787 arg3 = &temp3;
20788 arg4 = &temp4;
20789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20791 if (!SWIG_IsOK(res1)) {
20792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20793 }
20794 arg1 = reinterpret_cast< wxDC * >(argp1);
20795 {
20796 arg2 = wxString_in_helper(obj1);
20797 if (arg2 == NULL) SWIG_fail;
20798 temp2 = true;
20799 }
20800 {
20801 PyThreadState* __tstate = wxPyBeginAllowThreads();
20802 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20803 wxPyEndAllowThreads(__tstate);
20804 if (PyErr_Occurred()) SWIG_fail;
20805 }
20806 resultobj = SWIG_Py_Void();
20807 if (SWIG_IsTmpObj(res3)) {
20808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20809 } else {
20810 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20811 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20812 }
20813 if (SWIG_IsTmpObj(res4)) {
20814 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20815 } else {
20816 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20817 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20818 }
20819 {
20820 if (temp2)
20821 delete arg2;
20822 }
20823 return resultobj;
20824fail:
20825 {
20826 if (temp2)
20827 delete arg2;
20828 }
20829 return NULL;
20830}
20831
20832
20833SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20834 PyObject *resultobj = 0;
20835 wxDC *arg1 = (wxDC *) 0 ;
20836 wxString *arg2 = 0 ;
20837 int *arg3 = (int *) 0 ;
20838 int *arg4 = (int *) 0 ;
20839 int *arg5 = (int *) 0 ;
20840 int *arg6 = (int *) 0 ;
20841 wxFont *arg7 = (wxFont *) NULL ;
20842 void *argp1 = 0 ;
20843 int res1 = 0 ;
20844 bool temp2 = false ;
20845 int temp3 ;
20846 int res3 = SWIG_TMPOBJ ;
20847 int temp4 ;
20848 int res4 = SWIG_TMPOBJ ;
20849 int temp5 ;
20850 int res5 = SWIG_TMPOBJ ;
20851 int temp6 ;
20852 int res6 = SWIG_TMPOBJ ;
20853 void *argp7 = 0 ;
20854 int res7 = 0 ;
20855 PyObject * obj0 = 0 ;
20856 PyObject * obj1 = 0 ;
20857 PyObject * obj2 = 0 ;
20858 char * kwnames[] = {
20859 (char *) "self",(char *) "string",(char *) "font", NULL
20860 };
20861
20862 arg3 = &temp3;
20863 arg4 = &temp4;
20864 arg5 = &temp5;
20865 arg6 = &temp6;
20866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20868 if (!SWIG_IsOK(res1)) {
20869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20870 }
20871 arg1 = reinterpret_cast< wxDC * >(argp1);
20872 {
20873 arg2 = wxString_in_helper(obj1);
20874 if (arg2 == NULL) SWIG_fail;
20875 temp2 = true;
20876 }
20877 if (obj2) {
20878 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20879 if (!SWIG_IsOK(res7)) {
20880 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 20881 }
1bd55598
RD
20882 arg7 = reinterpret_cast< wxFont * >(argp7);
20883 }
20884 {
20885 PyThreadState* __tstate = wxPyBeginAllowThreads();
20886 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20887 wxPyEndAllowThreads(__tstate);
20888 if (PyErr_Occurred()) SWIG_fail;
20889 }
20890 resultobj = SWIG_Py_Void();
20891 if (SWIG_IsTmpObj(res3)) {
20892 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20893 } else {
20894 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20896 }
20897 if (SWIG_IsTmpObj(res4)) {
20898 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20899 } else {
20900 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20901 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20902 }
20903 if (SWIG_IsTmpObj(res5)) {
20904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20905 } else {
20906 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20908 }
20909 if (SWIG_IsTmpObj(res6)) {
20910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20911 } else {
20912 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20914 }
20915 {
20916 if (temp2)
20917 delete arg2;
20918 }
20919 return resultobj;
20920fail:
20921 {
20922 if (temp2)
20923 delete arg2;
20924 }
20925 return NULL;
20926}
20927
20928
20929SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20930 PyObject *resultobj = 0;
20931 wxDC *arg1 = (wxDC *) 0 ;
20932 wxString *arg2 = 0 ;
20933 int *arg3 = (int *) 0 ;
20934 int *arg4 = (int *) 0 ;
20935 int *arg5 = (int *) 0 ;
20936 wxFont *arg6 = (wxFont *) NULL ;
20937 void *argp1 = 0 ;
20938 int res1 = 0 ;
20939 bool temp2 = false ;
20940 int temp3 ;
20941 int res3 = SWIG_TMPOBJ ;
20942 int temp4 ;
20943 int res4 = SWIG_TMPOBJ ;
20944 int temp5 ;
20945 int res5 = SWIG_TMPOBJ ;
20946 void *argp6 = 0 ;
20947 int res6 = 0 ;
20948 PyObject * obj0 = 0 ;
20949 PyObject * obj1 = 0 ;
20950 PyObject * obj2 = 0 ;
20951 char * kwnames[] = {
20952 (char *) "self",(char *) "text",(char *) "font", NULL
20953 };
20954
20955 arg3 = &temp3;
20956 arg4 = &temp4;
20957 arg5 = &temp5;
20958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20960 if (!SWIG_IsOK(res1)) {
20961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20962 }
20963 arg1 = reinterpret_cast< wxDC * >(argp1);
20964 {
20965 arg2 = wxString_in_helper(obj1);
20966 if (arg2 == NULL) SWIG_fail;
20967 temp2 = true;
20968 }
20969 if (obj2) {
20970 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20971 if (!SWIG_IsOK(res6)) {
20972 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 20973 }
1bd55598
RD
20974 arg6 = reinterpret_cast< wxFont * >(argp6);
20975 }
20976 {
20977 PyThreadState* __tstate = wxPyBeginAllowThreads();
20978 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20979 wxPyEndAllowThreads(__tstate);
20980 if (PyErr_Occurred()) SWIG_fail;
20981 }
20982 resultobj = SWIG_Py_Void();
20983 if (SWIG_IsTmpObj(res3)) {
20984 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20985 } else {
20986 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20987 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20988 }
20989 if (SWIG_IsTmpObj(res4)) {
20990 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20991 } else {
20992 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20993 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20994 }
20995 if (SWIG_IsTmpObj(res5)) {
20996 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20997 } else {
20998 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20999 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21000 }
21001 {
21002 if (temp2)
21003 delete arg2;
21004 }
21005 return resultobj;
21006fail:
21007 {
21008 if (temp2)
21009 delete arg2;
21010 }
21011 return NULL;
21012}
21013
21014
21015SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21016 PyObject *resultobj = 0;
21017 wxDC *arg1 = (wxDC *) 0 ;
21018 wxString *arg2 = 0 ;
21019 wxArrayInt result;
21020 void *argp1 = 0 ;
21021 int res1 = 0 ;
21022 bool temp2 = false ;
21023 PyObject * obj0 = 0 ;
21024 PyObject * obj1 = 0 ;
21025 char * kwnames[] = {
21026 (char *) "self",(char *) "text", NULL
21027 };
21028
21029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21031 if (!SWIG_IsOK(res1)) {
21032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21033 }
21034 arg1 = reinterpret_cast< wxDC * >(argp1);
21035 {
21036 arg2 = wxString_in_helper(obj1);
21037 if (arg2 == NULL) SWIG_fail;
21038 temp2 = true;
21039 }
21040 {
21041 PyThreadState* __tstate = wxPyBeginAllowThreads();
21042 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21043 wxPyEndAllowThreads(__tstate);
21044 if (PyErr_Occurred()) SWIG_fail;
21045 }
21046 {
b39fe951 21047 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21048 }
21049 {
21050 if (temp2)
21051 delete arg2;
21052 }
21053 return resultobj;
21054fail:
21055 {
21056 if (temp2)
21057 delete arg2;
21058 }
21059 return NULL;
21060}
21061
21062
21063SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21064 PyObject *resultobj = 0;
21065 wxDC *arg1 = (wxDC *) 0 ;
21066 wxSize result;
21067 void *argp1 = 0 ;
21068 int res1 = 0 ;
21069 PyObject *swig_obj[1] ;
21070
21071 if (!args) SWIG_fail;
21072 swig_obj[0] = args;
21073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21074 if (!SWIG_IsOK(res1)) {
21075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21076 }
21077 arg1 = reinterpret_cast< wxDC * >(argp1);
21078 {
21079 PyThreadState* __tstate = wxPyBeginAllowThreads();
21080 result = (arg1)->GetSize();
21081 wxPyEndAllowThreads(__tstate);
21082 if (PyErr_Occurred()) SWIG_fail;
21083 }
21084 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21085 return resultobj;
21086fail:
21087 return NULL;
21088}
21089
21090
21091SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21092 PyObject *resultobj = 0;
21093 wxDC *arg1 = (wxDC *) 0 ;
21094 int *arg2 = (int *) 0 ;
21095 int *arg3 = (int *) 0 ;
21096 void *argp1 = 0 ;
21097 int res1 = 0 ;
21098 int temp2 ;
21099 int res2 = SWIG_TMPOBJ ;
21100 int temp3 ;
21101 int res3 = SWIG_TMPOBJ ;
21102 PyObject *swig_obj[1] ;
21103
21104 arg2 = &temp2;
21105 arg3 = &temp3;
21106 if (!args) SWIG_fail;
21107 swig_obj[0] = args;
21108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21109 if (!SWIG_IsOK(res1)) {
21110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21111 }
21112 arg1 = reinterpret_cast< wxDC * >(argp1);
21113 {
21114 PyThreadState* __tstate = wxPyBeginAllowThreads();
21115 (arg1)->GetSize(arg2,arg3);
21116 wxPyEndAllowThreads(__tstate);
21117 if (PyErr_Occurred()) SWIG_fail;
21118 }
21119 resultobj = SWIG_Py_Void();
21120 if (SWIG_IsTmpObj(res2)) {
21121 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21122 } else {
21123 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21125 }
21126 if (SWIG_IsTmpObj(res3)) {
21127 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21128 } else {
21129 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21130 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21131 }
21132 return resultobj;
21133fail:
21134 return NULL;
21135}
21136
21137
21138SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21139 PyObject *resultobj = 0;
21140 wxDC *arg1 = (wxDC *) 0 ;
21141 wxSize result;
21142 void *argp1 = 0 ;
21143 int res1 = 0 ;
21144 PyObject *swig_obj[1] ;
21145
21146 if (!args) SWIG_fail;
21147 swig_obj[0] = args;
21148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21149 if (!SWIG_IsOK(res1)) {
21150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21151 }
21152 arg1 = reinterpret_cast< wxDC * >(argp1);
21153 {
21154 PyThreadState* __tstate = wxPyBeginAllowThreads();
21155 result = ((wxDC const *)arg1)->GetSizeMM();
21156 wxPyEndAllowThreads(__tstate);
21157 if (PyErr_Occurred()) SWIG_fail;
21158 }
21159 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21160 return resultobj;
21161fail:
21162 return NULL;
21163}
21164
21165
21166SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21167 PyObject *resultobj = 0;
21168 wxDC *arg1 = (wxDC *) 0 ;
21169 int *arg2 = (int *) 0 ;
21170 int *arg3 = (int *) 0 ;
21171 void *argp1 = 0 ;
21172 int res1 = 0 ;
21173 int temp2 ;
21174 int res2 = SWIG_TMPOBJ ;
21175 int temp3 ;
21176 int res3 = SWIG_TMPOBJ ;
21177 PyObject *swig_obj[1] ;
21178
21179 arg2 = &temp2;
21180 arg3 = &temp3;
21181 if (!args) SWIG_fail;
21182 swig_obj[0] = args;
21183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21184 if (!SWIG_IsOK(res1)) {
21185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21186 }
21187 arg1 = reinterpret_cast< wxDC * >(argp1);
21188 {
21189 PyThreadState* __tstate = wxPyBeginAllowThreads();
21190 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21191 wxPyEndAllowThreads(__tstate);
21192 if (PyErr_Occurred()) SWIG_fail;
21193 }
21194 resultobj = SWIG_Py_Void();
21195 if (SWIG_IsTmpObj(res2)) {
21196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21197 } else {
21198 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21200 }
21201 if (SWIG_IsTmpObj(res3)) {
21202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21203 } else {
21204 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21206 }
21207 return resultobj;
21208fail:
21209 return NULL;
21210}
21211
21212
21213SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21214 PyObject *resultobj = 0;
21215 wxDC *arg1 = (wxDC *) 0 ;
21216 int arg2 ;
21217 int result;
21218 void *argp1 = 0 ;
21219 int res1 = 0 ;
21220 int val2 ;
21221 int ecode2 = 0 ;
21222 PyObject * obj0 = 0 ;
21223 PyObject * obj1 = 0 ;
21224 char * kwnames[] = {
21225 (char *) "self",(char *) "x", NULL
21226 };
21227
21228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21230 if (!SWIG_IsOK(res1)) {
21231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21232 }
21233 arg1 = reinterpret_cast< wxDC * >(argp1);
21234 ecode2 = SWIG_AsVal_int(obj1, &val2);
21235 if (!SWIG_IsOK(ecode2)) {
21236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21237 }
21238 arg2 = static_cast< int >(val2);
21239 {
21240 PyThreadState* __tstate = wxPyBeginAllowThreads();
21241 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21242 wxPyEndAllowThreads(__tstate);
21243 if (PyErr_Occurred()) SWIG_fail;
21244 }
21245 resultobj = SWIG_From_int(static_cast< int >(result));
21246 return resultobj;
21247fail:
21248 return NULL;
21249}
21250
21251
21252SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21253 PyObject *resultobj = 0;
21254 wxDC *arg1 = (wxDC *) 0 ;
21255 int arg2 ;
21256 int result;
21257 void *argp1 = 0 ;
21258 int res1 = 0 ;
21259 int val2 ;
21260 int ecode2 = 0 ;
21261 PyObject * obj0 = 0 ;
21262 PyObject * obj1 = 0 ;
21263 char * kwnames[] = {
21264 (char *) "self",(char *) "y", NULL
21265 };
21266
21267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21269 if (!SWIG_IsOK(res1)) {
21270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21271 }
21272 arg1 = reinterpret_cast< wxDC * >(argp1);
21273 ecode2 = SWIG_AsVal_int(obj1, &val2);
21274 if (!SWIG_IsOK(ecode2)) {
21275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21276 }
21277 arg2 = static_cast< int >(val2);
21278 {
21279 PyThreadState* __tstate = wxPyBeginAllowThreads();
21280 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21281 wxPyEndAllowThreads(__tstate);
21282 if (PyErr_Occurred()) SWIG_fail;
21283 }
21284 resultobj = SWIG_From_int(static_cast< int >(result));
21285 return resultobj;
21286fail:
21287 return NULL;
21288}
21289
21290
21291SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21292 PyObject *resultobj = 0;
21293 wxDC *arg1 = (wxDC *) 0 ;
21294 int arg2 ;
21295 int result;
21296 void *argp1 = 0 ;
21297 int res1 = 0 ;
21298 int val2 ;
21299 int ecode2 = 0 ;
21300 PyObject * obj0 = 0 ;
21301 PyObject * obj1 = 0 ;
21302 char * kwnames[] = {
21303 (char *) "self",(char *) "x", NULL
21304 };
21305
21306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21308 if (!SWIG_IsOK(res1)) {
21309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21310 }
21311 arg1 = reinterpret_cast< wxDC * >(argp1);
21312 ecode2 = SWIG_AsVal_int(obj1, &val2);
21313 if (!SWIG_IsOK(ecode2)) {
21314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21315 }
21316 arg2 = static_cast< int >(val2);
21317 {
21318 PyThreadState* __tstate = wxPyBeginAllowThreads();
21319 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21320 wxPyEndAllowThreads(__tstate);
21321 if (PyErr_Occurred()) SWIG_fail;
21322 }
21323 resultobj = SWIG_From_int(static_cast< int >(result));
21324 return resultobj;
21325fail:
21326 return NULL;
21327}
21328
21329
21330SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21331 PyObject *resultobj = 0;
21332 wxDC *arg1 = (wxDC *) 0 ;
21333 int arg2 ;
21334 int result;
21335 void *argp1 = 0 ;
21336 int res1 = 0 ;
21337 int val2 ;
21338 int ecode2 = 0 ;
21339 PyObject * obj0 = 0 ;
21340 PyObject * obj1 = 0 ;
21341 char * kwnames[] = {
21342 (char *) "self",(char *) "y", NULL
21343 };
21344
21345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21347 if (!SWIG_IsOK(res1)) {
21348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21349 }
21350 arg1 = reinterpret_cast< wxDC * >(argp1);
21351 ecode2 = SWIG_AsVal_int(obj1, &val2);
21352 if (!SWIG_IsOK(ecode2)) {
21353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21354 }
21355 arg2 = static_cast< int >(val2);
21356 {
21357 PyThreadState* __tstate = wxPyBeginAllowThreads();
21358 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21359 wxPyEndAllowThreads(__tstate);
21360 if (PyErr_Occurred()) SWIG_fail;
21361 }
21362 resultobj = SWIG_From_int(static_cast< int >(result));
21363 return resultobj;
21364fail:
21365 return NULL;
21366}
21367
21368
21369SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21370 PyObject *resultobj = 0;
21371 wxDC *arg1 = (wxDC *) 0 ;
21372 int arg2 ;
21373 int result;
21374 void *argp1 = 0 ;
21375 int res1 = 0 ;
21376 int val2 ;
21377 int ecode2 = 0 ;
21378 PyObject * obj0 = 0 ;
21379 PyObject * obj1 = 0 ;
21380 char * kwnames[] = {
21381 (char *) "self",(char *) "x", NULL
21382 };
21383
21384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21386 if (!SWIG_IsOK(res1)) {
21387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21388 }
21389 arg1 = reinterpret_cast< wxDC * >(argp1);
21390 ecode2 = SWIG_AsVal_int(obj1, &val2);
21391 if (!SWIG_IsOK(ecode2)) {
21392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21393 }
21394 arg2 = static_cast< int >(val2);
21395 {
21396 PyThreadState* __tstate = wxPyBeginAllowThreads();
21397 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21398 wxPyEndAllowThreads(__tstate);
21399 if (PyErr_Occurred()) SWIG_fail;
21400 }
21401 resultobj = SWIG_From_int(static_cast< int >(result));
21402 return resultobj;
21403fail:
21404 return NULL;
21405}
21406
21407
21408SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21409 PyObject *resultobj = 0;
21410 wxDC *arg1 = (wxDC *) 0 ;
21411 int arg2 ;
21412 int result;
21413 void *argp1 = 0 ;
21414 int res1 = 0 ;
21415 int val2 ;
21416 int ecode2 = 0 ;
21417 PyObject * obj0 = 0 ;
21418 PyObject * obj1 = 0 ;
21419 char * kwnames[] = {
21420 (char *) "self",(char *) "y", NULL
21421 };
21422
21423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21425 if (!SWIG_IsOK(res1)) {
21426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21427 }
21428 arg1 = reinterpret_cast< wxDC * >(argp1);
21429 ecode2 = SWIG_AsVal_int(obj1, &val2);
21430 if (!SWIG_IsOK(ecode2)) {
21431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21432 }
21433 arg2 = static_cast< int >(val2);
21434 {
21435 PyThreadState* __tstate = wxPyBeginAllowThreads();
21436 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21437 wxPyEndAllowThreads(__tstate);
21438 if (PyErr_Occurred()) SWIG_fail;
21439 }
21440 resultobj = SWIG_From_int(static_cast< int >(result));
21441 return resultobj;
21442fail:
21443 return NULL;
21444}
21445
21446
21447SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21448 PyObject *resultobj = 0;
21449 wxDC *arg1 = (wxDC *) 0 ;
21450 int arg2 ;
21451 int result;
21452 void *argp1 = 0 ;
21453 int res1 = 0 ;
21454 int val2 ;
21455 int ecode2 = 0 ;
21456 PyObject * obj0 = 0 ;
21457 PyObject * obj1 = 0 ;
21458 char * kwnames[] = {
21459 (char *) "self",(char *) "x", NULL
21460 };
21461
21462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21464 if (!SWIG_IsOK(res1)) {
21465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21466 }
21467 arg1 = reinterpret_cast< wxDC * >(argp1);
21468 ecode2 = SWIG_AsVal_int(obj1, &val2);
21469 if (!SWIG_IsOK(ecode2)) {
21470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21471 }
21472 arg2 = static_cast< int >(val2);
21473 {
21474 PyThreadState* __tstate = wxPyBeginAllowThreads();
21475 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21476 wxPyEndAllowThreads(__tstate);
21477 if (PyErr_Occurred()) SWIG_fail;
21478 }
21479 resultobj = SWIG_From_int(static_cast< int >(result));
21480 return resultobj;
21481fail:
21482 return NULL;
21483}
21484
21485
21486SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21487 PyObject *resultobj = 0;
21488 wxDC *arg1 = (wxDC *) 0 ;
21489 int arg2 ;
21490 int result;
21491 void *argp1 = 0 ;
21492 int res1 = 0 ;
21493 int val2 ;
21494 int ecode2 = 0 ;
21495 PyObject * obj0 = 0 ;
21496 PyObject * obj1 = 0 ;
21497 char * kwnames[] = {
21498 (char *) "self",(char *) "y", NULL
21499 };
21500
21501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21503 if (!SWIG_IsOK(res1)) {
21504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21505 }
21506 arg1 = reinterpret_cast< wxDC * >(argp1);
21507 ecode2 = SWIG_AsVal_int(obj1, &val2);
21508 if (!SWIG_IsOK(ecode2)) {
21509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21510 }
21511 arg2 = static_cast< int >(val2);
21512 {
21513 PyThreadState* __tstate = wxPyBeginAllowThreads();
21514 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21515 wxPyEndAllowThreads(__tstate);
21516 if (PyErr_Occurred()) SWIG_fail;
21517 }
21518 resultobj = SWIG_From_int(static_cast< int >(result));
21519 return resultobj;
21520fail:
21521 return NULL;
21522}
21523
21524
21525SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21526 PyObject *resultobj = 0;
21527 wxDC *arg1 = (wxDC *) 0 ;
21528 bool result;
21529 void *argp1 = 0 ;
21530 int res1 = 0 ;
21531 PyObject *swig_obj[1] ;
21532
21533 if (!args) SWIG_fail;
21534 swig_obj[0] = args;
21535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21536 if (!SWIG_IsOK(res1)) {
21537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21538 }
21539 arg1 = reinterpret_cast< wxDC * >(argp1);
21540 {
21541 PyThreadState* __tstate = wxPyBeginAllowThreads();
21542 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21543 wxPyEndAllowThreads(__tstate);
21544 if (PyErr_Occurred()) SWIG_fail;
21545 }
21546 {
21547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21548 }
21549 return resultobj;
21550fail:
21551 return NULL;
21552}
21553
21554
21555SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21556 PyObject *resultobj = 0;
21557 wxDC *arg1 = (wxDC *) 0 ;
21558 bool result;
21559 void *argp1 = 0 ;
21560 int res1 = 0 ;
21561 PyObject *swig_obj[1] ;
21562
21563 if (!args) SWIG_fail;
21564 swig_obj[0] = args;
21565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21566 if (!SWIG_IsOK(res1)) {
21567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21568 }
21569 arg1 = reinterpret_cast< wxDC * >(argp1);
21570 {
21571 PyThreadState* __tstate = wxPyBeginAllowThreads();
21572 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21573 wxPyEndAllowThreads(__tstate);
21574 if (PyErr_Occurred()) SWIG_fail;
21575 }
21576 {
21577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21578 }
21579 return resultobj;
21580fail:
21581 return NULL;
21582}
21583
21584
21585SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21586 PyObject *resultobj = 0;
21587 wxDC *arg1 = (wxDC *) 0 ;
21588 int result;
21589 void *argp1 = 0 ;
21590 int res1 = 0 ;
21591 PyObject *swig_obj[1] ;
21592
21593 if (!args) SWIG_fail;
21594 swig_obj[0] = args;
21595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21596 if (!SWIG_IsOK(res1)) {
21597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21598 }
21599 arg1 = reinterpret_cast< wxDC * >(argp1);
21600 {
21601 PyThreadState* __tstate = wxPyBeginAllowThreads();
21602 result = (int)((wxDC const *)arg1)->GetDepth();
21603 wxPyEndAllowThreads(__tstate);
21604 if (PyErr_Occurred()) SWIG_fail;
21605 }
21606 resultobj = SWIG_From_int(static_cast< int >(result));
21607 return resultobj;
21608fail:
21609 return NULL;
21610}
21611
21612
21613SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21614 PyObject *resultobj = 0;
21615 wxDC *arg1 = (wxDC *) 0 ;
21616 wxSize result;
21617 void *argp1 = 0 ;
21618 int res1 = 0 ;
21619 PyObject *swig_obj[1] ;
21620
21621 if (!args) SWIG_fail;
21622 swig_obj[0] = args;
21623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21624 if (!SWIG_IsOK(res1)) {
21625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21626 }
21627 arg1 = reinterpret_cast< wxDC * >(argp1);
21628 {
21629 PyThreadState* __tstate = wxPyBeginAllowThreads();
21630 result = ((wxDC const *)arg1)->GetPPI();
21631 wxPyEndAllowThreads(__tstate);
21632 if (PyErr_Occurred()) SWIG_fail;
21633 }
21634 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21635 return resultobj;
21636fail:
21637 return NULL;
21638}
21639
21640
b39fe951 21641SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21642 PyObject *resultobj = 0;
21643 wxDC *arg1 = (wxDC *) 0 ;
21644 bool result;
21645 void *argp1 = 0 ;
21646 int res1 = 0 ;
21647 PyObject *swig_obj[1] ;
21648
21649 if (!args) SWIG_fail;
21650 swig_obj[0] = args;
21651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21652 if (!SWIG_IsOK(res1)) {
b39fe951 21653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21654 }
21655 arg1 = reinterpret_cast< wxDC * >(argp1);
21656 {
21657 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21658 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21659 wxPyEndAllowThreads(__tstate);
21660 if (PyErr_Occurred()) SWIG_fail;
21661 }
21662 {
21663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21664 }
21665 return resultobj;
21666fail:
21667 return NULL;
21668}
21669
21670
21671SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21672 PyObject *resultobj = 0;
21673 wxDC *arg1 = (wxDC *) 0 ;
21674 int result;
21675 void *argp1 = 0 ;
21676 int res1 = 0 ;
21677 PyObject *swig_obj[1] ;
21678
21679 if (!args) SWIG_fail;
21680 swig_obj[0] = args;
21681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21682 if (!SWIG_IsOK(res1)) {
21683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21684 }
21685 arg1 = reinterpret_cast< wxDC * >(argp1);
21686 {
21687 PyThreadState* __tstate = wxPyBeginAllowThreads();
21688 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
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_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21700 PyObject *resultobj = 0;
21701 wxDC *arg1 = (wxDC *) 0 ;
21702 wxBrush *result = 0 ;
21703 void *argp1 = 0 ;
21704 int res1 = 0 ;
21705 PyObject *swig_obj[1] ;
21706
21707 if (!args) SWIG_fail;
21708 swig_obj[0] = args;
21709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21710 if (!SWIG_IsOK(res1)) {
21711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21712 }
21713 arg1 = reinterpret_cast< wxDC * >(argp1);
21714 {
21715 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21716 {
1bd55598
RD
21717 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21718 result = (wxBrush *) &_result_ref;
36ed4f51 21719 }
1bd55598
RD
21720 wxPyEndAllowThreads(__tstate);
21721 if (PyErr_Occurred()) SWIG_fail;
21722 }
21723 {
21724 wxBrush* resultptr = new wxBrush(*result);
21725 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21726 }
21727 return resultobj;
21728fail:
21729 return NULL;
21730}
21731
21732
21733SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21734 PyObject *resultobj = 0;
21735 wxDC *arg1 = (wxDC *) 0 ;
21736 wxBrush *result = 0 ;
21737 void *argp1 = 0 ;
21738 int res1 = 0 ;
21739 PyObject *swig_obj[1] ;
21740
21741 if (!args) SWIG_fail;
21742 swig_obj[0] = args;
21743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21744 if (!SWIG_IsOK(res1)) {
21745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21746 }
21747 arg1 = reinterpret_cast< wxDC * >(argp1);
21748 {
21749 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21750 {
1bd55598
RD
21751 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21752 result = (wxBrush *) &_result_ref;
36ed4f51 21753 }
1bd55598
RD
21754 wxPyEndAllowThreads(__tstate);
21755 if (PyErr_Occurred()) SWIG_fail;
21756 }
21757 {
21758 wxBrush* resultptr = new wxBrush(*result);
21759 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21760 }
21761 return resultobj;
21762fail:
21763 return NULL;
21764}
21765
21766
21767SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21768 PyObject *resultobj = 0;
21769 wxDC *arg1 = (wxDC *) 0 ;
21770 wxFont *result = 0 ;
21771 void *argp1 = 0 ;
21772 int res1 = 0 ;
21773 PyObject *swig_obj[1] ;
21774
21775 if (!args) SWIG_fail;
21776 swig_obj[0] = args;
21777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21778 if (!SWIG_IsOK(res1)) {
21779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21780 }
21781 arg1 = reinterpret_cast< wxDC * >(argp1);
21782 {
21783 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21784 {
1bd55598
RD
21785 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21786 result = (wxFont *) &_result_ref;
36ed4f51 21787 }
1bd55598
RD
21788 wxPyEndAllowThreads(__tstate);
21789 if (PyErr_Occurred()) SWIG_fail;
21790 }
21791 {
21792 wxFont* resultptr = new wxFont(*result);
21793 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21794 }
21795 return resultobj;
21796fail:
21797 return NULL;
21798}
21799
21800
21801SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21802 PyObject *resultobj = 0;
21803 wxDC *arg1 = (wxDC *) 0 ;
21804 wxPen *result = 0 ;
21805 void *argp1 = 0 ;
21806 int res1 = 0 ;
21807 PyObject *swig_obj[1] ;
21808
21809 if (!args) SWIG_fail;
21810 swig_obj[0] = args;
21811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21812 if (!SWIG_IsOK(res1)) {
21813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21814 }
21815 arg1 = reinterpret_cast< wxDC * >(argp1);
21816 {
21817 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21818 {
1bd55598
RD
21819 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21820 result = (wxPen *) &_result_ref;
36ed4f51 21821 }
1bd55598
RD
21822 wxPyEndAllowThreads(__tstate);
21823 if (PyErr_Occurred()) SWIG_fail;
21824 }
21825 {
21826 wxPen* resultptr = new wxPen(*result);
21827 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21828 }
21829 return resultobj;
21830fail:
21831 return NULL;
21832}
21833
21834
21835SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21836 PyObject *resultobj = 0;
21837 wxDC *arg1 = (wxDC *) 0 ;
21838 wxColour *result = 0 ;
21839 void *argp1 = 0 ;
21840 int res1 = 0 ;
21841 PyObject *swig_obj[1] ;
21842
21843 if (!args) SWIG_fail;
21844 swig_obj[0] = args;
21845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21846 if (!SWIG_IsOK(res1)) {
21847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21848 }
21849 arg1 = reinterpret_cast< wxDC * >(argp1);
21850 {
21851 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21852 {
1bd55598
RD
21853 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21854 result = (wxColour *) &_result_ref;
36ed4f51 21855 }
1bd55598
RD
21856 wxPyEndAllowThreads(__tstate);
21857 if (PyErr_Occurred()) SWIG_fail;
21858 }
21859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21860 return resultobj;
21861fail:
21862 return NULL;
21863}
21864
21865
21866SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21867 PyObject *resultobj = 0;
21868 wxDC *arg1 = (wxDC *) 0 ;
21869 wxColour *result = 0 ;
21870 void *argp1 = 0 ;
21871 int res1 = 0 ;
21872 PyObject *swig_obj[1] ;
21873
21874 if (!args) SWIG_fail;
21875 swig_obj[0] = args;
21876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21877 if (!SWIG_IsOK(res1)) {
21878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21879 }
21880 arg1 = reinterpret_cast< wxDC * >(argp1);
21881 {
21882 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21883 {
1bd55598
RD
21884 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21885 result = (wxColour *) &_result_ref;
36ed4f51 21886 }
1bd55598
RD
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21891 return resultobj;
21892fail:
21893 return NULL;
21894}
21895
21896
21897SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21898 PyObject *resultobj = 0;
21899 wxDC *arg1 = (wxDC *) 0 ;
21900 wxColour *arg2 = 0 ;
21901 void *argp1 = 0 ;
21902 int res1 = 0 ;
21903 wxColour temp2 ;
21904 PyObject * obj0 = 0 ;
21905 PyObject * obj1 = 0 ;
21906 char * kwnames[] = {
21907 (char *) "self",(char *) "colour", NULL
21908 };
21909
21910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21912 if (!SWIG_IsOK(res1)) {
21913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21914 }
21915 arg1 = reinterpret_cast< wxDC * >(argp1);
21916 {
21917 arg2 = &temp2;
21918 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21919 }
21920 {
21921 PyThreadState* __tstate = wxPyBeginAllowThreads();
21922 (arg1)->SetTextForeground((wxColour const &)*arg2);
21923 wxPyEndAllowThreads(__tstate);
21924 if (PyErr_Occurred()) SWIG_fail;
21925 }
21926 resultobj = SWIG_Py_Void();
21927 return resultobj;
21928fail:
21929 return NULL;
21930}
21931
21932
21933SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21934 PyObject *resultobj = 0;
21935 wxDC *arg1 = (wxDC *) 0 ;
21936 wxColour *arg2 = 0 ;
21937 void *argp1 = 0 ;
21938 int res1 = 0 ;
21939 wxColour temp2 ;
21940 PyObject * obj0 = 0 ;
21941 PyObject * obj1 = 0 ;
21942 char * kwnames[] = {
21943 (char *) "self",(char *) "colour", NULL
21944 };
21945
21946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21948 if (!SWIG_IsOK(res1)) {
21949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21950 }
21951 arg1 = reinterpret_cast< wxDC * >(argp1);
21952 {
21953 arg2 = &temp2;
21954 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21955 }
21956 {
21957 PyThreadState* __tstate = wxPyBeginAllowThreads();
21958 (arg1)->SetTextBackground((wxColour const &)*arg2);
21959 wxPyEndAllowThreads(__tstate);
21960 if (PyErr_Occurred()) SWIG_fail;
21961 }
21962 resultobj = SWIG_Py_Void();
21963 return resultobj;
21964fail:
21965 return NULL;
21966}
21967
21968
21969SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21970 PyObject *resultobj = 0;
21971 wxDC *arg1 = (wxDC *) 0 ;
21972 int result;
21973 void *argp1 = 0 ;
21974 int res1 = 0 ;
21975 PyObject *swig_obj[1] ;
21976
21977 if (!args) SWIG_fail;
21978 swig_obj[0] = args;
21979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21980 if (!SWIG_IsOK(res1)) {
21981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21982 }
21983 arg1 = reinterpret_cast< wxDC * >(argp1);
21984 {
21985 PyThreadState* __tstate = wxPyBeginAllowThreads();
21986 result = (int)((wxDC const *)arg1)->GetMapMode();
21987 wxPyEndAllowThreads(__tstate);
21988 if (PyErr_Occurred()) SWIG_fail;
21989 }
21990 resultobj = SWIG_From_int(static_cast< int >(result));
21991 return resultobj;
21992fail:
21993 return NULL;
21994}
21995
21996
21997SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21998 PyObject *resultobj = 0;
21999 wxDC *arg1 = (wxDC *) 0 ;
22000 int arg2 ;
22001 void *argp1 = 0 ;
22002 int res1 = 0 ;
22003 int val2 ;
22004 int ecode2 = 0 ;
22005 PyObject * obj0 = 0 ;
22006 PyObject * obj1 = 0 ;
22007 char * kwnames[] = {
22008 (char *) "self",(char *) "mode", NULL
22009 };
22010
22011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22013 if (!SWIG_IsOK(res1)) {
22014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22015 }
22016 arg1 = reinterpret_cast< wxDC * >(argp1);
22017 ecode2 = SWIG_AsVal_int(obj1, &val2);
22018 if (!SWIG_IsOK(ecode2)) {
22019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22020 }
22021 arg2 = static_cast< int >(val2);
22022 {
22023 PyThreadState* __tstate = wxPyBeginAllowThreads();
22024 (arg1)->SetMapMode(arg2);
22025 wxPyEndAllowThreads(__tstate);
22026 if (PyErr_Occurred()) SWIG_fail;
22027 }
22028 resultobj = SWIG_Py_Void();
22029 return resultobj;
22030fail:
22031 return NULL;
22032}
22033
22034
22035SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22036 PyObject *resultobj = 0;
22037 wxDC *arg1 = (wxDC *) 0 ;
22038 double *arg2 = (double *) 0 ;
22039 double *arg3 = (double *) 0 ;
22040 void *argp1 = 0 ;
22041 int res1 = 0 ;
22042 double temp2 ;
22043 int res2 = SWIG_TMPOBJ ;
22044 double temp3 ;
22045 int res3 = SWIG_TMPOBJ ;
22046 PyObject *swig_obj[1] ;
22047
22048 arg2 = &temp2;
22049 arg3 = &temp3;
22050 if (!args) SWIG_fail;
22051 swig_obj[0] = args;
22052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22053 if (!SWIG_IsOK(res1)) {
22054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22055 }
22056 arg1 = reinterpret_cast< wxDC * >(argp1);
22057 {
22058 PyThreadState* __tstate = wxPyBeginAllowThreads();
22059 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22060 wxPyEndAllowThreads(__tstate);
22061 if (PyErr_Occurred()) SWIG_fail;
22062 }
22063 resultobj = SWIG_Py_Void();
22064 if (SWIG_IsTmpObj(res2)) {
22065 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22066 } else {
22067 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22068 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22069 }
22070 if (SWIG_IsTmpObj(res3)) {
22071 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22072 } else {
22073 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22074 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22075 }
22076 return resultobj;
22077fail:
22078 return NULL;
22079}
22080
22081
22082SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22083 PyObject *resultobj = 0;
22084 wxDC *arg1 = (wxDC *) 0 ;
22085 double arg2 ;
22086 double arg3 ;
22087 void *argp1 = 0 ;
22088 int res1 = 0 ;
22089 double val2 ;
22090 int ecode2 = 0 ;
22091 double val3 ;
22092 int ecode3 = 0 ;
22093 PyObject * obj0 = 0 ;
22094 PyObject * obj1 = 0 ;
22095 PyObject * obj2 = 0 ;
22096 char * kwnames[] = {
22097 (char *) "self",(char *) "x",(char *) "y", NULL
22098 };
22099
22100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22102 if (!SWIG_IsOK(res1)) {
22103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22104 }
22105 arg1 = reinterpret_cast< wxDC * >(argp1);
22106 ecode2 = SWIG_AsVal_double(obj1, &val2);
22107 if (!SWIG_IsOK(ecode2)) {
22108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22109 }
22110 arg2 = static_cast< double >(val2);
22111 ecode3 = SWIG_AsVal_double(obj2, &val3);
22112 if (!SWIG_IsOK(ecode3)) {
22113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22114 }
22115 arg3 = static_cast< double >(val3);
22116 {
22117 PyThreadState* __tstate = wxPyBeginAllowThreads();
22118 (arg1)->SetUserScale(arg2,arg3);
22119 wxPyEndAllowThreads(__tstate);
22120 if (PyErr_Occurred()) SWIG_fail;
22121 }
22122 resultobj = SWIG_Py_Void();
22123 return resultobj;
22124fail:
22125 return NULL;
22126}
22127
22128
22129SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22130 PyObject *resultobj = 0;
22131 wxDC *arg1 = (wxDC *) 0 ;
22132 double *arg2 = (double *) 0 ;
22133 double *arg3 = (double *) 0 ;
22134 void *argp1 = 0 ;
22135 int res1 = 0 ;
22136 double temp2 ;
22137 int res2 = SWIG_TMPOBJ ;
22138 double temp3 ;
22139 int res3 = SWIG_TMPOBJ ;
22140 PyObject *swig_obj[1] ;
22141
22142 arg2 = &temp2;
22143 arg3 = &temp3;
22144 if (!args) SWIG_fail;
22145 swig_obj[0] = args;
22146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22147 if (!SWIG_IsOK(res1)) {
22148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22149 }
22150 arg1 = reinterpret_cast< wxDC * >(argp1);
22151 {
22152 PyThreadState* __tstate = wxPyBeginAllowThreads();
22153 (arg1)->GetLogicalScale(arg2,arg3);
22154 wxPyEndAllowThreads(__tstate);
22155 if (PyErr_Occurred()) SWIG_fail;
22156 }
22157 resultobj = SWIG_Py_Void();
22158 if (SWIG_IsTmpObj(res2)) {
22159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22160 } else {
22161 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22163 }
22164 if (SWIG_IsTmpObj(res3)) {
22165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22166 } else {
22167 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22169 }
22170 return resultobj;
22171fail:
22172 return NULL;
22173}
22174
22175
22176SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22177 PyObject *resultobj = 0;
22178 wxDC *arg1 = (wxDC *) 0 ;
22179 double arg2 ;
22180 double arg3 ;
22181 void *argp1 = 0 ;
22182 int res1 = 0 ;
22183 double val2 ;
22184 int ecode2 = 0 ;
22185 double val3 ;
22186 int ecode3 = 0 ;
22187 PyObject * obj0 = 0 ;
22188 PyObject * obj1 = 0 ;
22189 PyObject * obj2 = 0 ;
22190 char * kwnames[] = {
22191 (char *) "self",(char *) "x",(char *) "y", NULL
22192 };
22193
22194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22196 if (!SWIG_IsOK(res1)) {
22197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22198 }
22199 arg1 = reinterpret_cast< wxDC * >(argp1);
22200 ecode2 = SWIG_AsVal_double(obj1, &val2);
22201 if (!SWIG_IsOK(ecode2)) {
22202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22203 }
22204 arg2 = static_cast< double >(val2);
22205 ecode3 = SWIG_AsVal_double(obj2, &val3);
22206 if (!SWIG_IsOK(ecode3)) {
22207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22208 }
22209 arg3 = static_cast< double >(val3);
22210 {
22211 PyThreadState* __tstate = wxPyBeginAllowThreads();
22212 (arg1)->SetLogicalScale(arg2,arg3);
22213 wxPyEndAllowThreads(__tstate);
22214 if (PyErr_Occurred()) SWIG_fail;
22215 }
22216 resultobj = SWIG_Py_Void();
22217 return resultobj;
22218fail:
22219 return NULL;
22220}
22221
22222
22223SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22224 PyObject *resultobj = 0;
22225 wxDC *arg1 = (wxDC *) 0 ;
22226 wxPoint result;
22227 void *argp1 = 0 ;
22228 int res1 = 0 ;
22229 PyObject *swig_obj[1] ;
22230
22231 if (!args) SWIG_fail;
22232 swig_obj[0] = args;
22233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22234 if (!SWIG_IsOK(res1)) {
22235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22236 }
22237 arg1 = reinterpret_cast< wxDC * >(argp1);
22238 {
22239 PyThreadState* __tstate = wxPyBeginAllowThreads();
22240 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22241 wxPyEndAllowThreads(__tstate);
22242 if (PyErr_Occurred()) SWIG_fail;
22243 }
22244 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22245 return resultobj;
22246fail:
22247 return NULL;
22248}
22249
22250
22251SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22252 PyObject *resultobj = 0;
22253 wxDC *arg1 = (wxDC *) 0 ;
22254 int *arg2 = (int *) 0 ;
22255 int *arg3 = (int *) 0 ;
22256 void *argp1 = 0 ;
22257 int res1 = 0 ;
22258 int temp2 ;
22259 int res2 = SWIG_TMPOBJ ;
22260 int temp3 ;
22261 int res3 = SWIG_TMPOBJ ;
22262 PyObject *swig_obj[1] ;
22263
22264 arg2 = &temp2;
22265 arg3 = &temp3;
22266 if (!args) SWIG_fail;
22267 swig_obj[0] = args;
22268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22269 if (!SWIG_IsOK(res1)) {
22270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22271 }
22272 arg1 = reinterpret_cast< wxDC * >(argp1);
22273 {
22274 PyThreadState* __tstate = wxPyBeginAllowThreads();
22275 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22276 wxPyEndAllowThreads(__tstate);
22277 if (PyErr_Occurred()) SWIG_fail;
22278 }
22279 resultobj = SWIG_Py_Void();
22280 if (SWIG_IsTmpObj(res2)) {
22281 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22282 } else {
22283 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22284 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22285 }
22286 if (SWIG_IsTmpObj(res3)) {
22287 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22288 } else {
22289 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22290 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22291 }
22292 return resultobj;
22293fail:
22294 return NULL;
22295}
22296
22297
22298SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22299 PyObject *resultobj = 0;
22300 wxDC *arg1 = (wxDC *) 0 ;
22301 int arg2 ;
22302 int arg3 ;
22303 void *argp1 = 0 ;
22304 int res1 = 0 ;
22305 int val2 ;
22306 int ecode2 = 0 ;
22307 int val3 ;
22308 int ecode3 = 0 ;
22309 PyObject * obj0 = 0 ;
22310 PyObject * obj1 = 0 ;
22311 PyObject * obj2 = 0 ;
22312 char * kwnames[] = {
22313 (char *) "self",(char *) "x",(char *) "y", NULL
22314 };
22315
22316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22318 if (!SWIG_IsOK(res1)) {
22319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22320 }
22321 arg1 = reinterpret_cast< wxDC * >(argp1);
22322 ecode2 = SWIG_AsVal_int(obj1, &val2);
22323 if (!SWIG_IsOK(ecode2)) {
22324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22325 }
22326 arg2 = static_cast< int >(val2);
22327 ecode3 = SWIG_AsVal_int(obj2, &val3);
22328 if (!SWIG_IsOK(ecode3)) {
22329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22330 }
22331 arg3 = static_cast< int >(val3);
22332 {
22333 PyThreadState* __tstate = wxPyBeginAllowThreads();
22334 (arg1)->SetLogicalOrigin(arg2,arg3);
22335 wxPyEndAllowThreads(__tstate);
22336 if (PyErr_Occurred()) SWIG_fail;
22337 }
22338 resultobj = SWIG_Py_Void();
22339 return resultobj;
22340fail:
22341 return NULL;
22342}
22343
22344
22345SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22346 PyObject *resultobj = 0;
22347 wxDC *arg1 = (wxDC *) 0 ;
22348 wxPoint *arg2 = 0 ;
22349 void *argp1 = 0 ;
22350 int res1 = 0 ;
22351 wxPoint temp2 ;
22352 PyObject * obj0 = 0 ;
22353 PyObject * obj1 = 0 ;
22354 char * kwnames[] = {
22355 (char *) "self",(char *) "point", NULL
22356 };
22357
22358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22360 if (!SWIG_IsOK(res1)) {
22361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22362 }
22363 arg1 = reinterpret_cast< wxDC * >(argp1);
22364 {
22365 arg2 = &temp2;
22366 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22367 }
22368 {
22369 PyThreadState* __tstate = wxPyBeginAllowThreads();
22370 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22371 wxPyEndAllowThreads(__tstate);
22372 if (PyErr_Occurred()) SWIG_fail;
22373 }
22374 resultobj = SWIG_Py_Void();
22375 return resultobj;
22376fail:
22377 return NULL;
22378}
22379
22380
22381SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22382 PyObject *resultobj = 0;
22383 wxDC *arg1 = (wxDC *) 0 ;
22384 wxPoint result;
22385 void *argp1 = 0 ;
22386 int res1 = 0 ;
22387 PyObject *swig_obj[1] ;
22388
22389 if (!args) SWIG_fail;
22390 swig_obj[0] = args;
22391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22392 if (!SWIG_IsOK(res1)) {
22393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22394 }
22395 arg1 = reinterpret_cast< wxDC * >(argp1);
22396 {
22397 PyThreadState* __tstate = wxPyBeginAllowThreads();
22398 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22399 wxPyEndAllowThreads(__tstate);
22400 if (PyErr_Occurred()) SWIG_fail;
22401 }
22402 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22403 return resultobj;
22404fail:
22405 return NULL;
22406}
22407
22408
22409SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22410 PyObject *resultobj = 0;
22411 wxDC *arg1 = (wxDC *) 0 ;
22412 int *arg2 = (int *) 0 ;
22413 int *arg3 = (int *) 0 ;
22414 void *argp1 = 0 ;
22415 int res1 = 0 ;
22416 int temp2 ;
22417 int res2 = SWIG_TMPOBJ ;
22418 int temp3 ;
22419 int res3 = SWIG_TMPOBJ ;
22420 PyObject *swig_obj[1] ;
22421
22422 arg2 = &temp2;
22423 arg3 = &temp3;
22424 if (!args) SWIG_fail;
22425 swig_obj[0] = args;
22426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22427 if (!SWIG_IsOK(res1)) {
22428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22429 }
22430 arg1 = reinterpret_cast< wxDC * >(argp1);
22431 {
22432 PyThreadState* __tstate = wxPyBeginAllowThreads();
22433 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22434 wxPyEndAllowThreads(__tstate);
22435 if (PyErr_Occurred()) SWIG_fail;
22436 }
22437 resultobj = SWIG_Py_Void();
22438 if (SWIG_IsTmpObj(res2)) {
22439 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22440 } else {
22441 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22442 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22443 }
22444 if (SWIG_IsTmpObj(res3)) {
22445 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22446 } else {
22447 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22448 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22449 }
22450 return resultobj;
22451fail:
22452 return NULL;
22453}
22454
22455
22456SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22457 PyObject *resultobj = 0;
22458 wxDC *arg1 = (wxDC *) 0 ;
22459 int arg2 ;
22460 int arg3 ;
22461 void *argp1 = 0 ;
22462 int res1 = 0 ;
22463 int val2 ;
22464 int ecode2 = 0 ;
22465 int val3 ;
22466 int ecode3 = 0 ;
22467 PyObject * obj0 = 0 ;
22468 PyObject * obj1 = 0 ;
22469 PyObject * obj2 = 0 ;
22470 char * kwnames[] = {
22471 (char *) "self",(char *) "x",(char *) "y", NULL
22472 };
22473
22474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22476 if (!SWIG_IsOK(res1)) {
22477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22478 }
22479 arg1 = reinterpret_cast< wxDC * >(argp1);
22480 ecode2 = SWIG_AsVal_int(obj1, &val2);
22481 if (!SWIG_IsOK(ecode2)) {
22482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22483 }
22484 arg2 = static_cast< int >(val2);
22485 ecode3 = SWIG_AsVal_int(obj2, &val3);
22486 if (!SWIG_IsOK(ecode3)) {
22487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22488 }
22489 arg3 = static_cast< int >(val3);
22490 {
22491 PyThreadState* __tstate = wxPyBeginAllowThreads();
22492 (arg1)->SetDeviceOrigin(arg2,arg3);
22493 wxPyEndAllowThreads(__tstate);
22494 if (PyErr_Occurred()) SWIG_fail;
22495 }
22496 resultobj = SWIG_Py_Void();
22497 return resultobj;
22498fail:
22499 return NULL;
22500}
22501
22502
22503SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22504 PyObject *resultobj = 0;
22505 wxDC *arg1 = (wxDC *) 0 ;
22506 wxPoint *arg2 = 0 ;
22507 void *argp1 = 0 ;
22508 int res1 = 0 ;
22509 wxPoint temp2 ;
22510 PyObject * obj0 = 0 ;
22511 PyObject * obj1 = 0 ;
22512 char * kwnames[] = {
22513 (char *) "self",(char *) "point", NULL
22514 };
22515
22516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22518 if (!SWIG_IsOK(res1)) {
22519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22520 }
22521 arg1 = reinterpret_cast< wxDC * >(argp1);
22522 {
22523 arg2 = &temp2;
22524 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22525 }
22526 {
22527 PyThreadState* __tstate = wxPyBeginAllowThreads();
22528 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22529 wxPyEndAllowThreads(__tstate);
22530 if (PyErr_Occurred()) SWIG_fail;
22531 }
22532 resultobj = SWIG_Py_Void();
22533 return resultobj;
22534fail:
22535 return NULL;
22536}
22537
22538
22539SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22540 PyObject *resultobj = 0;
22541 wxDC *arg1 = (wxDC *) 0 ;
22542 bool arg2 ;
22543 bool arg3 ;
22544 void *argp1 = 0 ;
22545 int res1 = 0 ;
22546 bool val2 ;
22547 int ecode2 = 0 ;
22548 bool val3 ;
22549 int ecode3 = 0 ;
22550 PyObject * obj0 = 0 ;
22551 PyObject * obj1 = 0 ;
22552 PyObject * obj2 = 0 ;
22553 char * kwnames[] = {
22554 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22555 };
22556
22557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22559 if (!SWIG_IsOK(res1)) {
22560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22561 }
22562 arg1 = reinterpret_cast< wxDC * >(argp1);
22563 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22564 if (!SWIG_IsOK(ecode2)) {
22565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22566 }
22567 arg2 = static_cast< bool >(val2);
22568 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22569 if (!SWIG_IsOK(ecode3)) {
22570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22571 }
22572 arg3 = static_cast< bool >(val3);
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
22575 (arg1)->SetAxisOrientation(arg2,arg3);
22576 wxPyEndAllowThreads(__tstate);
22577 if (PyErr_Occurred()) SWIG_fail;
22578 }
22579 resultobj = SWIG_Py_Void();
22580 return resultobj;
22581fail:
22582 return NULL;
22583}
22584
22585
22586SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22587 PyObject *resultobj = 0;
22588 wxDC *arg1 = (wxDC *) 0 ;
22589 int result;
22590 void *argp1 = 0 ;
22591 int res1 = 0 ;
22592 PyObject *swig_obj[1] ;
22593
22594 if (!args) SWIG_fail;
22595 swig_obj[0] = args;
22596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22597 if (!SWIG_IsOK(res1)) {
22598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22599 }
22600 arg1 = reinterpret_cast< wxDC * >(argp1);
22601 {
22602 PyThreadState* __tstate = wxPyBeginAllowThreads();
22603 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22604 wxPyEndAllowThreads(__tstate);
22605 if (PyErr_Occurred()) SWIG_fail;
22606 }
22607 resultobj = SWIG_From_int(static_cast< int >(result));
22608 return resultobj;
22609fail:
22610 return NULL;
22611}
22612
22613
22614SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22615 PyObject *resultobj = 0;
22616 wxDC *arg1 = (wxDC *) 0 ;
22617 int arg2 ;
22618 void *argp1 = 0 ;
22619 int res1 = 0 ;
22620 int val2 ;
22621 int ecode2 = 0 ;
22622 PyObject * obj0 = 0 ;
22623 PyObject * obj1 = 0 ;
22624 char * kwnames[] = {
22625 (char *) "self",(char *) "function", NULL
22626 };
22627
22628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22630 if (!SWIG_IsOK(res1)) {
22631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22632 }
22633 arg1 = reinterpret_cast< wxDC * >(argp1);
22634 ecode2 = SWIG_AsVal_int(obj1, &val2);
22635 if (!SWIG_IsOK(ecode2)) {
22636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22637 }
22638 arg2 = static_cast< int >(val2);
22639 {
22640 PyThreadState* __tstate = wxPyBeginAllowThreads();
22641 (arg1)->SetLogicalFunction(arg2);
22642 wxPyEndAllowThreads(__tstate);
22643 if (PyErr_Occurred()) SWIG_fail;
22644 }
22645 resultobj = SWIG_Py_Void();
22646 return resultobj;
22647fail:
22648 return NULL;
22649}
22650
22651
22652SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22653 PyObject *resultobj = 0;
22654 wxDC *arg1 = (wxDC *) 0 ;
22655 void *argp1 = 0 ;
22656 int res1 = 0 ;
22657 PyObject *swig_obj[1] ;
22658
22659 if (!args) SWIG_fail;
22660 swig_obj[0] = args;
22661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22662 if (!SWIG_IsOK(res1)) {
22663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22664 }
22665 arg1 = reinterpret_cast< wxDC * >(argp1);
22666 {
22667 PyThreadState* __tstate = wxPyBeginAllowThreads();
22668 (arg1)->ComputeScaleAndOrigin();
22669 wxPyEndAllowThreads(__tstate);
22670 if (PyErr_Occurred()) SWIG_fail;
22671 }
22672 resultobj = SWIG_Py_Void();
22673 return resultobj;
22674fail:
22675 return NULL;
22676}
22677
22678
22679SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22680 PyObject *resultobj = 0;
22681 wxDC *arg1 = (wxDC *) 0 ;
22682 int arg2 ;
22683 int arg3 ;
22684 void *argp1 = 0 ;
22685 int res1 = 0 ;
22686 int val2 ;
22687 int ecode2 = 0 ;
22688 int val3 ;
22689 int ecode3 = 0 ;
22690 PyObject * obj0 = 0 ;
22691 PyObject * obj1 = 0 ;
22692 PyObject * obj2 = 0 ;
22693 char * kwnames[] = {
22694 (char *) "self",(char *) "x",(char *) "y", NULL
22695 };
22696
22697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22699 if (!SWIG_IsOK(res1)) {
22700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22701 }
22702 arg1 = reinterpret_cast< wxDC * >(argp1);
22703 ecode2 = SWIG_AsVal_int(obj1, &val2);
22704 if (!SWIG_IsOK(ecode2)) {
22705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22706 }
22707 arg2 = static_cast< int >(val2);
22708 ecode3 = SWIG_AsVal_int(obj2, &val3);
22709 if (!SWIG_IsOK(ecode3)) {
22710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22711 }
22712 arg3 = static_cast< int >(val3);
22713 {
22714 PyThreadState* __tstate = wxPyBeginAllowThreads();
22715 (arg1)->CalcBoundingBox(arg2,arg3);
22716 wxPyEndAllowThreads(__tstate);
22717 if (PyErr_Occurred()) SWIG_fail;
22718 }
22719 resultobj = SWIG_Py_Void();
22720 return resultobj;
22721fail:
22722 return NULL;
22723}
22724
22725
22726SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22727 PyObject *resultobj = 0;
22728 wxDC *arg1 = (wxDC *) 0 ;
22729 wxPoint *arg2 = 0 ;
22730 void *argp1 = 0 ;
22731 int res1 = 0 ;
22732 wxPoint temp2 ;
22733 PyObject * obj0 = 0 ;
22734 PyObject * obj1 = 0 ;
22735 char * kwnames[] = {
22736 (char *) "self",(char *) "point", NULL
22737 };
22738
22739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22741 if (!SWIG_IsOK(res1)) {
22742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22743 }
22744 arg1 = reinterpret_cast< wxDC * >(argp1);
22745 {
22746 arg2 = &temp2;
22747 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22748 }
22749 {
22750 PyThreadState* __tstate = wxPyBeginAllowThreads();
22751 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22752 wxPyEndAllowThreads(__tstate);
22753 if (PyErr_Occurred()) SWIG_fail;
22754 }
22755 resultobj = SWIG_Py_Void();
22756 return resultobj;
22757fail:
22758 return NULL;
22759}
22760
22761
22762SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22763 PyObject *resultobj = 0;
22764 wxDC *arg1 = (wxDC *) 0 ;
22765 void *argp1 = 0 ;
22766 int res1 = 0 ;
22767 PyObject *swig_obj[1] ;
22768
22769 if (!args) SWIG_fail;
22770 swig_obj[0] = args;
22771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22772 if (!SWIG_IsOK(res1)) {
22773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22774 }
22775 arg1 = reinterpret_cast< wxDC * >(argp1);
22776 {
22777 PyThreadState* __tstate = wxPyBeginAllowThreads();
22778 (arg1)->ResetBoundingBox();
22779 wxPyEndAllowThreads(__tstate);
22780 if (PyErr_Occurred()) SWIG_fail;
22781 }
22782 resultobj = SWIG_Py_Void();
22783 return resultobj;
22784fail:
22785 return NULL;
22786}
22787
22788
22789SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22790 PyObject *resultobj = 0;
22791 wxDC *arg1 = (wxDC *) 0 ;
22792 int result;
22793 void *argp1 = 0 ;
22794 int res1 = 0 ;
22795 PyObject *swig_obj[1] ;
22796
22797 if (!args) SWIG_fail;
22798 swig_obj[0] = args;
22799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22800 if (!SWIG_IsOK(res1)) {
22801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22802 }
22803 arg1 = reinterpret_cast< wxDC * >(argp1);
22804 {
22805 PyThreadState* __tstate = wxPyBeginAllowThreads();
22806 result = (int)((wxDC const *)arg1)->MinX();
22807 wxPyEndAllowThreads(__tstate);
22808 if (PyErr_Occurred()) SWIG_fail;
22809 }
22810 resultobj = SWIG_From_int(static_cast< int >(result));
22811 return resultobj;
22812fail:
22813 return NULL;
22814}
22815
22816
22817SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22818 PyObject *resultobj = 0;
22819 wxDC *arg1 = (wxDC *) 0 ;
22820 int result;
22821 void *argp1 = 0 ;
22822 int res1 = 0 ;
22823 PyObject *swig_obj[1] ;
22824
22825 if (!args) SWIG_fail;
22826 swig_obj[0] = args;
22827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22828 if (!SWIG_IsOK(res1)) {
22829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22830 }
22831 arg1 = reinterpret_cast< wxDC * >(argp1);
22832 {
22833 PyThreadState* __tstate = wxPyBeginAllowThreads();
22834 result = (int)((wxDC const *)arg1)->MaxX();
22835 wxPyEndAllowThreads(__tstate);
22836 if (PyErr_Occurred()) SWIG_fail;
22837 }
22838 resultobj = SWIG_From_int(static_cast< int >(result));
22839 return resultobj;
22840fail:
22841 return NULL;
22842}
22843
22844
22845SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22846 PyObject *resultobj = 0;
22847 wxDC *arg1 = (wxDC *) 0 ;
22848 int result;
22849 void *argp1 = 0 ;
22850 int res1 = 0 ;
22851 PyObject *swig_obj[1] ;
22852
22853 if (!args) SWIG_fail;
22854 swig_obj[0] = args;
22855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22856 if (!SWIG_IsOK(res1)) {
22857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22858 }
22859 arg1 = reinterpret_cast< wxDC * >(argp1);
22860 {
22861 PyThreadState* __tstate = wxPyBeginAllowThreads();
22862 result = (int)((wxDC const *)arg1)->MinY();
22863 wxPyEndAllowThreads(__tstate);
22864 if (PyErr_Occurred()) SWIG_fail;
22865 }
22866 resultobj = SWIG_From_int(static_cast< int >(result));
22867 return resultobj;
22868fail:
22869 return NULL;
22870}
22871
22872
22873SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22874 PyObject *resultobj = 0;
22875 wxDC *arg1 = (wxDC *) 0 ;
22876 int result;
22877 void *argp1 = 0 ;
22878 int res1 = 0 ;
22879 PyObject *swig_obj[1] ;
22880
22881 if (!args) SWIG_fail;
22882 swig_obj[0] = args;
22883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22884 if (!SWIG_IsOK(res1)) {
22885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22886 }
22887 arg1 = reinterpret_cast< wxDC * >(argp1);
22888 {
22889 PyThreadState* __tstate = wxPyBeginAllowThreads();
22890 result = (int)((wxDC const *)arg1)->MaxY();
22891 wxPyEndAllowThreads(__tstate);
22892 if (PyErr_Occurred()) SWIG_fail;
22893 }
22894 resultobj = SWIG_From_int(static_cast< int >(result));
22895 return resultobj;
22896fail:
22897 return NULL;
22898}
22899
22900
22901SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22902 PyObject *resultobj = 0;
22903 wxDC *arg1 = (wxDC *) 0 ;
22904 int *arg2 = (int *) 0 ;
22905 int *arg3 = (int *) 0 ;
22906 int *arg4 = (int *) 0 ;
22907 int *arg5 = (int *) 0 ;
22908 void *argp1 = 0 ;
22909 int res1 = 0 ;
22910 int temp2 ;
22911 int res2 = SWIG_TMPOBJ ;
22912 int temp3 ;
22913 int res3 = SWIG_TMPOBJ ;
22914 int temp4 ;
22915 int res4 = SWIG_TMPOBJ ;
22916 int temp5 ;
22917 int res5 = SWIG_TMPOBJ ;
22918 PyObject *swig_obj[1] ;
22919
22920 arg2 = &temp2;
22921 arg3 = &temp3;
22922 arg4 = &temp4;
22923 arg5 = &temp5;
22924 if (!args) SWIG_fail;
22925 swig_obj[0] = args;
22926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22927 if (!SWIG_IsOK(res1)) {
22928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22929 }
22930 arg1 = reinterpret_cast< wxDC * >(argp1);
22931 {
22932 PyThreadState* __tstate = wxPyBeginAllowThreads();
22933 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22934 wxPyEndAllowThreads(__tstate);
22935 if (PyErr_Occurred()) SWIG_fail;
22936 }
22937 resultobj = SWIG_Py_Void();
22938 if (SWIG_IsTmpObj(res2)) {
22939 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22940 } else {
22941 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22942 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22943 }
22944 if (SWIG_IsTmpObj(res3)) {
22945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22946 } else {
22947 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22949 }
22950 if (SWIG_IsTmpObj(res4)) {
22951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22952 } else {
22953 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22955 }
22956 if (SWIG_IsTmpObj(res5)) {
22957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22958 } else {
22959 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22961 }
22962 return resultobj;
22963fail:
22964 return NULL;
22965}
22966
22967
b39fe951
RD
22968SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22969 PyObject *resultobj = 0;
22970 wxDC *arg1 = (wxDC *) 0 ;
22971 wxLayoutDirection result;
22972 void *argp1 = 0 ;
22973 int res1 = 0 ;
22974 PyObject *swig_obj[1] ;
22975
22976 if (!args) SWIG_fail;
22977 swig_obj[0] = args;
22978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22979 if (!SWIG_IsOK(res1)) {
22980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22981 }
22982 arg1 = reinterpret_cast< wxDC * >(argp1);
22983 {
22984 PyThreadState* __tstate = wxPyBeginAllowThreads();
22985 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22986 wxPyEndAllowThreads(__tstate);
22987 if (PyErr_Occurred()) SWIG_fail;
22988 }
22989 resultobj = SWIG_From_int(static_cast< int >(result));
22990 return resultobj;
22991fail:
22992 return NULL;
22993}
22994
22995
22996SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22997 PyObject *resultobj = 0;
22998 wxDC *arg1 = (wxDC *) 0 ;
22999 wxLayoutDirection arg2 ;
23000 void *argp1 = 0 ;
23001 int res1 = 0 ;
23002 int val2 ;
23003 int ecode2 = 0 ;
23004 PyObject * obj0 = 0 ;
23005 PyObject * obj1 = 0 ;
23006 char * kwnames[] = {
23007 (char *) "self",(char *) "dir", NULL
23008 };
23009
23010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23012 if (!SWIG_IsOK(res1)) {
23013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23014 }
23015 arg1 = reinterpret_cast< wxDC * >(argp1);
23016 ecode2 = SWIG_AsVal_int(obj1, &val2);
23017 if (!SWIG_IsOK(ecode2)) {
23018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23019 }
23020 arg2 = static_cast< wxLayoutDirection >(val2);
23021 {
23022 PyThreadState* __tstate = wxPyBeginAllowThreads();
23023 (arg1)->SetLayoutDirection(arg2);
23024 wxPyEndAllowThreads(__tstate);
23025 if (PyErr_Occurred()) SWIG_fail;
23026 }
23027 resultobj = SWIG_Py_Void();
23028 return resultobj;
23029fail:
23030 return NULL;
23031}
23032
23033
1bd55598
RD
23034SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23035 PyObject *resultobj = 0;
23036 wxDC *arg1 = (wxDC *) 0 ;
23037 PyObject *arg2 = (PyObject *) 0 ;
23038 PyObject *arg3 = (PyObject *) 0 ;
23039 PyObject *arg4 = (PyObject *) 0 ;
23040 PyObject *result = 0 ;
23041 void *argp1 = 0 ;
23042 int res1 = 0 ;
23043 PyObject * obj0 = 0 ;
23044 PyObject * obj1 = 0 ;
23045 PyObject * obj2 = 0 ;
23046 PyObject * obj3 = 0 ;
23047 char * kwnames[] = {
23048 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23049 };
23050
23051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23053 if (!SWIG_IsOK(res1)) {
23054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23055 }
23056 arg1 = reinterpret_cast< wxDC * >(argp1);
23057 arg2 = obj1;
23058 arg3 = obj2;
23059 arg4 = obj3;
23060 {
23061 PyThreadState* __tstate = wxPyBeginAllowThreads();
23062 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 resultobj = result;
23067 return resultobj;
23068fail:
23069 return NULL;
23070}
23071
23072
23073SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23074 PyObject *resultobj = 0;
23075 wxDC *arg1 = (wxDC *) 0 ;
23076 PyObject *arg2 = (PyObject *) 0 ;
23077 PyObject *arg3 = (PyObject *) 0 ;
23078 PyObject *arg4 = (PyObject *) 0 ;
23079 PyObject *result = 0 ;
23080 void *argp1 = 0 ;
23081 int res1 = 0 ;
23082 PyObject * obj0 = 0 ;
23083 PyObject * obj1 = 0 ;
23084 PyObject * obj2 = 0 ;
23085 PyObject * obj3 = 0 ;
23086 char * kwnames[] = {
23087 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23088 };
23089
23090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23092 if (!SWIG_IsOK(res1)) {
23093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23094 }
23095 arg1 = reinterpret_cast< wxDC * >(argp1);
23096 arg2 = obj1;
23097 arg3 = obj2;
23098 arg4 = obj3;
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23102 wxPyEndAllowThreads(__tstate);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 }
23105 resultobj = result;
23106 return resultobj;
23107fail:
23108 return NULL;
23109}
23110
23111
23112SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23113 PyObject *resultobj = 0;
23114 wxDC *arg1 = (wxDC *) 0 ;
23115 PyObject *arg2 = (PyObject *) 0 ;
23116 PyObject *arg3 = (PyObject *) 0 ;
23117 PyObject *arg4 = (PyObject *) 0 ;
23118 PyObject *result = 0 ;
23119 void *argp1 = 0 ;
23120 int res1 = 0 ;
23121 PyObject * obj0 = 0 ;
23122 PyObject * obj1 = 0 ;
23123 PyObject * obj2 = 0 ;
23124 PyObject * obj3 = 0 ;
23125 char * kwnames[] = {
23126 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23127 };
23128
23129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23131 if (!SWIG_IsOK(res1)) {
23132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23133 }
23134 arg1 = reinterpret_cast< wxDC * >(argp1);
23135 arg2 = obj1;
23136 arg3 = obj2;
23137 arg4 = obj3;
23138 {
23139 PyThreadState* __tstate = wxPyBeginAllowThreads();
23140 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23141 wxPyEndAllowThreads(__tstate);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 }
23144 resultobj = result;
23145 return resultobj;
23146fail:
23147 return NULL;
23148}
23149
23150
23151SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23152 PyObject *resultobj = 0;
23153 wxDC *arg1 = (wxDC *) 0 ;
23154 PyObject *arg2 = (PyObject *) 0 ;
23155 PyObject *arg3 = (PyObject *) 0 ;
23156 PyObject *arg4 = (PyObject *) 0 ;
23157 PyObject *result = 0 ;
23158 void *argp1 = 0 ;
23159 int res1 = 0 ;
23160 PyObject * obj0 = 0 ;
23161 PyObject * obj1 = 0 ;
23162 PyObject * obj2 = 0 ;
23163 PyObject * obj3 = 0 ;
23164 char * kwnames[] = {
23165 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23166 };
23167
23168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23170 if (!SWIG_IsOK(res1)) {
23171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23172 }
23173 arg1 = reinterpret_cast< wxDC * >(argp1);
23174 arg2 = obj1;
23175 arg3 = obj2;
23176 arg4 = obj3;
23177 {
23178 PyThreadState* __tstate = wxPyBeginAllowThreads();
23179 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23180 wxPyEndAllowThreads(__tstate);
23181 if (PyErr_Occurred()) SWIG_fail;
23182 }
23183 resultobj = result;
23184 return resultobj;
23185fail:
23186 return NULL;
23187}
23188
23189
23190SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23191 PyObject *resultobj = 0;
23192 wxDC *arg1 = (wxDC *) 0 ;
23193 PyObject *arg2 = (PyObject *) 0 ;
23194 PyObject *arg3 = (PyObject *) 0 ;
23195 PyObject *arg4 = (PyObject *) 0 ;
23196 PyObject *result = 0 ;
23197 void *argp1 = 0 ;
23198 int res1 = 0 ;
23199 PyObject * obj0 = 0 ;
23200 PyObject * obj1 = 0 ;
23201 PyObject * obj2 = 0 ;
23202 PyObject * obj3 = 0 ;
23203 char * kwnames[] = {
23204 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23205 };
23206
23207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23209 if (!SWIG_IsOK(res1)) {
23210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23211 }
23212 arg1 = reinterpret_cast< wxDC * >(argp1);
23213 arg2 = obj1;
23214 arg3 = obj2;
23215 arg4 = obj3;
23216 {
23217 PyThreadState* __tstate = wxPyBeginAllowThreads();
23218 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23219 wxPyEndAllowThreads(__tstate);
23220 if (PyErr_Occurred()) SWIG_fail;
23221 }
23222 resultobj = result;
23223 return resultobj;
23224fail:
23225 return NULL;
23226}
23227
23228
23229SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23230 PyObject *resultobj = 0;
23231 wxDC *arg1 = (wxDC *) 0 ;
23232 PyObject *arg2 = (PyObject *) 0 ;
23233 PyObject *arg3 = (PyObject *) 0 ;
23234 PyObject *arg4 = (PyObject *) 0 ;
23235 PyObject *arg5 = (PyObject *) 0 ;
23236 PyObject *result = 0 ;
23237 void *argp1 = 0 ;
23238 int res1 = 0 ;
23239 PyObject * obj0 = 0 ;
23240 PyObject * obj1 = 0 ;
23241 PyObject * obj2 = 0 ;
23242 PyObject * obj3 = 0 ;
23243 PyObject * obj4 = 0 ;
23244 char * kwnames[] = {
23245 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23246 };
23247
23248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23250 if (!SWIG_IsOK(res1)) {
23251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23252 }
23253 arg1 = reinterpret_cast< wxDC * >(argp1);
23254 arg2 = obj1;
23255 arg3 = obj2;
23256 arg4 = obj3;
23257 arg5 = obj4;
23258 {
23259 PyThreadState* __tstate = wxPyBeginAllowThreads();
23260 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23261 wxPyEndAllowThreads(__tstate);
23262 if (PyErr_Occurred()) SWIG_fail;
23263 }
23264 resultobj = result;
23265 return resultobj;
23266fail:
23267 return NULL;
23268}
23269
23270
23271SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23272 PyObject *obj;
23273 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23274 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23275 return SWIG_Py_Void();
23276}
23277
70d7cb34
RD
23278SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23279 PyObject *resultobj = 0;
23280 wxDC *arg1 = 0 ;
23281 wxColour *arg2 = 0 ;
23282 wxDCTextColourChanger *result = 0 ;
23283 void *argp1 = 0 ;
23284 int res1 = 0 ;
23285 wxColour temp2 ;
23286 PyObject * obj0 = 0 ;
23287 PyObject * obj1 = 0 ;
23288 char * kwnames[] = {
23289 (char *) "dc",(char *) "col", NULL
23290 };
23291
23292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23293 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23294 if (!SWIG_IsOK(res1)) {
23295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23296 }
23297 if (!argp1) {
23298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23299 }
23300 arg1 = reinterpret_cast< wxDC * >(argp1);
23301 {
23302 arg2 = &temp2;
23303 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23304 }
23305 {
23306 PyThreadState* __tstate = wxPyBeginAllowThreads();
23307 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23308 wxPyEndAllowThreads(__tstate);
23309 if (PyErr_Occurred()) SWIG_fail;
23310 }
23311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23312 return resultobj;
23313fail:
23314 return NULL;
23315}
23316
23317
23318SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23319 PyObject *resultobj = 0;
23320 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23321 void *argp1 = 0 ;
23322 int res1 = 0 ;
23323 PyObject *swig_obj[1] ;
23324
23325 if (!args) SWIG_fail;
23326 swig_obj[0] = args;
23327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23328 if (!SWIG_IsOK(res1)) {
23329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23330 }
23331 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23332 {
23333 PyThreadState* __tstate = wxPyBeginAllowThreads();
23334 delete arg1;
23335
23336 wxPyEndAllowThreads(__tstate);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 }
23339 resultobj = SWIG_Py_Void();
23340 return resultobj;
23341fail:
23342 return NULL;
23343}
23344
23345
23346SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23347 PyObject *obj;
23348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23349 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23350 return SWIG_Py_Void();
23351}
23352
23353SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23354 return SWIG_Python_InitShadowInstance(args);
23355}
23356
23357SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23358 PyObject *resultobj = 0;
23359 wxDC *arg1 = 0 ;
23360 wxPen *arg2 = 0 ;
23361 wxDCPenChanger *result = 0 ;
23362 void *argp1 = 0 ;
23363 int res1 = 0 ;
23364 void *argp2 = 0 ;
23365 int res2 = 0 ;
23366 PyObject * obj0 = 0 ;
23367 PyObject * obj1 = 0 ;
23368 char * kwnames[] = {
23369 (char *) "dc",(char *) "pen", NULL
23370 };
23371
23372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23373 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23374 if (!SWIG_IsOK(res1)) {
23375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23376 }
23377 if (!argp1) {
23378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23379 }
23380 arg1 = reinterpret_cast< wxDC * >(argp1);
23381 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23382 if (!SWIG_IsOK(res2)) {
23383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23384 }
23385 if (!argp2) {
23386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23387 }
23388 arg2 = reinterpret_cast< wxPen * >(argp2);
23389 {
23390 PyThreadState* __tstate = wxPyBeginAllowThreads();
23391 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23392 wxPyEndAllowThreads(__tstate);
23393 if (PyErr_Occurred()) SWIG_fail;
23394 }
23395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23396 return resultobj;
23397fail:
23398 return NULL;
23399}
23400
23401
23402SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23403 PyObject *resultobj = 0;
23404 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23405 void *argp1 = 0 ;
23406 int res1 = 0 ;
23407 PyObject *swig_obj[1] ;
23408
23409 if (!args) SWIG_fail;
23410 swig_obj[0] = args;
23411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23412 if (!SWIG_IsOK(res1)) {
23413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23414 }
23415 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23416 {
23417 PyThreadState* __tstate = wxPyBeginAllowThreads();
23418 delete arg1;
23419
23420 wxPyEndAllowThreads(__tstate);
23421 if (PyErr_Occurred()) SWIG_fail;
23422 }
23423 resultobj = SWIG_Py_Void();
23424 return resultobj;
23425fail:
23426 return NULL;
23427}
23428
23429
23430SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23431 PyObject *obj;
23432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23433 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23434 return SWIG_Py_Void();
23435}
23436
23437SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23438 return SWIG_Python_InitShadowInstance(args);
23439}
23440
23441SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23442 PyObject *resultobj = 0;
23443 wxDC *arg1 = 0 ;
23444 wxBrush *arg2 = 0 ;
23445 wxDCBrushChanger *result = 0 ;
23446 void *argp1 = 0 ;
23447 int res1 = 0 ;
23448 void *argp2 = 0 ;
23449 int res2 = 0 ;
23450 PyObject * obj0 = 0 ;
23451 PyObject * obj1 = 0 ;
23452 char * kwnames[] = {
23453 (char *) "dc",(char *) "brush", NULL
23454 };
23455
23456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23457 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23458 if (!SWIG_IsOK(res1)) {
23459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23460 }
23461 if (!argp1) {
23462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23463 }
23464 arg1 = reinterpret_cast< wxDC * >(argp1);
23465 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23466 if (!SWIG_IsOK(res2)) {
23467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23468 }
23469 if (!argp2) {
23470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23471 }
23472 arg2 = reinterpret_cast< wxBrush * >(argp2);
23473 {
23474 PyThreadState* __tstate = wxPyBeginAllowThreads();
23475 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23476 wxPyEndAllowThreads(__tstate);
23477 if (PyErr_Occurred()) SWIG_fail;
23478 }
23479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23480 return resultobj;
23481fail:
23482 return NULL;
23483}
23484
23485
23486SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23487 PyObject *resultobj = 0;
23488 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23489 void *argp1 = 0 ;
23490 int res1 = 0 ;
23491 PyObject *swig_obj[1] ;
23492
23493 if (!args) SWIG_fail;
23494 swig_obj[0] = args;
23495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23496 if (!SWIG_IsOK(res1)) {
23497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23498 }
23499 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23500 {
23501 PyThreadState* __tstate = wxPyBeginAllowThreads();
23502 delete arg1;
23503
23504 wxPyEndAllowThreads(__tstate);
23505 if (PyErr_Occurred()) SWIG_fail;
23506 }
23507 resultobj = SWIG_Py_Void();
23508 return resultobj;
23509fail:
23510 return NULL;
23511}
23512
23513
23514SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23515 PyObject *obj;
23516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23517 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23518 return SWIG_Py_Void();
23519}
23520
23521SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23522 return SWIG_Python_InitShadowInstance(args);
23523}
23524
23525SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23526 PyObject *resultobj = 0;
23527 wxDC *arg1 = 0 ;
23528 wxRegion *arg2 = 0 ;
23529 wxDCClipper *result = 0 ;
23530 void *argp1 = 0 ;
23531 int res1 = 0 ;
23532 void *argp2 = 0 ;
23533 int res2 = 0 ;
23534
23535 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23537 if (!SWIG_IsOK(res1)) {
23538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23539 }
23540 if (!argp1) {
23541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23542 }
23543 arg1 = reinterpret_cast< wxDC * >(argp1);
23544 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23545 if (!SWIG_IsOK(res2)) {
23546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23547 }
23548 if (!argp2) {
23549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23550 }
23551 arg2 = reinterpret_cast< wxRegion * >(argp2);
23552 {
23553 PyThreadState* __tstate = wxPyBeginAllowThreads();
23554 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23555 wxPyEndAllowThreads(__tstate);
23556 if (PyErr_Occurred()) SWIG_fail;
23557 }
23558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23559 return resultobj;
23560fail:
23561 return NULL;
23562}
23563
23564
23565SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23566 PyObject *resultobj = 0;
23567 wxDC *arg1 = 0 ;
23568 wxRect *arg2 = 0 ;
23569 wxDCClipper *result = 0 ;
23570 void *argp1 = 0 ;
23571 int res1 = 0 ;
23572 wxRect temp2 ;
23573
23574 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23576 if (!SWIG_IsOK(res1)) {
23577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23578 }
23579 if (!argp1) {
23580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23581 }
23582 arg1 = reinterpret_cast< wxDC * >(argp1);
23583 {
23584 arg2 = &temp2;
23585 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23586 }
23587 {
23588 PyThreadState* __tstate = wxPyBeginAllowThreads();
23589 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23590 wxPyEndAllowThreads(__tstate);
23591 if (PyErr_Occurred()) SWIG_fail;
23592 }
23593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23594 return resultobj;
23595fail:
23596 return NULL;
23597}
23598
23599
23600SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23601 PyObject *resultobj = 0;
23602 wxDC *arg1 = 0 ;
23603 int arg2 ;
23604 int arg3 ;
23605 int arg4 ;
23606 int arg5 ;
23607 wxDCClipper *result = 0 ;
23608 void *argp1 = 0 ;
23609 int res1 = 0 ;
23610 int val2 ;
23611 int ecode2 = 0 ;
23612 int val3 ;
23613 int ecode3 = 0 ;
23614 int val4 ;
23615 int ecode4 = 0 ;
23616 int val5 ;
23617 int ecode5 = 0 ;
23618
23619 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23621 if (!SWIG_IsOK(res1)) {
23622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23623 }
23624 if (!argp1) {
23625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23626 }
23627 arg1 = reinterpret_cast< wxDC * >(argp1);
23628 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23629 if (!SWIG_IsOK(ecode2)) {
23630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23631 }
23632 arg2 = static_cast< int >(val2);
23633 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23634 if (!SWIG_IsOK(ecode3)) {
23635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23636 }
23637 arg3 = static_cast< int >(val3);
23638 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23639 if (!SWIG_IsOK(ecode4)) {
23640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23641 }
23642 arg4 = static_cast< int >(val4);
23643 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23644 if (!SWIG_IsOK(ecode5)) {
23645 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23646 }
23647 arg5 = static_cast< int >(val5);
23648 {
23649 PyThreadState* __tstate = wxPyBeginAllowThreads();
23650 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23651 wxPyEndAllowThreads(__tstate);
23652 if (PyErr_Occurred()) SWIG_fail;
23653 }
23654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23655 return resultobj;
23656fail:
23657 return NULL;
23658}
23659
23660
23661SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23662 int argc;
23663 PyObject *argv[6];
23664
23665 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23666 --argc;
23667 if (argc == 2) {
23668 int _v = 0;
23669 {
23670 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23671 _v = SWIG_CheckState(res);
23672 }
23673 if (!_v) goto check_1;
23674 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23675 }
23676check_1:
23677
23678 if (argc == 2) {
23679 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23680 }
23681 if (argc == 5) {
23682 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23683 }
23684
23685fail:
23686 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23687 return NULL;
23688}
23689
23690
23691SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23692 PyObject *resultobj = 0;
23693 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23694 void *argp1 = 0 ;
23695 int res1 = 0 ;
23696 PyObject *swig_obj[1] ;
23697
23698 if (!args) SWIG_fail;
23699 swig_obj[0] = args;
23700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23701 if (!SWIG_IsOK(res1)) {
23702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23703 }
23704 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23705 {
23706 PyThreadState* __tstate = wxPyBeginAllowThreads();
23707 delete arg1;
23708
23709 wxPyEndAllowThreads(__tstate);
23710 if (PyErr_Occurred()) SWIG_fail;
23711 }
23712 resultobj = SWIG_Py_Void();
23713 return resultobj;
23714fail:
23715 return NULL;
23716}
23717
23718
23719SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23720 PyObject *obj;
23721 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23722 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23723 return SWIG_Py_Void();
23724}
23725
23726SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23727 return SWIG_Python_InitShadowInstance(args);
23728}
23729
8e99bda9 23730SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 23731 PyObject *resultobj = 0;
8e99bda9
RD
23732 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23733 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
1bd55598 23734 wxMemoryDC *result = 0 ;
8e99bda9
RD
23735 void *argp1 = 0 ;
23736 int res1 = 0 ;
23737 PyObject * obj0 = 0 ;
23738 char * kwnames[] = {
23739 (char *) "bitmap", NULL
23740 };
1bd55598 23741
8e99bda9
RD
23742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23743 if (obj0) {
23744 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23745 if (!SWIG_IsOK(res1)) {
23746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23747 }
23748 if (!argp1) {
23749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23750 }
23751 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23752 }
1bd55598
RD
23753 {
23754 if (!wxPyCheckForApp()) SWIG_fail;
23755 PyThreadState* __tstate = wxPyBeginAllowThreads();
8e99bda9 23756 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
1bd55598
RD
23757 wxPyEndAllowThreads(__tstate);
23758 if (PyErr_Occurred()) SWIG_fail;
23759 }
23760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23761 return resultobj;
23762fail:
23763 return NULL;
23764}
23765
23766
23767SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23768 PyObject *resultobj = 0;
23769 wxDC *arg1 = (wxDC *) 0 ;
23770 wxMemoryDC *result = 0 ;
23771 void *argp1 = 0 ;
23772 int res1 = 0 ;
23773 PyObject * obj0 = 0 ;
23774 char * kwnames[] = {
23775 (char *) "oldDC", NULL
23776 };
23777
23778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23780 if (!SWIG_IsOK(res1)) {
23781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23782 }
23783 arg1 = reinterpret_cast< wxDC * >(argp1);
23784 {
23785 if (!wxPyCheckForApp()) SWIG_fail;
23786 PyThreadState* __tstate = wxPyBeginAllowThreads();
23787 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23788 wxPyEndAllowThreads(__tstate);
23789 if (PyErr_Occurred()) SWIG_fail;
23790 }
23791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23792 return resultobj;
23793fail:
23794 return NULL;
23795}
23796
23797
23798SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23799 PyObject *resultobj = 0;
23800 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23801 wxBitmap *arg2 = 0 ;
23802 void *argp1 = 0 ;
23803 int res1 = 0 ;
23804 void *argp2 = 0 ;
23805 int res2 = 0 ;
23806 PyObject * obj0 = 0 ;
23807 PyObject * obj1 = 0 ;
23808 char * kwnames[] = {
23809 (char *) "self",(char *) "bitmap", NULL
23810 };
23811
23812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23814 if (!SWIG_IsOK(res1)) {
23815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23816 }
23817 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23818 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23819 if (!SWIG_IsOK(res2)) {
23820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23821 }
23822 if (!argp2) {
23823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23824 }
23825 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23826 {
23827 PyThreadState* __tstate = wxPyBeginAllowThreads();
23828 (arg1)->SelectObject((wxBitmap const &)*arg2);
23829 wxPyEndAllowThreads(__tstate);
23830 if (PyErr_Occurred()) SWIG_fail;
23831 }
23832 resultobj = SWIG_Py_Void();
23833 return resultobj;
23834fail:
23835 return NULL;
23836}
23837
23838
23839SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23840 PyObject *obj;
23841 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23842 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23843 return SWIG_Py_Void();
23844}
23845
23846SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23847 return SWIG_Python_InitShadowInstance(args);
23848}
23849
24f6c4e8
RD
23850SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23851 PyObject *resultobj = 0;
23852 wxScreenDC *result = 0 ;
23853
23854 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23855 {
23856 if (!wxPyCheckForApp()) SWIG_fail;
23857 PyThreadState* __tstate = wxPyBeginAllowThreads();
23858 result = (wxScreenDC *)new wxScreenDC();
23859 wxPyEndAllowThreads(__tstate);
23860 if (PyErr_Occurred()) SWIG_fail;
23861 }
23862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23863 return resultobj;
23864fail:
23865 return NULL;
23866}
23867
23868
23869SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23870 PyObject *resultobj = 0;
23871 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23872 wxWindow *arg2 = (wxWindow *) 0 ;
23873 bool result;
23874 void *argp1 = 0 ;
23875 int res1 = 0 ;
23876 void *argp2 = 0 ;
23877 int res2 = 0 ;
23878 PyObject * obj0 = 0 ;
23879 PyObject * obj1 = 0 ;
23880 char * kwnames[] = {
23881 (char *) "self",(char *) "window", NULL
23882 };
23883
23884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23886 if (!SWIG_IsOK(res1)) {
23887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23888 }
23889 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23890 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23891 if (!SWIG_IsOK(res2)) {
23892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23893 }
23894 arg2 = reinterpret_cast< wxWindow * >(argp2);
23895 {
23896 PyThreadState* __tstate = wxPyBeginAllowThreads();
23897 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23898 wxPyEndAllowThreads(__tstate);
23899 if (PyErr_Occurred()) SWIG_fail;
23900 }
23901 {
23902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23903 }
23904 return resultobj;
23905fail:
23906 return NULL;
23907}
23908
23909
23910SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23911 PyObject *resultobj = 0;
23912 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23913 wxRect *arg2 = (wxRect *) NULL ;
23914 bool result;
23915 void *argp1 = 0 ;
23916 int res1 = 0 ;
23917 void *argp2 = 0 ;
23918 int res2 = 0 ;
23919 PyObject * obj0 = 0 ;
23920 PyObject * obj1 = 0 ;
23921 char * kwnames[] = {
23922 (char *) "self",(char *) "rect", NULL
23923 };
23924
23925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23927 if (!SWIG_IsOK(res1)) {
23928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23929 }
23930 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23931 if (obj1) {
23932 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23933 if (!SWIG_IsOK(res2)) {
23934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23935 }
23936 arg2 = reinterpret_cast< wxRect * >(argp2);
23937 }
23938 {
23939 PyThreadState* __tstate = wxPyBeginAllowThreads();
23940 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23941 wxPyEndAllowThreads(__tstate);
23942 if (PyErr_Occurred()) SWIG_fail;
23943 }
23944 {
23945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23946 }
23947 return resultobj;
23948fail:
23949 return NULL;
23950}
23951
23952
23953SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23954 PyObject *resultobj = 0;
23955 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23956 bool result;
23957 void *argp1 = 0 ;
23958 int res1 = 0 ;
23959 PyObject *swig_obj[1] ;
23960
23961 if (!args) SWIG_fail;
23962 swig_obj[0] = args;
23963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23964 if (!SWIG_IsOK(res1)) {
23965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23966 }
23967 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23968 {
23969 PyThreadState* __tstate = wxPyBeginAllowThreads();
23970 result = (bool)(arg1)->EndDrawingOnTop();
23971 wxPyEndAllowThreads(__tstate);
23972 if (PyErr_Occurred()) SWIG_fail;
23973 }
23974 {
23975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23976 }
23977 return resultobj;
23978fail:
23979 return NULL;
23980}
23981
23982
23983SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23984 PyObject *obj;
23985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23986 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23987 return SWIG_Py_Void();
23988}
23989
23990SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23991 return SWIG_Python_InitShadowInstance(args);
23992}
23993
23994SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23995 PyObject *resultobj = 0;
23996 wxWindow *arg1 = (wxWindow *) 0 ;
23997 wxWindowDC *result = 0 ;
23998 void *argp1 = 0 ;
23999 int res1 = 0 ;
24000 PyObject * obj0 = 0 ;
24001 char * kwnames[] = {
24002 (char *) "win", NULL
24003 };
24004
24005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24007 if (!SWIG_IsOK(res1)) {
24008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24009 }
24010 arg1 = reinterpret_cast< wxWindow * >(argp1);
24011 {
24012 if (!wxPyCheckForApp()) SWIG_fail;
24013 PyThreadState* __tstate = wxPyBeginAllowThreads();
24014 result = (wxWindowDC *)new wxWindowDC(arg1);
24015 wxPyEndAllowThreads(__tstate);
24016 if (PyErr_Occurred()) SWIG_fail;
24017 }
24018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24019 return resultobj;
24020fail:
24021 return NULL;
24022}
24023
24024
24025SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24026 PyObject *obj;
24027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24028 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24029 return SWIG_Py_Void();
24030}
24031
24032SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24033 return SWIG_Python_InitShadowInstance(args);
24034}
24035
24036SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24037 PyObject *resultobj = 0;
24038 wxWindow *arg1 = (wxWindow *) 0 ;
24039 wxClientDC *result = 0 ;
24040 void *argp1 = 0 ;
24041 int res1 = 0 ;
24042 PyObject * obj0 = 0 ;
24043 char * kwnames[] = {
24044 (char *) "win", NULL
24045 };
24046
24047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24049 if (!SWIG_IsOK(res1)) {
24050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24051 }
24052 arg1 = reinterpret_cast< wxWindow * >(argp1);
24053 {
24054 if (!wxPyCheckForApp()) SWIG_fail;
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
24056 result = (wxClientDC *)new wxClientDC(arg1);
24057 wxPyEndAllowThreads(__tstate);
24058 if (PyErr_Occurred()) SWIG_fail;
24059 }
24060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24061 return resultobj;
24062fail:
24063 return NULL;
24064}
24065
24066
24067SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24068 PyObject *obj;
24069 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24070 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24071 return SWIG_Py_Void();
24072}
24073
24074SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24075 return SWIG_Python_InitShadowInstance(args);
24076}
24077
24078SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24079 PyObject *resultobj = 0;
24080 wxWindow *arg1 = (wxWindow *) 0 ;
24081 wxPaintDC *result = 0 ;
24082 void *argp1 = 0 ;
24083 int res1 = 0 ;
24084 PyObject * obj0 = 0 ;
24085 char * kwnames[] = {
24086 (char *) "win", NULL
24087 };
24088
24089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24091 if (!SWIG_IsOK(res1)) {
24092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24093 }
24094 arg1 = reinterpret_cast< wxWindow * >(argp1);
24095 {
24096 if (!wxPyCheckForApp()) SWIG_fail;
24097 PyThreadState* __tstate = wxPyBeginAllowThreads();
24098 result = (wxPaintDC *)new wxPaintDC(arg1);
24099 wxPyEndAllowThreads(__tstate);
24100 if (PyErr_Occurred()) SWIG_fail;
24101 }
24102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24103 return resultobj;
24104fail:
24105 return NULL;
24106}
24107
24108
24109SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24110 PyObject *obj;
24111 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24112 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24113 return SWIG_Py_Void();
24114}
24115
24116SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24117 return SWIG_Python_InitShadowInstance(args);
24118}
24119
1bd55598
RD
24120SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24121 PyObject *resultobj = 0;
24122 wxDC *arg1 = (wxDC *) 0 ;
24123 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24124 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24125 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24126 wxBufferedDC *result = 0 ;
24127 void *argp1 = 0 ;
24128 int res1 = 0 ;
24129 void *argp2 = 0 ;
24130 int res2 = 0 ;
24131 int val3 ;
24132 int ecode3 = 0 ;
24133
24134 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24136 if (!SWIG_IsOK(res1)) {
24137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24138 }
24139 arg1 = reinterpret_cast< wxDC * >(argp1);
24140 if (swig_obj[1]) {
24141 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24142 if (!SWIG_IsOK(res2)) {
24143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24144 }
1bd55598
RD
24145 if (!argp2) {
24146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24147 }
1bd55598
RD
24148 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24149 }
24150 if (swig_obj[2]) {
24151 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24152 if (!SWIG_IsOK(ecode3)) {
24153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24154 }
24155 arg3 = static_cast< int >(val3);
24156 }
24157 {
24158 if (!wxPyCheckForApp()) SWIG_fail;
24159 PyThreadState* __tstate = wxPyBeginAllowThreads();
24160 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24161 wxPyEndAllowThreads(__tstate);
24162 if (PyErr_Occurred()) SWIG_fail;
24163 }
24164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24165 return resultobj;
24166fail:
24167 return NULL;
24168}
24169
24170
24171SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24172 PyObject *resultobj = 0;
24173 wxDC *arg1 = (wxDC *) 0 ;
24174 wxSize *arg2 = 0 ;
24175 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24176 wxBufferedDC *result = 0 ;
24177 void *argp1 = 0 ;
24178 int res1 = 0 ;
24179 wxSize temp2 ;
24180 int val3 ;
24181 int ecode3 = 0 ;
24182
24183 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24185 if (!SWIG_IsOK(res1)) {
24186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24187 }
24188 arg1 = reinterpret_cast< wxDC * >(argp1);
24189 {
24190 arg2 = &temp2;
24191 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24192 }
24193 if (swig_obj[2]) {
24194 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24195 if (!SWIG_IsOK(ecode3)) {
24196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24197 }
24198 arg3 = static_cast< int >(val3);
24199 }
24200 {
24201 if (!wxPyCheckForApp()) SWIG_fail;
24202 PyThreadState* __tstate = wxPyBeginAllowThreads();
24203 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24204 wxPyEndAllowThreads(__tstate);
24205 if (PyErr_Occurred()) SWIG_fail;
24206 }
24207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24208 return resultobj;
24209fail:
24210 return NULL;
24211}
24212
24213
24214SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24215 int argc;
8e99bda9 24216 PyObject *argv[4];
1bd55598 24217
8e99bda9 24218 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24219 --argc;
24220 if ((argc >= 1) && (argc <= 3)) {
24221 int _v = 0;
24222 if (argc > 1) {
24223 {
24224 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24225 _v = SWIG_CheckState(res);
24226 }
24227 if (!_v) goto check_1;
36ed4f51 24228 }
1bd55598
RD
24229 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24230 }
24231check_1:
24232
24233 if ((argc >= 2) && (argc <= 3)) {
24234 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24235 }
24236
24237fail:
24238 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24239 return NULL;
24240}
24241
24242
24243SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24244 PyObject *resultobj = 0;
24245 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24246 void *argp1 = 0 ;
24247 int res1 = 0 ;
24248 PyObject *swig_obj[1] ;
24249
24250 if (!args) SWIG_fail;
24251 swig_obj[0] = args;
24252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24253 if (!SWIG_IsOK(res1)) {
24254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24255 }
24256 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24257 {
24258 PyThreadState* __tstate = wxPyBeginAllowThreads();
24259 delete arg1;
24260
24261 wxPyEndAllowThreads(__tstate);
24262 if (PyErr_Occurred()) SWIG_fail;
24263 }
24264 resultobj = SWIG_Py_Void();
24265 return resultobj;
24266fail:
24267 return NULL;
24268}
24269
24270
24271SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24272 PyObject *resultobj = 0;
24273 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24274 void *argp1 = 0 ;
24275 int res1 = 0 ;
24276 PyObject *swig_obj[1] ;
24277
24278 if (!args) SWIG_fail;
24279 swig_obj[0] = args;
24280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24281 if (!SWIG_IsOK(res1)) {
24282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24283 }
24284 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24285 {
24286 PyThreadState* __tstate = wxPyBeginAllowThreads();
24287 (arg1)->UnMask();
24288 wxPyEndAllowThreads(__tstate);
24289 if (PyErr_Occurred()) SWIG_fail;
24290 }
24291 resultobj = SWIG_Py_Void();
24292 return resultobj;
24293fail:
24294 return NULL;
24295}
24296
24297
24298SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24299 PyObject *obj;
24300 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24301 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24302 return SWIG_Py_Void();
24303}
24304
24305SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24306 return SWIG_Python_InitShadowInstance(args);
24307}
24308
24309SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24310 PyObject *resultobj = 0;
24311 wxWindow *arg1 = (wxWindow *) 0 ;
24312 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24313 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24314 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24315 wxBufferedPaintDC *result = 0 ;
24316 void *argp1 = 0 ;
24317 int res1 = 0 ;
24318 void *argp2 = 0 ;
24319 int res2 = 0 ;
24320 int val3 ;
24321 int ecode3 = 0 ;
24322 PyObject * obj0 = 0 ;
24323 PyObject * obj1 = 0 ;
24324 PyObject * obj2 = 0 ;
24325 char * kwnames[] = {
24326 (char *) "window",(char *) "buffer",(char *) "style", NULL
24327 };
24328
24329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24331 if (!SWIG_IsOK(res1)) {
24332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24333 }
24334 arg1 = reinterpret_cast< wxWindow * >(argp1);
24335 if (obj1) {
24336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24337 if (!SWIG_IsOK(res2)) {
24338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24339 }
1bd55598
RD
24340 if (!argp2) {
24341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36ed4f51 24342 }
1bd55598
RD
24343 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24344 }
24345 if (obj2) {
24346 ecode3 = SWIG_AsVal_int(obj2, &val3);
24347 if (!SWIG_IsOK(ecode3)) {
24348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24349 }
24350 arg3 = static_cast< int >(val3);
24351 }
24352 {
24353 if (!wxPyCheckForApp()) SWIG_fail;
24354 PyThreadState* __tstate = wxPyBeginAllowThreads();
24355 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24356 wxPyEndAllowThreads(__tstate);
24357 if (PyErr_Occurred()) SWIG_fail;
24358 }
24359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24360 return resultobj;
24361fail:
24362 return NULL;
24363}
24364
24365
24366SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24367 PyObject *obj;
24368 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24369 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24370 return SWIG_Py_Void();
24371}
24372
24373SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24374 return SWIG_Python_InitShadowInstance(args);
24375}
24376
24f6c4e8 24377SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
24378 PyObject *resultobj = 0;
24379 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24380 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
24381 void *argp1 = 0 ;
24382 int res1 = 0 ;
24383 PyObject * obj0 = 0 ;
24384 char * kwnames[] = {
24385 (char *) "win", NULL
24386 };
24387
24f6c4e8 24388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
24389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24390 if (!SWIG_IsOK(res1)) {
24f6c4e8 24391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
24392 }
24393 arg1 = reinterpret_cast< wxWindow * >(argp1);
24394 {
1bd55598 24395 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24396 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
24397 wxPyEndAllowThreads(__tstate);
24398 if (PyErr_Occurred()) SWIG_fail;
24399 }
24f6c4e8 24400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
24401 return resultobj;
24402fail:
24403 return NULL;
24404}
24405
24406
24f6c4e8 24407SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24408 PyObject *obj;
24409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24410 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
24411 return SWIG_Py_Void();
24412}
24413
24f6c4e8 24414SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24415 return SWIG_Python_InitShadowInstance(args);
24416}
24417
8e99bda9
RD
24418SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24419 PyObject *resultobj = 0;
24420 wxWindow *arg1 = (wxWindow *) 0 ;
24421 wxDC *result = 0 ;
24422 void *argp1 = 0 ;
24423 int res1 = 0 ;
24424 PyObject * obj0 = 0 ;
24425 char * kwnames[] = {
24426 (char *) "window", NULL
24427 };
24428
24429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24431 if (!SWIG_IsOK(res1)) {
24432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24433 }
24434 arg1 = reinterpret_cast< wxWindow * >(argp1);
24435 {
24436 PyThreadState* __tstate = wxPyBeginAllowThreads();
24437 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24438 wxPyEndAllowThreads(__tstate);
24439 if (PyErr_Occurred()) SWIG_fail;
24440 }
24441 {
24442 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24443 }
24444 return resultobj;
24445fail:
24446 return NULL;
24447}
24448
24449
1bd55598
RD
24450SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24451 PyObject *resultobj = 0;
24452 wxDC *arg1 = 0 ;
24453 bool arg2 ;
24454 wxMirrorDC *result = 0 ;
24455 void *argp1 = 0 ;
24456 int res1 = 0 ;
24457 bool val2 ;
24458 int ecode2 = 0 ;
24459 PyObject * obj0 = 0 ;
24460 PyObject * obj1 = 0 ;
24461 char * kwnames[] = {
24462 (char *) "dc",(char *) "mirror", NULL
24463 };
24464
24465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24466 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24467 if (!SWIG_IsOK(res1)) {
24468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24469 }
24470 if (!argp1) {
24471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24472 }
24473 arg1 = reinterpret_cast< wxDC * >(argp1);
24474 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24475 if (!SWIG_IsOK(ecode2)) {
24476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24477 }
24478 arg2 = static_cast< bool >(val2);
24479 {
24480 if (!wxPyCheckForApp()) SWIG_fail;
24481 PyThreadState* __tstate = wxPyBeginAllowThreads();
24482 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24483 wxPyEndAllowThreads(__tstate);
24484 if (PyErr_Occurred()) SWIG_fail;
24485 }
24486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24487 return resultobj;
24488fail:
24489 return NULL;
24490}
24491
24492
24493SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24494 PyObject *obj;
24495 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24496 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24497 return SWIG_Py_Void();
24498}
24499
24500SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24501 return SWIG_Python_InitShadowInstance(args);
24502}
24503
24504SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24505 PyObject *resultobj = 0;
24506 wxPrintData *arg1 = 0 ;
24507 wxPostScriptDC *result = 0 ;
24508 void *argp1 = 0 ;
24509 int res1 = 0 ;
24510 PyObject * obj0 = 0 ;
24511 char * kwnames[] = {
24512 (char *) "printData", NULL
24513 };
24514
24515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24516 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24517 if (!SWIG_IsOK(res1)) {
24518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24519 }
24520 if (!argp1) {
24521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24522 }
24523 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24524 {
24525 if (!wxPyCheckForApp()) SWIG_fail;
24526 PyThreadState* __tstate = wxPyBeginAllowThreads();
24527 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24528 wxPyEndAllowThreads(__tstate);
24529 if (PyErr_Occurred()) SWIG_fail;
24530 }
24531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24532 return resultobj;
24533fail:
24534 return NULL;
24535}
24536
24537
24538SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24539 PyObject *resultobj = 0;
24540 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24541 wxPrintData *result = 0 ;
24542 void *argp1 = 0 ;
24543 int res1 = 0 ;
24544 PyObject *swig_obj[1] ;
24545
24546 if (!args) SWIG_fail;
24547 swig_obj[0] = args;
24548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24549 if (!SWIG_IsOK(res1)) {
24550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24551 }
24552 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24553 {
24554 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24555 {
1bd55598
RD
24556 wxPrintData &_result_ref = (arg1)->GetPrintData();
24557 result = (wxPrintData *) &_result_ref;
e2950dbb 24558 }
1bd55598
RD
24559 wxPyEndAllowThreads(__tstate);
24560 if (PyErr_Occurred()) SWIG_fail;
24561 }
24562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24563 return resultobj;
24564fail:
24565 return NULL;
24566}
24567
24568
24569SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24570 PyObject *resultobj = 0;
24571 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24572 wxPrintData *arg2 = 0 ;
24573 void *argp1 = 0 ;
24574 int res1 = 0 ;
24575 void *argp2 = 0 ;
24576 int res2 = 0 ;
24577 PyObject * obj0 = 0 ;
24578 PyObject * obj1 = 0 ;
24579 char * kwnames[] = {
24580 (char *) "self",(char *) "data", NULL
24581 };
24582
24583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24585 if (!SWIG_IsOK(res1)) {
24586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24587 }
24588 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24589 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24590 if (!SWIG_IsOK(res2)) {
24591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24592 }
24593 if (!argp2) {
24594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24595 }
24596 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24597 {
24598 PyThreadState* __tstate = wxPyBeginAllowThreads();
24599 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24600 wxPyEndAllowThreads(__tstate);
24601 if (PyErr_Occurred()) SWIG_fail;
24602 }
24603 resultobj = SWIG_Py_Void();
24604 return resultobj;
24605fail:
24606 return NULL;
24607}
24608
24609
24610SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24611 PyObject *resultobj = 0;
24612 int arg1 ;
24613 int val1 ;
24614 int ecode1 = 0 ;
24615 PyObject * obj0 = 0 ;
24616 char * kwnames[] = {
24617 (char *) "ppi", NULL
24618 };
24619
24620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24621 ecode1 = SWIG_AsVal_int(obj0, &val1);
24622 if (!SWIG_IsOK(ecode1)) {
24623 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24624 }
24625 arg1 = static_cast< int >(val1);
24626 {
24627 PyThreadState* __tstate = wxPyBeginAllowThreads();
24628 wxPostScriptDC::SetResolution(arg1);
24629 wxPyEndAllowThreads(__tstate);
24630 if (PyErr_Occurred()) SWIG_fail;
24631 }
24632 resultobj = SWIG_Py_Void();
24633 return resultobj;
24634fail:
24635 return NULL;
24636}
24637
24638
24639SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24640 PyObject *resultobj = 0;
24641 int result;
24642
24643 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24644 {
24645 PyThreadState* __tstate = wxPyBeginAllowThreads();
24646 result = (int)wxPostScriptDC::GetResolution();
24647 wxPyEndAllowThreads(__tstate);
24648 if (PyErr_Occurred()) SWIG_fail;
24649 }
24650 resultobj = SWIG_From_int(static_cast< int >(result));
24651 return resultobj;
24652fail:
24653 return NULL;
24654}
24655
24656
24657SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24658 PyObject *obj;
24659 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24660 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24661 return SWIG_Py_Void();
24662}
24663
24664SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24665 return SWIG_Python_InitShadowInstance(args);
24666}
24667
24668SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24669 PyObject *resultobj = 0;
24670 wxString const &arg1_defvalue = wxPyEmptyString ;
24671 wxString *arg1 = (wxString *) &arg1_defvalue ;
24672 wxMetaFile *result = 0 ;
24673 bool temp1 = false ;
24674 PyObject * obj0 = 0 ;
24675 char * kwnames[] = {
24676 (char *) "filename", NULL
24677 };
24678
24679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24680 if (obj0) {
36ed4f51 24681 {
1bd55598
RD
24682 arg1 = wxString_in_helper(obj0);
24683 if (arg1 == NULL) SWIG_fail;
24684 temp1 = true;
36ed4f51 24685 }
1bd55598
RD
24686 }
24687 {
24688 if (!wxPyCheckForApp()) SWIG_fail;
24689 PyThreadState* __tstate = wxPyBeginAllowThreads();
24690 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24691 wxPyEndAllowThreads(__tstate);
24692 if (PyErr_Occurred()) SWIG_fail;
24693 }
24694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24695 {
24696 if (temp1)
24697 delete arg1;
24698 }
24699 return resultobj;
24700fail:
24701 {
24702 if (temp1)
24703 delete arg1;
24704 }
24705 return NULL;
24706}
24707
24708
24709SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24710 PyObject *resultobj = 0;
24711 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24712 void *argp1 = 0 ;
24713 int res1 = 0 ;
24714 PyObject *swig_obj[1] ;
24715
24716 if (!args) SWIG_fail;
24717 swig_obj[0] = args;
24718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24719 if (!SWIG_IsOK(res1)) {
24720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24721 }
24722 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24723 {
24724 PyThreadState* __tstate = wxPyBeginAllowThreads();
24725 delete arg1;
24726
24727 wxPyEndAllowThreads(__tstate);
24728 if (PyErr_Occurred()) SWIG_fail;
24729 }
24730 resultobj = SWIG_Py_Void();
24731 return resultobj;
24732fail:
24733 return NULL;
24734}
24735
24736
b39fe951 24737SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24738 PyObject *resultobj = 0;
24739 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24740 bool result;
24741 void *argp1 = 0 ;
24742 int res1 = 0 ;
24743 PyObject *swig_obj[1] ;
24744
24745 if (!args) SWIG_fail;
24746 swig_obj[0] = args;
24747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24748 if (!SWIG_IsOK(res1)) {
b39fe951 24749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
24750 }
24751 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24752 {
24753 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 24754 result = (bool)(arg1)->IsOk();
1bd55598
RD
24755 wxPyEndAllowThreads(__tstate);
24756 if (PyErr_Occurred()) SWIG_fail;
24757 }
24758 {
24759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24760 }
24761 return resultobj;
24762fail:
24763 return NULL;
24764}
24765
24766
24767SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24768 PyObject *resultobj = 0;
24769 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24770 int arg2 = (int) 0 ;
24771 int arg3 = (int) 0 ;
24772 bool result;
24773 void *argp1 = 0 ;
24774 int res1 = 0 ;
24775 int val2 ;
24776 int ecode2 = 0 ;
24777 int val3 ;
24778 int ecode3 = 0 ;
24779 PyObject * obj0 = 0 ;
24780 PyObject * obj1 = 0 ;
24781 PyObject * obj2 = 0 ;
24782 char * kwnames[] = {
24783 (char *) "self",(char *) "width",(char *) "height", NULL
24784 };
24785
24786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24788 if (!SWIG_IsOK(res1)) {
24789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24790 }
24791 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24792 if (obj1) {
24793 ecode2 = SWIG_AsVal_int(obj1, &val2);
24794 if (!SWIG_IsOK(ecode2)) {
24795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24796 }
24797 arg2 = static_cast< int >(val2);
24798 }
24799 if (obj2) {
24800 ecode3 = SWIG_AsVal_int(obj2, &val3);
24801 if (!SWIG_IsOK(ecode3)) {
24802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24803 }
24804 arg3 = static_cast< int >(val3);
24805 }
24806 {
24807 PyThreadState* __tstate = wxPyBeginAllowThreads();
24808 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24809 wxPyEndAllowThreads(__tstate);
24810 if (PyErr_Occurred()) SWIG_fail;
24811 }
24812 {
24813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24814 }
24815 return resultobj;
24816fail:
24817 return NULL;
24818}
24819
24820
24821SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24822 PyObject *resultobj = 0;
24823 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24824 wxSize result;
24825 void *argp1 = 0 ;
24826 int res1 = 0 ;
24827 PyObject *swig_obj[1] ;
24828
24829 if (!args) SWIG_fail;
24830 swig_obj[0] = args;
24831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24832 if (!SWIG_IsOK(res1)) {
24833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24834 }
24835 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24836 {
24837 PyThreadState* __tstate = wxPyBeginAllowThreads();
24838 result = (arg1)->GetSize();
24839 wxPyEndAllowThreads(__tstate);
24840 if (PyErr_Occurred()) SWIG_fail;
24841 }
24842 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24843 return resultobj;
24844fail:
24845 return NULL;
24846}
24847
24848
24849SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24850 PyObject *resultobj = 0;
24851 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24852 int result;
24853 void *argp1 = 0 ;
24854 int res1 = 0 ;
24855 PyObject *swig_obj[1] ;
24856
24857 if (!args) SWIG_fail;
24858 swig_obj[0] = args;
24859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24860 if (!SWIG_IsOK(res1)) {
24861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24862 }
24863 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24864 {
24865 PyThreadState* __tstate = wxPyBeginAllowThreads();
24866 result = (int)(arg1)->GetWidth();
24867 wxPyEndAllowThreads(__tstate);
24868 if (PyErr_Occurred()) SWIG_fail;
24869 }
24870 resultobj = SWIG_From_int(static_cast< int >(result));
24871 return resultobj;
24872fail:
24873 return NULL;
24874}
24875
24876
24877SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24878 PyObject *resultobj = 0;
24879 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24880 int result;
24881 void *argp1 = 0 ;
24882 int res1 = 0 ;
24883 PyObject *swig_obj[1] ;
24884
24885 if (!args) SWIG_fail;
24886 swig_obj[0] = args;
24887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24888 if (!SWIG_IsOK(res1)) {
24889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24890 }
24891 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24892 {
24893 PyThreadState* __tstate = wxPyBeginAllowThreads();
24894 result = (int)(arg1)->GetHeight();
24895 wxPyEndAllowThreads(__tstate);
24896 if (PyErr_Occurred()) SWIG_fail;
24897 }
24898 resultobj = SWIG_From_int(static_cast< int >(result));
24899 return resultobj;
24900fail:
24901 return NULL;
24902}
24903
24904
24905SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24906 PyObject *obj;
24907 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24908 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24909 return SWIG_Py_Void();
24910}
24911
24912SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24913 return SWIG_Python_InitShadowInstance(args);
24914}
24915
24916SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24917 PyObject *resultobj = 0;
24918 wxString const &arg1_defvalue = wxPyEmptyString ;
24919 wxString *arg1 = (wxString *) &arg1_defvalue ;
24920 int arg2 = (int) 0 ;
24921 int arg3 = (int) 0 ;
24922 wxString const &arg4_defvalue = wxPyEmptyString ;
24923 wxString *arg4 = (wxString *) &arg4_defvalue ;
24924 wxMetaFileDC *result = 0 ;
24925 bool temp1 = false ;
24926 int val2 ;
24927 int ecode2 = 0 ;
24928 int val3 ;
24929 int ecode3 = 0 ;
24930 bool temp4 = false ;
24931 PyObject * obj0 = 0 ;
24932 PyObject * obj1 = 0 ;
24933 PyObject * obj2 = 0 ;
24934 PyObject * obj3 = 0 ;
24935 char * kwnames[] = {
24936 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24937 };
24938
24939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24940 if (obj0) {
36ed4f51 24941 {
1bd55598
RD
24942 arg1 = wxString_in_helper(obj0);
24943 if (arg1 == NULL) SWIG_fail;
24944 temp1 = true;
36ed4f51 24945 }
1bd55598
RD
24946 }
24947 if (obj1) {
24948 ecode2 = SWIG_AsVal_int(obj1, &val2);
24949 if (!SWIG_IsOK(ecode2)) {
24950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24951 }
24952 arg2 = static_cast< int >(val2);
24953 }
24954 if (obj2) {
24955 ecode3 = SWIG_AsVal_int(obj2, &val3);
24956 if (!SWIG_IsOK(ecode3)) {
24957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24958 }
24959 arg3 = static_cast< int >(val3);
24960 }
24961 if (obj3) {
36ed4f51 24962 {
1bd55598
RD
24963 arg4 = wxString_in_helper(obj3);
24964 if (arg4 == NULL) SWIG_fail;
24965 temp4 = true;
36ed4f51 24966 }
1bd55598
RD
24967 }
24968 {
24969 if (!wxPyCheckForApp()) SWIG_fail;
24970 PyThreadState* __tstate = wxPyBeginAllowThreads();
24971 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24972 wxPyEndAllowThreads(__tstate);
24973 if (PyErr_Occurred()) SWIG_fail;
24974 }
24975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24976 {
24977 if (temp1)
24978 delete arg1;
24979 }
24980 {
24981 if (temp4)
24982 delete arg4;
24983 }
24984 return resultobj;
24985fail:
24986 {
24987 if (temp1)
24988 delete arg1;
24989 }
24990 {
24991 if (temp4)
24992 delete arg4;
24993 }
24994 return NULL;
24995}
24996
24997
24998SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24999 PyObject *resultobj = 0;
25000 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25001 wxMetaFile *result = 0 ;
25002 void *argp1 = 0 ;
25003 int res1 = 0 ;
25004 PyObject *swig_obj[1] ;
25005
25006 if (!args) SWIG_fail;
25007 swig_obj[0] = args;
25008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25009 if (!SWIG_IsOK(res1)) {
25010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25011 }
25012 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25013 {
25014 PyThreadState* __tstate = wxPyBeginAllowThreads();
25015 result = (wxMetaFile *)(arg1)->Close();
25016 wxPyEndAllowThreads(__tstate);
25017 if (PyErr_Occurred()) SWIG_fail;
25018 }
25019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25020 return resultobj;
25021fail:
25022 return NULL;
25023}
25024
25025
25026SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25027 PyObject *obj;
25028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25029 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25030 return SWIG_Py_Void();
25031}
25032
25033SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25034 return SWIG_Python_InitShadowInstance(args);
25035}
25036
25037SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25038 PyObject *resultobj = 0;
25039 wxPrintData *arg1 = 0 ;
25040 wxPrinterDC *result = 0 ;
25041 void *argp1 = 0 ;
25042 int res1 = 0 ;
25043 PyObject * obj0 = 0 ;
25044 char * kwnames[] = {
25045 (char *) "printData", NULL
25046 };
25047
25048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25049 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25050 if (!SWIG_IsOK(res1)) {
25051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25052 }
25053 if (!argp1) {
25054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25055 }
25056 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25057 {
25058 if (!wxPyCheckForApp()) SWIG_fail;
25059 PyThreadState* __tstate = wxPyBeginAllowThreads();
25060 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25061 wxPyEndAllowThreads(__tstate);
25062 if (PyErr_Occurred()) SWIG_fail;
25063 }
25064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25065 return resultobj;
25066fail:
25067 return NULL;
25068}
25069
25070
25071SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25072 PyObject *obj;
25073 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25074 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25075 return SWIG_Py_Void();
25076}
25077
25078SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25079 return SWIG_Python_InitShadowInstance(args);
25080}
25081
70d7cb34
RD
25082SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25083 PyObject *resultobj = 0;
25084 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25085 wxGraphicsObject *result = 0 ;
25086 void *argp1 = 0 ;
25087 int res1 = 0 ;
25088 PyObject * obj0 = 0 ;
25089 char * kwnames[] = {
25090 (char *) "renderer", NULL
25091 };
25092
25093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25094 if (obj0) {
25095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25096 if (!SWIG_IsOK(res1)) {
25097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25098 }
25099 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25100 }
25101 {
25102 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25103 if (PyErr_Occurred()) SWIG_fail;
25104 }
25105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25106 return resultobj;
25107fail:
25108 return NULL;
25109}
25110
25111
25112SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25113 PyObject *resultobj = 0;
25114 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25115 void *argp1 = 0 ;
25116 int res1 = 0 ;
25117 PyObject *swig_obj[1] ;
25118
25119 if (!args) SWIG_fail;
25120 swig_obj[0] = args;
25121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25122 if (!SWIG_IsOK(res1)) {
25123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25124 }
25125 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25126 {
25127 delete arg1;
25128
25129 if (PyErr_Occurred()) SWIG_fail;
25130 }
25131 resultobj = SWIG_Py_Void();
25132 return resultobj;
25133fail:
25134 return NULL;
25135}
25136
25137
25138SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25139 PyObject *resultobj = 0;
25140 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25141 bool result;
25142 void *argp1 = 0 ;
25143 int res1 = 0 ;
25144 PyObject *swig_obj[1] ;
25145
25146 if (!args) SWIG_fail;
25147 swig_obj[0] = args;
25148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25149 if (!SWIG_IsOK(res1)) {
25150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25151 }
25152 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25153 {
25154 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25155 if (PyErr_Occurred()) SWIG_fail;
25156 }
25157 {
25158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25159 }
25160 return resultobj;
25161fail:
25162 return NULL;
25163}
25164
25165
25166SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25167 PyObject *resultobj = 0;
25168 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25169 wxGraphicsRenderer *result = 0 ;
25170 void *argp1 = 0 ;
25171 int res1 = 0 ;
25172 PyObject *swig_obj[1] ;
25173
25174 if (!args) SWIG_fail;
25175 swig_obj[0] = args;
25176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25177 if (!SWIG_IsOK(res1)) {
25178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25179 }
25180 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25181 {
25182 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25183 if (PyErr_Occurred()) SWIG_fail;
25184 }
25185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25186 return resultobj;
25187fail:
25188 return NULL;
25189}
25190
25191
25192SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25193 PyObject *obj;
25194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25195 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25196 return SWIG_Py_Void();
25197}
25198
25199SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25200 return SWIG_Python_InitShadowInstance(args);
25201}
25202
25203SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25204 PyObject *resultobj = 0;
25205 wxGraphicsPen *result = 0 ;
25206
25207 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25208 {
25209 result = (wxGraphicsPen *)new wxGraphicsPen();
25210 if (PyErr_Occurred()) SWIG_fail;
25211 }
25212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25213 return resultobj;
25214fail:
25215 return NULL;
25216}
25217
25218
25219SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25220 PyObject *resultobj = 0;
25221 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25222 void *argp1 = 0 ;
25223 int res1 = 0 ;
25224 PyObject *swig_obj[1] ;
25225
25226 if (!args) SWIG_fail;
25227 swig_obj[0] = args;
25228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25229 if (!SWIG_IsOK(res1)) {
25230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25231 }
25232 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25233 {
25234 delete arg1;
25235
25236 if (PyErr_Occurred()) SWIG_fail;
25237 }
25238 resultobj = SWIG_Py_Void();
25239 return resultobj;
25240fail:
25241 return NULL;
25242}
25243
25244
25245SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25246 PyObject *obj;
25247 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25248 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25249 return SWIG_Py_Void();
25250}
25251
25252SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25253 return SWIG_Python_InitShadowInstance(args);
25254}
25255
25256SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25257 PyObject *resultobj = 0;
25258 wxGraphicsBrush *result = 0 ;
25259
25260 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25261 {
25262 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25266 return resultobj;
25267fail:
25268 return NULL;
25269}
25270
25271
25272SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25273 PyObject *resultobj = 0;
25274 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25275 void *argp1 = 0 ;
25276 int res1 = 0 ;
25277 PyObject *swig_obj[1] ;
25278
25279 if (!args) SWIG_fail;
25280 swig_obj[0] = args;
25281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25282 if (!SWIG_IsOK(res1)) {
25283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25284 }
25285 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25286 {
25287 delete arg1;
25288
25289 if (PyErr_Occurred()) SWIG_fail;
25290 }
25291 resultobj = SWIG_Py_Void();
25292 return resultobj;
25293fail:
25294 return NULL;
25295}
25296
25297
25298SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25299 PyObject *obj;
25300 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25301 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25302 return SWIG_Py_Void();
25303}
25304
25305SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25306 return SWIG_Python_InitShadowInstance(args);
25307}
25308
25309SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25310 PyObject *resultobj = 0;
25311 wxGraphicsFont *result = 0 ;
25312
25313 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25314 {
25315 result = (wxGraphicsFont *)new wxGraphicsFont();
25316 if (PyErr_Occurred()) SWIG_fail;
25317 }
25318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25319 return resultobj;
25320fail:
25321 return NULL;
25322}
25323
25324
25325SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25326 PyObject *resultobj = 0;
25327 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25328 void *argp1 = 0 ;
25329 int res1 = 0 ;
25330 PyObject *swig_obj[1] ;
25331
25332 if (!args) SWIG_fail;
25333 swig_obj[0] = args;
25334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25335 if (!SWIG_IsOK(res1)) {
25336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25337 }
25338 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25339 {
25340 delete arg1;
25341
25342 if (PyErr_Occurred()) SWIG_fail;
25343 }
25344 resultobj = SWIG_Py_Void();
25345 return resultobj;
25346fail:
25347 return NULL;
25348}
25349
25350
25351SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25352 PyObject *obj;
25353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25354 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25355 return SWIG_Py_Void();
25356}
25357
25358SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25359 return SWIG_Python_InitShadowInstance(args);
25360}
25361
25362SWIGINTERN int NullGraphicsPen_set(PyObject *) {
25363 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
25364 return 1;
25365}
25366
25367
25368SWIGINTERN PyObject *NullGraphicsPen_get(void) {
25369 PyObject *pyobj = 0;
25370
25371 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
25372 return pyobj;
25373}
25374
25375
25376SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
25377 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
25378 return 1;
25379}
25380
25381
25382SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
25383 PyObject *pyobj = 0;
25384
25385 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
25386 return pyobj;
25387}
25388
25389
25390SWIGINTERN int NullGraphicsFont_set(PyObject *) {
25391 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
25392 return 1;
25393}
25394
25395
25396SWIGINTERN PyObject *NullGraphicsFont_get(void) {
25397 PyObject *pyobj = 0;
25398
25399 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
25400 return pyobj;
25401}
25402
25403
72ef6efb 25404SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25405 PyObject *resultobj = 0;
72ef6efb 25406 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
1bd55598
RD
25407 void *argp1 = 0 ;
25408 int res1 = 0 ;
25409 PyObject *swig_obj[1] ;
25410
25411 if (!args) SWIG_fail;
25412 swig_obj[0] = args;
72ef6efb 25413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
1bd55598 25414 if (!SWIG_IsOK(res1)) {
72ef6efb 25415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 25416 }
72ef6efb 25417 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
1bd55598 25418 {
1bd55598
RD
25419 delete arg1;
25420
1bd55598
RD
25421 if (PyErr_Occurred()) SWIG_fail;
25422 }
25423 resultobj = SWIG_Py_Void();
25424 return resultobj;
25425fail:
25426 return NULL;
25427}
25428
25429
70d7cb34
RD
25430SWIGINTERN PyObject *_wrap_GraphicsPath_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25431 PyObject *resultobj = 0;
25432 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25433 wxGraphicsPath *result = 0 ;
25434 void *argp1 = 0 ;
25435 int res1 = 0 ;
25436 PyObject *swig_obj[1] ;
25437
25438 if (!args) SWIG_fail;
25439 swig_obj[0] = args;
25440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25441 if (!SWIG_IsOK(res1)) {
25442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Clone" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
25443 }
25444 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25445 {
25446 result = (wxGraphicsPath *)((wxGraphicsPath const *)arg1)->Clone();
25447 if (PyErr_Occurred()) SWIG_fail;
25448 }
25449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25450 return resultobj;
25451fail:
25452 return NULL;
25453}
25454
25455
25456SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598 25457 PyObject *resultobj = 0;
72ef6efb
RD
25458 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25459 wxDouble arg2 ;
25460 wxDouble arg3 ;
1bd55598
RD
25461 void *argp1 = 0 ;
25462 int res1 = 0 ;
72ef6efb
RD
25463 double val2 ;
25464 int ecode2 = 0 ;
25465 double val3 ;
25466 int ecode3 = 0 ;
1bd55598 25467
70d7cb34
RD
25468 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
25469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
1bd55598 25470 if (!SWIG_IsOK(res1)) {
72ef6efb 25471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 25472 }
72ef6efb 25473 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 25474 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
72ef6efb
RD
25475 if (!SWIG_IsOK(ecode2)) {
25476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25477 }
25478 arg2 = static_cast< wxDouble >(val2);
70d7cb34 25479 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
72ef6efb
RD
25480 if (!SWIG_IsOK(ecode3)) {
25481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25482 }
25483 arg3 = static_cast< wxDouble >(val3);
1bd55598 25484 {
72ef6efb 25485 (arg1)->MoveToPoint(arg2,arg3);
1bd55598
RD
25486 if (PyErr_Occurred()) SWIG_fail;
25487 }
72ef6efb 25488 resultobj = SWIG_Py_Void();
1bd55598
RD
25489 return resultobj;
25490fail:
25491 return NULL;
25492}
25493
25494
70d7cb34
RD
25495SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25496 PyObject *resultobj = 0;
25497 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25498 wxPoint2D *arg2 = 0 ;
25499 void *argp1 = 0 ;
25500 int res1 = 0 ;
25501 wxPoint2D temp2 ;
25502
25503 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25505 if (!SWIG_IsOK(res1)) {
25506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25507 }
25508 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25509 {
25510 arg2 = &temp2;
25511 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
25512 }
25513 {
25514 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
25515 if (PyErr_Occurred()) SWIG_fail;
25516 }
25517 resultobj = SWIG_Py_Void();
25518 return resultobj;
25519fail:
25520 return NULL;
25521}
25522
25523
25524SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
25525 int argc;
25526 PyObject *argv[4];
25527
25528 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
25529 --argc;
25530 if (argc == 2) {
25531 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
25532 }
25533 if (argc == 3) {
25534 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
25535 }
25536
25537fail:
25538 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
25539 return NULL;
25540}
25541
25542
25543SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598 25544 PyObject *resultobj = 0;
72ef6efb
RD
25545 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25546 wxDouble arg2 ;
25547 wxDouble arg3 ;
1bd55598
RD
25548 void *argp1 = 0 ;
25549 int res1 = 0 ;
72ef6efb
RD
25550 double val2 ;
25551 int ecode2 = 0 ;
25552 double val3 ;
25553 int ecode3 = 0 ;
1bd55598 25554
70d7cb34
RD
25555 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
25556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
1bd55598 25557 if (!SWIG_IsOK(res1)) {
72ef6efb 25558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
1bd55598 25559 }
72ef6efb 25560 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 25561 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
72ef6efb
RD
25562 if (!SWIG_IsOK(ecode2)) {
25563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25564 }
25565 arg2 = static_cast< wxDouble >(val2);
70d7cb34 25566 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
72ef6efb
RD
25567 if (!SWIG_IsOK(ecode3)) {
25568 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25569 }
25570 arg3 = static_cast< wxDouble >(val3);
1bd55598 25571 {
72ef6efb 25572 (arg1)->AddLineToPoint(arg2,arg3);
1bd55598
RD
25573 if (PyErr_Occurred()) SWIG_fail;
25574 }
72ef6efb 25575 resultobj = SWIG_Py_Void();
1bd55598
RD
25576 return resultobj;
25577fail:
25578 return NULL;
25579}
25580
25581
70d7cb34
RD
25582SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25583 PyObject *resultobj = 0;
25584 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25585 wxPoint2D *arg2 = 0 ;
25586 void *argp1 = 0 ;
25587 int res1 = 0 ;
25588 wxPoint2D temp2 ;
25589
25590 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25592 if (!SWIG_IsOK(res1)) {
25593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25594 }
25595 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25596 {
25597 arg2 = &temp2;
25598 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
25599 }
25600 {
25601 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
25602 if (PyErr_Occurred()) SWIG_fail;
25603 }
25604 resultobj = SWIG_Py_Void();
25605 return resultobj;
25606fail:
25607 return NULL;
25608}
25609
25610
25611SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
25612 int argc;
25613 PyObject *argv[4];
25614
25615 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
25616 --argc;
25617 if (argc == 2) {
25618 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
25619 }
25620 if (argc == 3) {
25621 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
25622 }
25623
25624fail:
25625 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
25626 return NULL;
25627}
25628
25629
25630SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598 25631 PyObject *resultobj = 0;
72ef6efb
RD
25632 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25633 wxDouble arg2 ;
25634 wxDouble arg3 ;
25635 wxDouble arg4 ;
25636 wxDouble arg5 ;
25637 wxDouble arg6 ;
25638 wxDouble arg7 ;
1bd55598
RD
25639 void *argp1 = 0 ;
25640 int res1 = 0 ;
72ef6efb
RD
25641 double val2 ;
25642 int ecode2 = 0 ;
25643 double val3 ;
25644 int ecode3 = 0 ;
25645 double val4 ;
25646 int ecode4 = 0 ;
25647 double val5 ;
25648 int ecode5 = 0 ;
25649 double val6 ;
25650 int ecode6 = 0 ;
25651 double val7 ;
25652 int ecode7 = 0 ;
72ef6efb 25653
70d7cb34
RD
25654 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
25655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
72ef6efb
RD
25656 if (!SWIG_IsOK(res1)) {
25657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25658 }
25659 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 25660 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
72ef6efb
RD
25661 if (!SWIG_IsOK(ecode2)) {
25662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25663 }
25664 arg2 = static_cast< wxDouble >(val2);
70d7cb34 25665 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
72ef6efb
RD
25666 if (!SWIG_IsOK(ecode3)) {
25667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25668 }
25669 arg3 = static_cast< wxDouble >(val3);
70d7cb34 25670 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
72ef6efb
RD
25671 if (!SWIG_IsOK(ecode4)) {
25672 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25673 }
25674 arg4 = static_cast< wxDouble >(val4);
70d7cb34 25675 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
72ef6efb
RD
25676 if (!SWIG_IsOK(ecode5)) {
25677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25678 }
25679 arg5 = static_cast< wxDouble >(val5);
70d7cb34 25680 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
72ef6efb
RD
25681 if (!SWIG_IsOK(ecode6)) {
25682 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25683 }
25684 arg6 = static_cast< wxDouble >(val6);
70d7cb34 25685 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
72ef6efb
RD
25686 if (!SWIG_IsOK(ecode7)) {
25687 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
25688 }
25689 arg7 = static_cast< wxDouble >(val7);
25690 {
72ef6efb 25691 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
25692 if (PyErr_Occurred()) SWIG_fail;
25693 }
25694 resultobj = SWIG_Py_Void();
25695 return resultobj;
25696fail:
25697 return NULL;
25698}
25699
25700
70d7cb34
RD
25701SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25702 PyObject *resultobj = 0;
25703 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25704 wxPoint2D *arg2 = 0 ;
25705 wxPoint2D *arg3 = 0 ;
25706 wxPoint2D *arg4 = 0 ;
25707 void *argp1 = 0 ;
25708 int res1 = 0 ;
25709 wxPoint2D temp2 ;
25710 wxPoint2D temp3 ;
25711 wxPoint2D temp4 ;
25712
25713 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
25714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25715 if (!SWIG_IsOK(res1)) {
25716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25717 }
25718 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25719 {
25720 arg2 = &temp2;
25721 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
25722 }
25723 {
25724 arg3 = &temp3;
25725 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
25726 }
25727 {
25728 arg4 = &temp4;
25729 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
25730 }
25731 {
25732 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
25733 if (PyErr_Occurred()) SWIG_fail;
25734 }
25735 resultobj = SWIG_Py_Void();
25736 return resultobj;
25737fail:
25738 return NULL;
25739}
25740
25741
25742SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
25743 int argc;
25744 PyObject *argv[8];
25745
25746 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
25747 --argc;
25748 if (argc == 4) {
25749 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
25750 }
25751 if (argc == 7) {
25752 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
25753 }
25754
25755fail:
25756 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
25757 return NULL;
25758}
25759
25760
25761SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25762 PyObject *resultobj = 0;
25763 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25764 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25765 void *argp1 = 0 ;
25766 int res1 = 0 ;
25767 void *argp2 = 0 ;
25768 int res2 = 0 ;
25769 PyObject * obj0 = 0 ;
25770 PyObject * obj1 = 0 ;
25771 char * kwnames[] = {
25772 (char *) "self",(char *) "path", NULL
25773 };
25774
25775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
25776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25777 if (!SWIG_IsOK(res1)) {
25778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25779 }
25780 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25781 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25782 if (!SWIG_IsOK(res2)) {
25783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25784 }
25785 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25786 {
25787 (arg1)->AddPath((wxGraphicsPath const *)arg2);
25788 if (PyErr_Occurred()) SWIG_fail;
25789 }
25790 resultobj = SWIG_Py_Void();
25791 return resultobj;
25792fail:
25793 return NULL;
25794}
25795
25796
72ef6efb
RD
25797SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25798 PyObject *resultobj = 0;
25799 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25800 void *argp1 = 0 ;
25801 int res1 = 0 ;
25802 PyObject *swig_obj[1] ;
25803
25804 if (!args) SWIG_fail;
25805 swig_obj[0] = args;
25806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25807 if (!SWIG_IsOK(res1)) {
25808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25809 }
25810 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25811 {
72ef6efb 25812 (arg1)->CloseSubpath();
72ef6efb
RD
25813 if (PyErr_Occurred()) SWIG_fail;
25814 }
25815 resultobj = SWIG_Py_Void();
25816 return resultobj;
25817fail:
25818 return NULL;
25819}
25820
25821
25822SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25823 PyObject *resultobj = 0;
25824 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25825 wxPoint2D result;
25826 void *argp1 = 0 ;
25827 int res1 = 0 ;
25828 PyObject *swig_obj[1] ;
25829
25830 if (!args) SWIG_fail;
25831 swig_obj[0] = args;
25832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25833 if (!SWIG_IsOK(res1)) {
25834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25835 }
25836 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25837 {
72ef6efb 25838 result = (arg1)->GetCurrentPoint();
72ef6efb
RD
25839 if (PyErr_Occurred()) SWIG_fail;
25840 }
70d7cb34
RD
25841 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
25842 return resultobj;
25843fail:
25844 return NULL;
25845}
25846
25847
25848SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25849 PyObject *resultobj = 0;
25850 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25851 wxDouble arg2 ;
25852 wxDouble arg3 ;
25853 wxDouble arg4 ;
25854 wxDouble arg5 ;
25855 wxDouble arg6 ;
25856 bool arg7 ;
25857 void *argp1 = 0 ;
25858 int res1 = 0 ;
25859 double val2 ;
25860 int ecode2 = 0 ;
25861 double val3 ;
25862 int ecode3 = 0 ;
25863 double val4 ;
25864 int ecode4 = 0 ;
25865 double val5 ;
25866 int ecode5 = 0 ;
25867 double val6 ;
25868 int ecode6 = 0 ;
25869 bool val7 ;
25870 int ecode7 = 0 ;
25871
25872 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
25873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25874 if (!SWIG_IsOK(res1)) {
25875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25876 }
25877 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25878 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25879 if (!SWIG_IsOK(ecode2)) {
25880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
25881 }
25882 arg2 = static_cast< wxDouble >(val2);
25883 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25884 if (!SWIG_IsOK(ecode3)) {
25885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25886 }
25887 arg3 = static_cast< wxDouble >(val3);
25888 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
25889 if (!SWIG_IsOK(ecode4)) {
25890 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25891 }
25892 arg4 = static_cast< wxDouble >(val4);
25893 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
25894 if (!SWIG_IsOK(ecode5)) {
25895 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25896 }
25897 arg5 = static_cast< wxDouble >(val5);
25898 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
25899 if (!SWIG_IsOK(ecode6)) {
25900 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
25901 }
25902 arg6 = static_cast< wxDouble >(val6);
25903 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
25904 if (!SWIG_IsOK(ecode7)) {
25905 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
25906 }
25907 arg7 = static_cast< bool >(val7);
25908 {
25909 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
25910 if (PyErr_Occurred()) SWIG_fail;
25911 }
25912 resultobj = SWIG_Py_Void();
25913 return resultobj;
25914fail:
25915 return NULL;
25916}
25917
25918
25919SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25920 PyObject *resultobj = 0;
25921 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25922 wxPoint2D *arg2 = 0 ;
25923 wxDouble arg3 ;
25924 wxDouble arg4 ;
25925 wxDouble arg5 ;
25926 bool arg6 ;
25927 void *argp1 = 0 ;
25928 int res1 = 0 ;
25929 wxPoint2D temp2 ;
25930 double val3 ;
25931 int ecode3 = 0 ;
25932 double val4 ;
25933 int ecode4 = 0 ;
25934 double val5 ;
25935 int ecode5 = 0 ;
25936 bool val6 ;
25937 int ecode6 = 0 ;
25938
25939 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
25940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25941 if (!SWIG_IsOK(res1)) {
25942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25943 }
25944 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25945 {
25946 arg2 = &temp2;
25947 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
25948 }
25949 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25950 if (!SWIG_IsOK(ecode3)) {
25951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25952 }
25953 arg3 = static_cast< wxDouble >(val3);
25954 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
25955 if (!SWIG_IsOK(ecode4)) {
25956 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25957 }
25958 arg4 = static_cast< wxDouble >(val4);
25959 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
25960 if (!SWIG_IsOK(ecode5)) {
25961 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25962 }
25963 arg5 = static_cast< wxDouble >(val5);
25964 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
25965 if (!SWIG_IsOK(ecode6)) {
25966 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
25967 }
25968 arg6 = static_cast< bool >(val6);
25969 {
25970 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
25971 if (PyErr_Occurred()) SWIG_fail;
25972 }
25973 resultobj = SWIG_Py_Void();
25974 return resultobj;
25975fail:
25976 return NULL;
25977}
25978
25979
25980SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
25981 int argc;
25982 PyObject *argv[8];
25983
25984 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
25985 --argc;
25986 if (argc == 6) {
25987 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
25988 }
25989 if (argc == 7) {
25990 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
25991 }
25992
25993fail:
25994 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
25995 return NULL;
25996}
25997
25998
25999SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26000 PyObject *resultobj = 0;
26001 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26002 wxDouble arg2 ;
26003 wxDouble arg3 ;
26004 wxDouble arg4 ;
26005 wxDouble arg5 ;
26006 void *argp1 = 0 ;
26007 int res1 = 0 ;
26008 double val2 ;
26009 int ecode2 = 0 ;
26010 double val3 ;
26011 int ecode3 = 0 ;
26012 double val4 ;
26013 int ecode4 = 0 ;
26014 double val5 ;
26015 int ecode5 = 0 ;
26016 PyObject * obj0 = 0 ;
26017 PyObject * obj1 = 0 ;
26018 PyObject * obj2 = 0 ;
26019 PyObject * obj3 = 0 ;
26020 PyObject * obj4 = 0 ;
26021 char * kwnames[] = {
26022 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26023 };
26024
26025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26027 if (!SWIG_IsOK(res1)) {
26028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26029 }
26030 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26031 ecode2 = SWIG_AsVal_double(obj1, &val2);
26032 if (!SWIG_IsOK(ecode2)) {
26033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26034 }
26035 arg2 = static_cast< wxDouble >(val2);
26036 ecode3 = SWIG_AsVal_double(obj2, &val3);
26037 if (!SWIG_IsOK(ecode3)) {
26038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26039 }
26040 arg3 = static_cast< wxDouble >(val3);
26041 ecode4 = SWIG_AsVal_double(obj3, &val4);
26042 if (!SWIG_IsOK(ecode4)) {
26043 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26044 }
26045 arg4 = static_cast< wxDouble >(val4);
26046 ecode5 = SWIG_AsVal_double(obj4, &val5);
26047 if (!SWIG_IsOK(ecode5)) {
26048 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26049 }
26050 arg5 = static_cast< wxDouble >(val5);
26051 {
26052 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
26053 if (PyErr_Occurred()) SWIG_fail;
26054 }
26055 resultobj = SWIG_Py_Void();
26056 return resultobj;
26057fail:
26058 return NULL;
26059}
26060
26061
26062SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26063 PyObject *resultobj = 0;
26064 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26065 wxDouble arg2 ;
26066 wxDouble arg3 ;
26067 wxDouble arg4 ;
26068 wxDouble arg5 ;
26069 void *argp1 = 0 ;
26070 int res1 = 0 ;
26071 double val2 ;
26072 int ecode2 = 0 ;
26073 double val3 ;
26074 int ecode3 = 0 ;
26075 double val4 ;
26076 int ecode4 = 0 ;
26077 double val5 ;
26078 int ecode5 = 0 ;
26079 PyObject * obj0 = 0 ;
26080 PyObject * obj1 = 0 ;
26081 PyObject * obj2 = 0 ;
26082 PyObject * obj3 = 0 ;
26083 PyObject * obj4 = 0 ;
26084 char * kwnames[] = {
26085 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26086 };
26087
26088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26090 if (!SWIG_IsOK(res1)) {
26091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26092 }
26093 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26094 ecode2 = SWIG_AsVal_double(obj1, &val2);
26095 if (!SWIG_IsOK(ecode2)) {
26096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26097 }
26098 arg2 = static_cast< wxDouble >(val2);
26099 ecode3 = SWIG_AsVal_double(obj2, &val3);
26100 if (!SWIG_IsOK(ecode3)) {
26101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26102 }
26103 arg3 = static_cast< wxDouble >(val3);
26104 ecode4 = SWIG_AsVal_double(obj3, &val4);
26105 if (!SWIG_IsOK(ecode4)) {
26106 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26107 }
26108 arg4 = static_cast< wxDouble >(val4);
26109 ecode5 = SWIG_AsVal_double(obj4, &val5);
26110 if (!SWIG_IsOK(ecode5)) {
26111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26112 }
26113 arg5 = static_cast< wxDouble >(val5);
26114 {
26115 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
26116 if (PyErr_Occurred()) SWIG_fail;
26117 }
26118 resultobj = SWIG_Py_Void();
26119 return resultobj;
26120fail:
26121 return NULL;
26122}
26123
26124
26125SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26126 PyObject *resultobj = 0;
26127 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26128 wxDouble arg2 ;
26129 wxDouble arg3 ;
26130 wxDouble arg4 ;
26131 void *argp1 = 0 ;
26132 int res1 = 0 ;
26133 double val2 ;
26134 int ecode2 = 0 ;
26135 double val3 ;
26136 int ecode3 = 0 ;
26137 double val4 ;
26138 int ecode4 = 0 ;
26139 PyObject * obj0 = 0 ;
26140 PyObject * obj1 = 0 ;
26141 PyObject * obj2 = 0 ;
26142 PyObject * obj3 = 0 ;
26143 char * kwnames[] = {
26144 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
26145 };
26146
26147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26149 if (!SWIG_IsOK(res1)) {
26150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26151 }
26152 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26153 ecode2 = SWIG_AsVal_double(obj1, &val2);
26154 if (!SWIG_IsOK(ecode2)) {
26155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26156 }
26157 arg2 = static_cast< wxDouble >(val2);
26158 ecode3 = SWIG_AsVal_double(obj2, &val3);
26159 if (!SWIG_IsOK(ecode3)) {
26160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26161 }
26162 arg3 = static_cast< wxDouble >(val3);
26163 ecode4 = SWIG_AsVal_double(obj3, &val4);
26164 if (!SWIG_IsOK(ecode4)) {
26165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26166 }
26167 arg4 = static_cast< wxDouble >(val4);
26168 {
26169 (arg1)->AddCircle(arg2,arg3,arg4);
26170 if (PyErr_Occurred()) SWIG_fail;
26171 }
26172 resultobj = SWIG_Py_Void();
26173 return resultobj;
26174fail:
26175 return NULL;
26176}
26177
26178
26179SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26180 PyObject *resultobj = 0;
26181 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26182 wxDouble arg2 ;
26183 wxDouble arg3 ;
26184 wxDouble arg4 ;
26185 wxDouble arg5 ;
26186 wxDouble arg6 ;
26187 void *argp1 = 0 ;
26188 int res1 = 0 ;
26189 double val2 ;
26190 int ecode2 = 0 ;
26191 double val3 ;
26192 int ecode3 = 0 ;
26193 double val4 ;
26194 int ecode4 = 0 ;
26195 double val5 ;
26196 int ecode5 = 0 ;
26197 double val6 ;
26198 int ecode6 = 0 ;
26199 PyObject * obj0 = 0 ;
26200 PyObject * obj1 = 0 ;
26201 PyObject * obj2 = 0 ;
26202 PyObject * obj3 = 0 ;
26203 PyObject * obj4 = 0 ;
26204 PyObject * obj5 = 0 ;
26205 char * kwnames[] = {
26206 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
26207 };
26208
26209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26211 if (!SWIG_IsOK(res1)) {
26212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26213 }
26214 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26215 ecode2 = SWIG_AsVal_double(obj1, &val2);
26216 if (!SWIG_IsOK(ecode2)) {
26217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26218 }
26219 arg2 = static_cast< wxDouble >(val2);
26220 ecode3 = SWIG_AsVal_double(obj2, &val3);
26221 if (!SWIG_IsOK(ecode3)) {
26222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26223 }
26224 arg3 = static_cast< wxDouble >(val3);
26225 ecode4 = SWIG_AsVal_double(obj3, &val4);
26226 if (!SWIG_IsOK(ecode4)) {
26227 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26228 }
26229 arg4 = static_cast< wxDouble >(val4);
26230 ecode5 = SWIG_AsVal_double(obj4, &val5);
26231 if (!SWIG_IsOK(ecode5)) {
26232 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26233 }
26234 arg5 = static_cast< wxDouble >(val5);
26235 ecode6 = SWIG_AsVal_double(obj5, &val6);
26236 if (!SWIG_IsOK(ecode6)) {
26237 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26238 }
26239 arg6 = static_cast< wxDouble >(val6);
26240 {
26241 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
26242 if (PyErr_Occurred()) SWIG_fail;
26243 }
26244 resultobj = SWIG_Py_Void();
26245 return resultobj;
26246fail:
26247 return NULL;
26248}
26249
26250
26251SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26252 PyObject *resultobj = 0;
26253 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26254 wxDouble arg2 ;
26255 wxDouble arg3 ;
26256 wxDouble arg4 ;
26257 wxDouble arg5 ;
26258 void *argp1 = 0 ;
26259 int res1 = 0 ;
26260 double val2 ;
26261 int ecode2 = 0 ;
26262 double val3 ;
26263 int ecode3 = 0 ;
26264 double val4 ;
26265 int ecode4 = 0 ;
26266 double val5 ;
26267 int ecode5 = 0 ;
26268 PyObject * obj0 = 0 ;
26269 PyObject * obj1 = 0 ;
26270 PyObject * obj2 = 0 ;
26271 PyObject * obj3 = 0 ;
26272 PyObject * obj4 = 0 ;
26273 char * kwnames[] = {
26274 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26275 };
26276
26277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26279 if (!SWIG_IsOK(res1)) {
26280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26281 }
26282 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26283 ecode2 = SWIG_AsVal_double(obj1, &val2);
26284 if (!SWIG_IsOK(ecode2)) {
26285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26286 }
26287 arg2 = static_cast< wxDouble >(val2);
26288 ecode3 = SWIG_AsVal_double(obj2, &val3);
26289 if (!SWIG_IsOK(ecode3)) {
26290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26291 }
26292 arg3 = static_cast< wxDouble >(val3);
26293 ecode4 = SWIG_AsVal_double(obj3, &val4);
26294 if (!SWIG_IsOK(ecode4)) {
26295 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26296 }
26297 arg4 = static_cast< wxDouble >(val4);
26298 ecode5 = SWIG_AsVal_double(obj4, &val5);
26299 if (!SWIG_IsOK(ecode5)) {
26300 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26301 }
26302 arg5 = static_cast< wxDouble >(val5);
26303 {
26304 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
26305 if (PyErr_Occurred()) SWIG_fail;
26306 }
26307 resultobj = SWIG_Py_Void();
26308 return resultobj;
26309fail:
26310 return NULL;
26311}
26312
26313
26314SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26315 PyObject *resultobj = 0;
26316 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26317 wxDouble arg2 ;
26318 wxDouble arg3 ;
26319 wxDouble arg4 ;
26320 wxDouble arg5 ;
26321 wxDouble arg6 ;
26322 void *argp1 = 0 ;
26323 int res1 = 0 ;
26324 double val2 ;
26325 int ecode2 = 0 ;
26326 double val3 ;
26327 int ecode3 = 0 ;
26328 double val4 ;
26329 int ecode4 = 0 ;
26330 double val5 ;
26331 int ecode5 = 0 ;
26332 double val6 ;
26333 int ecode6 = 0 ;
26334 PyObject * obj0 = 0 ;
26335 PyObject * obj1 = 0 ;
26336 PyObject * obj2 = 0 ;
26337 PyObject * obj3 = 0 ;
26338 PyObject * obj4 = 0 ;
26339 PyObject * obj5 = 0 ;
26340 char * kwnames[] = {
26341 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26342 };
26343
26344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26346 if (!SWIG_IsOK(res1)) {
26347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26348 }
26349 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26350 ecode2 = SWIG_AsVal_double(obj1, &val2);
26351 if (!SWIG_IsOK(ecode2)) {
26352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26353 }
26354 arg2 = static_cast< wxDouble >(val2);
26355 ecode3 = SWIG_AsVal_double(obj2, &val3);
26356 if (!SWIG_IsOK(ecode3)) {
26357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26358 }
26359 arg3 = static_cast< wxDouble >(val3);
26360 ecode4 = SWIG_AsVal_double(obj3, &val4);
26361 if (!SWIG_IsOK(ecode4)) {
26362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26363 }
26364 arg4 = static_cast< wxDouble >(val4);
26365 ecode5 = SWIG_AsVal_double(obj4, &val5);
26366 if (!SWIG_IsOK(ecode5)) {
26367 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26368 }
26369 arg5 = static_cast< wxDouble >(val5);
26370 ecode6 = SWIG_AsVal_double(obj5, &val6);
26371 if (!SWIG_IsOK(ecode6)) {
26372 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26373 }
26374 arg6 = static_cast< wxDouble >(val6);
26375 {
26376 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26377 if (PyErr_Occurred()) SWIG_fail;
26378 }
26379 resultobj = SWIG_Py_Void();
26380 return resultobj;
26381fail:
26382 return NULL;
26383}
26384
26385
26386SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26387 PyObject *resultobj = 0;
26388 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26389 void *result = 0 ;
26390 void *argp1 = 0 ;
26391 int res1 = 0 ;
26392 PyObject *swig_obj[1] ;
26393
26394 if (!args) SWIG_fail;
26395 swig_obj[0] = args;
26396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26397 if (!SWIG_IsOK(res1)) {
26398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26399 }
26400 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26401 {
26402 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
26403 if (PyErr_Occurred()) SWIG_fail;
26404 }
26405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26406 return resultobj;
26407fail:
26408 return NULL;
26409}
26410
26411
26412SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26413 PyObject *resultobj = 0;
26414 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26415 void *arg2 = (void *) 0 ;
26416 void *argp1 = 0 ;
26417 int res1 = 0 ;
26418 int res2 ;
26419 PyObject * obj0 = 0 ;
26420 PyObject * obj1 = 0 ;
26421 char * kwnames[] = {
26422 (char *) "self",(char *) "p", NULL
26423 };
26424
26425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
26426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26427 if (!SWIG_IsOK(res1)) {
26428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26429 }
26430 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26431 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
26432 if (!SWIG_IsOK(res2)) {
26433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
26434 }
26435 {
26436 (arg1)->UnGetNativePath(arg2);
26437 if (PyErr_Occurred()) SWIG_fail;
26438 }
26439 resultobj = SWIG_Py_Void();
26440 return resultobj;
26441fail:
26442 return NULL;
26443}
26444
26445
26446SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26447 PyObject *resultobj = 0;
26448 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26449 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
26450 void *argp1 = 0 ;
26451 int res1 = 0 ;
26452 void *argp2 = 0 ;
26453 int res2 = 0 ;
26454 PyObject * obj0 = 0 ;
26455 PyObject * obj1 = 0 ;
26456 char * kwnames[] = {
26457 (char *) "self",(char *) "matrix", NULL
26458 };
26459
26460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
26461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26462 if (!SWIG_IsOK(res1)) {
26463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26464 }
26465 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26466 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26467 if (!SWIG_IsOK(res2)) {
26468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix *""'");
26469 }
26470 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26471 {
26472 (arg1)->Transform(arg2);
26473 if (PyErr_Occurred()) SWIG_fail;
26474 }
26475 resultobj = SWIG_Py_Void();
26476 return resultobj;
26477fail:
26478 return NULL;
26479}
26480
26481
26482SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26483 PyObject *resultobj = 0;
26484 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26485 wxRect2DDouble result;
26486 void *argp1 = 0 ;
26487 int res1 = 0 ;
26488 PyObject *swig_obj[1] ;
26489
26490 if (!args) SWIG_fail;
26491 swig_obj[0] = args;
26492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26493 if (!SWIG_IsOK(res1)) {
26494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26495 }
26496 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26497 {
26498 result = (arg1)->GetBox();
26499 if (PyErr_Occurred()) SWIG_fail;
26500 }
26501 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
26502 return resultobj;
26503fail:
26504 return NULL;
26505}
26506
26507
26508SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26509 PyObject *resultobj = 0;
26510 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26511 wxDouble arg2 ;
26512 wxDouble arg3 ;
26513 int arg4 = (int) wxWINDING_RULE ;
26514 bool result;
26515 void *argp1 = 0 ;
26516 int res1 = 0 ;
26517 double val2 ;
26518 int ecode2 = 0 ;
26519 double val3 ;
26520 int ecode3 = 0 ;
26521 int val4 ;
26522 int ecode4 = 0 ;
26523
26524 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
26525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26526 if (!SWIG_IsOK(res1)) {
26527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26528 }
26529 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26530 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26531 if (!SWIG_IsOK(ecode2)) {
26532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
26533 }
26534 arg2 = static_cast< wxDouble >(val2);
26535 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26536 if (!SWIG_IsOK(ecode3)) {
26537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
26538 }
26539 arg3 = static_cast< wxDouble >(val3);
26540 if (swig_obj[3]) {
26541 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
26542 if (!SWIG_IsOK(ecode4)) {
26543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
26544 }
26545 arg4 = static_cast< int >(val4);
26546 }
26547 {
26548 result = (bool)(arg1)->Contains(arg2,arg3,arg4);
26549 if (PyErr_Occurred()) SWIG_fail;
26550 }
26551 {
26552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26553 }
26554 return resultobj;
26555fail:
26556 return NULL;
26557}
26558
26559
26560SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26561 PyObject *resultobj = 0;
26562 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26563 wxPoint2DDouble *arg2 = 0 ;
26564 int arg3 = (int) wxWINDING_RULE ;
26565 bool result;
26566 void *argp1 = 0 ;
26567 int res1 = 0 ;
26568 void *argp2 = 0 ;
26569 int res2 = 0 ;
26570 int val3 ;
26571 int ecode3 = 0 ;
26572
26573 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
26574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26575 if (!SWIG_IsOK(res1)) {
26576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26577 }
26578 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26579 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
26580 if (!SWIG_IsOK(res2)) {
26581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
26582 }
26583 if (!argp2) {
26584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
26585 }
26586 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
26587 if (swig_obj[2]) {
26588 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
26589 if (!SWIG_IsOK(ecode3)) {
26590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
26591 }
26592 arg3 = static_cast< int >(val3);
26593 }
26594 {
26595 result = (bool)(arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
26596 if (PyErr_Occurred()) SWIG_fail;
26597 }
26598 {
26599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26600 }
26601 return resultobj;
26602fail:
26603 return NULL;
26604}
26605
26606
26607SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
26608 int argc;
26609 PyObject *argv[5];
26610
26611 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
26612 --argc;
26613 if ((argc >= 2) && (argc <= 3)) {
26614 int _v = 0;
26615 {
26616 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
26617 _v = SWIG_CheckState(res);
26618 }
26619 if (!_v) goto check_1;
26620 if (argc > 2) {
26621 {
26622 {
26623 int res = SWIG_AsVal_int(argv[2], NULL);
26624 _v = SWIG_CheckState(res);
26625 }
26626 }
26627 if (!_v) goto check_1;
26628 }
26629 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
26630 }
26631check_1:
26632
26633 if ((argc >= 3) && (argc <= 4)) {
26634 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
26635 }
26636
26637fail:
26638 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
26639 return NULL;
26640}
26641
26642
26643SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26644 PyObject *obj;
26645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26646 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
26647 return SWIG_Py_Void();
26648}
26649
26650SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26651 PyObject *resultobj = 0;
26652 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26653 void *argp1 = 0 ;
26654 int res1 = 0 ;
26655 PyObject *swig_obj[1] ;
26656
26657 if (!args) SWIG_fail;
26658 swig_obj[0] = args;
26659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
26660 if (!SWIG_IsOK(res1)) {
26661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26662 }
26663 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26664 {
26665 delete arg1;
26666
26667 if (PyErr_Occurred()) SWIG_fail;
26668 }
26669 resultobj = SWIG_Py_Void();
26670 return resultobj;
26671fail:
26672 return NULL;
26673}
26674
26675
26676SWIGINTERN PyObject *_wrap_GraphicsMatrix_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26677 PyObject *resultobj = 0;
26678 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26679 wxGraphicsMatrix *result = 0 ;
26680 void *argp1 = 0 ;
26681 int res1 = 0 ;
26682 PyObject *swig_obj[1] ;
26683
26684 if (!args) SWIG_fail;
26685 swig_obj[0] = args;
26686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26687 if (!SWIG_IsOK(res1)) {
26688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Clone" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26689 }
26690 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26691 {
26692 result = (wxGraphicsMatrix *)((wxGraphicsMatrix const *)arg1)->Clone();
26693 if (PyErr_Occurred()) SWIG_fail;
26694 }
26695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26696 return resultobj;
26697fail:
26698 return NULL;
26699}
26700
26701
26702SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26703 PyObject *resultobj = 0;
26704 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26705 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
26706 void *argp1 = 0 ;
26707 int res1 = 0 ;
26708 void *argp2 = 0 ;
26709 int res2 = 0 ;
26710 PyObject * obj0 = 0 ;
26711 PyObject * obj1 = 0 ;
26712 char * kwnames[] = {
26713 (char *) "self",(char *) "t", NULL
26714 };
26715
26716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26718 if (!SWIG_IsOK(res1)) {
26719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26720 }
26721 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26722 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26723 if (!SWIG_IsOK(res2)) {
26724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const *""'");
26725 }
26726 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26727 {
26728 (arg1)->Concat((wxGraphicsMatrix const *)arg2);
26729 if (PyErr_Occurred()) SWIG_fail;
26730 }
26731 resultobj = SWIG_Py_Void();
26732 return resultobj;
26733fail:
26734 return NULL;
26735}
26736
26737
26738SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26739 PyObject *resultobj = 0;
26740 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26741 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
26742 void *argp1 = 0 ;
26743 int res1 = 0 ;
26744 void *argp2 = 0 ;
26745 int res2 = 0 ;
26746 PyObject * obj0 = 0 ;
26747 PyObject * obj1 = 0 ;
26748 char * kwnames[] = {
26749 (char *) "self",(char *) "t", NULL
26750 };
26751
26752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
26753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26754 if (!SWIG_IsOK(res1)) {
26755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26756 }
26757 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26758 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26759 if (!SWIG_IsOK(res2)) {
26760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const *""'");
26761 }
26762 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26763 {
26764 (arg1)->Copy((wxGraphicsMatrix const *)arg2);
26765 if (PyErr_Occurred()) SWIG_fail;
26766 }
26767 resultobj = SWIG_Py_Void();
26768 return resultobj;
26769fail:
26770 return NULL;
26771}
26772
26773
26774SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26775 PyObject *resultobj = 0;
26776 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26777 wxDouble arg2 = (wxDouble) 1.0 ;
26778 wxDouble arg3 = (wxDouble) 0.0 ;
26779 wxDouble arg4 = (wxDouble) 0.0 ;
26780 wxDouble arg5 = (wxDouble) 1.0 ;
26781 wxDouble arg6 = (wxDouble) 0.0 ;
26782 wxDouble arg7 = (wxDouble) 0.0 ;
26783 void *argp1 = 0 ;
26784 int res1 = 0 ;
26785 double val2 ;
26786 int ecode2 = 0 ;
26787 double val3 ;
26788 int ecode3 = 0 ;
26789 double val4 ;
26790 int ecode4 = 0 ;
26791 double val5 ;
26792 int ecode5 = 0 ;
26793 double val6 ;
26794 int ecode6 = 0 ;
26795 double val7 ;
26796 int ecode7 = 0 ;
26797 PyObject * obj0 = 0 ;
26798 PyObject * obj1 = 0 ;
26799 PyObject * obj2 = 0 ;
26800 PyObject * obj3 = 0 ;
26801 PyObject * obj4 = 0 ;
26802 PyObject * obj5 = 0 ;
26803 PyObject * obj6 = 0 ;
26804 char * kwnames[] = {
26805 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26806 };
26807
26808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26810 if (!SWIG_IsOK(res1)) {
26811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26812 }
26813 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26814 if (obj1) {
26815 ecode2 = SWIG_AsVal_double(obj1, &val2);
26816 if (!SWIG_IsOK(ecode2)) {
26817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26818 }
26819 arg2 = static_cast< wxDouble >(val2);
26820 }
26821 if (obj2) {
26822 ecode3 = SWIG_AsVal_double(obj2, &val3);
26823 if (!SWIG_IsOK(ecode3)) {
26824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26825 }
26826 arg3 = static_cast< wxDouble >(val3);
26827 }
26828 if (obj3) {
26829 ecode4 = SWIG_AsVal_double(obj3, &val4);
26830 if (!SWIG_IsOK(ecode4)) {
26831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26832 }
26833 arg4 = static_cast< wxDouble >(val4);
26834 }
26835 if (obj4) {
26836 ecode5 = SWIG_AsVal_double(obj4, &val5);
26837 if (!SWIG_IsOK(ecode5)) {
26838 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26839 }
26840 arg5 = static_cast< wxDouble >(val5);
26841 }
26842 if (obj5) {
26843 ecode6 = SWIG_AsVal_double(obj5, &val6);
26844 if (!SWIG_IsOK(ecode6)) {
26845 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26846 }
26847 arg6 = static_cast< wxDouble >(val6);
26848 }
26849 if (obj6) {
26850 ecode7 = SWIG_AsVal_double(obj6, &val7);
26851 if (!SWIG_IsOK(ecode7)) {
26852 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26853 }
26854 arg7 = static_cast< wxDouble >(val7);
26855 }
26856 {
26857 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
26858 if (PyErr_Occurred()) SWIG_fail;
26859 }
26860 resultobj = SWIG_Py_Void();
26861 return resultobj;
26862fail:
26863 return NULL;
26864}
26865
26866
26867SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26868 PyObject *resultobj = 0;
26869 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26870 void *argp1 = 0 ;
26871 int res1 = 0 ;
26872 PyObject *swig_obj[1] ;
26873
26874 if (!args) SWIG_fail;
26875 swig_obj[0] = args;
26876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26877 if (!SWIG_IsOK(res1)) {
26878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26879 }
26880 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26881 {
26882 (arg1)->Invert();
26883 if (PyErr_Occurred()) SWIG_fail;
26884 }
26885 resultobj = SWIG_Py_Void();
26886 return resultobj;
26887fail:
26888 return NULL;
26889}
26890
26891
26892SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26893 PyObject *resultobj = 0;
26894 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26895 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
26896 bool result;
26897 void *argp1 = 0 ;
26898 int res1 = 0 ;
26899 void *argp2 = 0 ;
26900 int res2 = 0 ;
26901 PyObject * obj0 = 0 ;
26902 PyObject * obj1 = 0 ;
26903 char * kwnames[] = {
26904 (char *) "self",(char *) "t", NULL
26905 };
26906
26907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26909 if (!SWIG_IsOK(res1)) {
26910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26911 }
26912 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26913 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26914 if (!SWIG_IsOK(res2)) {
26915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const *""'");
26916 }
26917 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26918 {
26919 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const *)arg2);
26920 if (PyErr_Occurred()) SWIG_fail;
26921 }
26922 {
26923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26924 }
26925 return resultobj;
26926fail:
26927 return NULL;
26928}
26929
26930
26931SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26932 PyObject *resultobj = 0;
26933 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26934 bool result;
26935 void *argp1 = 0 ;
26936 int res1 = 0 ;
26937 PyObject *swig_obj[1] ;
26938
26939 if (!args) SWIG_fail;
26940 swig_obj[0] = args;
26941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26942 if (!SWIG_IsOK(res1)) {
26943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26944 }
26945 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26946 {
26947 result = (bool)(arg1)->IsIdentity();
26948 if (PyErr_Occurred()) SWIG_fail;
26949 }
26950 {
26951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26952 }
26953 return resultobj;
26954fail:
26955 return NULL;
26956}
26957
26958
26959SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26960 PyObject *resultobj = 0;
26961 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26962 wxDouble arg2 ;
26963 wxDouble arg3 ;
26964 void *argp1 = 0 ;
26965 int res1 = 0 ;
26966 double val2 ;
26967 int ecode2 = 0 ;
26968 double val3 ;
26969 int ecode3 = 0 ;
26970 PyObject * obj0 = 0 ;
26971 PyObject * obj1 = 0 ;
26972 PyObject * obj2 = 0 ;
26973 char * kwnames[] = {
26974 (char *) "self",(char *) "dx",(char *) "dy", NULL
26975 };
26976
26977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26979 if (!SWIG_IsOK(res1)) {
26980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26981 }
26982 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26983 ecode2 = SWIG_AsVal_double(obj1, &val2);
26984 if (!SWIG_IsOK(ecode2)) {
26985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26986 }
26987 arg2 = static_cast< wxDouble >(val2);
26988 ecode3 = SWIG_AsVal_double(obj2, &val3);
26989 if (!SWIG_IsOK(ecode3)) {
26990 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26991 }
26992 arg3 = static_cast< wxDouble >(val3);
26993 {
26994 (arg1)->Translate(arg2,arg3);
26995 if (PyErr_Occurred()) SWIG_fail;
26996 }
26997 resultobj = SWIG_Py_Void();
26998 return resultobj;
26999fail:
27000 return NULL;
27001}
27002
27003
27004SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27005 PyObject *resultobj = 0;
27006 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27007 wxDouble arg2 ;
27008 wxDouble arg3 ;
27009 void *argp1 = 0 ;
27010 int res1 = 0 ;
27011 double val2 ;
27012 int ecode2 = 0 ;
27013 double val3 ;
27014 int ecode3 = 0 ;
27015 PyObject * obj0 = 0 ;
27016 PyObject * obj1 = 0 ;
27017 PyObject * obj2 = 0 ;
27018 char * kwnames[] = {
27019 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
27020 };
27021
27022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27024 if (!SWIG_IsOK(res1)) {
27025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27026 }
27027 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27028 ecode2 = SWIG_AsVal_double(obj1, &val2);
27029 if (!SWIG_IsOK(ecode2)) {
27030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
27031 }
27032 arg2 = static_cast< wxDouble >(val2);
27033 ecode3 = SWIG_AsVal_double(obj2, &val3);
27034 if (!SWIG_IsOK(ecode3)) {
27035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
27036 }
27037 arg3 = static_cast< wxDouble >(val3);
27038 {
27039 (arg1)->Scale(arg2,arg3);
27040 if (PyErr_Occurred()) SWIG_fail;
27041 }
27042 resultobj = SWIG_Py_Void();
27043 return resultobj;
27044fail:
27045 return NULL;
27046}
27047
27048
27049SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27050 PyObject *resultobj = 0;
27051 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27052 wxDouble arg2 ;
27053 void *argp1 = 0 ;
27054 int res1 = 0 ;
27055 double val2 ;
27056 int ecode2 = 0 ;
27057 PyObject * obj0 = 0 ;
27058 PyObject * obj1 = 0 ;
27059 char * kwnames[] = {
27060 (char *) "self",(char *) "angle", NULL
27061 };
27062
27063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
27064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27065 if (!SWIG_IsOK(res1)) {
27066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27067 }
27068 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27069 ecode2 = SWIG_AsVal_double(obj1, &val2);
27070 if (!SWIG_IsOK(ecode2)) {
27071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
27072 }
27073 arg2 = static_cast< wxDouble >(val2);
27074 {
27075 (arg1)->Rotate(arg2);
27076 if (PyErr_Occurred()) SWIG_fail;
27077 }
27078 resultobj = SWIG_Py_Void();
27079 return resultobj;
27080fail:
27081 return NULL;
27082}
27083
27084
27085SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27086 PyObject *resultobj = 0;
27087 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27088 wxDouble *arg2 = (wxDouble *) 0 ;
27089 wxDouble *arg3 = (wxDouble *) 0 ;
27090 void *argp1 = 0 ;
27091 int res1 = 0 ;
27092 wxDouble temp2 ;
27093 int res2 = 0 ;
27094 wxDouble temp3 ;
27095 int res3 = 0 ;
27096 PyObject * obj0 = 0 ;
27097 PyObject * obj1 = 0 ;
27098 PyObject * obj2 = 0 ;
27099 char * kwnames[] = {
27100 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
27101 };
27102
27103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27105 if (!SWIG_IsOK(res1)) {
27106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27107 }
27108 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27109 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
27110 double val;
27111 int ecode = SWIG_AsVal_double(obj1, &val);
27112 if (!SWIG_IsOK(ecode)) {
27113 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27114 }
27115 temp2 = static_cast< wxDouble >(val);
27116 arg2 = &temp2;
27117 res2 = SWIG_AddTmpMask(ecode);
27118 }
27119 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27120 double val;
27121 int ecode = SWIG_AsVal_double(obj2, &val);
27122 if (!SWIG_IsOK(ecode)) {
27123 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27124 }
27125 temp3 = static_cast< wxDouble >(val);
27126 arg3 = &temp3;
27127 res3 = SWIG_AddTmpMask(ecode);
27128 }
27129 {
27130 (arg1)->TransformPoint(arg2,arg3);
27131 if (PyErr_Occurred()) SWIG_fail;
27132 }
27133 resultobj = SWIG_Py_Void();
27134 if (SWIG_IsTmpObj(res2)) {
27135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27136 } else {
27137 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27139 }
27140 if (SWIG_IsTmpObj(res3)) {
27141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27142 } else {
27143 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27145 }
27146 return resultobj;
27147fail:
27148 return NULL;
27149}
27150
27151
27152SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27153 PyObject *resultobj = 0;
27154 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27155 wxDouble *arg2 = (wxDouble *) 0 ;
27156 wxDouble *arg3 = (wxDouble *) 0 ;
27157 void *argp1 = 0 ;
27158 int res1 = 0 ;
27159 wxDouble temp2 ;
27160 int res2 = 0 ;
27161 wxDouble temp3 ;
27162 int res3 = 0 ;
27163 PyObject * obj0 = 0 ;
27164 PyObject * obj1 = 0 ;
27165 PyObject * obj2 = 0 ;
27166 char * kwnames[] = {
27167 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
27168 };
27169
27170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27172 if (!SWIG_IsOK(res1)) {
27173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27174 }
27175 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27176 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
27177 double val;
27178 int ecode = SWIG_AsVal_double(obj1, &val);
27179 if (!SWIG_IsOK(ecode)) {
27180 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
27181 }
27182 temp2 = static_cast< wxDouble >(val);
27183 arg2 = &temp2;
27184 res2 = SWIG_AddTmpMask(ecode);
27185 }
27186 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27187 double val;
27188 int ecode = SWIG_AsVal_double(obj2, &val);
27189 if (!SWIG_IsOK(ecode)) {
27190 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
27191 }
27192 temp3 = static_cast< wxDouble >(val);
27193 arg3 = &temp3;
27194 res3 = SWIG_AddTmpMask(ecode);
27195 }
27196 {
27197 (arg1)->TransformDistance(arg2,arg3);
27198 if (PyErr_Occurred()) SWIG_fail;
27199 }
27200 resultobj = SWIG_Py_Void();
27201 if (SWIG_IsTmpObj(res2)) {
27202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27203 } else {
27204 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27206 }
27207 if (SWIG_IsTmpObj(res3)) {
27208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27209 } else {
27210 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27212 }
27213 return resultobj;
27214fail:
27215 return NULL;
27216}
27217
27218
27219SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27220 PyObject *resultobj = 0;
27221 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27222 void *result = 0 ;
27223 void *argp1 = 0 ;
27224 int res1 = 0 ;
27225 PyObject *swig_obj[1] ;
27226
27227 if (!args) SWIG_fail;
27228 swig_obj[0] = args;
27229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27230 if (!SWIG_IsOK(res1)) {
27231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27232 }
27233 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27234 {
27235 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
27236 if (PyErr_Occurred()) SWIG_fail;
27237 }
27238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27239 return resultobj;
27240fail:
27241 return NULL;
27242}
27243
27244
27245SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27246 PyObject *obj;
27247 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27248 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
27249 return SWIG_Py_Void();
27250}
27251
27252SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27253 PyObject *resultobj = 0;
27254 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27255 void *argp1 = 0 ;
27256 int res1 = 0 ;
27257 PyObject *swig_obj[1] ;
27258
27259 if (!args) SWIG_fail;
27260 swig_obj[0] = args;
27261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27262 if (!SWIG_IsOK(res1)) {
27263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27264 }
27265 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27266 {
27267 delete arg1;
27268
27269 if (PyErr_Occurred()) SWIG_fail;
27270 }
27271 resultobj = SWIG_Py_Void();
27272 return resultobj;
27273fail:
27274 return NULL;
27275}
27276
27277
27278SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27279 PyObject *resultobj = 0;
27280 wxWindowDC *arg1 = 0 ;
27281 wxGraphicsContext *result = 0 ;
27282 void *argp1 = 0 ;
27283 int res1 = 0 ;
27284
27285 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27287 if (!SWIG_IsOK(res1)) {
27288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27289 }
27290 if (!argp1) {
27291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27292 }
27293 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27294 {
27295 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27296 if (PyErr_Occurred()) SWIG_fail;
27297 }
27298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27299 return resultobj;
27300fail:
27301 return NULL;
27302}
27303
27304
27305SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27306 PyObject *resultobj = 0;
27307 wxWindow *arg1 = (wxWindow *) 0 ;
27308 wxGraphicsContext *result = 0 ;
27309 void *argp1 = 0 ;
27310 int res1 = 0 ;
27311
27312 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27314 if (!SWIG_IsOK(res1)) {
27315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27316 }
27317 arg1 = reinterpret_cast< wxWindow * >(argp1);
27318 {
27319 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27320 if (PyErr_Occurred()) SWIG_fail;
27321 }
27322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27323 return resultobj;
27324fail:
27325 return NULL;
27326}
27327
27328
27329SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27330 int argc;
27331 PyObject *argv[2];
27332
27333 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27334 --argc;
27335 if (argc == 1) {
27336 int _v = 0;
27337 {
27338 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27339 _v = SWIG_CheckState(res);
27340 }
27341 if (!_v) goto check_1;
27342 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27343 }
27344check_1:
27345
27346 if (argc == 1) {
27347 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27348 }
27349
27350fail:
27351 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27352 return NULL;
27353}
27354
27355
27356SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27357 PyObject *resultobj = 0;
27358 void *arg1 = (void *) 0 ;
27359 wxGraphicsContext *result = 0 ;
27360 int res1 ;
27361 PyObject * obj0 = 0 ;
27362 char * kwnames[] = {
27363 (char *) "context", NULL
27364 };
27365
27366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27367 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27368 if (!SWIG_IsOK(res1)) {
27369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27370 }
27371 {
27372 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27373 if (PyErr_Occurred()) SWIG_fail;
27374 }
27375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27376 return resultobj;
27377fail:
27378 return NULL;
27379}
27380
27381
27382SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27383 PyObject *resultobj = 0;
27384 void *arg1 = (void *) 0 ;
27385 wxGraphicsContext *result = 0 ;
27386 int res1 ;
27387 PyObject * obj0 = 0 ;
27388 char * kwnames[] = {
27389 (char *) "window", NULL
27390 };
27391
27392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27393 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27394 if (!SWIG_IsOK(res1)) {
27395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27396 }
27397 {
27398 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27399 if (PyErr_Occurred()) SWIG_fail;
27400 }
27401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27402 return resultobj;
27403fail:
27404 return NULL;
27405}
27406
27407
27408SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27409 PyObject *resultobj = 0;
27410 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27411 wxGraphicsPath *result = 0 ;
27412 void *argp1 = 0 ;
27413 int res1 = 0 ;
27414 PyObject *swig_obj[1] ;
27415
27416 if (!args) SWIG_fail;
27417 swig_obj[0] = args;
27418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27419 if (!SWIG_IsOK(res1)) {
27420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27421 }
27422 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27423 {
27424 result = (wxGraphicsPath *)(arg1)->CreatePath();
27425 if (PyErr_Occurred()) SWIG_fail;
27426 }
27427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27428 return resultobj;
27429fail:
27430 return NULL;
27431}
27432
27433
70d7cb34 27434SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27435 PyObject *resultobj = 0;
70d7cb34
RD
27436 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27437 wxPen *arg2 = 0 ;
27438 wxGraphicsPen result;
72ef6efb
RD
27439 void *argp1 = 0 ;
27440 int res1 = 0 ;
70d7cb34
RD
27441 void *argp2 = 0 ;
27442 int res2 = 0 ;
72ef6efb
RD
27443 PyObject * obj0 = 0 ;
27444 PyObject * obj1 = 0 ;
72ef6efb 27445 char * kwnames[] = {
70d7cb34 27446 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27447 };
27448
70d7cb34
RD
27449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27451 if (!SWIG_IsOK(res1)) {
70d7cb34 27452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27453 }
70d7cb34
RD
27454 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27455 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27456 if (!SWIG_IsOK(res2)) {
27457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27458 }
27459 if (!argp2) {
27460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27461 }
27462 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27463 {
70d7cb34 27464 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27465 if (PyErr_Occurred()) SWIG_fail;
27466 }
70d7cb34 27467 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27468 return resultobj;
27469fail:
27470 return NULL;
27471}
27472
27473
70d7cb34 27474SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27475 PyObject *resultobj = 0;
70d7cb34
RD
27476 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27477 wxBrush *arg2 = 0 ;
27478 wxGraphicsBrush result;
72ef6efb
RD
27479 void *argp1 = 0 ;
27480 int res1 = 0 ;
70d7cb34
RD
27481 void *argp2 = 0 ;
27482 int res2 = 0 ;
72ef6efb
RD
27483 PyObject * obj0 = 0 ;
27484 PyObject * obj1 = 0 ;
72ef6efb 27485 char * kwnames[] = {
70d7cb34 27486 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27487 };
27488
70d7cb34
RD
27489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27491 if (!SWIG_IsOK(res1)) {
70d7cb34 27492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27493 }
70d7cb34
RD
27494 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27495 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27496 if (!SWIG_IsOK(res2)) {
27497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27498 }
27499 if (!argp2) {
27500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27501 }
27502 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27503 {
70d7cb34 27504 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27505 if (PyErr_Occurred()) SWIG_fail;
27506 }
70d7cb34 27507 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27508 return resultobj;
27509fail:
27510 return NULL;
27511}
27512
27513
70d7cb34 27514SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27515 PyObject *resultobj = 0;
70d7cb34 27516 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27517 wxDouble arg2 ;
27518 wxDouble arg3 ;
27519 wxDouble arg4 ;
27520 wxDouble arg5 ;
70d7cb34
RD
27521 wxColour *arg6 = 0 ;
27522 wxColour *arg7 = 0 ;
27523 wxGraphicsBrush result;
72ef6efb
RD
27524 void *argp1 = 0 ;
27525 int res1 = 0 ;
27526 double val2 ;
27527 int ecode2 = 0 ;
27528 double val3 ;
27529 int ecode3 = 0 ;
27530 double val4 ;
27531 int ecode4 = 0 ;
27532 double val5 ;
27533 int ecode5 = 0 ;
70d7cb34
RD
27534 wxColour temp6 ;
27535 wxColour temp7 ;
72ef6efb
RD
27536 PyObject * obj0 = 0 ;
27537 PyObject * obj1 = 0 ;
27538 PyObject * obj2 = 0 ;
27539 PyObject * obj3 = 0 ;
27540 PyObject * obj4 = 0 ;
70d7cb34
RD
27541 PyObject * obj5 = 0 ;
27542 PyObject * obj6 = 0 ;
72ef6efb 27543 char * kwnames[] = {
70d7cb34 27544 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27545 };
27546
70d7cb34
RD
27547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27549 if (!SWIG_IsOK(res1)) {
70d7cb34 27550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27551 }
70d7cb34 27552 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27553 ecode2 = SWIG_AsVal_double(obj1, &val2);
27554 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27556 }
27557 arg2 = static_cast< wxDouble >(val2);
27558 ecode3 = SWIG_AsVal_double(obj2, &val3);
27559 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27561 }
27562 arg3 = static_cast< wxDouble >(val3);
27563 ecode4 = SWIG_AsVal_double(obj3, &val4);
27564 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27566 }
27567 arg4 = static_cast< wxDouble >(val4);
27568 ecode5 = SWIG_AsVal_double(obj4, &val5);
27569 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27570 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27571 }
27572 arg5 = static_cast< wxDouble >(val5);
27573 {
70d7cb34
RD
27574 arg6 = &temp6;
27575 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27576 }
70d7cb34
RD
27577 {
27578 arg7 = &temp7;
27579 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27580 }
72ef6efb 27581 {
70d7cb34 27582 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27583 if (PyErr_Occurred()) SWIG_fail;
27584 }
70d7cb34 27585 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27586 return resultobj;
27587fail:
27588 return NULL;
27589}
27590
27591
70d7cb34 27592SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27593 PyObject *resultobj = 0;
70d7cb34 27594 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27595 wxDouble arg2 ;
27596 wxDouble arg3 ;
27597 wxDouble arg4 ;
27598 wxDouble arg5 ;
27599 wxDouble arg6 ;
70d7cb34
RD
27600 wxColour *arg7 = 0 ;
27601 wxColour *arg8 = 0 ;
27602 wxGraphicsBrush result;
72ef6efb
RD
27603 void *argp1 = 0 ;
27604 int res1 = 0 ;
27605 double val2 ;
27606 int ecode2 = 0 ;
27607 double val3 ;
27608 int ecode3 = 0 ;
27609 double val4 ;
27610 int ecode4 = 0 ;
27611 double val5 ;
27612 int ecode5 = 0 ;
27613 double val6 ;
27614 int ecode6 = 0 ;
70d7cb34
RD
27615 wxColour temp7 ;
27616 wxColour temp8 ;
72ef6efb
RD
27617 PyObject * obj0 = 0 ;
27618 PyObject * obj1 = 0 ;
27619 PyObject * obj2 = 0 ;
27620 PyObject * obj3 = 0 ;
27621 PyObject * obj4 = 0 ;
27622 PyObject * obj5 = 0 ;
70d7cb34
RD
27623 PyObject * obj6 = 0 ;
27624 PyObject * obj7 = 0 ;
72ef6efb 27625 char * kwnames[] = {
70d7cb34 27626 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27627 };
27628
70d7cb34
RD
27629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27631 if (!SWIG_IsOK(res1)) {
70d7cb34 27632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27633 }
70d7cb34 27634 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27635 ecode2 = SWIG_AsVal_double(obj1, &val2);
27636 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27638 }
27639 arg2 = static_cast< wxDouble >(val2);
27640 ecode3 = SWIG_AsVal_double(obj2, &val3);
27641 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27643 }
27644 arg3 = static_cast< wxDouble >(val3);
27645 ecode4 = SWIG_AsVal_double(obj3, &val4);
27646 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27648 }
27649 arg4 = static_cast< wxDouble >(val4);
27650 ecode5 = SWIG_AsVal_double(obj4, &val5);
27651 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27652 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27653 }
27654 arg5 = static_cast< wxDouble >(val5);
27655 ecode6 = SWIG_AsVal_double(obj5, &val6);
27656 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27657 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27658 }
27659 arg6 = static_cast< wxDouble >(val6);
27660 {
70d7cb34
RD
27661 arg7 = &temp7;
27662 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27663 }
27664 {
27665 arg8 = &temp8;
27666 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27667 }
27668 {
27669 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
27670 if (PyErr_Occurred()) SWIG_fail;
27671 }
70d7cb34 27672 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27673 return resultobj;
27674fail:
27675 return NULL;
27676}
27677
27678
70d7cb34 27679SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27680 PyObject *resultobj = 0;
27681 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
27682 wxFont *arg2 = 0 ;
27683 wxColour const &arg3_defvalue = *wxBLACK ;
27684 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27685 wxGraphicsFont result;
72ef6efb
RD
27686 void *argp1 = 0 ;
27687 int res1 = 0 ;
70d7cb34
RD
27688 void *argp2 = 0 ;
27689 int res2 = 0 ;
27690 wxColour temp3 ;
27691 PyObject * obj0 = 0 ;
27692 PyObject * obj1 = 0 ;
27693 PyObject * obj2 = 0 ;
27694 char * kwnames[] = {
27695 (char *) "self",(char *) "font",(char *) "col", NULL
27696 };
72ef6efb 27697
70d7cb34
RD
27698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27700 if (!SWIG_IsOK(res1)) {
70d7cb34 27701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27702 }
27703 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
27704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27705 if (!SWIG_IsOK(res2)) {
27706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27707 }
70d7cb34
RD
27708 if (!argp2) {
27709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27710 }
70d7cb34
RD
27711 arg2 = reinterpret_cast< wxFont * >(argp2);
27712 if (obj2) {
27713 {
27714 arg3 = &temp3;
27715 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27716 }
72ef6efb 27717 }
72ef6efb 27718 {
70d7cb34 27719 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
27720 if (PyErr_Occurred()) SWIG_fail;
27721 }
70d7cb34 27722 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27723 return resultobj;
27724fail:
27725 return NULL;
27726}
27727
27728
70d7cb34 27729SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 27730 PyObject *resultobj = 0;
70d7cb34
RD
27731 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27732 wxDouble arg2 = (wxDouble) 1.0 ;
27733 wxDouble arg3 = (wxDouble) 0.0 ;
27734 wxDouble arg4 = (wxDouble) 0.0 ;
27735 wxDouble arg5 = (wxDouble) 1.0 ;
27736 wxDouble arg6 = (wxDouble) 0.0 ;
27737 wxDouble arg7 = (wxDouble) 0.0 ;
27738 wxGraphicsMatrix *result = 0 ;
0a27f394
RD
27739 void *argp1 = 0 ;
27740 int res1 = 0 ;
70d7cb34
RD
27741 double val2 ;
27742 int ecode2 = 0 ;
27743 double val3 ;
27744 int ecode3 = 0 ;
27745 double val4 ;
27746 int ecode4 = 0 ;
27747 double val5 ;
27748 int ecode5 = 0 ;
27749 double val6 ;
27750 int ecode6 = 0 ;
27751 double val7 ;
27752 int ecode7 = 0 ;
27753 PyObject * obj0 = 0 ;
27754 PyObject * obj1 = 0 ;
27755 PyObject * obj2 = 0 ;
27756 PyObject * obj3 = 0 ;
27757 PyObject * obj4 = 0 ;
27758 PyObject * obj5 = 0 ;
27759 PyObject * obj6 = 0 ;
27760 char * kwnames[] = {
27761 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27762 };
0a27f394 27763
70d7cb34
RD
27764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 27766 if (!SWIG_IsOK(res1)) {
70d7cb34 27767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 27768 }
70d7cb34
RD
27769 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27770 if (obj1) {
27771 ecode2 = SWIG_AsVal_double(obj1, &val2);
27772 if (!SWIG_IsOK(ecode2)) {
27773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
27774 }
27775 arg2 = static_cast< wxDouble >(val2);
0a27f394 27776 }
70d7cb34
RD
27777 if (obj2) {
27778 ecode3 = SWIG_AsVal_double(obj2, &val3);
27779 if (!SWIG_IsOK(ecode3)) {
27780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
27781 }
27782 arg3 = static_cast< wxDouble >(val3);
0a27f394 27783 }
70d7cb34
RD
27784 if (obj3) {
27785 ecode4 = SWIG_AsVal_double(obj3, &val4);
27786 if (!SWIG_IsOK(ecode4)) {
27787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
27788 }
27789 arg4 = static_cast< wxDouble >(val4);
0a27f394 27790 }
70d7cb34
RD
27791 if (obj4) {
27792 ecode5 = SWIG_AsVal_double(obj4, &val5);
27793 if (!SWIG_IsOK(ecode5)) {
27794 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
27795 }
27796 arg5 = static_cast< wxDouble >(val5);
0a27f394 27797 }
70d7cb34
RD
27798 if (obj5) {
27799 ecode6 = SWIG_AsVal_double(obj5, &val6);
27800 if (!SWIG_IsOK(ecode6)) {
27801 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
27802 }
27803 arg6 = static_cast< wxDouble >(val6);
0a27f394 27804 }
70d7cb34
RD
27805 if (obj6) {
27806 ecode7 = SWIG_AsVal_double(obj6, &val7);
27807 if (!SWIG_IsOK(ecode7)) {
27808 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
27809 }
27810 arg7 = static_cast< wxDouble >(val7);
72ef6efb 27811 }
72ef6efb 27812 {
70d7cb34 27813 result = (wxGraphicsMatrix *)(arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
27814 if (PyErr_Occurred()) SWIG_fail;
27815 }
70d7cb34 27816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27817 return resultobj;
27818fail:
27819 return NULL;
27820}
27821
27822
27823SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27824 PyObject *resultobj = 0;
27825 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27826 void *argp1 = 0 ;
27827 int res1 = 0 ;
27828 PyObject *swig_obj[1] ;
27829
27830 if (!args) SWIG_fail;
27831 swig_obj[0] = args;
27832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27833 if (!SWIG_IsOK(res1)) {
27834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27835 }
27836 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27837 {
72ef6efb 27838 (arg1)->PushState();
72ef6efb
RD
27839 if (PyErr_Occurred()) SWIG_fail;
27840 }
27841 resultobj = SWIG_Py_Void();
27842 return resultobj;
27843fail:
27844 return NULL;
27845}
27846
27847
27848SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27849 PyObject *resultobj = 0;
27850 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27851 void *argp1 = 0 ;
27852 int res1 = 0 ;
27853 PyObject *swig_obj[1] ;
27854
27855 if (!args) SWIG_fail;
27856 swig_obj[0] = args;
27857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27858 if (!SWIG_IsOK(res1)) {
27859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27860 }
27861 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27862 {
72ef6efb 27863 (arg1)->PopState();
72ef6efb
RD
27864 if (PyErr_Occurred()) SWIG_fail;
27865 }
27866 resultobj = SWIG_Py_Void();
27867 return resultobj;
27868fail:
27869 return NULL;
27870}
27871
27872
0a27f394 27873SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27874 PyObject *resultobj = 0;
27875 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27876 wxRegion *arg2 = 0 ;
27877 void *argp1 = 0 ;
27878 int res1 = 0 ;
27879 void *argp2 = 0 ;
27880 int res2 = 0 ;
27881 PyObject * obj0 = 0 ;
27882 PyObject * obj1 = 0 ;
27883 char * kwnames[] = {
27884 (char *) "self",(char *) "region", NULL
27885 };
27886
0a27f394 27887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
27888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27889 if (!SWIG_IsOK(res1)) {
0a27f394 27890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27891 }
27892 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
27894 if (!SWIG_IsOK(res2)) {
0a27f394 27895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
27896 }
27897 if (!argp2) {
0a27f394 27898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
27899 }
27900 arg2 = reinterpret_cast< wxRegion * >(argp2);
27901 {
72ef6efb 27902 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
27903 if (PyErr_Occurred()) SWIG_fail;
27904 }
27905 resultobj = SWIG_Py_Void();
27906 return resultobj;
27907fail:
27908 return NULL;
27909}
27910
27911
0a27f394
RD
27912SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27913 PyObject *resultobj = 0;
27914 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27915 wxDouble arg2 ;
27916 wxDouble arg3 ;
27917 wxDouble arg4 ;
27918 wxDouble arg5 ;
27919 void *argp1 = 0 ;
27920 int res1 = 0 ;
27921 double val2 ;
27922 int ecode2 = 0 ;
27923 double val3 ;
27924 int ecode3 = 0 ;
27925 double val4 ;
27926 int ecode4 = 0 ;
27927 double val5 ;
27928 int ecode5 = 0 ;
27929 PyObject * obj0 = 0 ;
27930 PyObject * obj1 = 0 ;
27931 PyObject * obj2 = 0 ;
27932 PyObject * obj3 = 0 ;
27933 PyObject * obj4 = 0 ;
27934 char * kwnames[] = {
27935 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27936 };
27937
27938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27940 if (!SWIG_IsOK(res1)) {
27941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27942 }
27943 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27944 ecode2 = SWIG_AsVal_double(obj1, &val2);
27945 if (!SWIG_IsOK(ecode2)) {
27946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
27947 }
27948 arg2 = static_cast< wxDouble >(val2);
27949 ecode3 = SWIG_AsVal_double(obj2, &val3);
27950 if (!SWIG_IsOK(ecode3)) {
27951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
27952 }
27953 arg3 = static_cast< wxDouble >(val3);
27954 ecode4 = SWIG_AsVal_double(obj3, &val4);
27955 if (!SWIG_IsOK(ecode4)) {
27956 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
27957 }
27958 arg4 = static_cast< wxDouble >(val4);
27959 ecode5 = SWIG_AsVal_double(obj4, &val5);
27960 if (!SWIG_IsOK(ecode5)) {
27961 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
27962 }
27963 arg5 = static_cast< wxDouble >(val5);
27964 {
27965 (arg1)->Clip(arg2,arg3,arg4,arg5);
27966 if (PyErr_Occurred()) SWIG_fail;
27967 }
27968 resultobj = SWIG_Py_Void();
27969 return resultobj;
27970fail:
27971 return NULL;
27972}
27973
27974
27975SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27976 PyObject *resultobj = 0;
27977 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27978 void *argp1 = 0 ;
27979 int res1 = 0 ;
27980 PyObject *swig_obj[1] ;
27981
27982 if (!args) SWIG_fail;
27983 swig_obj[0] = args;
27984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27985 if (!SWIG_IsOK(res1)) {
27986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27987 }
27988 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27989 {
27990 (arg1)->ResetClip();
27991 if (PyErr_Occurred()) SWIG_fail;
27992 }
27993 resultobj = SWIG_Py_Void();
27994 return resultobj;
27995fail:
27996 return NULL;
27997}
27998
27999
28000SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28001 PyObject *resultobj = 0;
28002 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28003 void *result = 0 ;
28004 void *argp1 = 0 ;
28005 int res1 = 0 ;
28006 PyObject *swig_obj[1] ;
28007
28008 if (!args) SWIG_fail;
28009 swig_obj[0] = args;
28010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28011 if (!SWIG_IsOK(res1)) {
28012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28013 }
28014 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28015 {
28016 result = (void *)(arg1)->GetNativeContext();
28017 if (PyErr_Occurred()) SWIG_fail;
28018 }
28019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28020 return resultobj;
28021fail:
28022 return NULL;
28023}
28024
28025
72ef6efb
RD
28026SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28027 PyObject *resultobj = 0;
28028 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28029 wxDouble arg2 ;
28030 wxDouble arg3 ;
28031 void *argp1 = 0 ;
28032 int res1 = 0 ;
28033 double val2 ;
28034 int ecode2 = 0 ;
28035 double val3 ;
28036 int ecode3 = 0 ;
28037 PyObject * obj0 = 0 ;
28038 PyObject * obj1 = 0 ;
28039 PyObject * obj2 = 0 ;
28040 char * kwnames[] = {
28041 (char *) "self",(char *) "dx",(char *) "dy", NULL
28042 };
28043
28044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28046 if (!SWIG_IsOK(res1)) {
28047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28048 }
28049 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28050 ecode2 = SWIG_AsVal_double(obj1, &val2);
28051 if (!SWIG_IsOK(ecode2)) {
28052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28053 }
28054 arg2 = static_cast< wxDouble >(val2);
28055 ecode3 = SWIG_AsVal_double(obj2, &val3);
28056 if (!SWIG_IsOK(ecode3)) {
28057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28058 }
28059 arg3 = static_cast< wxDouble >(val3);
28060 {
72ef6efb 28061 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28062 if (PyErr_Occurred()) SWIG_fail;
28063 }
28064 resultobj = SWIG_Py_Void();
28065 return resultobj;
28066fail:
28067 return NULL;
28068}
28069
28070
28071SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28072 PyObject *resultobj = 0;
28073 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28074 wxDouble arg2 ;
28075 wxDouble arg3 ;
28076 void *argp1 = 0 ;
28077 int res1 = 0 ;
28078 double val2 ;
28079 int ecode2 = 0 ;
28080 double val3 ;
28081 int ecode3 = 0 ;
28082 PyObject * obj0 = 0 ;
28083 PyObject * obj1 = 0 ;
28084 PyObject * obj2 = 0 ;
28085 char * kwnames[] = {
28086 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28087 };
28088
28089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28091 if (!SWIG_IsOK(res1)) {
28092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28093 }
28094 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28095 ecode2 = SWIG_AsVal_double(obj1, &val2);
28096 if (!SWIG_IsOK(ecode2)) {
28097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28098 }
28099 arg2 = static_cast< wxDouble >(val2);
28100 ecode3 = SWIG_AsVal_double(obj2, &val3);
28101 if (!SWIG_IsOK(ecode3)) {
28102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28103 }
28104 arg3 = static_cast< wxDouble >(val3);
28105 {
72ef6efb 28106 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28107 if (PyErr_Occurred()) SWIG_fail;
28108 }
28109 resultobj = SWIG_Py_Void();
28110 return resultobj;
28111fail:
28112 return NULL;
28113}
28114
28115
28116SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28117 PyObject *resultobj = 0;
28118 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28119 wxDouble arg2 ;
28120 void *argp1 = 0 ;
28121 int res1 = 0 ;
28122 double val2 ;
28123 int ecode2 = 0 ;
28124 PyObject * obj0 = 0 ;
28125 PyObject * obj1 = 0 ;
28126 char * kwnames[] = {
28127 (char *) "self",(char *) "angle", NULL
28128 };
28129
28130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28132 if (!SWIG_IsOK(res1)) {
28133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28134 }
28135 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28136 ecode2 = SWIG_AsVal_double(obj1, &val2);
28137 if (!SWIG_IsOK(ecode2)) {
28138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28139 }
28140 arg2 = static_cast< wxDouble >(val2);
28141 {
72ef6efb 28142 (arg1)->Rotate(arg2);
72ef6efb
RD
28143 if (PyErr_Occurred()) SWIG_fail;
28144 }
28145 resultobj = SWIG_Py_Void();
28146 return resultobj;
28147fail:
28148 return NULL;
28149}
28150
28151
70d7cb34
RD
28152SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28153 PyObject *resultobj = 0;
28154 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28155 wxGraphicsPen *arg2 = 0 ;
28156 void *argp1 = 0 ;
28157 int res1 = 0 ;
28158 void *argp2 = 0 ;
28159 int res2 = 0 ;
28160
28161 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28163 if (!SWIG_IsOK(res1)) {
28164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28165 }
28166 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28167 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28168 if (!SWIG_IsOK(res2)) {
28169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28170 }
28171 if (!argp2) {
28172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28173 }
28174 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28175 {
28176 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28177 if (PyErr_Occurred()) SWIG_fail;
28178 }
28179 resultobj = SWIG_Py_Void();
28180 return resultobj;
28181fail:
28182 return NULL;
28183}
28184
28185
28186SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28187 PyObject *resultobj = 0;
28188 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28189 wxPen *arg2 = 0 ;
28190 void *argp1 = 0 ;
28191 int res1 = 0 ;
28192 void *argp2 = 0 ;
28193 int res2 = 0 ;
72ef6efb 28194
70d7cb34
RD
28195 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28197 if (!SWIG_IsOK(res1)) {
28198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28199 }
28200 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28201 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28202 if (!SWIG_IsOK(res2)) {
28203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28204 }
28205 if (!argp2) {
28206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28207 }
28208 arg2 = reinterpret_cast< wxPen * >(argp2);
28209 {
72ef6efb 28210 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28211 if (PyErr_Occurred()) SWIG_fail;
28212 }
28213 resultobj = SWIG_Py_Void();
28214 return resultobj;
28215fail:
28216 return NULL;
28217}
28218
28219
70d7cb34
RD
28220SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28221 int argc;
28222 PyObject *argv[3];
28223
28224 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28225 --argc;
28226 if (argc == 2) {
28227 int _v = 0;
28228 {
28229 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28230 _v = SWIG_CheckState(res);
28231 }
28232 if (!_v) goto check_1;
28233 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28234 }
28235check_1:
28236
28237 if (argc == 2) {
28238 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28239 }
28240
28241fail:
28242 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28243 return NULL;
28244}
28245
28246
28247SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28248 PyObject *resultobj = 0;
28249 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28250 wxGraphicsBrush *arg2 = 0 ;
28251 void *argp1 = 0 ;
28252 int res1 = 0 ;
28253 void *argp2 = 0 ;
28254 int res2 = 0 ;
28255
28256 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28258 if (!SWIG_IsOK(res1)) {
28259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28260 }
28261 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28262 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28263 if (!SWIG_IsOK(res2)) {
28264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28265 }
28266 if (!argp2) {
28267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28268 }
28269 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28270 {
28271 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28272 if (PyErr_Occurred()) SWIG_fail;
28273 }
28274 resultobj = SWIG_Py_Void();
28275 return resultobj;
28276fail:
28277 return NULL;
28278}
28279
28280
28281SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28282 PyObject *resultobj = 0;
28283 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28284 wxBrush *arg2 = 0 ;
28285 void *argp1 = 0 ;
28286 int res1 = 0 ;
28287 void *argp2 = 0 ;
28288 int res2 = 0 ;
72ef6efb 28289
70d7cb34
RD
28290 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28292 if (!SWIG_IsOK(res1)) {
28293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28294 }
28295 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28296 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28297 if (!SWIG_IsOK(res2)) {
28298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28299 }
28300 if (!argp2) {
28301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28302 }
28303 arg2 = reinterpret_cast< wxBrush * >(argp2);
28304 {
72ef6efb 28305 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28306 if (PyErr_Occurred()) SWIG_fail;
28307 }
28308 resultobj = SWIG_Py_Void();
28309 return resultobj;
28310fail:
28311 return NULL;
28312}
28313
28314
70d7cb34
RD
28315SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28316 int argc;
28317 PyObject *argv[3];
72ef6efb 28318
70d7cb34
RD
28319 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28320 --argc;
28321 if (argc == 2) {
28322 int _v = 0;
28323 {
28324 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28325 _v = SWIG_CheckState(res);
28326 }
28327 if (!_v) goto check_1;
28328 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28329 }
70d7cb34
RD
28330check_1:
28331
28332 if (argc == 2) {
28333 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28334 }
70d7cb34 28335
72ef6efb 28336fail:
70d7cb34 28337 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28338 return NULL;
28339}
28340
28341
70d7cb34 28342SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28343 PyObject *resultobj = 0;
28344 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28345 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28346 void *argp1 = 0 ;
28347 int res1 = 0 ;
70d7cb34
RD
28348 void *argp2 = 0 ;
28349 int res2 = 0 ;
72ef6efb 28350
70d7cb34
RD
28351 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28353 if (!SWIG_IsOK(res1)) {
70d7cb34 28354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28355 }
28356 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28357 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28358 if (!SWIG_IsOK(res2)) {
28359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28360 }
70d7cb34
RD
28361 if (!argp2) {
28362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28363 }
70d7cb34 28364 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28365 {
70d7cb34 28366 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28367 if (PyErr_Occurred()) SWIG_fail;
28368 }
28369 resultobj = SWIG_Py_Void();
28370 return resultobj;
28371fail:
28372 return NULL;
28373}
28374
28375
70d7cb34 28376SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28377 PyObject *resultobj = 0;
28378 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28379 wxFont *arg2 = 0 ;
70d7cb34
RD
28380 wxColour const &arg3_defvalue = *wxBLACK ;
28381 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28382 void *argp1 = 0 ;
28383 int res1 = 0 ;
28384 void *argp2 = 0 ;
28385 int res2 = 0 ;
70d7cb34 28386 wxColour temp3 ;
72ef6efb 28387
70d7cb34
RD
28388 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28390 if (!SWIG_IsOK(res1)) {
28391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28392 }
28393 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28394 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28395 if (!SWIG_IsOK(res2)) {
28396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28397 }
28398 if (!argp2) {
28399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28400 }
28401 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28402 if (swig_obj[2]) {
28403 {
28404 arg3 = &temp3;
28405 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28406 }
28407 }
72ef6efb 28408 {
70d7cb34 28409 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28410 if (PyErr_Occurred()) SWIG_fail;
28411 }
28412 resultobj = SWIG_Py_Void();
28413 return resultobj;
28414fail:
28415 return NULL;
28416}
28417
28418
70d7cb34
RD
28419SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28420 int argc;
28421 PyObject *argv[4];
72ef6efb 28422
70d7cb34
RD
28423 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28424 --argc;
28425 if (argc == 2) {
28426 int _v = 0;
28427 {
28428 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28429 _v = SWIG_CheckState(res);
28430 }
28431 if (!_v) goto check_1;
28432 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28433 }
70d7cb34
RD
28434check_1:
28435
28436 if ((argc >= 2) && (argc <= 3)) {
28437 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28438 }
70d7cb34 28439
72ef6efb 28440fail:
70d7cb34 28441 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28442 return NULL;
28443}
28444
28445
28446SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28447 PyObject *resultobj = 0;
28448 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28449 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
28450 void *argp1 = 0 ;
28451 int res1 = 0 ;
28452 void *argp2 = 0 ;
28453 int res2 = 0 ;
28454 PyObject * obj0 = 0 ;
28455 PyObject * obj1 = 0 ;
28456 char * kwnames[] = {
28457 (char *) "self",(char *) "path", NULL
28458 };
28459
28460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28462 if (!SWIG_IsOK(res1)) {
28463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28464 }
28465 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28466 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28467 if (!SWIG_IsOK(res2)) {
28468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
28469 }
28470 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28471 {
72ef6efb 28472 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
72ef6efb
RD
28473 if (PyErr_Occurred()) SWIG_fail;
28474 }
28475 resultobj = SWIG_Py_Void();
28476 return resultobj;
28477fail:
28478 return NULL;
28479}
28480
28481
28482SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28483 PyObject *resultobj = 0;
28484 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28485 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
28486 int arg3 = (int) wxWINDING_RULE ;
28487 void *argp1 = 0 ;
28488 int res1 = 0 ;
28489 void *argp2 = 0 ;
28490 int res2 = 0 ;
28491 int val3 ;
28492 int ecode3 = 0 ;
28493 PyObject * obj0 = 0 ;
28494 PyObject * obj1 = 0 ;
28495 PyObject * obj2 = 0 ;
28496 char * kwnames[] = {
28497 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28498 };
28499
28500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28502 if (!SWIG_IsOK(res1)) {
28503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28504 }
28505 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28506 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28507 if (!SWIG_IsOK(res2)) {
28508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
28509 }
28510 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28511 if (obj2) {
28512 ecode3 = SWIG_AsVal_int(obj2, &val3);
28513 if (!SWIG_IsOK(ecode3)) {
28514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28515 }
28516 arg3 = static_cast< int >(val3);
28517 }
28518 {
72ef6efb 28519 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
28520 if (PyErr_Occurred()) SWIG_fail;
28521 }
28522 resultobj = SWIG_Py_Void();
28523 return resultobj;
28524fail:
28525 return NULL;
28526}
28527
28528
28529SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28530 PyObject *resultobj = 0;
28531 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28532 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
28533 int arg3 = (int) wxWINDING_RULE ;
28534 void *argp1 = 0 ;
28535 int res1 = 0 ;
28536 void *argp2 = 0 ;
28537 int res2 = 0 ;
28538 int val3 ;
28539 int ecode3 = 0 ;
28540 PyObject * obj0 = 0 ;
28541 PyObject * obj1 = 0 ;
28542 PyObject * obj2 = 0 ;
28543 char * kwnames[] = {
28544 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28545 };
28546
28547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28549 if (!SWIG_IsOK(res1)) {
28550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28551 }
28552 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28553 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28554 if (!SWIG_IsOK(res2)) {
28555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
28556 }
28557 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28558 if (obj2) {
28559 ecode3 = SWIG_AsVal_int(obj2, &val3);
28560 if (!SWIG_IsOK(ecode3)) {
28561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28562 }
28563 arg3 = static_cast< int >(val3);
28564 }
28565 {
72ef6efb 28566 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
28567 if (PyErr_Occurred()) SWIG_fail;
28568 }
28569 resultobj = SWIG_Py_Void();
28570 return resultobj;
28571fail:
28572 return NULL;
28573}
28574
28575
b39fe951 28576SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28577 PyObject *resultobj = 0;
28578 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28579 wxString *arg2 = 0 ;
28580 wxDouble arg3 ;
28581 wxDouble arg4 ;
28582 void *argp1 = 0 ;
28583 int res1 = 0 ;
28584 bool temp2 = false ;
28585 double val3 ;
28586 int ecode3 = 0 ;
28587 double val4 ;
28588 int ecode4 = 0 ;
b39fe951
RD
28589 PyObject * obj0 = 0 ;
28590 PyObject * obj1 = 0 ;
28591 PyObject * obj2 = 0 ;
28592 PyObject * obj3 = 0 ;
28593 char * kwnames[] = {
28594 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
28595 };
72ef6efb 28596
b39fe951
RD
28597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28599 if (!SWIG_IsOK(res1)) {
28600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28601 }
28602 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28603 {
b39fe951 28604 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28605 if (arg2 == NULL) SWIG_fail;
28606 temp2 = true;
28607 }
b39fe951 28608 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
28609 if (!SWIG_IsOK(ecode3)) {
28610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28611 }
28612 arg3 = static_cast< wxDouble >(val3);
b39fe951 28613 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
28614 if (!SWIG_IsOK(ecode4)) {
28615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28616 }
28617 arg4 = static_cast< wxDouble >(val4);
28618 {
72ef6efb 28619 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
28620 if (PyErr_Occurred()) SWIG_fail;
28621 }
28622 resultobj = SWIG_Py_Void();
28623 {
28624 if (temp2)
28625 delete arg2;
28626 }
28627 return resultobj;
28628fail:
28629 {
28630 if (temp2)
28631 delete arg2;
28632 }
28633 return NULL;
28634}
28635
28636
b39fe951 28637SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28638 PyObject *resultobj = 0;
28639 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28640 wxString *arg2 = 0 ;
28641 wxDouble arg3 ;
28642 wxDouble arg4 ;
28643 wxDouble arg5 ;
28644 void *argp1 = 0 ;
28645 int res1 = 0 ;
28646 bool temp2 = false ;
28647 double val3 ;
28648 int ecode3 = 0 ;
28649 double val4 ;
28650 int ecode4 = 0 ;
28651 double val5 ;
28652 int ecode5 = 0 ;
b39fe951
RD
28653 PyObject * obj0 = 0 ;
28654 PyObject * obj1 = 0 ;
28655 PyObject * obj2 = 0 ;
28656 PyObject * obj3 = 0 ;
28657 PyObject * obj4 = 0 ;
28658 char * kwnames[] = {
28659 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
28660 };
72ef6efb 28661
b39fe951
RD
28662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28664 if (!SWIG_IsOK(res1)) {
b39fe951 28665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28666 }
28667 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28668 {
b39fe951 28669 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28670 if (arg2 == NULL) SWIG_fail;
28671 temp2 = true;
28672 }
b39fe951 28673 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 28674 if (!SWIG_IsOK(ecode3)) {
b39fe951 28675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28676 }
28677 arg3 = static_cast< wxDouble >(val3);
b39fe951 28678 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 28679 if (!SWIG_IsOK(ecode4)) {
b39fe951 28680 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28681 }
28682 arg4 = static_cast< wxDouble >(val4);
b39fe951 28683 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 28684 if (!SWIG_IsOK(ecode5)) {
b39fe951 28685 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28686 }
28687 arg5 = static_cast< wxDouble >(val5);
28688 {
72ef6efb 28689 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
28690 if (PyErr_Occurred()) SWIG_fail;
28691 }
28692 resultobj = SWIG_Py_Void();
28693 {
28694 if (temp2)
28695 delete arg2;
28696 }
28697 return resultobj;
28698fail:
28699 {
28700 if (temp2)
28701 delete arg2;
28702 }
28703 return NULL;
28704}
28705
28706
be68621e 28707SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28708 PyObject *resultobj = 0;
28709 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28710 wxString *arg2 = 0 ;
28711 wxDouble *arg3 = (wxDouble *) 0 ;
28712 wxDouble *arg4 = (wxDouble *) 0 ;
28713 wxDouble *arg5 = (wxDouble *) 0 ;
28714 wxDouble *arg6 = (wxDouble *) 0 ;
28715 void *argp1 = 0 ;
28716 int res1 = 0 ;
28717 bool temp2 = false ;
28718 wxDouble temp3 ;
28719 int res3 = SWIG_TMPOBJ ;
28720 wxDouble temp4 ;
28721 int res4 = SWIG_TMPOBJ ;
28722 wxDouble temp5 ;
28723 int res5 = SWIG_TMPOBJ ;
28724 wxDouble temp6 ;
28725 int res6 = SWIG_TMPOBJ ;
28726 PyObject * obj0 = 0 ;
28727 PyObject * obj1 = 0 ;
28728 char * kwnames[] = {
28729 (char *) "self",(char *) "text", NULL
28730 };
28731
28732 arg3 = &temp3;
28733 arg4 = &temp4;
28734 arg5 = &temp5;
28735 arg6 = &temp6;
be68621e 28736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28738 if (!SWIG_IsOK(res1)) {
be68621e 28739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
28740 }
28741 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28742 {
28743 arg2 = wxString_in_helper(obj1);
28744 if (arg2 == NULL) SWIG_fail;
28745 temp2 = true;
28746 }
28747 {
72ef6efb 28748 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
28749 if (PyErr_Occurred()) SWIG_fail;
28750 }
28751 resultobj = SWIG_Py_Void();
28752 if (SWIG_IsTmpObj(res3)) {
28753 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
28754 } else {
28755 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28756 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
28757 }
28758 if (SWIG_IsTmpObj(res4)) {
28759 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
28760 } else {
28761 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28762 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
28763 }
28764 if (SWIG_IsTmpObj(res5)) {
28765 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
28766 } else {
28767 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28768 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
28769 }
28770 if (SWIG_IsTmpObj(res6)) {
28771 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
28772 } else {
28773 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28774 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
28775 }
28776 {
28777 if (temp2)
28778 delete arg2;
28779 }
28780 return resultobj;
28781fail:
28782 {
28783 if (temp2)
28784 delete arg2;
28785 }
28786 return NULL;
28787}
28788
28789
be68621e
RD
28790SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28791 PyObject *resultobj = 0;
28792 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28793 wxString *arg2 = 0 ;
28794 PyObject *result = 0 ;
28795 void *argp1 = 0 ;
28796 int res1 = 0 ;
28797 bool temp2 = false ;
28798 PyObject * obj0 = 0 ;
28799 PyObject * obj1 = 0 ;
28800 char * kwnames[] = {
28801 (char *) "self",(char *) "text", NULL
28802 };
28803
28804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
28805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28806 if (!SWIG_IsOK(res1)) {
28807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28808 }
28809 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28810 {
28811 arg2 = wxString_in_helper(obj1);
28812 if (arg2 == NULL) SWIG_fail;
28813 temp2 = true;
28814 }
28815 {
28816 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
28817 if (PyErr_Occurred()) SWIG_fail;
28818 }
28819 resultobj = result;
28820 {
28821 if (temp2)
28822 delete arg2;
28823 }
28824 return resultobj;
28825fail:
28826 {
28827 if (temp2)
28828 delete arg2;
28829 }
28830 return NULL;
28831}
28832
28833
72ef6efb
RD
28834SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28835 PyObject *resultobj = 0;
28836 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28837 wxString *arg2 = 0 ;
b39fe951 28838 wxArrayDouble result;
72ef6efb
RD
28839 void *argp1 = 0 ;
28840 int res1 = 0 ;
28841 bool temp2 = false ;
72ef6efb
RD
28842 PyObject * obj0 = 0 ;
28843 PyObject * obj1 = 0 ;
72ef6efb 28844 char * kwnames[] = {
b39fe951 28845 (char *) "self",(char *) "text", NULL
72ef6efb
RD
28846 };
28847
b39fe951 28848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28850 if (!SWIG_IsOK(res1)) {
b39fe951 28851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28852 }
28853 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28854 {
28855 arg2 = wxString_in_helper(obj1);
28856 if (arg2 == NULL) SWIG_fail;
28857 temp2 = true;
28858 }
72ef6efb 28859 {
b39fe951 28860 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
28861 if (PyErr_Occurred()) SWIG_fail;
28862 }
b39fe951
RD
28863 {
28864 resultobj = wxArrayDouble2PyList_helper(result);
28865 }
72ef6efb
RD
28866 {
28867 if (temp2)
28868 delete arg2;
28869 }
28870 return resultobj;
28871fail:
28872 {
28873 if (temp2)
28874 delete arg2;
28875 }
28876 return NULL;
28877}
28878
28879
28880SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28881 PyObject *resultobj = 0;
28882 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28883 wxBitmap *arg2 = 0 ;
28884 wxDouble arg3 ;
28885 wxDouble arg4 ;
28886 wxDouble arg5 ;
28887 wxDouble arg6 ;
28888 void *argp1 = 0 ;
28889 int res1 = 0 ;
28890 void *argp2 = 0 ;
28891 int res2 = 0 ;
28892 double val3 ;
28893 int ecode3 = 0 ;
28894 double val4 ;
28895 int ecode4 = 0 ;
28896 double val5 ;
28897 int ecode5 = 0 ;
28898 double val6 ;
28899 int ecode6 = 0 ;
28900 PyObject * obj0 = 0 ;
28901 PyObject * obj1 = 0 ;
28902 PyObject * obj2 = 0 ;
28903 PyObject * obj3 = 0 ;
28904 PyObject * obj4 = 0 ;
28905 PyObject * obj5 = 0 ;
28906 char * kwnames[] = {
28907 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28908 };
28909
28910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28912 if (!SWIG_IsOK(res1)) {
28913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28914 }
28915 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28916 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
28917 if (!SWIG_IsOK(res2)) {
28918 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28919 }
28920 if (!argp2) {
28921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28922 }
28923 arg2 = reinterpret_cast< wxBitmap * >(argp2);
28924 ecode3 = SWIG_AsVal_double(obj2, &val3);
28925 if (!SWIG_IsOK(ecode3)) {
28926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
28927 }
28928 arg3 = static_cast< wxDouble >(val3);
28929 ecode4 = SWIG_AsVal_double(obj3, &val4);
28930 if (!SWIG_IsOK(ecode4)) {
28931 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
28932 }
28933 arg4 = static_cast< wxDouble >(val4);
28934 ecode5 = SWIG_AsVal_double(obj4, &val5);
28935 if (!SWIG_IsOK(ecode5)) {
28936 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
28937 }
28938 arg5 = static_cast< wxDouble >(val5);
28939 ecode6 = SWIG_AsVal_double(obj5, &val6);
28940 if (!SWIG_IsOK(ecode6)) {
28941 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
28942 }
28943 arg6 = static_cast< wxDouble >(val6);
28944 {
72ef6efb 28945 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
28946 if (PyErr_Occurred()) SWIG_fail;
28947 }
28948 resultobj = SWIG_Py_Void();
28949 return resultobj;
28950fail:
28951 return NULL;
28952}
28953
28954
28955SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28956 PyObject *resultobj = 0;
28957 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28958 wxIcon *arg2 = 0 ;
28959 wxDouble arg3 ;
28960 wxDouble arg4 ;
28961 wxDouble arg5 ;
28962 wxDouble arg6 ;
28963 void *argp1 = 0 ;
28964 int res1 = 0 ;
28965 void *argp2 = 0 ;
28966 int res2 = 0 ;
28967 double val3 ;
28968 int ecode3 = 0 ;
28969 double val4 ;
28970 int ecode4 = 0 ;
28971 double val5 ;
28972 int ecode5 = 0 ;
70d7cb34
RD
28973 double val6 ;
28974 int ecode6 = 0 ;
28975 PyObject * obj0 = 0 ;
28976 PyObject * obj1 = 0 ;
28977 PyObject * obj2 = 0 ;
28978 PyObject * obj3 = 0 ;
28979 PyObject * obj4 = 0 ;
28980 PyObject * obj5 = 0 ;
28981 char * kwnames[] = {
28982 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28983 };
28984
28985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28987 if (!SWIG_IsOK(res1)) {
28988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28989 }
28990 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28991 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
28992 if (!SWIG_IsOK(res2)) {
28993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28994 }
28995 if (!argp2) {
28996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28997 }
28998 arg2 = reinterpret_cast< wxIcon * >(argp2);
28999 ecode3 = SWIG_AsVal_double(obj2, &val3);
29000 if (!SWIG_IsOK(ecode3)) {
29001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29002 }
29003 arg3 = static_cast< wxDouble >(val3);
29004 ecode4 = SWIG_AsVal_double(obj3, &val4);
29005 if (!SWIG_IsOK(ecode4)) {
29006 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29007 }
29008 arg4 = static_cast< wxDouble >(val4);
29009 ecode5 = SWIG_AsVal_double(obj4, &val5);
29010 if (!SWIG_IsOK(ecode5)) {
29011 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29012 }
29013 arg5 = static_cast< wxDouble >(val5);
29014 ecode6 = SWIG_AsVal_double(obj5, &val6);
29015 if (!SWIG_IsOK(ecode6)) {
29016 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29017 }
29018 arg6 = static_cast< wxDouble >(val6);
29019 {
29020 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29021 if (PyErr_Occurred()) SWIG_fail;
29022 }
29023 resultobj = SWIG_Py_Void();
29024 return resultobj;
29025fail:
29026 return NULL;
29027}
29028
29029
29030SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29031 PyObject *resultobj = 0;
29032 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29033 wxDouble arg2 ;
29034 wxDouble arg3 ;
29035 wxDouble arg4 ;
29036 wxDouble arg5 ;
29037 void *argp1 = 0 ;
29038 int res1 = 0 ;
29039 double val2 ;
29040 int ecode2 = 0 ;
29041 double val3 ;
29042 int ecode3 = 0 ;
29043 double val4 ;
29044 int ecode4 = 0 ;
29045 double val5 ;
29046 int ecode5 = 0 ;
29047 PyObject * obj0 = 0 ;
29048 PyObject * obj1 = 0 ;
29049 PyObject * obj2 = 0 ;
29050 PyObject * obj3 = 0 ;
29051 PyObject * obj4 = 0 ;
29052 char * kwnames[] = {
29053 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29054 };
29055
29056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29058 if (!SWIG_IsOK(res1)) {
29059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29060 }
29061 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29062 ecode2 = SWIG_AsVal_double(obj1, &val2);
29063 if (!SWIG_IsOK(ecode2)) {
29064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29065 }
29066 arg2 = static_cast< wxDouble >(val2);
29067 ecode3 = SWIG_AsVal_double(obj2, &val3);
29068 if (!SWIG_IsOK(ecode3)) {
29069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29070 }
29071 arg3 = static_cast< wxDouble >(val3);
29072 ecode4 = SWIG_AsVal_double(obj3, &val4);
29073 if (!SWIG_IsOK(ecode4)) {
29074 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29075 }
29076 arg4 = static_cast< wxDouble >(val4);
29077 ecode5 = SWIG_AsVal_double(obj4, &val5);
29078 if (!SWIG_IsOK(ecode5)) {
29079 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29080 }
29081 arg5 = static_cast< wxDouble >(val5);
29082 {
29083 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29084 if (PyErr_Occurred()) SWIG_fail;
29085 }
29086 resultobj = SWIG_Py_Void();
29087 return resultobj;
29088fail:
29089 return NULL;
29090}
29091
29092
29093SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29094 PyObject *resultobj = 0;
29095 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29096 size_t arg2 ;
29097 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29098 void *argp1 = 0 ;
29099 int res1 = 0 ;
29100 PyObject * obj0 = 0 ;
29101 PyObject * obj1 = 0 ;
29102 char * kwnames[] = {
29103 (char *) "self",(char *) "points", NULL
29104 };
29105
29106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29108 if (!SWIG_IsOK(res1)) {
29109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29110 }
29111 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29112 {
29113 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29114 if (arg3 == NULL) SWIG_fail;
29115 }
29116 {
29117 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29118 if (PyErr_Occurred()) SWIG_fail;
29119 }
29120 resultobj = SWIG_Py_Void();
29121 {
29122 if (arg3) delete [] arg3;
29123 }
29124 return resultobj;
29125fail:
29126 {
29127 if (arg3) delete [] arg3;
29128 }
29129 return NULL;
29130}
29131
29132
29133SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29134 PyObject *resultobj = 0;
29135 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29136 PyObject *arg2 = (PyObject *) 0 ;
29137 PyObject *arg3 = (PyObject *) 0 ;
29138 void *argp1 = 0 ;
29139 int res1 = 0 ;
29140 PyObject * obj0 = 0 ;
29141 PyObject * obj1 = 0 ;
29142 PyObject * obj2 = 0 ;
29143 char * kwnames[] = {
29144 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29145 };
29146
29147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29149 if (!SWIG_IsOK(res1)) {
29150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29151 }
29152 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29153 arg2 = obj1;
29154 arg3 = obj2;
29155 {
29156 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29157 if (PyErr_Occurred()) SWIG_fail;
29158 }
29159 resultobj = SWIG_Py_Void();
29160 return resultobj;
29161fail:
29162 return NULL;
29163}
29164
29165
29166SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29167 PyObject *resultobj = 0;
29168 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29169 size_t arg2 ;
29170 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29171 int arg4 = (int) wxWINDING_RULE ;
29172 void *argp1 = 0 ;
29173 int res1 = 0 ;
29174 int val4 ;
29175 int ecode4 = 0 ;
29176 PyObject * obj0 = 0 ;
29177 PyObject * obj1 = 0 ;
29178 PyObject * obj2 = 0 ;
29179 char * kwnames[] = {
29180 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29181 };
29182
29183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29185 if (!SWIG_IsOK(res1)) {
29186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29187 }
29188 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29189 {
29190 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29191 if (arg3 == NULL) SWIG_fail;
29192 }
29193 if (obj2) {
29194 ecode4 = SWIG_AsVal_int(obj2, &val4);
29195 if (!SWIG_IsOK(ecode4)) {
29196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29197 }
29198 arg4 = static_cast< int >(val4);
29199 }
29200 {
29201 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29202 if (PyErr_Occurred()) SWIG_fail;
29203 }
29204 resultobj = SWIG_Py_Void();
29205 {
29206 if (arg3) delete [] arg3;
29207 }
29208 return resultobj;
29209fail:
29210 {
29211 if (arg3) delete [] arg3;
29212 }
29213 return NULL;
29214}
29215
29216
29217SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29218 PyObject *resultobj = 0;
29219 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29220 wxDouble arg2 ;
29221 wxDouble arg3 ;
29222 wxDouble arg4 ;
29223 wxDouble arg5 ;
29224 void *argp1 = 0 ;
29225 int res1 = 0 ;
29226 double val2 ;
29227 int ecode2 = 0 ;
29228 double val3 ;
29229 int ecode3 = 0 ;
29230 double val4 ;
29231 int ecode4 = 0 ;
29232 double val5 ;
29233 int ecode5 = 0 ;
29234 PyObject * obj0 = 0 ;
29235 PyObject * obj1 = 0 ;
29236 PyObject * obj2 = 0 ;
29237 PyObject * obj3 = 0 ;
29238 PyObject * obj4 = 0 ;
29239 char * kwnames[] = {
29240 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29241 };
29242
29243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29245 if (!SWIG_IsOK(res1)) {
29246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29247 }
29248 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29249 ecode2 = SWIG_AsVal_double(obj1, &val2);
29250 if (!SWIG_IsOK(ecode2)) {
29251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29252 }
29253 arg2 = static_cast< wxDouble >(val2);
29254 ecode3 = SWIG_AsVal_double(obj2, &val3);
29255 if (!SWIG_IsOK(ecode3)) {
29256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29257 }
29258 arg3 = static_cast< wxDouble >(val3);
29259 ecode4 = SWIG_AsVal_double(obj3, &val4);
29260 if (!SWIG_IsOK(ecode4)) {
29261 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29262 }
29263 arg4 = static_cast< wxDouble >(val4);
29264 ecode5 = SWIG_AsVal_double(obj4, &val5);
29265 if (!SWIG_IsOK(ecode5)) {
29266 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29267 }
29268 arg5 = static_cast< wxDouble >(val5);
29269 {
29270 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29271 if (PyErr_Occurred()) SWIG_fail;
29272 }
29273 resultobj = SWIG_Py_Void();
29274 return resultobj;
29275fail:
29276 return NULL;
29277}
29278
29279
29280SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29281 PyObject *resultobj = 0;
29282 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29283 wxDouble arg2 ;
29284 wxDouble arg3 ;
29285 wxDouble arg4 ;
29286 wxDouble arg5 ;
29287 void *argp1 = 0 ;
29288 int res1 = 0 ;
29289 double val2 ;
29290 int ecode2 = 0 ;
29291 double val3 ;
29292 int ecode3 = 0 ;
29293 double val4 ;
29294 int ecode4 = 0 ;
29295 double val5 ;
29296 int ecode5 = 0 ;
72ef6efb
RD
29297 PyObject * obj0 = 0 ;
29298 PyObject * obj1 = 0 ;
29299 PyObject * obj2 = 0 ;
29300 PyObject * obj3 = 0 ;
29301 PyObject * obj4 = 0 ;
72ef6efb 29302 char * kwnames[] = {
70d7cb34 29303 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29304 };
29305
70d7cb34 29306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29308 if (!SWIG_IsOK(res1)) {
70d7cb34 29309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29310 }
29311 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29312 ecode2 = SWIG_AsVal_double(obj1, &val2);
29313 if (!SWIG_IsOK(ecode2)) {
29314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29315 }
29316 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29317 ecode3 = SWIG_AsVal_double(obj2, &val3);
29318 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29319 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29320 }
29321 arg3 = static_cast< wxDouble >(val3);
29322 ecode4 = SWIG_AsVal_double(obj3, &val4);
29323 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29324 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29325 }
29326 arg4 = static_cast< wxDouble >(val4);
29327 ecode5 = SWIG_AsVal_double(obj4, &val5);
29328 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29330 }
29331 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29332 {
70d7cb34 29333 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29334 if (PyErr_Occurred()) SWIG_fail;
29335 }
29336 resultobj = SWIG_Py_Void();
29337 return resultobj;
29338fail:
29339 return NULL;
29340}
29341
29342
70d7cb34 29343SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29344 PyObject *resultobj = 0;
29345 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29346 wxDouble arg2 ;
29347 wxDouble arg3 ;
29348 wxDouble arg4 ;
29349 wxDouble arg5 ;
70d7cb34 29350 wxDouble arg6 ;
72ef6efb
RD
29351 void *argp1 = 0 ;
29352 int res1 = 0 ;
29353 double val2 ;
29354 int ecode2 = 0 ;
29355 double val3 ;
29356 int ecode3 = 0 ;
29357 double val4 ;
29358 int ecode4 = 0 ;
29359 double val5 ;
29360 int ecode5 = 0 ;
70d7cb34
RD
29361 double val6 ;
29362 int ecode6 = 0 ;
72ef6efb
RD
29363 PyObject * obj0 = 0 ;
29364 PyObject * obj1 = 0 ;
29365 PyObject * obj2 = 0 ;
29366 PyObject * obj3 = 0 ;
29367 PyObject * obj4 = 0 ;
70d7cb34 29368 PyObject * obj5 = 0 ;
72ef6efb 29369 char * kwnames[] = {
70d7cb34 29370 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29371 };
29372
70d7cb34 29373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29375 if (!SWIG_IsOK(res1)) {
70d7cb34 29376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29377 }
29378 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29379 ecode2 = SWIG_AsVal_double(obj1, &val2);
29380 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29382 }
29383 arg2 = static_cast< wxDouble >(val2);
29384 ecode3 = SWIG_AsVal_double(obj2, &val3);
29385 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29387 }
29388 arg3 = static_cast< wxDouble >(val3);
29389 ecode4 = SWIG_AsVal_double(obj3, &val4);
29390 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29391 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29392 }
29393 arg4 = static_cast< wxDouble >(val4);
29394 ecode5 = SWIG_AsVal_double(obj4, &val5);
29395 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29396 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29397 }
29398 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29399 ecode6 = SWIG_AsVal_double(obj5, &val6);
29400 if (!SWIG_IsOK(ecode6)) {
29401 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29402 }
29403 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29404 {
70d7cb34 29405 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29406 if (PyErr_Occurred()) SWIG_fail;
29407 }
29408 resultobj = SWIG_Py_Void();
29409 return resultobj;
29410fail:
29411 return NULL;
29412}
29413
29414
70d7cb34 29415SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29416 PyObject *resultobj = 0;
29417 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29418 bool result;
72ef6efb
RD
29419 void *argp1 = 0 ;
29420 int res1 = 0 ;
70d7cb34 29421 PyObject *swig_obj[1] ;
72ef6efb 29422
70d7cb34
RD
29423 if (!args) SWIG_fail;
29424 swig_obj[0] = args;
29425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29426 if (!SWIG_IsOK(res1)) {
70d7cb34 29427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29428 }
29429 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29430 {
70d7cb34
RD
29431 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29432 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29433 }
72ef6efb 29434 {
70d7cb34
RD
29435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29436 }
29437 return resultobj;
29438fail:
29439 return NULL;
29440}
29441
29442
29443SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29444 PyObject *obj;
29445 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29446 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29447 return SWIG_Py_Void();
29448}
29449
29450SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29451 PyObject *resultobj = 0;
29452 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29453 void *argp1 = 0 ;
29454 int res1 = 0 ;
29455 PyObject *swig_obj[1] ;
29456
29457 if (!args) SWIG_fail;
29458 swig_obj[0] = args;
29459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29460 if (!SWIG_IsOK(res1)) {
29461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29462 }
29463 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29464 {
29465 delete arg1;
29466
72ef6efb
RD
29467 if (PyErr_Occurred()) SWIG_fail;
29468 }
29469 resultobj = SWIG_Py_Void();
70d7cb34
RD
29470 return resultobj;
29471fail:
29472 return NULL;
29473}
29474
29475
29476SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29477 PyObject *resultobj = 0;
29478 wxGraphicsRenderer *result = 0 ;
29479
29480 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29481 {
70d7cb34
RD
29482 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29483 if (PyErr_Occurred()) SWIG_fail;
29484 }
29485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29486 return resultobj;
29487fail:
29488 return NULL;
29489}
29490
29491
29492SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29493 PyObject *resultobj = 0;
29494 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29495 wxWindowDC *arg2 = 0 ;
29496 wxGraphicsContext *result = 0 ;
29497 void *argp1 = 0 ;
29498 int res1 = 0 ;
29499 void *argp2 = 0 ;
29500 int res2 = 0 ;
29501
29502 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29504 if (!SWIG_IsOK(res1)) {
29505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29506 }
29507 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29508 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29509 if (!SWIG_IsOK(res2)) {
29510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29511 }
29512 if (!argp2) {
29513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29514 }
29515 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29516 {
29517 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29518 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29519 }
70d7cb34 29520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29521 return resultobj;
29522fail:
70d7cb34
RD
29523 return NULL;
29524}
29525
29526
29527SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29528 PyObject *resultobj = 0;
29529 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29530 wxWindow *arg2 = (wxWindow *) 0 ;
29531 wxGraphicsContext *result = 0 ;
29532 void *argp1 = 0 ;
29533 int res1 = 0 ;
29534 void *argp2 = 0 ;
29535 int res2 = 0 ;
29536
29537 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29539 if (!SWIG_IsOK(res1)) {
29540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29541 }
29542 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29543 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29544 if (!SWIG_IsOK(res2)) {
29545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29546 }
29547 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 29548 {
70d7cb34
RD
29549 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29550 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29551 }
70d7cb34
RD
29552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29553 return resultobj;
29554fail:
72ef6efb
RD
29555 return NULL;
29556}
29557
29558
70d7cb34
RD
29559SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29560 int argc;
29561 PyObject *argv[3];
29562
29563 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29564 --argc;
29565 if (argc == 2) {
29566 int _v = 0;
29567 {
29568 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29569 _v = SWIG_CheckState(res);
29570 }
29571 if (!_v) goto check_1;
29572 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29573 }
29574check_1:
29575
29576 if (argc == 2) {
29577 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29578 }
29579
29580fail:
29581 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29582 return NULL;
29583}
29584
29585
29586SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29587 PyObject *resultobj = 0;
70d7cb34
RD
29588 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29589 void *arg2 = (void *) 0 ;
29590 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29591 void *argp1 = 0 ;
29592 int res1 = 0 ;
70d7cb34 29593 int res2 ;
b39fe951
RD
29594 PyObject * obj0 = 0 ;
29595 PyObject * obj1 = 0 ;
b39fe951 29596 char * kwnames[] = {
70d7cb34 29597 (char *) "self",(char *) "context", NULL
b39fe951 29598 };
72ef6efb 29599
70d7cb34
RD
29600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29602 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29604 }
29605 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29606 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29607 if (!SWIG_IsOK(res2)) {
29608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 29609 }
72ef6efb 29610 {
70d7cb34 29611 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
29612 if (PyErr_Occurred()) SWIG_fail;
29613 }
70d7cb34 29614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29615 return resultobj;
29616fail:
29617 return NULL;
29618}
29619
29620
70d7cb34 29621SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29622 PyObject *resultobj = 0;
70d7cb34
RD
29623 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29624 void *arg2 = (void *) 0 ;
29625 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29626 void *argp1 = 0 ;
29627 int res1 = 0 ;
70d7cb34 29628 int res2 ;
72ef6efb
RD
29629 PyObject * obj0 = 0 ;
29630 PyObject * obj1 = 0 ;
72ef6efb 29631 char * kwnames[] = {
70d7cb34 29632 (char *) "self",(char *) "window", NULL
72ef6efb
RD
29633 };
29634
70d7cb34
RD
29635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29637 if (!SWIG_IsOK(res1)) {
70d7cb34 29638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 29639 }
70d7cb34
RD
29640 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29641 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29642 if (!SWIG_IsOK(res2)) {
29643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
29644 }
29645 {
70d7cb34 29646 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
29647 if (PyErr_Occurred()) SWIG_fail;
29648 }
70d7cb34 29649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29650 return resultobj;
29651fail:
70d7cb34
RD
29652 return NULL;
29653}
29654
29655
29656SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29657 PyObject *resultobj = 0;
29658 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29659 wxGraphicsPath *result = 0 ;
29660 void *argp1 = 0 ;
29661 int res1 = 0 ;
29662 PyObject *swig_obj[1] ;
29663
29664 if (!args) SWIG_fail;
29665 swig_obj[0] = args;
29666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29667 if (!SWIG_IsOK(res1)) {
29668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29669 }
29670 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 29671 {
70d7cb34
RD
29672 result = (wxGraphicsPath *)(arg1)->CreatePath();
29673 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29674 }
70d7cb34
RD
29675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
29676 return resultobj;
29677fail:
72ef6efb
RD
29678 return NULL;
29679}
29680
29681
70d7cb34 29682SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29683 PyObject *resultobj = 0;
70d7cb34
RD
29684 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29685 wxDouble arg2 = (wxDouble) 1.0 ;
29686 wxDouble arg3 = (wxDouble) 0.0 ;
29687 wxDouble arg4 = (wxDouble) 0.0 ;
29688 wxDouble arg5 = (wxDouble) 1.0 ;
29689 wxDouble arg6 = (wxDouble) 0.0 ;
29690 wxDouble arg7 = (wxDouble) 0.0 ;
29691 wxGraphicsMatrix *result = 0 ;
72ef6efb
RD
29692 void *argp1 = 0 ;
29693 int res1 = 0 ;
29694 double val2 ;
29695 int ecode2 = 0 ;
29696 double val3 ;
29697 int ecode3 = 0 ;
29698 double val4 ;
29699 int ecode4 = 0 ;
29700 double val5 ;
29701 int ecode5 = 0 ;
70d7cb34
RD
29702 double val6 ;
29703 int ecode6 = 0 ;
29704 double val7 ;
29705 int ecode7 = 0 ;
72ef6efb
RD
29706 PyObject * obj0 = 0 ;
29707 PyObject * obj1 = 0 ;
29708 PyObject * obj2 = 0 ;
29709 PyObject * obj3 = 0 ;
29710 PyObject * obj4 = 0 ;
70d7cb34
RD
29711 PyObject * obj5 = 0 ;
29712 PyObject * obj6 = 0 ;
72ef6efb 29713 char * kwnames[] = {
70d7cb34 29714 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
29715 };
29716
70d7cb34
RD
29717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29719 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29721 }
29722 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29723 if (obj1) {
29724 ecode2 = SWIG_AsVal_double(obj1, &val2);
29725 if (!SWIG_IsOK(ecode2)) {
29726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
29727 }
29728 arg2 = static_cast< wxDouble >(val2);
29729 }
29730 if (obj2) {
29731 ecode3 = SWIG_AsVal_double(obj2, &val3);
29732 if (!SWIG_IsOK(ecode3)) {
29733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
29734 }
29735 arg3 = static_cast< wxDouble >(val3);
29736 }
29737 if (obj3) {
29738 ecode4 = SWIG_AsVal_double(obj3, &val4);
29739 if (!SWIG_IsOK(ecode4)) {
29740 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
29741 }
29742 arg4 = static_cast< wxDouble >(val4);
29743 }
29744 if (obj4) {
29745 ecode5 = SWIG_AsVal_double(obj4, &val5);
29746 if (!SWIG_IsOK(ecode5)) {
29747 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
29748 }
29749 arg5 = static_cast< wxDouble >(val5);
29750 }
29751 if (obj5) {
29752 ecode6 = SWIG_AsVal_double(obj5, &val6);
29753 if (!SWIG_IsOK(ecode6)) {
29754 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
29755 }
29756 arg6 = static_cast< wxDouble >(val6);
29757 }
29758 if (obj6) {
29759 ecode7 = SWIG_AsVal_double(obj6, &val7);
29760 if (!SWIG_IsOK(ecode7)) {
29761 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
29762 }
29763 arg7 = static_cast< wxDouble >(val7);
72ef6efb 29764 }
72ef6efb 29765 {
70d7cb34 29766 result = (wxGraphicsMatrix *)(arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
29767 if (PyErr_Occurred()) SWIG_fail;
29768 }
70d7cb34 29769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29770 return resultobj;
29771fail:
29772 return NULL;
29773}
29774
29775
70d7cb34 29776SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29777 PyObject *resultobj = 0;
70d7cb34
RD
29778 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29779 wxPen *arg2 = 0 ;
29780 wxGraphicsPen result;
29781 void *argp1 = 0 ;
29782 int res1 = 0 ;
29783 void *argp2 = 0 ;
29784 int res2 = 0 ;
29785 PyObject * obj0 = 0 ;
29786 PyObject * obj1 = 0 ;
29787 char * kwnames[] = {
29788 (char *) "self",(char *) "pen", NULL
29789 };
29790
29791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
29792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29793 if (!SWIG_IsOK(res1)) {
29794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29795 }
29796 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29797 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29798 if (!SWIG_IsOK(res2)) {
29799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29800 }
29801 if (!argp2) {
29802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29803 }
29804 arg2 = reinterpret_cast< wxPen * >(argp2);
29805 {
29806 result = (arg1)->CreatePen((wxPen const &)*arg2);
29807 if (PyErr_Occurred()) SWIG_fail;
29808 }
29809 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
29810 return resultobj;
29811fail:
29812 return NULL;
29813}
29814
29815
29816SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29817 PyObject *resultobj = 0;
29818 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29819 wxBrush *arg2 = 0 ;
29820 wxGraphicsBrush result;
29821 void *argp1 = 0 ;
29822 int res1 = 0 ;
29823 void *argp2 = 0 ;
29824 int res2 = 0 ;
29825 PyObject * obj0 = 0 ;
29826 PyObject * obj1 = 0 ;
29827 char * kwnames[] = {
29828 (char *) "self",(char *) "brush", NULL
29829 };
29830
29831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29833 if (!SWIG_IsOK(res1)) {
29834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29835 }
29836 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29837 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29838 if (!SWIG_IsOK(res2)) {
29839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29840 }
29841 if (!argp2) {
29842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29843 }
29844 arg2 = reinterpret_cast< wxBrush * >(argp2);
29845 {
29846 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
29847 if (PyErr_Occurred()) SWIG_fail;
29848 }
29849 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
29850 return resultobj;
29851fail:
29852 return NULL;
29853}
29854
29855
29856SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29857 PyObject *resultobj = 0;
29858 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
29859 wxDouble arg2 ;
29860 wxDouble arg3 ;
29861 wxDouble arg4 ;
29862 wxDouble arg5 ;
70d7cb34
RD
29863 wxColour *arg6 = 0 ;
29864 wxColour *arg7 = 0 ;
29865 wxGraphicsBrush result;
72ef6efb
RD
29866 void *argp1 = 0 ;
29867 int res1 = 0 ;
29868 double val2 ;
29869 int ecode2 = 0 ;
29870 double val3 ;
29871 int ecode3 = 0 ;
29872 double val4 ;
29873 int ecode4 = 0 ;
29874 double val5 ;
29875 int ecode5 = 0 ;
70d7cb34
RD
29876 wxColour temp6 ;
29877 wxColour temp7 ;
72ef6efb
RD
29878 PyObject * obj0 = 0 ;
29879 PyObject * obj1 = 0 ;
29880 PyObject * obj2 = 0 ;
29881 PyObject * obj3 = 0 ;
29882 PyObject * obj4 = 0 ;
70d7cb34
RD
29883 PyObject * obj5 = 0 ;
29884 PyObject * obj6 = 0 ;
72ef6efb 29885 char * kwnames[] = {
70d7cb34 29886 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
29887 };
29888
70d7cb34
RD
29889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29891 if (!SWIG_IsOK(res1)) {
70d7cb34 29892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 29893 }
70d7cb34 29894 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
29895 ecode2 = SWIG_AsVal_double(obj1, &val2);
29896 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29898 }
29899 arg2 = static_cast< wxDouble >(val2);
29900 ecode3 = SWIG_AsVal_double(obj2, &val3);
29901 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29903 }
29904 arg3 = static_cast< wxDouble >(val3);
29905 ecode4 = SWIG_AsVal_double(obj3, &val4);
29906 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29907 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29908 }
29909 arg4 = static_cast< wxDouble >(val4);
29910 ecode5 = SWIG_AsVal_double(obj4, &val5);
29911 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29912 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29913 }
29914 arg5 = static_cast< wxDouble >(val5);
29915 {
70d7cb34
RD
29916 arg6 = &temp6;
29917 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29918 }
29919 {
29920 arg7 = &temp7;
29921 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
29922 }
29923 {
29924 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
29925 if (PyErr_Occurred()) SWIG_fail;
29926 }
70d7cb34 29927 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29928 return resultobj;
29929fail:
29930 return NULL;
29931}
29932
29933
70d7cb34 29934SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29935 PyObject *resultobj = 0;
70d7cb34 29936 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
29937 wxDouble arg2 ;
29938 wxDouble arg3 ;
29939 wxDouble arg4 ;
29940 wxDouble arg5 ;
29941 wxDouble arg6 ;
70d7cb34
RD
29942 wxColour *arg7 = 0 ;
29943 wxColour *arg8 = 0 ;
29944 wxGraphicsBrush result;
72ef6efb
RD
29945 void *argp1 = 0 ;
29946 int res1 = 0 ;
29947 double val2 ;
29948 int ecode2 = 0 ;
29949 double val3 ;
29950 int ecode3 = 0 ;
29951 double val4 ;
29952 int ecode4 = 0 ;
29953 double val5 ;
29954 int ecode5 = 0 ;
29955 double val6 ;
29956 int ecode6 = 0 ;
70d7cb34
RD
29957 wxColour temp7 ;
29958 wxColour temp8 ;
72ef6efb
RD
29959 PyObject * obj0 = 0 ;
29960 PyObject * obj1 = 0 ;
29961 PyObject * obj2 = 0 ;
29962 PyObject * obj3 = 0 ;
29963 PyObject * obj4 = 0 ;
29964 PyObject * obj5 = 0 ;
70d7cb34
RD
29965 PyObject * obj6 = 0 ;
29966 PyObject * obj7 = 0 ;
72ef6efb 29967 char * kwnames[] = {
70d7cb34 29968 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
29969 };
29970
70d7cb34
RD
29971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29973 if (!SWIG_IsOK(res1)) {
70d7cb34 29974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 29975 }
70d7cb34 29976 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
29977 ecode2 = SWIG_AsVal_double(obj1, &val2);
29978 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29980 }
29981 arg2 = static_cast< wxDouble >(val2);
29982 ecode3 = SWIG_AsVal_double(obj2, &val3);
29983 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29985 }
29986 arg3 = static_cast< wxDouble >(val3);
29987 ecode4 = SWIG_AsVal_double(obj3, &val4);
29988 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29989 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29990 }
29991 arg4 = static_cast< wxDouble >(val4);
29992 ecode5 = SWIG_AsVal_double(obj4, &val5);
29993 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29994 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29995 }
29996 arg5 = static_cast< wxDouble >(val5);
29997 ecode6 = SWIG_AsVal_double(obj5, &val6);
29998 if (!SWIG_IsOK(ecode6)) {
70d7cb34 29999 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30000 }
30001 arg6 = static_cast< wxDouble >(val6);
30002 {
70d7cb34
RD
30003 arg7 = &temp7;
30004 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30005 }
30006 {
30007 arg8 = &temp8;
30008 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30009 }
30010 {
30011 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30012 if (PyErr_Occurred()) SWIG_fail;
30013 }
70d7cb34 30014 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30015 return resultobj;
30016fail:
30017 return NULL;
30018}
30019
30020
70d7cb34
RD
30021SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30022 PyObject *resultobj = 0;
30023 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30024 wxFont *arg2 = 0 ;
30025 wxColour const &arg3_defvalue = *wxBLACK ;
30026 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30027 wxGraphicsFont result;
30028 void *argp1 = 0 ;
30029 int res1 = 0 ;
30030 void *argp2 = 0 ;
30031 int res2 = 0 ;
30032 wxColour temp3 ;
30033 PyObject * obj0 = 0 ;
30034 PyObject * obj1 = 0 ;
30035 PyObject * obj2 = 0 ;
30036 char * kwnames[] = {
30037 (char *) "self",(char *) "font",(char *) "col", NULL
30038 };
30039
30040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30042 if (!SWIG_IsOK(res1)) {
30043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30044 }
30045 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30046 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30047 if (!SWIG_IsOK(res2)) {
30048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30049 }
30050 if (!argp2) {
30051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30052 }
30053 arg2 = reinterpret_cast< wxFont * >(argp2);
30054 if (obj2) {
30055 {
30056 arg3 = &temp3;
30057 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30058 }
30059 }
30060 {
30061 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30062 if (PyErr_Occurred()) SWIG_fail;
30063 }
30064 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30065 return resultobj;
30066fail:
30067 return NULL;
30068}
30069
30070
30071SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30072 PyObject *obj;
30073 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30074 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30075 return SWIG_Py_Void();
30076}
30077
30078SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30079 PyObject *resultobj = 0;
30080 wxWindowDC *arg1 = 0 ;
30081 wxGCDC *result = 0 ;
30082 void *argp1 = 0 ;
30083 int res1 = 0 ;
30084 PyObject * obj0 = 0 ;
30085 char * kwnames[] = {
30086 (char *) "dc", NULL
30087 };
30088
30089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30090 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30091 if (!SWIG_IsOK(res1)) {
30092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30093 }
30094 if (!argp1) {
30095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30096 }
30097 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30098 {
30099 if (!wxPyCheckForApp()) SWIG_fail;
30100 PyThreadState* __tstate = wxPyBeginAllowThreads();
30101 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30102 wxPyEndAllowThreads(__tstate);
30103 if (PyErr_Occurred()) SWIG_fail;
30104 }
30105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30106 return resultobj;
30107fail:
30108 return NULL;
30109}
30110
30111
30112SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30113 PyObject *resultobj = 0;
30114 wxGCDC *arg1 = (wxGCDC *) 0 ;
30115 void *argp1 = 0 ;
30116 int res1 = 0 ;
30117 PyObject *swig_obj[1] ;
30118
30119 if (!args) SWIG_fail;
30120 swig_obj[0] = args;
30121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30122 if (!SWIG_IsOK(res1)) {
30123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30124 }
30125 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30126 {
72ef6efb
RD
30127 delete arg1;
30128
72ef6efb
RD
30129 if (PyErr_Occurred()) SWIG_fail;
30130 }
30131 resultobj = SWIG_Py_Void();
30132 return resultobj;
30133fail:
30134 return NULL;
30135}
30136
30137
0a27f394 30138SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30139 PyObject *resultobj = 0;
30140 wxGCDC *arg1 = (wxGCDC *) 0 ;
30141 wxGraphicsContext *result = 0 ;
30142 void *argp1 = 0 ;
30143 int res1 = 0 ;
30144 PyObject *swig_obj[1] ;
30145
30146 if (!args) SWIG_fail;
30147 swig_obj[0] = args;
30148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30149 if (!SWIG_IsOK(res1)) {
0a27f394 30150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30151 }
30152 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30153 {
0a27f394 30154 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30155 if (PyErr_Occurred()) SWIG_fail;
30156 }
30157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30158 return resultobj;
30159fail:
30160 return NULL;
30161}
30162
30163
0a27f394
RD
30164SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30165 PyObject *resultobj = 0;
30166 wxGCDC *arg1 = (wxGCDC *) 0 ;
30167 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30168 void *argp1 = 0 ;
30169 int res1 = 0 ;
30170 void *argp2 = 0 ;
30171 int res2 = 0 ;
30172 PyObject * obj0 = 0 ;
30173 PyObject * obj1 = 0 ;
30174 char * kwnames[] = {
30175 (char *) "self",(char *) "ctx", NULL
30176 };
30177
30178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30180 if (!SWIG_IsOK(res1)) {
30181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30182 }
30183 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30184 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30185 if (!SWIG_IsOK(res2)) {
30186 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30187 }
30188 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30189 {
30190 (arg1)->SetGraphicsContext(arg2);
30191 if (PyErr_Occurred()) SWIG_fail;
30192 }
30193 resultobj = SWIG_Py_Void();
30194 return resultobj;
30195fail:
30196 return NULL;
30197}
30198
30199
72ef6efb
RD
30200SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30201 PyObject *obj;
30202 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30203 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30204 return SWIG_Py_Void();
30205}
30206
30207SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30208 return SWIG_Python_InitShadowInstance(args);
30209}
30210
b39fe951
RD
30211SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30212 PyObject *resultobj = 0;
30213 wxOverlay *result = 0 ;
30214
30215 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30216 {
30217 PyThreadState* __tstate = wxPyBeginAllowThreads();
30218 result = (wxOverlay *)new wxOverlay();
30219 wxPyEndAllowThreads(__tstate);
30220 if (PyErr_Occurred()) SWIG_fail;
30221 }
30222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30223 return resultobj;
30224fail:
30225 return NULL;
30226}
30227
30228
30229SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30230 PyObject *resultobj = 0;
30231 wxOverlay *arg1 = (wxOverlay *) 0 ;
30232 void *argp1 = 0 ;
30233 int res1 = 0 ;
30234 PyObject *swig_obj[1] ;
30235
30236 if (!args) SWIG_fail;
30237 swig_obj[0] = args;
30238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30239 if (!SWIG_IsOK(res1)) {
30240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30241 }
30242 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30243 {
30244 PyThreadState* __tstate = wxPyBeginAllowThreads();
30245 delete arg1;
30246
30247 wxPyEndAllowThreads(__tstate);
30248 if (PyErr_Occurred()) SWIG_fail;
30249 }
30250 resultobj = SWIG_Py_Void();
30251 return resultobj;
30252fail:
30253 return NULL;
30254}
30255
30256
30257SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30258 PyObject *resultobj = 0;
30259 wxOverlay *arg1 = (wxOverlay *) 0 ;
30260 void *argp1 = 0 ;
30261 int res1 = 0 ;
30262 PyObject *swig_obj[1] ;
30263
30264 if (!args) SWIG_fail;
30265 swig_obj[0] = args;
30266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30267 if (!SWIG_IsOK(res1)) {
30268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30269 }
30270 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30271 {
30272 PyThreadState* __tstate = wxPyBeginAllowThreads();
30273 (arg1)->Reset();
30274 wxPyEndAllowThreads(__tstate);
30275 if (PyErr_Occurred()) SWIG_fail;
30276 }
30277 resultobj = SWIG_Py_Void();
30278 return resultobj;
30279fail:
30280 return NULL;
30281}
30282
30283
30284SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30285 PyObject *obj;
30286 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30287 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30288 return SWIG_Py_Void();
30289}
30290
30291SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30292 return SWIG_Python_InitShadowInstance(args);
30293}
30294
30295SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30296 PyObject *resultobj = 0;
30297 wxOverlay *arg1 = 0 ;
30298 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30299 int arg3 ;
30300 int arg4 ;
30301 int arg5 ;
30302 int arg6 ;
30303 wxDCOverlay *result = 0 ;
30304 void *argp1 = 0 ;
30305 int res1 = 0 ;
30306 void *argp2 = 0 ;
30307 int res2 = 0 ;
30308 int val3 ;
30309 int ecode3 = 0 ;
30310 int val4 ;
30311 int ecode4 = 0 ;
30312 int val5 ;
30313 int ecode5 = 0 ;
30314 int val6 ;
30315 int ecode6 = 0 ;
30316
30317 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30319 if (!SWIG_IsOK(res1)) {
30320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30321 }
30322 if (!argp1) {
30323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30324 }
30325 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30326 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30327 if (!SWIG_IsOK(res2)) {
30328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30329 }
30330 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30331 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30332 if (!SWIG_IsOK(ecode3)) {
30333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30334 }
30335 arg3 = static_cast< int >(val3);
30336 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30337 if (!SWIG_IsOK(ecode4)) {
30338 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30339 }
30340 arg4 = static_cast< int >(val4);
30341 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30342 if (!SWIG_IsOK(ecode5)) {
30343 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30344 }
30345 arg5 = static_cast< int >(val5);
30346 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30347 if (!SWIG_IsOK(ecode6)) {
30348 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30349 }
30350 arg6 = static_cast< int >(val6);
30351 {
30352 PyThreadState* __tstate = wxPyBeginAllowThreads();
30353 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30354 wxPyEndAllowThreads(__tstate);
30355 if (PyErr_Occurred()) SWIG_fail;
30356 }
30357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30358 return resultobj;
30359fail:
30360 return NULL;
30361}
30362
30363
30364SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30365 PyObject *resultobj = 0;
30366 wxOverlay *arg1 = 0 ;
30367 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30368 wxDCOverlay *result = 0 ;
30369 void *argp1 = 0 ;
30370 int res1 = 0 ;
30371 void *argp2 = 0 ;
30372 int res2 = 0 ;
30373
30374 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30376 if (!SWIG_IsOK(res1)) {
30377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30378 }
30379 if (!argp1) {
30380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30381 }
30382 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30383 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30384 if (!SWIG_IsOK(res2)) {
30385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30386 }
30387 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30388 {
30389 PyThreadState* __tstate = wxPyBeginAllowThreads();
30390 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30391 wxPyEndAllowThreads(__tstate);
30392 if (PyErr_Occurred()) SWIG_fail;
30393 }
30394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30395 return resultobj;
30396fail:
30397 return NULL;
30398}
30399
30400
30401SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30402 int argc;
30403 PyObject *argv[7];
30404
30405 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30406 --argc;
30407 if (argc == 2) {
30408 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30409 }
30410 if (argc == 6) {
30411 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30412 }
30413
30414fail:
30415 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30416 return NULL;
30417}
30418
30419
30420SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30421 PyObject *resultobj = 0;
30422 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30423 void *argp1 = 0 ;
30424 int res1 = 0 ;
30425 PyObject *swig_obj[1] ;
30426
30427 if (!args) SWIG_fail;
30428 swig_obj[0] = args;
30429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30430 if (!SWIG_IsOK(res1)) {
30431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30432 }
30433 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30434 {
30435 PyThreadState* __tstate = wxPyBeginAllowThreads();
30436 delete arg1;
30437
30438 wxPyEndAllowThreads(__tstate);
30439 if (PyErr_Occurred()) SWIG_fail;
30440 }
30441 resultobj = SWIG_Py_Void();
30442 return resultobj;
30443fail:
30444 return NULL;
30445}
30446
30447
30448SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30449 PyObject *resultobj = 0;
30450 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30451 void *argp1 = 0 ;
30452 int res1 = 0 ;
30453 PyObject *swig_obj[1] ;
30454
30455 if (!args) SWIG_fail;
30456 swig_obj[0] = args;
30457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30458 if (!SWIG_IsOK(res1)) {
30459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30460 }
30461 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30462 {
30463 PyThreadState* __tstate = wxPyBeginAllowThreads();
30464 (arg1)->Clear();
30465 wxPyEndAllowThreads(__tstate);
30466 if (PyErr_Occurred()) SWIG_fail;
30467 }
30468 resultobj = SWIG_Py_Void();
30469 return resultobj;
30470fail:
30471 return NULL;
30472}
30473
30474
30475SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30476 PyObject *obj;
30477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30478 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30479 return SWIG_Py_Void();
30480}
30481
30482SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30483 return SWIG_Python_InitShadowInstance(args);
30484}
30485
72ef6efb
RD
30486SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30487 PyObject *resultobj = 0;
30488 int arg1 ;
30489 int arg2 ;
30490 int arg3 = (int) true ;
30491 int arg4 = (int) 1 ;
30492 wxImageList *result = 0 ;
30493 int val1 ;
30494 int ecode1 = 0 ;
30495 int val2 ;
30496 int ecode2 = 0 ;
30497 int val3 ;
30498 int ecode3 = 0 ;
30499 int val4 ;
30500 int ecode4 = 0 ;
30501 PyObject * obj0 = 0 ;
30502 PyObject * obj1 = 0 ;
30503 PyObject * obj2 = 0 ;
30504 PyObject * obj3 = 0 ;
30505 char * kwnames[] = {
30506 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30507 };
30508
30509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30510 ecode1 = SWIG_AsVal_int(obj0, &val1);
30511 if (!SWIG_IsOK(ecode1)) {
30512 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30513 }
30514 arg1 = static_cast< int >(val1);
30515 ecode2 = SWIG_AsVal_int(obj1, &val2);
30516 if (!SWIG_IsOK(ecode2)) {
30517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30518 }
30519 arg2 = static_cast< int >(val2);
30520 if (obj2) {
30521 ecode3 = SWIG_AsVal_int(obj2, &val3);
30522 if (!SWIG_IsOK(ecode3)) {
30523 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30524 }
30525 arg3 = static_cast< int >(val3);
30526 }
30527 if (obj3) {
30528 ecode4 = SWIG_AsVal_int(obj3, &val4);
30529 if (!SWIG_IsOK(ecode4)) {
30530 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30531 }
30532 arg4 = static_cast< int >(val4);
30533 }
30534 {
30535 if (!wxPyCheckForApp()) SWIG_fail;
30536 PyThreadState* __tstate = wxPyBeginAllowThreads();
30537 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30538 wxPyEndAllowThreads(__tstate);
30539 if (PyErr_Occurred()) SWIG_fail;
30540 }
e02c0a13 30541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
30542 return resultobj;
30543fail:
30544 return NULL;
30545}
30546
30547
30548SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30549 PyObject *resultobj = 0;
30550 wxImageList *arg1 = (wxImageList *) 0 ;
30551 void *argp1 = 0 ;
30552 int res1 = 0 ;
30553 PyObject *swig_obj[1] ;
30554
30555 if (!args) SWIG_fail;
30556 swig_obj[0] = args;
30557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30558 if (!SWIG_IsOK(res1)) {
30559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30560 }
30561 arg1 = reinterpret_cast< wxImageList * >(argp1);
30562 {
30563 PyThreadState* __tstate = wxPyBeginAllowThreads();
30564 delete arg1;
30565
30566 wxPyEndAllowThreads(__tstate);
30567 if (PyErr_Occurred()) SWIG_fail;
30568 }
30569 resultobj = SWIG_Py_Void();
30570 return resultobj;
30571fail:
30572 return NULL;
30573}
30574
30575
30576SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30577 PyObject *resultobj = 0;
30578 wxImageList *arg1 = (wxImageList *) 0 ;
30579 wxBitmap *arg2 = 0 ;
30580 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30581 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30582 int result;
30583 void *argp1 = 0 ;
30584 int res1 = 0 ;
30585 void *argp2 = 0 ;
30586 int res2 = 0 ;
30587 void *argp3 = 0 ;
30588 int res3 = 0 ;
30589 PyObject * obj0 = 0 ;
30590 PyObject * obj1 = 0 ;
30591 PyObject * obj2 = 0 ;
30592 char * kwnames[] = {
30593 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30594 };
30595
30596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30598 if (!SWIG_IsOK(res1)) {
30599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30600 }
30601 arg1 = reinterpret_cast< wxImageList * >(argp1);
30602 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30603 if (!SWIG_IsOK(res2)) {
30604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30605 }
30606 if (!argp2) {
30607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30608 }
30609 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30610 if (obj2) {
30611 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30612 if (!SWIG_IsOK(res3)) {
30613 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30614 }
30615 if (!argp3) {
30616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30617 }
30618 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30619 }
30620 {
30621 PyThreadState* __tstate = wxPyBeginAllowThreads();
30622 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30623 wxPyEndAllowThreads(__tstate);
30624 if (PyErr_Occurred()) SWIG_fail;
30625 }
30626 resultobj = SWIG_From_int(static_cast< int >(result));
30627 return resultobj;
30628fail:
30629 return NULL;
30630}
30631
30632
30633SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30634 PyObject *resultobj = 0;
30635 wxImageList *arg1 = (wxImageList *) 0 ;
30636 wxBitmap *arg2 = 0 ;
30637 wxColour *arg3 = 0 ;
30638 int result;
30639 void *argp1 = 0 ;
30640 int res1 = 0 ;
30641 void *argp2 = 0 ;
30642 int res2 = 0 ;
30643 wxColour temp3 ;
30644 PyObject * obj0 = 0 ;
30645 PyObject * obj1 = 0 ;
30646 PyObject * obj2 = 0 ;
30647 char * kwnames[] = {
30648 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
30649 };
30650
30651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30653 if (!SWIG_IsOK(res1)) {
30654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
30655 }
30656 arg1 = reinterpret_cast< wxImageList * >(argp1);
30657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30658 if (!SWIG_IsOK(res2)) {
30659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30660 }
30661 if (!argp2) {
30662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30663 }
30664 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30665 {
30666 arg3 = &temp3;
30667 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30668 }
30669 {
30670 PyThreadState* __tstate = wxPyBeginAllowThreads();
30671 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
30672 wxPyEndAllowThreads(__tstate);
30673 if (PyErr_Occurred()) SWIG_fail;
30674 }
30675 resultobj = SWIG_From_int(static_cast< int >(result));
30676 return resultobj;
30677fail:
30678 return NULL;
30679}
30680
30681
30682SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30683 PyObject *resultobj = 0;
30684 wxImageList *arg1 = (wxImageList *) 0 ;
30685 wxIcon *arg2 = 0 ;
30686 int result;
30687 void *argp1 = 0 ;
30688 int res1 = 0 ;
30689 void *argp2 = 0 ;
30690 int res2 = 0 ;
30691 PyObject * obj0 = 0 ;
30692 PyObject * obj1 = 0 ;
30693 char * kwnames[] = {
30694 (char *) "self",(char *) "icon", NULL
30695 };
30696
30697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30699 if (!SWIG_IsOK(res1)) {
30700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
30701 }
1bd55598
RD
30702 arg1 = reinterpret_cast< wxImageList * >(argp1);
30703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30704 if (!SWIG_IsOK(res2)) {
30705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30706 }
30707 if (!argp2) {
30708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30709 }
30710 arg2 = reinterpret_cast< wxIcon * >(argp2);
30711 {
30712 PyThreadState* __tstate = wxPyBeginAllowThreads();
30713 result = (int)(arg1)->Add((wxIcon const &)*arg2);
30714 wxPyEndAllowThreads(__tstate);
30715 if (PyErr_Occurred()) SWIG_fail;
30716 }
30717 resultobj = SWIG_From_int(static_cast< int >(result));
30718 return resultobj;
30719fail:
30720 return NULL;
30721}
30722
30723
30724SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30725 PyObject *resultobj = 0;
30726 wxImageList *arg1 = (wxImageList *) 0 ;
30727 int arg2 ;
30728 SwigValueWrapper<wxBitmap > result;
30729 void *argp1 = 0 ;
30730 int res1 = 0 ;
30731 int val2 ;
30732 int ecode2 = 0 ;
30733 PyObject * obj0 = 0 ;
30734 PyObject * obj1 = 0 ;
30735 char * kwnames[] = {
30736 (char *) "self",(char *) "index", NULL
30737 };
30738
30739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
30740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30741 if (!SWIG_IsOK(res1)) {
30742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
30743 }
30744 arg1 = reinterpret_cast< wxImageList * >(argp1);
30745 ecode2 = SWIG_AsVal_int(obj1, &val2);
30746 if (!SWIG_IsOK(ecode2)) {
30747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
30748 }
30749 arg2 = static_cast< int >(val2);
30750 {
30751 PyThreadState* __tstate = wxPyBeginAllowThreads();
30752 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
30753 wxPyEndAllowThreads(__tstate);
30754 if (PyErr_Occurred()) SWIG_fail;
30755 }
30756 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
30757 return resultobj;
30758fail:
30759 return NULL;
30760}
30761
30762
30763SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30764 PyObject *resultobj = 0;
30765 wxImageList *arg1 = (wxImageList *) 0 ;
30766 int arg2 ;
30767 wxIcon result;
30768 void *argp1 = 0 ;
30769 int res1 = 0 ;
30770 int val2 ;
30771 int ecode2 = 0 ;
30772 PyObject * obj0 = 0 ;
30773 PyObject * obj1 = 0 ;
30774 char * kwnames[] = {
30775 (char *) "self",(char *) "index", NULL
30776 };
30777
30778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30780 if (!SWIG_IsOK(res1)) {
30781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
30782 }
30783 arg1 = reinterpret_cast< wxImageList * >(argp1);
30784 ecode2 = SWIG_AsVal_int(obj1, &val2);
30785 if (!SWIG_IsOK(ecode2)) {
30786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
30787 }
30788 arg2 = static_cast< int >(val2);
30789 {
30790 PyThreadState* __tstate = wxPyBeginAllowThreads();
30791 result = ((wxImageList const *)arg1)->GetIcon(arg2);
30792 wxPyEndAllowThreads(__tstate);
30793 if (PyErr_Occurred()) SWIG_fail;
30794 }
30795 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
30796 return resultobj;
30797fail:
30798 return NULL;
30799}
30800
30801
30802SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30803 PyObject *resultobj = 0;
30804 wxImageList *arg1 = (wxImageList *) 0 ;
30805 int arg2 ;
30806 wxBitmap *arg3 = 0 ;
2131d850
RD
30807 wxBitmap const &arg4_defvalue = wxNullBitmap ;
30808 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
30809 bool result;
30810 void *argp1 = 0 ;
30811 int res1 = 0 ;
30812 int val2 ;
30813 int ecode2 = 0 ;
30814 void *argp3 = 0 ;
30815 int res3 = 0 ;
2131d850
RD
30816 void *argp4 = 0 ;
30817 int res4 = 0 ;
1bd55598
RD
30818 PyObject * obj0 = 0 ;
30819 PyObject * obj1 = 0 ;
30820 PyObject * obj2 = 0 ;
2131d850 30821 PyObject * obj3 = 0 ;
1bd55598 30822 char * kwnames[] = {
2131d850 30823 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
30824 };
30825
2131d850 30826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
30827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30828 if (!SWIG_IsOK(res1)) {
30829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
30830 }
30831 arg1 = reinterpret_cast< wxImageList * >(argp1);
30832 ecode2 = SWIG_AsVal_int(obj1, &val2);
30833 if (!SWIG_IsOK(ecode2)) {
30834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
30835 }
30836 arg2 = static_cast< int >(val2);
30837 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30838 if (!SWIG_IsOK(res3)) {
30839 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30840 }
30841 if (!argp3) {
30842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30843 }
30844 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
30845 if (obj3) {
30846 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
30847 if (!SWIG_IsOK(res4)) {
30848 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
30849 }
30850 if (!argp4) {
30851 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
30852 }
30853 arg4 = reinterpret_cast< wxBitmap * >(argp4);
30854 }
1bd55598
RD
30855 {
30856 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 30857 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
30858 wxPyEndAllowThreads(__tstate);
30859 if (PyErr_Occurred()) SWIG_fail;
30860 }
30861 {
30862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30863 }
30864 return resultobj;
30865fail:
30866 return NULL;
30867}
30868
30869
30870SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30871 PyObject *resultobj = 0;
30872 wxImageList *arg1 = (wxImageList *) 0 ;
30873 int arg2 ;
30874 wxDC *arg3 = 0 ;
30875 int arg4 ;
30876 int arg5 ;
30877 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
30878 bool arg7 = (bool) (bool)false ;
30879 bool result;
30880 void *argp1 = 0 ;
30881 int res1 = 0 ;
30882 int val2 ;
30883 int ecode2 = 0 ;
30884 void *argp3 = 0 ;
30885 int res3 = 0 ;
30886 int val4 ;
30887 int ecode4 = 0 ;
30888 int val5 ;
30889 int ecode5 = 0 ;
30890 int val6 ;
30891 int ecode6 = 0 ;
30892 bool val7 ;
30893 int ecode7 = 0 ;
30894 PyObject * obj0 = 0 ;
30895 PyObject * obj1 = 0 ;
30896 PyObject * obj2 = 0 ;
30897 PyObject * obj3 = 0 ;
30898 PyObject * obj4 = 0 ;
30899 PyObject * obj5 = 0 ;
30900 PyObject * obj6 = 0 ;
30901 char * kwnames[] = {
30902 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
30903 };
30904
30905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30907 if (!SWIG_IsOK(res1)) {
30908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
30909 }
30910 arg1 = reinterpret_cast< wxImageList * >(argp1);
30911 ecode2 = SWIG_AsVal_int(obj1, &val2);
30912 if (!SWIG_IsOK(ecode2)) {
30913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
30914 }
30915 arg2 = static_cast< int >(val2);
30916 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30917 if (!SWIG_IsOK(res3)) {
30918 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
30919 }
30920 if (!argp3) {
30921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
30922 }
30923 arg3 = reinterpret_cast< wxDC * >(argp3);
30924 ecode4 = SWIG_AsVal_int(obj3, &val4);
30925 if (!SWIG_IsOK(ecode4)) {
30926 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
30927 }
30928 arg4 = static_cast< int >(val4);
30929 ecode5 = SWIG_AsVal_int(obj4, &val5);
30930 if (!SWIG_IsOK(ecode5)) {
30931 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
30932 }
30933 arg5 = static_cast< int >(val5);
30934 if (obj5) {
30935 ecode6 = SWIG_AsVal_int(obj5, &val6);
30936 if (!SWIG_IsOK(ecode6)) {
30937 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
30938 }
30939 arg6 = static_cast< int >(val6);
30940 }
30941 if (obj6) {
30942 ecode7 = SWIG_AsVal_bool(obj6, &val7);
30943 if (!SWIG_IsOK(ecode7)) {
30944 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
30945 }
30946 arg7 = static_cast< bool >(val7);
30947 }
30948 {
30949 PyThreadState* __tstate = wxPyBeginAllowThreads();
30950 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
30951 wxPyEndAllowThreads(__tstate);
30952 if (PyErr_Occurred()) SWIG_fail;
30953 }
30954 {
30955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30956 }
30957 return resultobj;
30958fail:
30959 return NULL;
30960}
30961
30962
30963SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30964 PyObject *resultobj = 0;
30965 wxImageList *arg1 = (wxImageList *) 0 ;
30966 int result;
30967 void *argp1 = 0 ;
30968 int res1 = 0 ;
30969 PyObject *swig_obj[1] ;
30970
30971 if (!args) SWIG_fail;
30972 swig_obj[0] = args;
30973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30974 if (!SWIG_IsOK(res1)) {
30975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
30976 }
30977 arg1 = reinterpret_cast< wxImageList * >(argp1);
30978 {
30979 PyThreadState* __tstate = wxPyBeginAllowThreads();
30980 result = (int)(arg1)->GetImageCount();
30981 wxPyEndAllowThreads(__tstate);
30982 if (PyErr_Occurred()) SWIG_fail;
30983 }
30984 resultobj = SWIG_From_int(static_cast< int >(result));
30985 return resultobj;
30986fail:
30987 return NULL;
30988}
30989
30990
30991SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30992 PyObject *resultobj = 0;
30993 wxImageList *arg1 = (wxImageList *) 0 ;
30994 int arg2 ;
30995 bool result;
30996 void *argp1 = 0 ;
30997 int res1 = 0 ;
30998 int val2 ;
30999 int ecode2 = 0 ;
31000 PyObject * obj0 = 0 ;
31001 PyObject * obj1 = 0 ;
31002 char * kwnames[] = {
31003 (char *) "self",(char *) "index", NULL
31004 };
31005
31006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31008 if (!SWIG_IsOK(res1)) {
31009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31010 }
31011 arg1 = reinterpret_cast< wxImageList * >(argp1);
31012 ecode2 = SWIG_AsVal_int(obj1, &val2);
31013 if (!SWIG_IsOK(ecode2)) {
31014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31015 }
31016 arg2 = static_cast< int >(val2);
31017 {
31018 PyThreadState* __tstate = wxPyBeginAllowThreads();
31019 result = (bool)(arg1)->Remove(arg2);
31020 wxPyEndAllowThreads(__tstate);
31021 if (PyErr_Occurred()) SWIG_fail;
31022 }
31023 {
31024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31025 }
31026 return resultobj;
31027fail:
31028 return NULL;
31029}
31030
31031
31032SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31033 PyObject *resultobj = 0;
31034 wxImageList *arg1 = (wxImageList *) 0 ;
31035 bool result;
31036 void *argp1 = 0 ;
31037 int res1 = 0 ;
31038 PyObject *swig_obj[1] ;
31039
31040 if (!args) SWIG_fail;
31041 swig_obj[0] = args;
31042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31043 if (!SWIG_IsOK(res1)) {
31044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31045 }
31046 arg1 = reinterpret_cast< wxImageList * >(argp1);
31047 {
31048 PyThreadState* __tstate = wxPyBeginAllowThreads();
31049 result = (bool)(arg1)->RemoveAll();
31050 wxPyEndAllowThreads(__tstate);
31051 if (PyErr_Occurred()) SWIG_fail;
31052 }
31053 {
31054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31055 }
31056 return resultobj;
31057fail:
31058 return NULL;
31059}
31060
31061
31062SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31063 PyObject *resultobj = 0;
31064 wxImageList *arg1 = (wxImageList *) 0 ;
31065 int arg2 ;
31066 int *arg3 = 0 ;
31067 int *arg4 = 0 ;
31068 void *argp1 = 0 ;
31069 int res1 = 0 ;
31070 int val2 ;
31071 int ecode2 = 0 ;
31072 int temp3 ;
31073 int res3 = SWIG_TMPOBJ ;
31074 int temp4 ;
31075 int res4 = SWIG_TMPOBJ ;
31076 PyObject * obj0 = 0 ;
31077 PyObject * obj1 = 0 ;
31078 char * kwnames[] = {
31079 (char *) "self",(char *) "index", NULL
31080 };
31081
31082 arg3 = &temp3;
31083 arg4 = &temp4;
31084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31086 if (!SWIG_IsOK(res1)) {
31087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31088 }
31089 arg1 = reinterpret_cast< wxImageList * >(argp1);
31090 ecode2 = SWIG_AsVal_int(obj1, &val2);
31091 if (!SWIG_IsOK(ecode2)) {
31092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31093 }
31094 arg2 = static_cast< int >(val2);
31095 {
31096 PyThreadState* __tstate = wxPyBeginAllowThreads();
31097 (arg1)->GetSize(arg2,*arg3,*arg4);
31098 wxPyEndAllowThreads(__tstate);
31099 if (PyErr_Occurred()) SWIG_fail;
31100 }
31101 resultobj = SWIG_Py_Void();
31102 if (SWIG_IsTmpObj(res3)) {
31103 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31104 } else {
31105 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31106 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31107 }
31108 if (SWIG_IsTmpObj(res4)) {
31109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31110 } else {
31111 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31112 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31113 }
31114 return resultobj;
31115fail:
31116 return NULL;
31117}
31118
31119
31120SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31121 PyObject *obj;
31122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31123 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31124 return SWIG_Py_Void();
31125}
31126
31127SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31128 return SWIG_Python_InitShadowInstance(args);
31129}
31130
da91cb0f
RD
31131SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31132 PyObject *resultobj = 0;
31133 wxStockGDI *result = 0 ;
1bd55598 31134
da91cb0f
RD
31135 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31136 {
31137 PyThreadState* __tstate = wxPyBeginAllowThreads();
31138 result = (wxStockGDI *)new wxStockGDI();
31139 wxPyEndAllowThreads(__tstate);
31140 if (PyErr_Occurred()) SWIG_fail;
31141 }
31142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31143 return resultobj;
31144fail:
31145 return NULL;
1bd55598
RD
31146}
31147
31148
da91cb0f
RD
31149SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31150 PyObject *resultobj = 0;
31151 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31152 void *argp1 = 0 ;
31153 int res1 = 0 ;
31154 PyObject *swig_obj[1] ;
1bd55598 31155
da91cb0f
RD
31156 if (!args) SWIG_fail;
31157 swig_obj[0] = args;
31158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31159 if (!SWIG_IsOK(res1)) {
31160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31161 }
31162 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31163 {
31164 PyThreadState* __tstate = wxPyBeginAllowThreads();
31165 delete arg1;
31166
31167 wxPyEndAllowThreads(__tstate);
31168 if (PyErr_Occurred()) SWIG_fail;
31169 }
31170 resultobj = SWIG_Py_Void();
31171 return resultobj;
31172fail:
31173 return NULL;
1bd55598
RD
31174}
31175
31176
da91cb0f
RD
31177SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31178 PyObject *resultobj = 0;
1bd55598 31179
da91cb0f
RD
31180 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31181 {
31182 PyThreadState* __tstate = wxPyBeginAllowThreads();
31183 wxStockGDI::DeleteAll();
31184 wxPyEndAllowThreads(__tstate);
31185 if (PyErr_Occurred()) SWIG_fail;
31186 }
31187 resultobj = SWIG_Py_Void();
31188 return resultobj;
31189fail:
31190 return NULL;
1bd55598
RD
31191}
31192
31193
da91cb0f
RD
31194SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31195 PyObject *resultobj = 0;
31196 wxStockGDI *result = 0 ;
1bd55598 31197
da91cb0f
RD
31198 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31199 {
31200 PyThreadState* __tstate = wxPyBeginAllowThreads();
31201 {
31202 wxStockGDI &_result_ref = wxStockGDI::instance();
31203 result = (wxStockGDI *) &_result_ref;
31204 }
31205 wxPyEndAllowThreads(__tstate);
31206 if (PyErr_Occurred()) SWIG_fail;
31207 }
31208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31209 return resultobj;
31210fail:
31211 return NULL;
1bd55598
RD
31212}
31213
31214
da91cb0f
RD
31215SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31216 PyObject *resultobj = 0;
31217 wxStockGDI::Item arg1 ;
31218 wxBrush *result = 0 ;
31219 int val1 ;
31220 int ecode1 = 0 ;
31221 PyObject * obj0 = 0 ;
31222 char * kwnames[] = {
31223 (char *) "item", NULL
31224 };
31225
31226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31227 ecode1 = SWIG_AsVal_int(obj0, &val1);
31228 if (!SWIG_IsOK(ecode1)) {
31229 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31230 }
31231 arg1 = static_cast< wxStockGDI::Item >(val1);
31232 {
31233 PyThreadState* __tstate = wxPyBeginAllowThreads();
31234 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31235 wxPyEndAllowThreads(__tstate);
31236 if (PyErr_Occurred()) SWIG_fail;
31237 }
31238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31239 return resultobj;
31240fail:
31241 return NULL;
1bd55598
RD
31242}
31243
31244
da91cb0f
RD
31245SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31246 PyObject *resultobj = 0;
31247 wxStockGDI::Item arg1 ;
31248 wxColour *result = 0 ;
31249 int val1 ;
31250 int ecode1 = 0 ;
31251 PyObject * obj0 = 0 ;
31252 char * kwnames[] = {
31253 (char *) "item", NULL
31254 };
1bd55598 31255
da91cb0f
RD
31256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31257 ecode1 = SWIG_AsVal_int(obj0, &val1);
31258 if (!SWIG_IsOK(ecode1)) {
31259 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31260 }
31261 arg1 = static_cast< wxStockGDI::Item >(val1);
31262 {
31263 PyThreadState* __tstate = wxPyBeginAllowThreads();
31264 result = (wxColour *)wxStockGDI::GetColour(arg1);
31265 wxPyEndAllowThreads(__tstate);
31266 if (PyErr_Occurred()) SWIG_fail;
31267 }
31268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31269 return resultobj;
31270fail:
31271 return NULL;
1bd55598
RD
31272}
31273
31274
da91cb0f
RD
31275SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31276 PyObject *resultobj = 0;
31277 wxStockGDI::Item arg1 ;
31278 wxCursor *result = 0 ;
31279 int val1 ;
31280 int ecode1 = 0 ;
31281 PyObject * obj0 = 0 ;
31282 char * kwnames[] = {
31283 (char *) "item", NULL
31284 };
31285
31286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31287 ecode1 = SWIG_AsVal_int(obj0, &val1);
31288 if (!SWIG_IsOK(ecode1)) {
31289 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31290 }
31291 arg1 = static_cast< wxStockGDI::Item >(val1);
31292 {
31293 PyThreadState* __tstate = wxPyBeginAllowThreads();
31294 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31295 wxPyEndAllowThreads(__tstate);
31296 if (PyErr_Occurred()) SWIG_fail;
31297 }
31298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31299 return resultobj;
31300fail:
31301 return NULL;
1bd55598
RD
31302}
31303
31304
da91cb0f
RD
31305SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31306 PyObject *resultobj = 0;
31307 wxStockGDI::Item arg1 ;
31308 wxPen *result = 0 ;
31309 int val1 ;
31310 int ecode1 = 0 ;
31311 PyObject * obj0 = 0 ;
31312 char * kwnames[] = {
31313 (char *) "item", NULL
31314 };
31315
31316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31317 ecode1 = SWIG_AsVal_int(obj0, &val1);
31318 if (!SWIG_IsOK(ecode1)) {
31319 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31320 }
31321 arg1 = static_cast< wxStockGDI::Item >(val1);
31322 {
31323 PyThreadState* __tstate = wxPyBeginAllowThreads();
31324 result = (wxPen *)wxStockGDI::GetPen(arg1);
31325 wxPyEndAllowThreads(__tstate);
31326 if (PyErr_Occurred()) SWIG_fail;
31327 }
31328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31329 return resultobj;
31330fail:
31331 return NULL;
1bd55598
RD
31332}
31333
31334
da91cb0f
RD
31335SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31336 PyObject *resultobj = 0;
31337 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31338 wxStockGDI::Item arg2 ;
31339 wxFont *result = 0 ;
31340 void *argp1 = 0 ;
31341 int res1 = 0 ;
31342 int val2 ;
31343 int ecode2 = 0 ;
31344 PyObject * obj0 = 0 ;
31345 PyObject * obj1 = 0 ;
31346 char * kwnames[] = {
31347 (char *) "self",(char *) "item", NULL
31348 };
1bd55598 31349
da91cb0f
RD
31350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31352 if (!SWIG_IsOK(res1)) {
31353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31354 }
31355 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31356 ecode2 = SWIG_AsVal_int(obj1, &val2);
31357 if (!SWIG_IsOK(ecode2)) {
31358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31359 }
31360 arg2 = static_cast< wxStockGDI::Item >(val2);
31361 {
31362 PyThreadState* __tstate = wxPyBeginAllowThreads();
31363 result = (wxFont *)(arg1)->GetFont(arg2);
31364 wxPyEndAllowThreads(__tstate);
31365 if (PyErr_Occurred()) SWIG_fail;
31366 }
31367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31368 return resultobj;
31369fail:
31370 return NULL;
1bd55598
RD
31371}
31372
31373
da91cb0f
RD
31374SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31375 PyObject *obj;
31376 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31377 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31378 return SWIG_Py_Void();
1bd55598
RD
31379}
31380
da91cb0f
RD
31381SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31382 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
31383}
31384
1bd55598
RD
31385SWIGINTERN int NullBitmap_set(PyObject *) {
31386 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31387 return 1;
31388}
31389
31390
31391SWIGINTERN PyObject *NullBitmap_get(void) {
31392 PyObject *pyobj = 0;
31393
31394 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31395 return pyobj;
31396}
31397
31398
31399SWIGINTERN int NullIcon_set(PyObject *) {
31400 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31401 return 1;
31402}
31403
31404
31405SWIGINTERN PyObject *NullIcon_get(void) {
31406 PyObject *pyobj = 0;
31407
31408 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31409 return pyobj;
31410}
31411
31412
31413SWIGINTERN int NullCursor_set(PyObject *) {
31414 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31415 return 1;
31416}
31417
31418
31419SWIGINTERN PyObject *NullCursor_get(void) {
31420 PyObject *pyobj = 0;
31421
31422 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31423 return pyobj;
31424}
31425
31426
31427SWIGINTERN int NullPen_set(PyObject *) {
31428 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31429 return 1;
31430}
31431
31432
31433SWIGINTERN PyObject *NullPen_get(void) {
31434 PyObject *pyobj = 0;
31435
31436 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31437 return pyobj;
31438}
31439
31440
31441SWIGINTERN int NullBrush_set(PyObject *) {
31442 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31443 return 1;
31444}
31445
31446
31447SWIGINTERN PyObject *NullBrush_get(void) {
31448 PyObject *pyobj = 0;
31449
31450 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31451 return pyobj;
31452}
31453
31454
31455SWIGINTERN int NullPalette_set(PyObject *) {
31456 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31457 return 1;
31458}
31459
31460
31461SWIGINTERN PyObject *NullPalette_get(void) {
31462 PyObject *pyobj = 0;
31463
31464 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31465 return pyobj;
31466}
31467
31468
31469SWIGINTERN int NullFont_set(PyObject *) {
31470 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31471 return 1;
31472}
31473
31474
31475SWIGINTERN PyObject *NullFont_get(void) {
31476 PyObject *pyobj = 0;
31477
31478 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31479 return pyobj;
31480}
31481
31482
31483SWIGINTERN int NullColour_set(PyObject *) {
31484 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31485 return 1;
31486}
31487
31488
31489SWIGINTERN PyObject *NullColour_get(void) {
31490 PyObject *pyobj = 0;
31491
31492 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31493 return pyobj;
31494}
31495
31496
da91cb0f 31497SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 31498 PyObject *resultobj = 0;
da91cb0f
RD
31499 wxGDIObjListBase *result = 0 ;
31500
31501 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31502 {
31503 PyThreadState* __tstate = wxPyBeginAllowThreads();
31504 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31505 wxPyEndAllowThreads(__tstate);
31506 if (PyErr_Occurred()) SWIG_fail;
31507 }
31508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31509 return resultobj;
31510fail:
31511 return NULL;
31512}
31513
31514
31515SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31516 PyObject *resultobj = 0;
31517 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
31518 void *argp1 = 0 ;
31519 int res1 = 0 ;
da91cb0f 31520 PyObject *swig_obj[1] ;
1bd55598 31521
da91cb0f
RD
31522 if (!args) SWIG_fail;
31523 swig_obj[0] = args;
31524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 31525 if (!SWIG_IsOK(res1)) {
da91cb0f 31526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 31527 }
da91cb0f 31528 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
31529 {
31530 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
31531 delete arg1;
31532
1bd55598
RD
31533 wxPyEndAllowThreads(__tstate);
31534 if (PyErr_Occurred()) SWIG_fail;
31535 }
31536 resultobj = SWIG_Py_Void();
31537 return resultobj;
31538fail:
31539 return NULL;
31540}
31541
31542
da91cb0f
RD
31543SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31544 PyObject *obj;
31545 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31546 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31547 return SWIG_Py_Void();
31548}
31549
31550SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31551 return SWIG_Python_InitShadowInstance(args);
31552}
31553
1bd55598
RD
31554SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31555 PyObject *resultobj = 0;
31556 wxPenList *arg1 = (wxPenList *) 0 ;
31557 wxColour *arg2 = 0 ;
31558 int arg3 ;
31559 int arg4 ;
31560 wxPen *result = 0 ;
31561 void *argp1 = 0 ;
31562 int res1 = 0 ;
31563 wxColour temp2 ;
31564 int val3 ;
31565 int ecode3 = 0 ;
31566 int val4 ;
31567 int ecode4 = 0 ;
31568 PyObject * obj0 = 0 ;
31569 PyObject * obj1 = 0 ;
31570 PyObject * obj2 = 0 ;
31571 PyObject * obj3 = 0 ;
31572 char * kwnames[] = {
31573 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31574 };
31575
31576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31578 if (!SWIG_IsOK(res1)) {
31579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31580 }
31581 arg1 = reinterpret_cast< wxPenList * >(argp1);
31582 {
31583 arg2 = &temp2;
31584 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31585 }
31586 ecode3 = SWIG_AsVal_int(obj2, &val3);
31587 if (!SWIG_IsOK(ecode3)) {
31588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31589 }
31590 arg3 = static_cast< int >(val3);
31591 ecode4 = SWIG_AsVal_int(obj3, &val4);
31592 if (!SWIG_IsOK(ecode4)) {
31593 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31594 }
31595 arg4 = static_cast< int >(val4);
31596 {
31597 PyThreadState* __tstate = wxPyBeginAllowThreads();
31598 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31599 wxPyEndAllowThreads(__tstate);
31600 if (PyErr_Occurred()) SWIG_fail;
31601 }
31602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31603 return resultobj;
31604fail:
31605 return NULL;
31606}
31607
31608
da91cb0f 31609SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
31610 PyObject *resultobj = 0;
31611 wxPenList *arg1 = (wxPenList *) 0 ;
31612 wxPen *arg2 = (wxPen *) 0 ;
31613 void *argp1 = 0 ;
31614 int res1 = 0 ;
31615 void *argp2 = 0 ;
31616 int res2 = 0 ;
31617 PyObject * obj0 = 0 ;
31618 PyObject * obj1 = 0 ;
31619 char * kwnames[] = {
31620 (char *) "self",(char *) "pen", NULL
31621 };
31622
da91cb0f 31623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
31624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31625 if (!SWIG_IsOK(res1)) {
da91cb0f 31626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
31627 }
31628 arg1 = reinterpret_cast< wxPenList * >(argp1);
31629 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31630 if (!SWIG_IsOK(res2)) {
da91cb0f 31631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
31632 }
31633 arg2 = reinterpret_cast< wxPen * >(argp2);
31634 {
31635 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 31636 (arg1)->AddPen(arg2);
1bd55598
RD
31637 wxPyEndAllowThreads(__tstate);
31638 if (PyErr_Occurred()) SWIG_fail;
31639 }
31640 resultobj = SWIG_Py_Void();
31641 return resultobj;
31642fail:
31643 return NULL;
31644}
31645
31646
da91cb0f 31647SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
31648 PyObject *resultobj = 0;
31649 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 31650 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
31651 void *argp1 = 0 ;
31652 int res1 = 0 ;
da91cb0f
RD
31653 void *argp2 = 0 ;
31654 int res2 = 0 ;
31655 PyObject * obj0 = 0 ;
31656 PyObject * obj1 = 0 ;
31657 char * kwnames[] = {
31658 (char *) "self",(char *) "pen", NULL
31659 };
1bd55598 31660
da91cb0f
RD
31661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
31662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 31663 if (!SWIG_IsOK(res1)) {
da91cb0f 31664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
31665 }
31666 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
31667 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31668 if (!SWIG_IsOK(res2)) {
31669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
31670 }
31671 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
31672 {
31673 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 31674 (arg1)->RemovePen(arg2);
1bd55598
RD
31675 wxPyEndAllowThreads(__tstate);
31676 if (PyErr_Occurred()) SWIG_fail;
31677 }
da91cb0f 31678 resultobj = SWIG_Py_Void();
1bd55598
RD
31679 return resultobj;
31680fail:
31681 return NULL;
31682}
31683
31684
31685SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31686 PyObject *obj;
31687 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31688 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
31689 return SWIG_Py_Void();
31690}
31691
da91cb0f
RD
31692SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31693 PyObject *resultobj = 0;
31694 wxBrushList *arg1 = (wxBrushList *) 0 ;
31695 wxColour *arg2 = 0 ;
31696 int arg3 = (int) wxSOLID ;
31697 wxBrush *result = 0 ;
31698 void *argp1 = 0 ;
31699 int res1 = 0 ;
31700 wxColour temp2 ;
31701 int val3 ;
31702 int ecode3 = 0 ;
31703 PyObject * obj0 = 0 ;
31704 PyObject * obj1 = 0 ;
31705 PyObject * obj2 = 0 ;
31706 char * kwnames[] = {
31707 (char *) "self",(char *) "colour",(char *) "style", NULL
31708 };
31709
31710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31712 if (!SWIG_IsOK(res1)) {
31713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31714 }
31715 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31716 {
31717 arg2 = &temp2;
31718 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31719 }
31720 if (obj2) {
31721 ecode3 = SWIG_AsVal_int(obj2, &val3);
31722 if (!SWIG_IsOK(ecode3)) {
31723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
31724 }
31725 arg3 = static_cast< int >(val3);
31726 }
31727 {
31728 PyThreadState* __tstate = wxPyBeginAllowThreads();
31729 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
31730 wxPyEndAllowThreads(__tstate);
31731 if (PyErr_Occurred()) SWIG_fail;
31732 }
31733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31734 return resultobj;
31735fail:
31736 return NULL;
31737}
31738
31739
1bd55598
RD
31740SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31741 PyObject *resultobj = 0;
31742 wxBrushList *arg1 = (wxBrushList *) 0 ;
31743 wxBrush *arg2 = (wxBrush *) 0 ;
31744 void *argp1 = 0 ;
31745 int res1 = 0 ;
31746 void *argp2 = 0 ;
31747 int res2 = 0 ;
31748 PyObject * obj0 = 0 ;
31749 PyObject * obj1 = 0 ;
31750 char * kwnames[] = {
31751 (char *) "self",(char *) "brush", NULL
31752 };
31753
31754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31756 if (!SWIG_IsOK(res1)) {
31757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31758 }
31759 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31760 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
31761 if (!SWIG_IsOK(res2)) {
31762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
31763 }
31764 arg2 = reinterpret_cast< wxBrush * >(argp2);
31765 {
31766 PyThreadState* __tstate = wxPyBeginAllowThreads();
31767 (arg1)->AddBrush(arg2);
31768 wxPyEndAllowThreads(__tstate);
31769 if (PyErr_Occurred()) SWIG_fail;
31770 }
31771 resultobj = SWIG_Py_Void();
31772 return resultobj;
31773fail:
31774 return NULL;
31775}
31776
31777
da91cb0f 31778SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
31779 PyObject *resultobj = 0;
31780 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 31781 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
31782 void *argp1 = 0 ;
31783 int res1 = 0 ;
da91cb0f
RD
31784 void *argp2 = 0 ;
31785 int res2 = 0 ;
31786 PyObject * obj0 = 0 ;
31787 PyObject * obj1 = 0 ;
31788 char * kwnames[] = {
31789 (char *) "self",(char *) "brush", NULL
31790 };
31791
31792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31794 if (!SWIG_IsOK(res1)) {
31795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31796 }
31797 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31798 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
31799 if (!SWIG_IsOK(res2)) {
31800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
31801 }
31802 arg2 = reinterpret_cast< wxBrush * >(argp2);
31803 {
31804 PyThreadState* __tstate = wxPyBeginAllowThreads();
31805 (arg1)->RemoveBrush(arg2);
31806 wxPyEndAllowThreads(__tstate);
31807 if (PyErr_Occurred()) SWIG_fail;
31808 }
31809 resultobj = SWIG_Py_Void();
31810 return resultobj;
31811fail:
31812 return NULL;
31813}
31814
31815
31816SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31817 PyObject *obj;
31818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31819 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
31820 return SWIG_Py_Void();
31821}
31822
31823SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31824 PyObject *resultobj = 0;
31825 wxFontList *arg1 = (wxFontList *) 0 ;
31826 int arg2 ;
31827 int arg3 ;
31828 int arg4 ;
31829 int arg5 ;
31830 bool arg6 = (bool) false ;
31831 wxString const &arg7_defvalue = wxPyEmptyString ;
31832 wxString *arg7 = (wxString *) &arg7_defvalue ;
31833 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
31834 wxFont *result = 0 ;
31835 void *argp1 = 0 ;
31836 int res1 = 0 ;
31837 int val2 ;
31838 int ecode2 = 0 ;
1bd55598
RD
31839 int val3 ;
31840 int ecode3 = 0 ;
da91cb0f
RD
31841 int val4 ;
31842 int ecode4 = 0 ;
31843 int val5 ;
31844 int ecode5 = 0 ;
31845 bool val6 ;
31846 int ecode6 = 0 ;
31847 bool temp7 = false ;
31848 int val8 ;
31849 int ecode8 = 0 ;
1bd55598
RD
31850 PyObject * obj0 = 0 ;
31851 PyObject * obj1 = 0 ;
31852 PyObject * obj2 = 0 ;
da91cb0f
RD
31853 PyObject * obj3 = 0 ;
31854 PyObject * obj4 = 0 ;
31855 PyObject * obj5 = 0 ;
31856 PyObject * obj6 = 0 ;
31857 PyObject * obj7 = 0 ;
1bd55598 31858 char * kwnames[] = {
da91cb0f 31859 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
31860 };
31861
da91cb0f
RD
31862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 31864 if (!SWIG_IsOK(res1)) {
da91cb0f 31865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 31866 }
da91cb0f
RD
31867 arg1 = reinterpret_cast< wxFontList * >(argp1);
31868 ecode2 = SWIG_AsVal_int(obj1, &val2);
31869 if (!SWIG_IsOK(ecode2)) {
31870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
31871 }
31872 arg2 = static_cast< int >(val2);
31873 ecode3 = SWIG_AsVal_int(obj2, &val3);
31874 if (!SWIG_IsOK(ecode3)) {
31875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
31876 }
31877 arg3 = static_cast< int >(val3);
31878 ecode4 = SWIG_AsVal_int(obj3, &val4);
31879 if (!SWIG_IsOK(ecode4)) {
31880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
31881 }
31882 arg4 = static_cast< int >(val4);
31883 ecode5 = SWIG_AsVal_int(obj4, &val5);
31884 if (!SWIG_IsOK(ecode5)) {
31885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
31886 }
31887 arg5 = static_cast< int >(val5);
31888 if (obj5) {
31889 ecode6 = SWIG_AsVal_bool(obj5, &val6);
31890 if (!SWIG_IsOK(ecode6)) {
31891 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
31892 }
31893 arg6 = static_cast< bool >(val6);
1bd55598 31894 }
da91cb0f
RD
31895 if (obj6) {
31896 {
31897 arg7 = wxString_in_helper(obj6);
31898 if (arg7 == NULL) SWIG_fail;
31899 temp7 = true;
31900 }
31901 }
31902 if (obj7) {
31903 ecode8 = SWIG_AsVal_int(obj7, &val8);
31904 if (!SWIG_IsOK(ecode8)) {
31905 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 31906 }
da91cb0f 31907 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
31908 }
31909 {
31910 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 31911 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
31912 wxPyEndAllowThreads(__tstate);
31913 if (PyErr_Occurred()) SWIG_fail;
31914 }
da91cb0f
RD
31915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31916 {
31917 if (temp7)
31918 delete arg7;
31919 }
1bd55598
RD
31920 return resultobj;
31921fail:
da91cb0f
RD
31922 {
31923 if (temp7)
31924 delete arg7;
31925 }
1bd55598
RD
31926 return NULL;
31927}
31928
31929
da91cb0f 31930SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 31931 PyObject *resultobj = 0;
da91cb0f
RD
31932 wxFontList *arg1 = (wxFontList *) 0 ;
31933 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
31934 void *argp1 = 0 ;
31935 int res1 = 0 ;
31936 void *argp2 = 0 ;
31937 int res2 = 0 ;
31938 PyObject * obj0 = 0 ;
31939 PyObject * obj1 = 0 ;
31940 char * kwnames[] = {
da91cb0f 31941 (char *) "self",(char *) "font", NULL
1bd55598
RD
31942 };
31943
da91cb0f
RD
31944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
31945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 31946 if (!SWIG_IsOK(res1)) {
da91cb0f 31947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 31948 }
da91cb0f
RD
31949 arg1 = reinterpret_cast< wxFontList * >(argp1);
31950 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 31951 if (!SWIG_IsOK(res2)) {
da91cb0f 31952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 31953 }
da91cb0f 31954 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
31955 {
31956 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 31957 (arg1)->AddFont(arg2);
1bd55598
RD
31958 wxPyEndAllowThreads(__tstate);
31959 if (PyErr_Occurred()) SWIG_fail;
31960 }
31961 resultobj = SWIG_Py_Void();
31962 return resultobj;
31963fail:
31964 return NULL;
31965}
31966
31967
da91cb0f 31968SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 31969 PyObject *resultobj = 0;
da91cb0f
RD
31970 wxFontList *arg1 = (wxFontList *) 0 ;
31971 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
31972 void *argp1 = 0 ;
31973 int res1 = 0 ;
da91cb0f
RD
31974 void *argp2 = 0 ;
31975 int res2 = 0 ;
31976 PyObject * obj0 = 0 ;
31977 PyObject * obj1 = 0 ;
31978 char * kwnames[] = {
31979 (char *) "self",(char *) "font", NULL
31980 };
1bd55598 31981
da91cb0f
RD
31982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
31983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 31984 if (!SWIG_IsOK(res1)) {
da91cb0f 31985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 31986 }
da91cb0f
RD
31987 arg1 = reinterpret_cast< wxFontList * >(argp1);
31988 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
31989 if (!SWIG_IsOK(res2)) {
31990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
31991 }
31992 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
31993 {
31994 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 31995 (arg1)->RemoveFont(arg2);
1bd55598
RD
31996 wxPyEndAllowThreads(__tstate);
31997 if (PyErr_Occurred()) SWIG_fail;
31998 }
da91cb0f 31999 resultobj = SWIG_Py_Void();
1bd55598
RD
32000 return resultobj;
32001fail:
32002 return NULL;
32003}
32004
32005
da91cb0f 32006SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32007 PyObject *obj;
32008 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32009 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32010 return SWIG_Py_Void();
32011}
32012
32013SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32014 PyObject *resultobj = 0;
32015 wxColourDatabase *result = 0 ;
32016
32017 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32018 {
32019 if (!wxPyCheckForApp()) SWIG_fail;
32020 PyThreadState* __tstate = wxPyBeginAllowThreads();
32021 result = (wxColourDatabase *)new wxColourDatabase();
32022 wxPyEndAllowThreads(__tstate);
32023 if (PyErr_Occurred()) SWIG_fail;
32024 }
32025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32026 return resultobj;
32027fail:
32028 return NULL;
32029}
32030
32031
32032SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32033 PyObject *resultobj = 0;
32034 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32035 void *argp1 = 0 ;
32036 int res1 = 0 ;
32037 PyObject *swig_obj[1] ;
32038
32039 if (!args) SWIG_fail;
32040 swig_obj[0] = args;
32041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32042 if (!SWIG_IsOK(res1)) {
32043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32044 }
32045 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32046 {
32047 PyThreadState* __tstate = wxPyBeginAllowThreads();
32048 delete arg1;
32049
32050 wxPyEndAllowThreads(__tstate);
32051 if (PyErr_Occurred()) SWIG_fail;
32052 }
32053 resultobj = SWIG_Py_Void();
32054 return resultobj;
32055fail:
32056 return NULL;
32057}
32058
32059
32060SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32061 PyObject *resultobj = 0;
32062 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32063 wxString *arg2 = 0 ;
32064 wxColour result;
32065 void *argp1 = 0 ;
32066 int res1 = 0 ;
32067 bool temp2 = false ;
32068 PyObject * obj0 = 0 ;
32069 PyObject * obj1 = 0 ;
32070 char * kwnames[] = {
32071 (char *) "self",(char *) "name", NULL
32072 };
32073
32074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32076 if (!SWIG_IsOK(res1)) {
32077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32078 }
32079 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32080 {
32081 arg2 = wxString_in_helper(obj1);
32082 if (arg2 == NULL) SWIG_fail;
32083 temp2 = true;
32084 }
32085 {
32086 PyThreadState* __tstate = wxPyBeginAllowThreads();
32087 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32088 wxPyEndAllowThreads(__tstate);
32089 if (PyErr_Occurred()) SWIG_fail;
32090 }
32091 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32092 {
32093 if (temp2)
32094 delete arg2;
32095 }
32096 return resultobj;
32097fail:
32098 {
32099 if (temp2)
32100 delete arg2;
32101 }
32102 return NULL;
32103}
32104
32105
32106SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32107 PyObject *resultobj = 0;
32108 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32109 wxColour *arg2 = 0 ;
32110 wxString result;
32111 void *argp1 = 0 ;
32112 int res1 = 0 ;
32113 wxColour temp2 ;
32114 PyObject * obj0 = 0 ;
32115 PyObject * obj1 = 0 ;
32116 char * kwnames[] = {
32117 (char *) "self",(char *) "colour", NULL
32118 };
32119
32120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32122 if (!SWIG_IsOK(res1)) {
32123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32124 }
32125 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32126 {
32127 arg2 = &temp2;
32128 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32129 }
32130 {
32131 PyThreadState* __tstate = wxPyBeginAllowThreads();
32132 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32133 wxPyEndAllowThreads(__tstate);
32134 if (PyErr_Occurred()) SWIG_fail;
32135 }
32136 {
32137#if wxUSE_UNICODE
32138 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32139#else
32140 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32141#endif
32142 }
32143 return resultobj;
32144fail:
32145 return NULL;
32146}
32147
32148
32149SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32150 PyObject *resultobj = 0;
32151 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32152 wxString *arg2 = 0 ;
32153 wxColour *arg3 = 0 ;
32154 void *argp1 = 0 ;
32155 int res1 = 0 ;
32156 bool temp2 = false ;
32157 wxColour temp3 ;
32158 PyObject * obj0 = 0 ;
32159 PyObject * obj1 = 0 ;
32160 PyObject * obj2 = 0 ;
32161 char * kwnames[] = {
32162 (char *) "self",(char *) "name",(char *) "colour", NULL
32163 };
32164
32165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32167 if (!SWIG_IsOK(res1)) {
32168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32169 }
32170 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32171 {
32172 arg2 = wxString_in_helper(obj1);
32173 if (arg2 == NULL) SWIG_fail;
32174 temp2 = true;
32175 }
32176 {
32177 arg3 = &temp3;
32178 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32179 }
32180 {
32181 PyThreadState* __tstate = wxPyBeginAllowThreads();
32182 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32183 wxPyEndAllowThreads(__tstate);
32184 if (PyErr_Occurred()) SWIG_fail;
32185 }
32186 resultobj = SWIG_Py_Void();
32187 {
32188 if (temp2)
32189 delete arg2;
32190 }
32191 return resultobj;
32192fail:
32193 {
32194 if (temp2)
32195 delete arg2;
32196 }
32197 return NULL;
32198}
32199
32200
32201SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32202 PyObject *resultobj = 0;
32203 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32204 wxString *arg2 = 0 ;
32205 int arg3 ;
32206 int arg4 ;
32207 int arg5 ;
32208 void *argp1 = 0 ;
32209 int res1 = 0 ;
32210 bool temp2 = false ;
32211 int val3 ;
32212 int ecode3 = 0 ;
32213 int val4 ;
32214 int ecode4 = 0 ;
da91cb0f
RD
32215 int val5 ;
32216 int ecode5 = 0 ;
1bd55598
RD
32217 PyObject * obj0 = 0 ;
32218 PyObject * obj1 = 0 ;
32219 PyObject * obj2 = 0 ;
32220 PyObject * obj3 = 0 ;
32221 PyObject * obj4 = 0 ;
1bd55598 32222 char * kwnames[] = {
da91cb0f 32223 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
32224 };
32225
da91cb0f
RD
32226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 32228 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
32229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32230 }
32231 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32232 {
32233 arg2 = wxString_in_helper(obj1);
32234 if (arg2 == NULL) SWIG_fail;
32235 temp2 = true;
1bd55598 32236 }
1bd55598
RD
32237 ecode3 = SWIG_AsVal_int(obj2, &val3);
32238 if (!SWIG_IsOK(ecode3)) {
da91cb0f 32239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
32240 }
32241 arg3 = static_cast< int >(val3);
32242 ecode4 = SWIG_AsVal_int(obj3, &val4);
32243 if (!SWIG_IsOK(ecode4)) {
da91cb0f 32244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
32245 }
32246 arg4 = static_cast< int >(val4);
32247 ecode5 = SWIG_AsVal_int(obj4, &val5);
32248 if (!SWIG_IsOK(ecode5)) {
da91cb0f 32249 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
32250 }
32251 arg5 = static_cast< int >(val5);
1bd55598
RD
32252 {
32253 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32254 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
32255 wxPyEndAllowThreads(__tstate);
32256 if (PyErr_Occurred()) SWIG_fail;
32257 }
da91cb0f 32258 resultobj = SWIG_Py_Void();
1bd55598 32259 {
da91cb0f
RD
32260 if (temp2)
32261 delete arg2;
1bd55598
RD
32262 }
32263 return resultobj;
32264fail:
32265 {
da91cb0f
RD
32266 if (temp2)
32267 delete arg2;
1bd55598
RD
32268 }
32269 return NULL;
32270}
32271
32272
da91cb0f
RD
32273SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32274 PyObject *obj;
32275 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32276 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32277 return SWIG_Py_Void();
32278}
32279
32280SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32281 return SWIG_Python_InitShadowInstance(args);
32282}
32283
32284SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32285 PyObject *resultobj = 0;
da91cb0f 32286 wxFontList *result = 0 ;
1bd55598 32287
da91cb0f 32288 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
32289 {
32290 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32291 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
32292 wxPyEndAllowThreads(__tstate);
32293 if (PyErr_Occurred()) SWIG_fail;
32294 }
da91cb0f 32295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
32296 return resultobj;
32297fail:
32298 return NULL;
32299}
32300
32301
da91cb0f 32302SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32303 PyObject *resultobj = 0;
da91cb0f 32304 wxPenList *result = 0 ;
1bd55598 32305
da91cb0f 32306 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
32307 {
32308 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32309 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
32310 wxPyEndAllowThreads(__tstate);
32311 if (PyErr_Occurred()) SWIG_fail;
32312 }
da91cb0f 32313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
32314 return resultobj;
32315fail:
32316 return NULL;
32317}
32318
32319
da91cb0f
RD
32320SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32321 PyObject *resultobj = 0;
32322 wxBrushList *result = 0 ;
1bd55598 32323
da91cb0f
RD
32324 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32325 {
32326 PyThreadState* __tstate = wxPyBeginAllowThreads();
32327 result = (wxBrushList *)_wxPyInitTheBrushList();
32328 wxPyEndAllowThreads(__tstate);
32329 if (PyErr_Occurred()) SWIG_fail;
32330 }
32331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32332 return resultobj;
32333fail:
32334 return NULL;
1bd55598
RD
32335}
32336
32337
da91cb0f
RD
32338SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32339 PyObject *resultobj = 0;
32340 wxColourDatabase *result = 0 ;
1bd55598 32341
da91cb0f
RD
32342 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32343 {
32344 PyThreadState* __tstate = wxPyBeginAllowThreads();
32345 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32346 wxPyEndAllowThreads(__tstate);
32347 if (PyErr_Occurred()) SWIG_fail;
32348 }
32349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32350 return resultobj;
32351fail:
32352 return NULL;
1bd55598
RD
32353}
32354
32355
32356SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32357 PyObject *resultobj = 0;
32358 wxEffects *result = 0 ;
32359
32360 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32361 {
32362 PyThreadState* __tstate = wxPyBeginAllowThreads();
32363 result = (wxEffects *)new wxEffects();
32364 wxPyEndAllowThreads(__tstate);
32365 if (PyErr_Occurred()) SWIG_fail;
32366 }
32367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32368 return resultobj;
32369fail:
32370 return NULL;
32371}
32372
32373
32374SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32375 PyObject *resultobj = 0;
32376 wxEffects *arg1 = (wxEffects *) 0 ;
32377 wxColour result;
32378 void *argp1 = 0 ;
32379 int res1 = 0 ;
32380 PyObject *swig_obj[1] ;
32381
32382 if (!args) SWIG_fail;
32383 swig_obj[0] = args;
32384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32385 if (!SWIG_IsOK(res1)) {
32386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32387 }
32388 arg1 = reinterpret_cast< wxEffects * >(argp1);
32389 {
32390 PyThreadState* __tstate = wxPyBeginAllowThreads();
32391 result = ((wxEffects const *)arg1)->GetHighlightColour();
32392 wxPyEndAllowThreads(__tstate);
32393 if (PyErr_Occurred()) SWIG_fail;
32394 }
32395 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32396 return resultobj;
32397fail:
32398 return NULL;
32399}
32400
32401
32402SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32403 PyObject *resultobj = 0;
32404 wxEffects *arg1 = (wxEffects *) 0 ;
32405 wxColour result;
32406 void *argp1 = 0 ;
32407 int res1 = 0 ;
32408 PyObject *swig_obj[1] ;
32409
32410 if (!args) SWIG_fail;
32411 swig_obj[0] = args;
32412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32413 if (!SWIG_IsOK(res1)) {
32414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32415 }
32416 arg1 = reinterpret_cast< wxEffects * >(argp1);
32417 {
32418 PyThreadState* __tstate = wxPyBeginAllowThreads();
32419 result = ((wxEffects const *)arg1)->GetLightShadow();
32420 wxPyEndAllowThreads(__tstate);
32421 if (PyErr_Occurred()) SWIG_fail;
32422 }
32423 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32424 return resultobj;
32425fail:
32426 return NULL;
32427}
32428
32429
32430SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32431 PyObject *resultobj = 0;
32432 wxEffects *arg1 = (wxEffects *) 0 ;
32433 wxColour result;
32434 void *argp1 = 0 ;
32435 int res1 = 0 ;
32436 PyObject *swig_obj[1] ;
32437
32438 if (!args) SWIG_fail;
32439 swig_obj[0] = args;
32440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32441 if (!SWIG_IsOK(res1)) {
32442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32443 }
32444 arg1 = reinterpret_cast< wxEffects * >(argp1);
32445 {
32446 PyThreadState* __tstate = wxPyBeginAllowThreads();
32447 result = ((wxEffects const *)arg1)->GetFaceColour();
32448 wxPyEndAllowThreads(__tstate);
32449 if (PyErr_Occurred()) SWIG_fail;
32450 }
32451 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32452 return resultobj;
32453fail:
32454 return NULL;
32455}
32456
32457
32458SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32459 PyObject *resultobj = 0;
32460 wxEffects *arg1 = (wxEffects *) 0 ;
32461 wxColour result;
32462 void *argp1 = 0 ;
32463 int res1 = 0 ;
32464 PyObject *swig_obj[1] ;
32465
32466 if (!args) SWIG_fail;
32467 swig_obj[0] = args;
32468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32469 if (!SWIG_IsOK(res1)) {
32470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32471 }
32472 arg1 = reinterpret_cast< wxEffects * >(argp1);
32473 {
32474 PyThreadState* __tstate = wxPyBeginAllowThreads();
32475 result = ((wxEffects const *)arg1)->GetMediumShadow();
32476 wxPyEndAllowThreads(__tstate);
32477 if (PyErr_Occurred()) SWIG_fail;
32478 }
32479 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32480 return resultobj;
32481fail:
32482 return NULL;
32483}
32484
32485
32486SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32487 PyObject *resultobj = 0;
32488 wxEffects *arg1 = (wxEffects *) 0 ;
32489 wxColour result;
32490 void *argp1 = 0 ;
32491 int res1 = 0 ;
32492 PyObject *swig_obj[1] ;
32493
32494 if (!args) SWIG_fail;
32495 swig_obj[0] = args;
32496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32497 if (!SWIG_IsOK(res1)) {
32498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32499 }
32500 arg1 = reinterpret_cast< wxEffects * >(argp1);
32501 {
32502 PyThreadState* __tstate = wxPyBeginAllowThreads();
32503 result = ((wxEffects const *)arg1)->GetDarkShadow();
32504 wxPyEndAllowThreads(__tstate);
32505 if (PyErr_Occurred()) SWIG_fail;
32506 }
32507 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32508 return resultobj;
32509fail:
32510 return NULL;
32511}
32512
32513
32514SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32515 PyObject *resultobj = 0;
32516 wxEffects *arg1 = (wxEffects *) 0 ;
32517 wxColour *arg2 = 0 ;
32518 void *argp1 = 0 ;
32519 int res1 = 0 ;
32520 wxColour temp2 ;
32521 PyObject * obj0 = 0 ;
32522 PyObject * obj1 = 0 ;
32523 char * kwnames[] = {
32524 (char *) "self",(char *) "c", NULL
32525 };
32526
32527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32529 if (!SWIG_IsOK(res1)) {
32530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32531 }
32532 arg1 = reinterpret_cast< wxEffects * >(argp1);
32533 {
32534 arg2 = &temp2;
32535 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32536 }
32537 {
32538 PyThreadState* __tstate = wxPyBeginAllowThreads();
32539 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32540 wxPyEndAllowThreads(__tstate);
32541 if (PyErr_Occurred()) SWIG_fail;
32542 }
32543 resultobj = SWIG_Py_Void();
32544 return resultobj;
32545fail:
32546 return NULL;
32547}
32548
32549
32550SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32551 PyObject *resultobj = 0;
32552 wxEffects *arg1 = (wxEffects *) 0 ;
32553 wxColour *arg2 = 0 ;
32554 void *argp1 = 0 ;
32555 int res1 = 0 ;
32556 wxColour temp2 ;
32557 PyObject * obj0 = 0 ;
32558 PyObject * obj1 = 0 ;
32559 char * kwnames[] = {
32560 (char *) "self",(char *) "c", NULL
32561 };
32562
32563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32565 if (!SWIG_IsOK(res1)) {
32566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32567 }
32568 arg1 = reinterpret_cast< wxEffects * >(argp1);
32569 {
32570 arg2 = &temp2;
32571 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32572 }
32573 {
32574 PyThreadState* __tstate = wxPyBeginAllowThreads();
32575 (arg1)->SetLightShadow((wxColour const &)*arg2);
32576 wxPyEndAllowThreads(__tstate);
32577 if (PyErr_Occurred()) SWIG_fail;
32578 }
32579 resultobj = SWIG_Py_Void();
32580 return resultobj;
32581fail:
32582 return NULL;
32583}
32584
32585
32586SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32587 PyObject *resultobj = 0;
32588 wxEffects *arg1 = (wxEffects *) 0 ;
32589 wxColour *arg2 = 0 ;
32590 void *argp1 = 0 ;
32591 int res1 = 0 ;
32592 wxColour temp2 ;
32593 PyObject * obj0 = 0 ;
32594 PyObject * obj1 = 0 ;
32595 char * kwnames[] = {
32596 (char *) "self",(char *) "c", NULL
32597 };
32598
32599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32601 if (!SWIG_IsOK(res1)) {
32602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32603 }
32604 arg1 = reinterpret_cast< wxEffects * >(argp1);
32605 {
32606 arg2 = &temp2;
32607 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32608 }
32609 {
32610 PyThreadState* __tstate = wxPyBeginAllowThreads();
32611 (arg1)->SetFaceColour((wxColour const &)*arg2);
32612 wxPyEndAllowThreads(__tstate);
32613 if (PyErr_Occurred()) SWIG_fail;
32614 }
32615 resultobj = SWIG_Py_Void();
32616 return resultobj;
32617fail:
32618 return NULL;
32619}
32620
32621
32622SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32623 PyObject *resultobj = 0;
32624 wxEffects *arg1 = (wxEffects *) 0 ;
32625 wxColour *arg2 = 0 ;
32626 void *argp1 = 0 ;
32627 int res1 = 0 ;
32628 wxColour temp2 ;
32629 PyObject * obj0 = 0 ;
32630 PyObject * obj1 = 0 ;
32631 char * kwnames[] = {
32632 (char *) "self",(char *) "c", NULL
32633 };
32634
32635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32637 if (!SWIG_IsOK(res1)) {
32638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32639 }
32640 arg1 = reinterpret_cast< wxEffects * >(argp1);
32641 {
32642 arg2 = &temp2;
32643 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32644 }
32645 {
32646 PyThreadState* __tstate = wxPyBeginAllowThreads();
32647 (arg1)->SetMediumShadow((wxColour const &)*arg2);
32648 wxPyEndAllowThreads(__tstate);
32649 if (PyErr_Occurred()) SWIG_fail;
32650 }
32651 resultobj = SWIG_Py_Void();
32652 return resultobj;
32653fail:
32654 return NULL;
32655}
32656
32657
32658SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32659 PyObject *resultobj = 0;
32660 wxEffects *arg1 = (wxEffects *) 0 ;
32661 wxColour *arg2 = 0 ;
32662 void *argp1 = 0 ;
32663 int res1 = 0 ;
32664 wxColour temp2 ;
32665 PyObject * obj0 = 0 ;
32666 PyObject * obj1 = 0 ;
32667 char * kwnames[] = {
32668 (char *) "self",(char *) "c", NULL
32669 };
32670
32671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32673 if (!SWIG_IsOK(res1)) {
32674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32675 }
32676 arg1 = reinterpret_cast< wxEffects * >(argp1);
32677 {
32678 arg2 = &temp2;
32679 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32680 }
32681 {
32682 PyThreadState* __tstate = wxPyBeginAllowThreads();
32683 (arg1)->SetDarkShadow((wxColour const &)*arg2);
32684 wxPyEndAllowThreads(__tstate);
32685 if (PyErr_Occurred()) SWIG_fail;
32686 }
32687 resultobj = SWIG_Py_Void();
32688 return resultobj;
32689fail:
32690 return NULL;
32691}
32692
32693
32694SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32695 PyObject *resultobj = 0;
32696 wxEffects *arg1 = (wxEffects *) 0 ;
32697 wxColour *arg2 = 0 ;
32698 wxColour *arg3 = 0 ;
32699 wxColour *arg4 = 0 ;
32700 wxColour *arg5 = 0 ;
32701 wxColour *arg6 = 0 ;
32702 void *argp1 = 0 ;
32703 int res1 = 0 ;
32704 wxColour temp2 ;
32705 wxColour temp3 ;
32706 wxColour temp4 ;
32707 wxColour temp5 ;
32708 wxColour temp6 ;
32709 PyObject * obj0 = 0 ;
32710 PyObject * obj1 = 0 ;
32711 PyObject * obj2 = 0 ;
32712 PyObject * obj3 = 0 ;
32713 PyObject * obj4 = 0 ;
32714 PyObject * obj5 = 0 ;
32715 char * kwnames[] = {
32716 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
32717 };
32718
32719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32721 if (!SWIG_IsOK(res1)) {
32722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
32723 }
32724 arg1 = reinterpret_cast< wxEffects * >(argp1);
32725 {
32726 arg2 = &temp2;
32727 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32728 }
32729 {
32730 arg3 = &temp3;
32731 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32732 }
32733 {
32734 arg4 = &temp4;
32735 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32736 }
32737 {
32738 arg5 = &temp5;
32739 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
32740 }
32741 {
32742 arg6 = &temp6;
32743 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
32744 }
32745 {
32746 PyThreadState* __tstate = wxPyBeginAllowThreads();
32747 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
32748 wxPyEndAllowThreads(__tstate);
32749 if (PyErr_Occurred()) SWIG_fail;
32750 }
32751 resultobj = SWIG_Py_Void();
32752 return resultobj;
32753fail:
32754 return NULL;
32755}
32756
32757
32758SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32759 PyObject *resultobj = 0;
32760 wxEffects *arg1 = (wxEffects *) 0 ;
32761 wxDC *arg2 = 0 ;
32762 wxRect *arg3 = 0 ;
32763 int arg4 = (int) 1 ;
32764 void *argp1 = 0 ;
32765 int res1 = 0 ;
32766 void *argp2 = 0 ;
32767 int res2 = 0 ;
32768 wxRect temp3 ;
32769 int val4 ;
32770 int ecode4 = 0 ;
32771 PyObject * obj0 = 0 ;
32772 PyObject * obj1 = 0 ;
32773 PyObject * obj2 = 0 ;
32774 PyObject * obj3 = 0 ;
32775 char * kwnames[] = {
32776 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
32777 };
32778
32779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32781 if (!SWIG_IsOK(res1)) {
32782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
32783 }
32784 arg1 = reinterpret_cast< wxEffects * >(argp1);
32785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
32786 if (!SWIG_IsOK(res2)) {
32787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
32788 }
32789 if (!argp2) {
32790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
32791 }
32792 arg2 = reinterpret_cast< wxDC * >(argp2);
32793 {
32794 arg3 = &temp3;
32795 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32796 }
32797 if (obj3) {
32798 ecode4 = SWIG_AsVal_int(obj3, &val4);
32799 if (!SWIG_IsOK(ecode4)) {
32800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
32801 }
32802 arg4 = static_cast< int >(val4);
32803 }
32804 {
32805 PyThreadState* __tstate = wxPyBeginAllowThreads();
32806 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
32807 wxPyEndAllowThreads(__tstate);
32808 if (PyErr_Occurred()) SWIG_fail;
32809 }
32810 resultobj = SWIG_Py_Void();
32811 return resultobj;
32812fail:
32813 return NULL;
32814}
32815
32816
32817SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32818 PyObject *resultobj = 0;
32819 wxEffects *arg1 = (wxEffects *) 0 ;
32820 wxRect *arg2 = 0 ;
32821 wxDC *arg3 = 0 ;
32822 wxBitmap *arg4 = 0 ;
32823 bool result;
32824 void *argp1 = 0 ;
32825 int res1 = 0 ;
32826 wxRect temp2 ;
32827 void *argp3 = 0 ;
32828 int res3 = 0 ;
32829 void *argp4 = 0 ;
32830 int res4 = 0 ;
32831 PyObject * obj0 = 0 ;
32832 PyObject * obj1 = 0 ;
32833 PyObject * obj2 = 0 ;
32834 PyObject * obj3 = 0 ;
32835 char * kwnames[] = {
32836 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
32837 };
32838
32839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32841 if (!SWIG_IsOK(res1)) {
32842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
32843 }
32844 arg1 = reinterpret_cast< wxEffects * >(argp1);
32845 {
32846 arg2 = &temp2;
32847 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32848 }
32849 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32850 if (!SWIG_IsOK(res3)) {
32851 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
32852 }
32853 if (!argp3) {
32854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
32855 }
32856 arg3 = reinterpret_cast< wxDC * >(argp3);
32857 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
32858 if (!SWIG_IsOK(res4)) {
32859 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
32860 }
32861 if (!argp4) {
32862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
32863 }
32864 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32865 {
32866 PyThreadState* __tstate = wxPyBeginAllowThreads();
32867 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
32868 wxPyEndAllowThreads(__tstate);
32869 if (PyErr_Occurred()) SWIG_fail;
32870 }
32871 {
32872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32873 }
32874 return resultobj;
32875fail:
32876 return NULL;
32877}
32878
32879
32880SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32881 PyObject *obj;
32882 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32883 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
32884 return SWIG_Py_Void();
32885}
32886
32887SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32888 return SWIG_Python_InitShadowInstance(args);
32889}
32890
32891SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32892 PyObject *resultobj = 0;
32893 int arg1 ;
32894 int arg2 ;
32895 bool arg3 ;
32896 wxSplitterRenderParams *result = 0 ;
32897 int val1 ;
32898 int ecode1 = 0 ;
32899 int val2 ;
32900 int ecode2 = 0 ;
32901 bool val3 ;
32902 int ecode3 = 0 ;
32903 PyObject * obj0 = 0 ;
32904 PyObject * obj1 = 0 ;
32905 PyObject * obj2 = 0 ;
32906 char * kwnames[] = {
32907 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
32908 };
32909
32910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32911 ecode1 = SWIG_AsVal_int(obj0, &val1);
32912 if (!SWIG_IsOK(ecode1)) {
32913 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
32914 }
32915 arg1 = static_cast< int >(val1);
32916 ecode2 = SWIG_AsVal_int(obj1, &val2);
32917 if (!SWIG_IsOK(ecode2)) {
32918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
32919 }
32920 arg2 = static_cast< int >(val2);
32921 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32922 if (!SWIG_IsOK(ecode3)) {
32923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
32924 }
32925 arg3 = static_cast< bool >(val3);
32926 {
32927 PyThreadState* __tstate = wxPyBeginAllowThreads();
32928 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
32929 wxPyEndAllowThreads(__tstate);
32930 if (PyErr_Occurred()) SWIG_fail;
32931 }
32932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
32933 return resultobj;
32934fail:
32935 return NULL;
32936}
32937
32938
32939SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32940 PyObject *resultobj = 0;
32941 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
32942 void *argp1 = 0 ;
32943 int res1 = 0 ;
32944 PyObject *swig_obj[1] ;
32945
32946 if (!args) SWIG_fail;
32947 swig_obj[0] = args;
32948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
32949 if (!SWIG_IsOK(res1)) {
32950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
32951 }
32952 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
32953 {
32954 PyThreadState* __tstate = wxPyBeginAllowThreads();
32955 delete arg1;
32956
32957 wxPyEndAllowThreads(__tstate);
32958 if (PyErr_Occurred()) SWIG_fail;
32959 }
32960 resultobj = SWIG_Py_Void();
32961 return resultobj;
32962fail:
32963 return NULL;
32964}
32965
32966
32967SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32968 PyObject *resultobj = 0;
32969 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
32970 int result;
32971 void *argp1 = 0 ;
32972 int res1 = 0 ;
32973 PyObject *swig_obj[1] ;
32974
32975 if (!args) SWIG_fail;
32976 swig_obj[0] = args;
32977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
32978 if (!SWIG_IsOK(res1)) {
32979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
32980 }
32981 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
32982 result = (int)(int) ((arg1)->widthSash);
32983 resultobj = SWIG_From_int(static_cast< int >(result));
32984 return resultobj;
32985fail:
32986 return NULL;
32987}
32988
32989
32990SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32991 PyObject *resultobj = 0;
32992 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
32993 int result;
32994 void *argp1 = 0 ;
32995 int res1 = 0 ;
32996 PyObject *swig_obj[1] ;
32997
32998 if (!args) SWIG_fail;
32999 swig_obj[0] = args;
33000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33001 if (!SWIG_IsOK(res1)) {
33002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33003 }
33004 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33005 result = (int)(int) ((arg1)->border);
33006 resultobj = SWIG_From_int(static_cast< int >(result));
33007 return resultobj;
33008fail:
33009 return NULL;
33010}
33011
33012
33013SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33014 PyObject *resultobj = 0;
33015 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33016 bool result;
33017 void *argp1 = 0 ;
33018 int res1 = 0 ;
33019 PyObject *swig_obj[1] ;
33020
33021 if (!args) SWIG_fail;
33022 swig_obj[0] = args;
33023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33024 if (!SWIG_IsOK(res1)) {
33025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33026 }
33027 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33028 result = (bool)(bool) ((arg1)->isHotSensitive);
33029 resultobj = SWIG_From_bool(static_cast< bool >(result));
33030 return resultobj;
33031fail:
33032 return NULL;
33033}
33034
33035
33036SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33037 PyObject *obj;
33038 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33039 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33040 return SWIG_Py_Void();
33041}
33042
33043SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33044 return SWIG_Python_InitShadowInstance(args);
33045}
33046
33d6fd3b
RD
33047SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33048 PyObject *resultobj = 0;
33049 wxHeaderButtonParams *result = 0 ;
33050
33051 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33052 {
33053 PyThreadState* __tstate = wxPyBeginAllowThreads();
33054 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33055 wxPyEndAllowThreads(__tstate);
33056 if (PyErr_Occurred()) SWIG_fail;
33057 }
33058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33059 return resultobj;
33060fail:
33061 return NULL;
33062}
33063
33064
33065SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33066 PyObject *resultobj = 0;
33067 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33068 void *argp1 = 0 ;
33069 int res1 = 0 ;
33070 PyObject *swig_obj[1] ;
33071
33072 if (!args) SWIG_fail;
33073 swig_obj[0] = args;
33074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33075 if (!SWIG_IsOK(res1)) {
33076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33077 }
33078 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33079 {
33080 PyThreadState* __tstate = wxPyBeginAllowThreads();
33081 delete arg1;
33082
33083 wxPyEndAllowThreads(__tstate);
33084 if (PyErr_Occurred()) SWIG_fail;
33085 }
33086 resultobj = SWIG_Py_Void();
33087 return resultobj;
33088fail:
33089 return NULL;
33090}
33091
33092
33093SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33094 PyObject *resultobj = 0;
33095 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33096 wxColour *arg2 = (wxColour *) 0 ;
33097 void *argp1 = 0 ;
33098 int res1 = 0 ;
33099 wxColour temp2 ;
33100 PyObject *swig_obj[2] ;
33101
33102 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33104 if (!SWIG_IsOK(res1)) {
33105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33106 }
33107 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33108 {
33109 arg2 = &temp2;
33110 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33111 }
33112 if (arg1) (arg1)->m_arrowColour = *arg2;
33113
33114 resultobj = SWIG_Py_Void();
33115 return resultobj;
33116fail:
33117 return NULL;
33118}
33119
33120
33121SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33122 PyObject *resultobj = 0;
33123 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33124 wxColour *result = 0 ;
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_wxHeaderButtonParams, 0 | 0 );
33132 if (!SWIG_IsOK(res1)) {
33133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33134 }
33135 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33136 result = (wxColour *)& ((arg1)->m_arrowColour);
33137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33138 return resultobj;
33139fail:
33140 return NULL;
33141}
33142
33143
33144SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33145 PyObject *resultobj = 0;
33146 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33147 wxColour *arg2 = (wxColour *) 0 ;
33148 void *argp1 = 0 ;
33149 int res1 = 0 ;
33150 wxColour temp2 ;
33151 PyObject *swig_obj[2] ;
33152
33153 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33155 if (!SWIG_IsOK(res1)) {
33156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33157 }
33158 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33159 {
33160 arg2 = &temp2;
33161 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33162 }
33163 if (arg1) (arg1)->m_selectionColour = *arg2;
33164
33165 resultobj = SWIG_Py_Void();
33166 return resultobj;
33167fail:
33168 return NULL;
33169}
33170
33171
33172SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33173 PyObject *resultobj = 0;
33174 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33175 wxColour *result = 0 ;
33176 void *argp1 = 0 ;
33177 int res1 = 0 ;
33178 PyObject *swig_obj[1] ;
33179
33180 if (!args) SWIG_fail;
33181 swig_obj[0] = args;
33182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33183 if (!SWIG_IsOK(res1)) {
33184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33185 }
33186 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33187 result = (wxColour *)& ((arg1)->m_selectionColour);
33188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33189 return resultobj;
33190fail:
33191 return NULL;
33192}
33193
33194
33195SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33196 PyObject *resultobj = 0;
33197 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33198 wxString *arg2 = (wxString *) 0 ;
33199 void *argp1 = 0 ;
33200 int res1 = 0 ;
33201 bool temp2 = false ;
33202 PyObject *swig_obj[2] ;
33203
33204 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33206 if (!SWIG_IsOK(res1)) {
33207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33208 }
33209 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33210 {
33211 arg2 = wxString_in_helper(swig_obj[1]);
33212 if (arg2 == NULL) SWIG_fail;
33213 temp2 = true;
33214 }
33215 if (arg1) (arg1)->m_labelText = *arg2;
33216
33217 resultobj = SWIG_Py_Void();
33218 {
33219 if (temp2)
33220 delete arg2;
33221 }
33222 return resultobj;
33223fail:
33224 {
33225 if (temp2)
33226 delete arg2;
33227 }
33228 return NULL;
33229}
33230
33231
33232SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33233 PyObject *resultobj = 0;
33234 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33235 wxString *result = 0 ;
33236 void *argp1 = 0 ;
33237 int res1 = 0 ;
33238 PyObject *swig_obj[1] ;
33239
33240 if (!args) SWIG_fail;
33241 swig_obj[0] = args;
33242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33243 if (!SWIG_IsOK(res1)) {
33244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33245 }
33246 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33247 result = (wxString *)& ((arg1)->m_labelText);
33248 {
33249#if wxUSE_UNICODE
33250 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33251#else
33252 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33253#endif
33254 }
33255 return resultobj;
33256fail:
33257 return NULL;
33258}
33259
33260
33261SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33262 PyObject *resultobj = 0;
33263 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33264 wxFont *arg2 = (wxFont *) 0 ;
33265 void *argp1 = 0 ;
33266 int res1 = 0 ;
33267 void *argp2 = 0 ;
33268 int res2 = 0 ;
33269 PyObject *swig_obj[2] ;
33270
33271 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33273 if (!SWIG_IsOK(res1)) {
33274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33275 }
33276 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33277 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33278 if (!SWIG_IsOK(res2)) {
33279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33280 }
33281 arg2 = reinterpret_cast< wxFont * >(argp2);
33282 if (arg1) (arg1)->m_labelFont = *arg2;
33283
33284 resultobj = SWIG_Py_Void();
33285 return resultobj;
33286fail:
33287 return NULL;
33288}
33289
33290
33291SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33292 PyObject *resultobj = 0;
33293 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33294 wxFont *result = 0 ;
33295 void *argp1 = 0 ;
33296 int res1 = 0 ;
33297 PyObject *swig_obj[1] ;
33298
33299 if (!args) SWIG_fail;
33300 swig_obj[0] = args;
33301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33302 if (!SWIG_IsOK(res1)) {
33303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33304 }
33305 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33306 result = (wxFont *)& ((arg1)->m_labelFont);
33307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33308 return resultobj;
33309fail:
33310 return NULL;
33311}
33312
33313
33314SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33315 PyObject *resultobj = 0;
33316 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33317 wxColour *arg2 = (wxColour *) 0 ;
33318 void *argp1 = 0 ;
33319 int res1 = 0 ;
33320 wxColour temp2 ;
33321 PyObject *swig_obj[2] ;
33322
33323 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33325 if (!SWIG_IsOK(res1)) {
33326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33327 }
33328 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33329 {
33330 arg2 = &temp2;
33331 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33332 }
33333 if (arg1) (arg1)->m_labelColour = *arg2;
33334
33335 resultobj = SWIG_Py_Void();
33336 return resultobj;
33337fail:
33338 return NULL;
33339}
33340
33341
33342SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33343 PyObject *resultobj = 0;
33344 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33345 wxColour *result = 0 ;
33346 void *argp1 = 0 ;
33347 int res1 = 0 ;
33348 PyObject *swig_obj[1] ;
33349
33350 if (!args) SWIG_fail;
33351 swig_obj[0] = args;
33352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33353 if (!SWIG_IsOK(res1)) {
33354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33355 }
33356 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33357 result = (wxColour *)& ((arg1)->m_labelColour);
33358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33359 return resultobj;
33360fail:
33361 return NULL;
33362}
33363
33364
33365SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33366 PyObject *resultobj = 0;
33367 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33368 wxBitmap *arg2 = (wxBitmap *) 0 ;
33369 void *argp1 = 0 ;
33370 int res1 = 0 ;
33371 void *argp2 = 0 ;
33372 int res2 = 0 ;
33373 PyObject *swig_obj[2] ;
33374
33375 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33377 if (!SWIG_IsOK(res1)) {
33378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33379 }
33380 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33381 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33382 if (!SWIG_IsOK(res2)) {
33383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33384 }
33385 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33386 if (arg1) (arg1)->m_labelBitmap = *arg2;
33387
33388 resultobj = SWIG_Py_Void();
33389 return resultobj;
33390fail:
33391 return NULL;
33392}
33393
33394
33395SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33396 PyObject *resultobj = 0;
33397 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33398 wxBitmap *result = 0 ;
33399 void *argp1 = 0 ;
33400 int res1 = 0 ;
33401 PyObject *swig_obj[1] ;
33402
33403 if (!args) SWIG_fail;
33404 swig_obj[0] = args;
33405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33406 if (!SWIG_IsOK(res1)) {
33407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33408 }
33409 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33410 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33412 return resultobj;
33413fail:
33414 return NULL;
33415}
33416
33417
33418SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33419 PyObject *resultobj = 0;
33420 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33421 int arg2 ;
33422 void *argp1 = 0 ;
33423 int res1 = 0 ;
33424 int val2 ;
33425 int ecode2 = 0 ;
33426 PyObject *swig_obj[2] ;
33427
33428 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33430 if (!SWIG_IsOK(res1)) {
33431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33432 }
33433 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33434 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33435 if (!SWIG_IsOK(ecode2)) {
33436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33437 }
33438 arg2 = static_cast< int >(val2);
33439 if (arg1) (arg1)->m_labelAlignment = arg2;
33440
33441 resultobj = SWIG_Py_Void();
33442 return resultobj;
33443fail:
33444 return NULL;
33445}
33446
33447
33448SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33449 PyObject *resultobj = 0;
33450 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33451 int result;
33452 void *argp1 = 0 ;
33453 int res1 = 0 ;
33454 PyObject *swig_obj[1] ;
33455
33456 if (!args) SWIG_fail;
33457 swig_obj[0] = args;
33458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33459 if (!SWIG_IsOK(res1)) {
33460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33461 }
33462 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33463 result = (int) ((arg1)->m_labelAlignment);
33464 resultobj = SWIG_From_int(static_cast< int >(result));
33465 return resultobj;
33466fail:
33467 return NULL;
33468}
33469
33470
33471SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33472 PyObject *obj;
33473 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33474 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33475 return SWIG_Py_Void();
33476}
33477
33478SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33479 return SWIG_Python_InitShadowInstance(args);
33480}
33481
1bd55598
RD
33482SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33483 PyObject *resultobj = 0;
33484 int arg1 ;
33485 int arg2 ;
33486 wxRendererVersion *result = 0 ;
33487 int val1 ;
33488 int ecode1 = 0 ;
33489 int val2 ;
33490 int ecode2 = 0 ;
33491 PyObject * obj0 = 0 ;
33492 PyObject * obj1 = 0 ;
33493 char * kwnames[] = {
33494 (char *) "version_",(char *) "age_", NULL
33495 };
33496
33497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33498 ecode1 = SWIG_AsVal_int(obj0, &val1);
33499 if (!SWIG_IsOK(ecode1)) {
33500 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33501 }
33502 arg1 = static_cast< int >(val1);
33503 ecode2 = SWIG_AsVal_int(obj1, &val2);
33504 if (!SWIG_IsOK(ecode2)) {
33505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33506 }
33507 arg2 = static_cast< int >(val2);
33508 {
33509 PyThreadState* __tstate = wxPyBeginAllowThreads();
33510 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33511 wxPyEndAllowThreads(__tstate);
33512 if (PyErr_Occurred()) SWIG_fail;
33513 }
33514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33515 return resultobj;
33516fail:
33517 return NULL;
33518}
33519
33520
33521SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33522 PyObject *resultobj = 0;
33523 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33524 void *argp1 = 0 ;
33525 int res1 = 0 ;
33526 PyObject *swig_obj[1] ;
33527
33528 if (!args) SWIG_fail;
33529 swig_obj[0] = args;
33530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33531 if (!SWIG_IsOK(res1)) {
33532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33533 }
33534 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33535 {
33536 PyThreadState* __tstate = wxPyBeginAllowThreads();
33537 delete arg1;
33538
33539 wxPyEndAllowThreads(__tstate);
33540 if (PyErr_Occurred()) SWIG_fail;
33541 }
33542 resultobj = SWIG_Py_Void();
33543 return resultobj;
33544fail:
33545 return NULL;
33546}
33547
33548
33549SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33550 PyObject *resultobj = 0;
33551 wxRendererVersion *arg1 = 0 ;
33552 bool result;
33553 void *argp1 = 0 ;
33554 int res1 = 0 ;
33555 PyObject * obj0 = 0 ;
33556 char * kwnames[] = {
33557 (char *) "ver", NULL
33558 };
33559
33560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33561 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33562 if (!SWIG_IsOK(res1)) {
33563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33564 }
33565 if (!argp1) {
33566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33567 }
33568 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33569 {
33570 PyThreadState* __tstate = wxPyBeginAllowThreads();
33571 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33572 wxPyEndAllowThreads(__tstate);
33573 if (PyErr_Occurred()) SWIG_fail;
33574 }
33575 {
33576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33577 }
33578 return resultobj;
33579fail:
33580 return NULL;
33581}
33582
33583
33584SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33585 PyObject *resultobj = 0;
33586 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33587 int result;
33588 void *argp1 = 0 ;
33589 int res1 = 0 ;
33590 PyObject *swig_obj[1] ;
33591
33592 if (!args) SWIG_fail;
33593 swig_obj[0] = args;
33594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33595 if (!SWIG_IsOK(res1)) {
33596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33597 }
33598 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33599 result = (int)(int) ((arg1)->version);
33600 resultobj = SWIG_From_int(static_cast< int >(result));
33601 return resultobj;
33602fail:
33603 return NULL;
33604}
33605
33606
33607SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33608 PyObject *resultobj = 0;
33609 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33610 int result;
33611 void *argp1 = 0 ;
33612 int res1 = 0 ;
33613 PyObject *swig_obj[1] ;
33614
33615 if (!args) SWIG_fail;
33616 swig_obj[0] = args;
33617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33618 if (!SWIG_IsOK(res1)) {
33619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33620 }
33621 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33622 result = (int)(int) ((arg1)->age);
33623 resultobj = SWIG_From_int(static_cast< int >(result));
33624 return resultobj;
33625fail:
33626 return NULL;
33627}
33628
33629
33630SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33631 PyObject *obj;
33632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33633 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33634 return SWIG_Py_Void();
33635}
33636
33637SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33638 return SWIG_Python_InitShadowInstance(args);
33639}
33640
33641SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33642 PyObject *resultobj = 0;
33643 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33644 wxWindow *arg2 = (wxWindow *) 0 ;
33645 wxDC *arg3 = 0 ;
33646 wxRect *arg4 = 0 ;
33647 int arg5 = (int) 0 ;
33d6fd3b
RD
33648 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33649 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
1bd55598
RD
33650 void *argp1 = 0 ;
33651 int res1 = 0 ;
33652 void *argp2 = 0 ;
33653 int res2 = 0 ;
33654 void *argp3 = 0 ;
33655 int res3 = 0 ;
33656 wxRect temp4 ;
33657 int val5 ;
33658 int ecode5 = 0 ;
33d6fd3b
RD
33659 int val6 ;
33660 int ecode6 = 0 ;
33661 void *argp7 = 0 ;
33662 int res7 = 0 ;
1bd55598
RD
33663 PyObject * obj0 = 0 ;
33664 PyObject * obj1 = 0 ;
33665 PyObject * obj2 = 0 ;
33666 PyObject * obj3 = 0 ;
33667 PyObject * obj4 = 0 ;
33d6fd3b
RD
33668 PyObject * obj5 = 0 ;
33669 PyObject * obj6 = 0 ;
1bd55598 33670 char * kwnames[] = {
33d6fd3b 33671 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
33672 };
33673
33d6fd3b 33674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
33675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33676 if (!SWIG_IsOK(res1)) {
33677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33678 }
33679 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33680 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33681 if (!SWIG_IsOK(res2)) {
33682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
33683 }
33684 arg2 = reinterpret_cast< wxWindow * >(argp2);
33685 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33686 if (!SWIG_IsOK(res3)) {
33687 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33688 }
33689 if (!argp3) {
33690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33691 }
33692 arg3 = reinterpret_cast< wxDC * >(argp3);
33693 {
33694 arg4 = &temp4;
33695 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33696 }
33697 if (obj4) {
33698 ecode5 = SWIG_AsVal_int(obj4, &val5);
33699 if (!SWIG_IsOK(ecode5)) {
33700 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
33701 }
33702 arg5 = static_cast< int >(val5);
33703 }
33d6fd3b
RD
33704 if (obj5) {
33705 ecode6 = SWIG_AsVal_int(obj5, &val6);
33706 if (!SWIG_IsOK(ecode6)) {
33707 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33708 }
33709 arg6 = static_cast< wxHeaderSortIconType >(val6);
33710 }
33711 if (obj6) {
33712 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33713 if (!SWIG_IsOK(res7)) {
33714 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33715 }
33716 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33717 }
33718 {
33719 PyThreadState* __tstate = wxPyBeginAllowThreads();
33720 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33721 wxPyEndAllowThreads(__tstate);
33722 if (PyErr_Occurred()) SWIG_fail;
33723 }
33724 resultobj = SWIG_Py_Void();
33725 return resultobj;
33726fail:
33727 return NULL;
33728}
33729
33730
33731SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33732 PyObject *resultobj = 0;
33733 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33734 wxWindow *arg2 = (wxWindow *) 0 ;
33735 wxDC *arg3 = 0 ;
33736 wxRect *arg4 = 0 ;
33737 int arg5 = (int) 0 ;
33738 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33739 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
33740 void *argp1 = 0 ;
33741 int res1 = 0 ;
33742 void *argp2 = 0 ;
33743 int res2 = 0 ;
33744 void *argp3 = 0 ;
33745 int res3 = 0 ;
33746 wxRect temp4 ;
33747 int val5 ;
33748 int ecode5 = 0 ;
33749 int val6 ;
33750 int ecode6 = 0 ;
33751 void *argp7 = 0 ;
33752 int res7 = 0 ;
33753 PyObject * obj0 = 0 ;
33754 PyObject * obj1 = 0 ;
33755 PyObject * obj2 = 0 ;
33756 PyObject * obj3 = 0 ;
33757 PyObject * obj4 = 0 ;
33758 PyObject * obj5 = 0 ;
33759 PyObject * obj6 = 0 ;
33760 char * kwnames[] = {
33761 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
33762 };
33763
33764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33766 if (!SWIG_IsOK(res1)) {
33767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33768 }
33769 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33770 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33771 if (!SWIG_IsOK(res2)) {
33772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
33773 }
33774 arg2 = reinterpret_cast< wxWindow * >(argp2);
33775 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33776 if (!SWIG_IsOK(res3)) {
33777 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33778 }
33779 if (!argp3) {
33780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33781 }
33782 arg3 = reinterpret_cast< wxDC * >(argp3);
33783 {
33784 arg4 = &temp4;
33785 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33786 }
33787 if (obj4) {
33788 ecode5 = SWIG_AsVal_int(obj4, &val5);
33789 if (!SWIG_IsOK(ecode5)) {
33790 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
33791 }
33792 arg5 = static_cast< int >(val5);
33793 }
33794 if (obj5) {
33795 ecode6 = SWIG_AsVal_int(obj5, &val6);
33796 if (!SWIG_IsOK(ecode6)) {
33797 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33798 }
33799 arg6 = static_cast< wxHeaderSortIconType >(val6);
33800 }
33801 if (obj6) {
33802 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33803 if (!SWIG_IsOK(res7)) {
33804 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33805 }
33806 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33807 }
1bd55598
RD
33808 {
33809 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 33810 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
33811 wxPyEndAllowThreads(__tstate);
33812 if (PyErr_Occurred()) SWIG_fail;
33813 }
33814 resultobj = SWIG_Py_Void();
33815 return resultobj;
33816fail:
33817 return NULL;
33818}
33819
33820
33d6fd3b
RD
33821SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33822 PyObject *resultobj = 0;
33823 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33824 wxWindow *arg2 = (wxWindow *) 0 ;
33825 int result;
33826 void *argp1 = 0 ;
33827 int res1 = 0 ;
33828 void *argp2 = 0 ;
33829 int res2 = 0 ;
33830 PyObject * obj0 = 0 ;
33831 PyObject * obj1 = 0 ;
33832 char * kwnames[] = {
33833 (char *) "self",(char *) "win", NULL
33834 };
33835
33836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
33837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33838 if (!SWIG_IsOK(res1)) {
33839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33840 }
33841 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33842 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33843 if (!SWIG_IsOK(res2)) {
33844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
33845 }
33846 arg2 = reinterpret_cast< wxWindow * >(argp2);
33847 {
33848 PyThreadState* __tstate = wxPyBeginAllowThreads();
33849 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
33850 wxPyEndAllowThreads(__tstate);
33851 if (PyErr_Occurred()) SWIG_fail;
33852 }
33853 resultobj = SWIG_From_int(static_cast< int >(result));
33854 return resultobj;
33855fail:
33856 return NULL;
33857}
33858
33859
1bd55598
RD
33860SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33861 PyObject *resultobj = 0;
33862 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33863 wxWindow *arg2 = (wxWindow *) 0 ;
33864 wxDC *arg3 = 0 ;
33865 wxRect *arg4 = 0 ;
33866 int arg5 = (int) 0 ;
33867 void *argp1 = 0 ;
33868 int res1 = 0 ;
33869 void *argp2 = 0 ;
33870 int res2 = 0 ;
33871 void *argp3 = 0 ;
33872 int res3 = 0 ;
33873 wxRect temp4 ;
33874 int val5 ;
33875 int ecode5 = 0 ;
33876 PyObject * obj0 = 0 ;
33877 PyObject * obj1 = 0 ;
33878 PyObject * obj2 = 0 ;
33879 PyObject * obj3 = 0 ;
33880 PyObject * obj4 = 0 ;
33881 char * kwnames[] = {
33882 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
33883 };
33884
33885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33887 if (!SWIG_IsOK(res1)) {
33888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33889 }
33890 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33891 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33892 if (!SWIG_IsOK(res2)) {
33893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
33894 }
33895 arg2 = reinterpret_cast< wxWindow * >(argp2);
33896 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33897 if (!SWIG_IsOK(res3)) {
33898 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
33899 }
33900 if (!argp3) {
33901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
33902 }
33903 arg3 = reinterpret_cast< wxDC * >(argp3);
33904 {
33905 arg4 = &temp4;
33906 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33907 }
33908 if (obj4) {
33909 ecode5 = SWIG_AsVal_int(obj4, &val5);
33910 if (!SWIG_IsOK(ecode5)) {
33911 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
33912 }
33913 arg5 = static_cast< int >(val5);
33914 }
33915 {
33916 PyThreadState* __tstate = wxPyBeginAllowThreads();
33917 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
33918 wxPyEndAllowThreads(__tstate);
33919 if (PyErr_Occurred()) SWIG_fail;
33920 }
33921 resultobj = SWIG_Py_Void();
33922 return resultobj;
33923fail:
33924 return NULL;
33925}
33926
33927
33928SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33929 PyObject *resultobj = 0;
33930 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33931 wxWindow *arg2 = (wxWindow *) 0 ;
33932 wxDC *arg3 = 0 ;
33933 wxRect *arg4 = 0 ;
33934 int arg5 = (int) 0 ;
33935 void *argp1 = 0 ;
33936 int res1 = 0 ;
33937 void *argp2 = 0 ;
33938 int res2 = 0 ;
33939 void *argp3 = 0 ;
33940 int res3 = 0 ;
33941 wxRect temp4 ;
33942 int val5 ;
33943 int ecode5 = 0 ;
33944 PyObject * obj0 = 0 ;
33945 PyObject * obj1 = 0 ;
33946 PyObject * obj2 = 0 ;
33947 PyObject * obj3 = 0 ;
33948 PyObject * obj4 = 0 ;
33949 char * kwnames[] = {
33950 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
33951 };
33952
33953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33955 if (!SWIG_IsOK(res1)) {
33956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33957 }
33958 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33959 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33960 if (!SWIG_IsOK(res2)) {
33961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
33962 }
33963 arg2 = reinterpret_cast< wxWindow * >(argp2);
33964 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33965 if (!SWIG_IsOK(res3)) {
33966 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
33967 }
33968 if (!argp3) {
33969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
33970 }
33971 arg3 = reinterpret_cast< wxDC * >(argp3);
33972 {
33973 arg4 = &temp4;
33974 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33975 }
33976 if (obj4) {
33977 ecode5 = SWIG_AsVal_int(obj4, &val5);
33978 if (!SWIG_IsOK(ecode5)) {
33979 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
33980 }
33981 arg5 = static_cast< int >(val5);
33982 }
33983 {
33984 PyThreadState* __tstate = wxPyBeginAllowThreads();
33985 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
33986 wxPyEndAllowThreads(__tstate);
33987 if (PyErr_Occurred()) SWIG_fail;
33988 }
33989 resultobj = SWIG_Py_Void();
33990 return resultobj;
33991fail:
33992 return NULL;
33993}
33994
33995
33996SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33997 PyObject *resultobj = 0;
33998 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33999 wxWindow *arg2 = (wxWindow *) 0 ;
34000 wxDC *arg3 = 0 ;
34001 wxSize *arg4 = 0 ;
34002 int arg5 ;
34003 wxOrientation arg6 ;
34004 int arg7 = (int) 0 ;
34005 void *argp1 = 0 ;
34006 int res1 = 0 ;
34007 void *argp2 = 0 ;
34008 int res2 = 0 ;
34009 void *argp3 = 0 ;
34010 int res3 = 0 ;
34011 wxSize temp4 ;
34012 int val5 ;
34013 int ecode5 = 0 ;
34014 int val6 ;
34015 int ecode6 = 0 ;
34016 int val7 ;
34017 int ecode7 = 0 ;
34018 PyObject * obj0 = 0 ;
34019 PyObject * obj1 = 0 ;
34020 PyObject * obj2 = 0 ;
34021 PyObject * obj3 = 0 ;
34022 PyObject * obj4 = 0 ;
34023 PyObject * obj5 = 0 ;
34024 PyObject * obj6 = 0 ;
34025 char * kwnames[] = {
34026 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34027 };
34028
34029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34031 if (!SWIG_IsOK(res1)) {
34032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34033 }
34034 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34035 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34036 if (!SWIG_IsOK(res2)) {
34037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34038 }
34039 arg2 = reinterpret_cast< wxWindow * >(argp2);
34040 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34041 if (!SWIG_IsOK(res3)) {
34042 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34043 }
34044 if (!argp3) {
34045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34046 }
34047 arg3 = reinterpret_cast< wxDC * >(argp3);
34048 {
34049 arg4 = &temp4;
34050 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34051 }
34052 ecode5 = SWIG_AsVal_int(obj4, &val5);
34053 if (!SWIG_IsOK(ecode5)) {
34054 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34055 }
34056 arg5 = static_cast< int >(val5);
34057 ecode6 = SWIG_AsVal_int(obj5, &val6);
34058 if (!SWIG_IsOK(ecode6)) {
34059 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34060 }
34061 arg6 = static_cast< wxOrientation >(val6);
34062 if (obj6) {
34063 ecode7 = SWIG_AsVal_int(obj6, &val7);
34064 if (!SWIG_IsOK(ecode7)) {
34065 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34066 }
34067 arg7 = static_cast< int >(val7);
34068 }
34069 {
34070 PyThreadState* __tstate = wxPyBeginAllowThreads();
34071 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34072 wxPyEndAllowThreads(__tstate);
34073 if (PyErr_Occurred()) SWIG_fail;
34074 }
34075 resultobj = SWIG_Py_Void();
34076 return resultobj;
34077fail:
34078 return NULL;
34079}
34080
34081
34082SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34083 PyObject *resultobj = 0;
34084 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34085 wxWindow *arg2 = (wxWindow *) 0 ;
34086 wxDC *arg3 = 0 ;
34087 wxRect *arg4 = 0 ;
34088 int arg5 = (int) 0 ;
34089 void *argp1 = 0 ;
34090 int res1 = 0 ;
34091 void *argp2 = 0 ;
34092 int res2 = 0 ;
34093 void *argp3 = 0 ;
34094 int res3 = 0 ;
34095 wxRect temp4 ;
34096 int val5 ;
34097 int ecode5 = 0 ;
34098 PyObject * obj0 = 0 ;
34099 PyObject * obj1 = 0 ;
34100 PyObject * obj2 = 0 ;
34101 PyObject * obj3 = 0 ;
34102 PyObject * obj4 = 0 ;
34103 char * kwnames[] = {
34104 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34105 };
34106
34107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34109 if (!SWIG_IsOK(res1)) {
34110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34111 }
34112 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34113 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34114 if (!SWIG_IsOK(res2)) {
34115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34116 }
34117 arg2 = reinterpret_cast< wxWindow * >(argp2);
34118 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34119 if (!SWIG_IsOK(res3)) {
34120 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34121 }
34122 if (!argp3) {
34123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34124 }
34125 arg3 = reinterpret_cast< wxDC * >(argp3);
34126 {
34127 arg4 = &temp4;
34128 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34129 }
34130 if (obj4) {
34131 ecode5 = SWIG_AsVal_int(obj4, &val5);
34132 if (!SWIG_IsOK(ecode5)) {
34133 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34134 }
34135 arg5 = static_cast< int >(val5);
34136 }
34137 {
34138 PyThreadState* __tstate = wxPyBeginAllowThreads();
34139 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34140 wxPyEndAllowThreads(__tstate);
34141 if (PyErr_Occurred()) SWIG_fail;
34142 }
34143 resultobj = SWIG_Py_Void();
34144 return resultobj;
34145fail:
34146 return NULL;
34147}
34148
34149
34150SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34151 PyObject *resultobj = 0;
34152 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34153 wxWindow *arg2 = (wxWindow *) 0 ;
34154 wxDC *arg3 = 0 ;
34155 wxRect *arg4 = 0 ;
34156 int arg5 = (int) 0 ;
34157 void *argp1 = 0 ;
34158 int res1 = 0 ;
34159 void *argp2 = 0 ;
34160 int res2 = 0 ;
34161 void *argp3 = 0 ;
34162 int res3 = 0 ;
34163 wxRect temp4 ;
34164 int val5 ;
34165 int ecode5 = 0 ;
34166 PyObject * obj0 = 0 ;
34167 PyObject * obj1 = 0 ;
34168 PyObject * obj2 = 0 ;
34169 PyObject * obj3 = 0 ;
34170 PyObject * obj4 = 0 ;
34171 char * kwnames[] = {
34172 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34173 };
34174
34175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34177 if (!SWIG_IsOK(res1)) {
34178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34179 }
34180 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34181 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34182 if (!SWIG_IsOK(res2)) {
34183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34184 }
34185 arg2 = reinterpret_cast< wxWindow * >(argp2);
34186 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34187 if (!SWIG_IsOK(res3)) {
34188 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34189 }
34190 if (!argp3) {
34191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34192 }
34193 arg3 = reinterpret_cast< wxDC * >(argp3);
34194 {
34195 arg4 = &temp4;
34196 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34197 }
34198 if (obj4) {
34199 ecode5 = SWIG_AsVal_int(obj4, &val5);
34200 if (!SWIG_IsOK(ecode5)) {
34201 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34202 }
34203 arg5 = static_cast< int >(val5);
34204 }
34205 {
34206 PyThreadState* __tstate = wxPyBeginAllowThreads();
34207 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34208 wxPyEndAllowThreads(__tstate);
34209 if (PyErr_Occurred()) SWIG_fail;
34210 }
34211 resultobj = SWIG_Py_Void();
34212 return resultobj;
34213fail:
34214 return NULL;
34215}
34216
34217
2131d850 34218SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
34219 PyObject *resultobj = 0;
34220 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34221 wxWindow *arg2 = (wxWindow *) 0 ;
34222 wxDC *arg3 = 0 ;
34223 wxRect *arg4 = 0 ;
34224 int arg5 = (int) 0 ;
34225 void *argp1 = 0 ;
34226 int res1 = 0 ;
34227 void *argp2 = 0 ;
34228 int res2 = 0 ;
34229 void *argp3 = 0 ;
34230 int res3 = 0 ;
34231 wxRect temp4 ;
34232 int val5 ;
34233 int ecode5 = 0 ;
34234 PyObject * obj0 = 0 ;
34235 PyObject * obj1 = 0 ;
34236 PyObject * obj2 = 0 ;
34237 PyObject * obj3 = 0 ;
34238 PyObject * obj4 = 0 ;
34239 char * kwnames[] = {
34240 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34241 };
34242
2131d850 34243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
34244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34245 if (!SWIG_IsOK(res1)) {
2131d850 34246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
34247 }
34248 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34249 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34250 if (!SWIG_IsOK(res2)) {
2131d850 34251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
34252 }
34253 arg2 = reinterpret_cast< wxWindow * >(argp2);
34254 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34255 if (!SWIG_IsOK(res3)) {
2131d850 34256 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34257 }
34258 if (!argp3) {
2131d850 34259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34260 }
34261 arg3 = reinterpret_cast< wxDC * >(argp3);
34262 {
34263 arg4 = &temp4;
34264 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34265 }
34266 if (obj4) {
34267 ecode5 = SWIG_AsVal_int(obj4, &val5);
34268 if (!SWIG_IsOK(ecode5)) {
2131d850 34269 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
34270 }
34271 arg5 = static_cast< int >(val5);
34272 }
34273 {
34274 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
34275 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34276 wxPyEndAllowThreads(__tstate);
34277 if (PyErr_Occurred()) SWIG_fail;
34278 }
34279 resultobj = SWIG_Py_Void();
34280 return resultobj;
34281fail:
34282 return NULL;
34283}
34284
34285
34286SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34287 PyObject *resultobj = 0;
34288 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34289 wxWindow *arg2 = (wxWindow *) 0 ;
34290 wxDC *arg3 = 0 ;
34291 wxRect *arg4 = 0 ;
34292 int arg5 = (int) 0 ;
34293 void *argp1 = 0 ;
34294 int res1 = 0 ;
34295 void *argp2 = 0 ;
34296 int res2 = 0 ;
34297 void *argp3 = 0 ;
34298 int res3 = 0 ;
34299 wxRect temp4 ;
34300 int val5 ;
34301 int ecode5 = 0 ;
34302 PyObject * obj0 = 0 ;
34303 PyObject * obj1 = 0 ;
34304 PyObject * obj2 = 0 ;
34305 PyObject * obj3 = 0 ;
34306 PyObject * obj4 = 0 ;
34307 char * kwnames[] = {
34308 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34309 };
34310
34311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34313 if (!SWIG_IsOK(res1)) {
34314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34315 }
34316 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34317 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34318 if (!SWIG_IsOK(res2)) {
34319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34320 }
34321 arg2 = reinterpret_cast< wxWindow * >(argp2);
34322 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34323 if (!SWIG_IsOK(res3)) {
34324 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34325 }
34326 if (!argp3) {
34327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34328 }
34329 arg3 = reinterpret_cast< wxDC * >(argp3);
34330 {
34331 arg4 = &temp4;
34332 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34333 }
34334 if (obj4) {
34335 ecode5 = SWIG_AsVal_int(obj4, &val5);
34336 if (!SWIG_IsOK(ecode5)) {
34337 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34338 }
34339 arg5 = static_cast< int >(val5);
34340 }
34341 {
34342 PyThreadState* __tstate = wxPyBeginAllowThreads();
34343 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34344 wxPyEndAllowThreads(__tstate);
34345 if (PyErr_Occurred()) SWIG_fail;
34346 }
34347 resultobj = SWIG_Py_Void();
34348 return resultobj;
34349fail:
34350 return NULL;
34351}
34352
34353
34354SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34355 PyObject *resultobj = 0;
34356 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34357 wxWindow *arg2 = (wxWindow *) 0 ;
34358 wxDC *arg3 = 0 ;
34359 wxRect *arg4 = 0 ;
34360 int arg5 = (int) 0 ;
34361 void *argp1 = 0 ;
34362 int res1 = 0 ;
34363 void *argp2 = 0 ;
34364 int res2 = 0 ;
34365 void *argp3 = 0 ;
34366 int res3 = 0 ;
34367 wxRect temp4 ;
34368 int val5 ;
34369 int ecode5 = 0 ;
34370 PyObject * obj0 = 0 ;
34371 PyObject * obj1 = 0 ;
34372 PyObject * obj2 = 0 ;
34373 PyObject * obj3 = 0 ;
34374 PyObject * obj4 = 0 ;
34375 char * kwnames[] = {
34376 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34377 };
34378
34379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34381 if (!SWIG_IsOK(res1)) {
34382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34383 }
34384 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34385 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34386 if (!SWIG_IsOK(res2)) {
34387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34388 }
34389 arg2 = reinterpret_cast< wxWindow * >(argp2);
34390 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34391 if (!SWIG_IsOK(res3)) {
34392 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34393 }
34394 if (!argp3) {
34395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34396 }
34397 arg3 = reinterpret_cast< wxDC * >(argp3);
34398 {
34399 arg4 = &temp4;
34400 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34401 }
34402 if (obj4) {
34403 ecode5 = SWIG_AsVal_int(obj4, &val5);
34404 if (!SWIG_IsOK(ecode5)) {
34405 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34406 }
34407 arg5 = static_cast< int >(val5);
34408 }
34409 {
34410 PyThreadState* __tstate = wxPyBeginAllowThreads();
34411 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
34412 wxPyEndAllowThreads(__tstate);
34413 if (PyErr_Occurred()) SWIG_fail;
34414 }
34415 resultobj = SWIG_Py_Void();
34416 return resultobj;
34417fail:
34418 return NULL;
34419}
34420
34421
1bd55598
RD
34422SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34423 PyObject *resultobj = 0;
34424 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34425 wxWindow *arg2 = (wxWindow *) 0 ;
34426 SwigValueWrapper<wxSplitterRenderParams > result;
34427 void *argp1 = 0 ;
34428 int res1 = 0 ;
34429 void *argp2 = 0 ;
34430 int res2 = 0 ;
34431 PyObject * obj0 = 0 ;
34432 PyObject * obj1 = 0 ;
34433 char * kwnames[] = {
34434 (char *) "self",(char *) "win", NULL
34435 };
34436
34437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34439 if (!SWIG_IsOK(res1)) {
34440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34441 }
34442 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34443 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34444 if (!SWIG_IsOK(res2)) {
34445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34446 }
34447 arg2 = reinterpret_cast< wxWindow * >(argp2);
34448 {
34449 PyThreadState* __tstate = wxPyBeginAllowThreads();
34450 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34451 wxPyEndAllowThreads(__tstate);
34452 if (PyErr_Occurred()) SWIG_fail;
34453 }
34454 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34455 return resultobj;
34456fail:
34457 return NULL;
34458}
34459
34460
34461SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34462 PyObject *resultobj = 0;
34463 wxRendererNative *result = 0 ;
34464
34465 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34466 {
704eda0c 34467 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34468 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 34469 {
1bd55598
RD
34470 wxRendererNative &_result_ref = wxRendererNative::Get();
34471 result = (wxRendererNative *) &_result_ref;
36ed4f51 34472 }
1bd55598
RD
34473 wxPyEndAllowThreads(__tstate);
34474 if (PyErr_Occurred()) SWIG_fail;
34475 }
34476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34477 return resultobj;
34478fail:
34479 return NULL;
34480}
34481
34482
34483SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34484 PyObject *resultobj = 0;
34485 wxRendererNative *result = 0 ;
34486
34487 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34488 {
704eda0c 34489 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34490 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 34491 {
1bd55598
RD
34492 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34493 result = (wxRendererNative *) &_result_ref;
be9b1dca 34494 }
1bd55598
RD
34495 wxPyEndAllowThreads(__tstate);
34496 if (PyErr_Occurred()) SWIG_fail;
34497 }
34498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34499 return resultobj;
34500fail:
34501 return NULL;
34502}
34503
34504
34505SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34506 PyObject *resultobj = 0;
34507 wxRendererNative *result = 0 ;
34508
34509 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34510 {
704eda0c 34511 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34512 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 34513 {
1bd55598
RD
34514 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34515 result = (wxRendererNative *) &_result_ref;
be9b1dca 34516 }
1bd55598
RD
34517 wxPyEndAllowThreads(__tstate);
34518 if (PyErr_Occurred()) SWIG_fail;
34519 }
34520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34521 return resultobj;
34522fail:
34523 return NULL;
34524}
34525
34526
34527SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34528 PyObject *resultobj = 0;
34529 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34530 wxRendererNative *result = 0 ;
34531 void *argp1 = 0 ;
34532 int res1 = 0 ;
34533 PyObject * obj0 = 0 ;
34534 char * kwnames[] = {
34535 (char *) "renderer", NULL
34536 };
34537
34538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34540 if (!SWIG_IsOK(res1)) {
34541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34542 }
34543 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34544 {
704eda0c 34545 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
34546 PyThreadState* __tstate = wxPyBeginAllowThreads();
34547 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34548 wxPyEndAllowThreads(__tstate);
34549 if (PyErr_Occurred()) SWIG_fail;
34550 }
34551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34552 return resultobj;
34553fail:
34554 return NULL;
34555}
34556
34557
34558SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34559 PyObject *resultobj = 0;
34560 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34561 SwigValueWrapper<wxRendererVersion > result;
34562 void *argp1 = 0 ;
34563 int res1 = 0 ;
34564 PyObject *swig_obj[1] ;
34565
34566 if (!args) SWIG_fail;
34567 swig_obj[0] = args;
34568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34569 if (!SWIG_IsOK(res1)) {
34570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34571 }
34572 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34573 {
34574 PyThreadState* __tstate = wxPyBeginAllowThreads();
34575 result = ((wxRendererNative const *)arg1)->GetVersion();
34576 wxPyEndAllowThreads(__tstate);
34577 if (PyErr_Occurred()) SWIG_fail;
34578 }
34579 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34580 return resultobj;
34581fail:
34582 return NULL;
34583}
34584
34585
34586SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34587 PyObject *obj;
34588 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34589 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34590 return SWIG_Py_Void();
34591}
34592
27e45892
RD
34593SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34594 PyObject *resultobj = 0;
34595 wxPseudoDC *result = 0 ;
34596
34597 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34598 {
34599 PyThreadState* __tstate = wxPyBeginAllowThreads();
34600 result = (wxPseudoDC *)new wxPseudoDC();
34601 wxPyEndAllowThreads(__tstate);
34602 if (PyErr_Occurred()) SWIG_fail;
34603 }
34604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34605 return resultobj;
34606fail:
34607 return NULL;
34608}
34609
34610
34611SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34612 PyObject *resultobj = 0;
34613 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34614 void *argp1 = 0 ;
34615 int res1 = 0 ;
34616 PyObject *swig_obj[1] ;
34617
34618 if (!args) SWIG_fail;
34619 swig_obj[0] = args;
34620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34621 if (!SWIG_IsOK(res1)) {
34622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34623 }
34624 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34625 {
34626 PyThreadState* __tstate = wxPyBeginAllowThreads();
34627 (arg1)->BeginDrawing();
34628 wxPyEndAllowThreads(__tstate);
34629 if (PyErr_Occurred()) SWIG_fail;
34630 }
34631 resultobj = SWIG_Py_Void();
34632 return resultobj;
34633fail:
34634 return NULL;
34635}
34636
34637
34638SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34639 PyObject *resultobj = 0;
34640 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34641 void *argp1 = 0 ;
34642 int res1 = 0 ;
34643 PyObject *swig_obj[1] ;
34644
34645 if (!args) SWIG_fail;
34646 swig_obj[0] = args;
34647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34648 if (!SWIG_IsOK(res1)) {
34649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34650 }
34651 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34652 {
34653 PyThreadState* __tstate = wxPyBeginAllowThreads();
34654 (arg1)->EndDrawing();
34655 wxPyEndAllowThreads(__tstate);
34656 if (PyErr_Occurred()) SWIG_fail;
34657 }
34658 resultobj = SWIG_Py_Void();
34659 return resultobj;
34660fail:
34661 return NULL;
34662}
34663
34664
34665SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34666 PyObject *resultobj = 0;
34667 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34668 void *argp1 = 0 ;
34669 int res1 = 0 ;
34670 PyObject *swig_obj[1] ;
34671
34672 if (!args) SWIG_fail;
34673 swig_obj[0] = args;
34674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
34675 if (!SWIG_IsOK(res1)) {
34676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34677 }
34678 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34679 {
34680 PyThreadState* __tstate = wxPyBeginAllowThreads();
34681 delete arg1;
34682
34683 wxPyEndAllowThreads(__tstate);
34684 if (PyErr_Occurred()) SWIG_fail;
34685 }
34686 resultobj = SWIG_Py_Void();
34687 return resultobj;
34688fail:
34689 return NULL;
34690}
34691
34692
34693SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34694 PyObject *resultobj = 0;
34695 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34696 void *argp1 = 0 ;
34697 int res1 = 0 ;
34698 PyObject *swig_obj[1] ;
34699
34700 if (!args) SWIG_fail;
34701 swig_obj[0] = args;
34702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34703 if (!SWIG_IsOK(res1)) {
34704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34705 }
34706 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34707 {
34708 PyThreadState* __tstate = wxPyBeginAllowThreads();
34709 (arg1)->RemoveAll();
34710 wxPyEndAllowThreads(__tstate);
34711 if (PyErr_Occurred()) SWIG_fail;
34712 }
34713 resultobj = SWIG_Py_Void();
34714 return resultobj;
34715fail:
34716 return NULL;
34717}
34718
34719
34720SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34721 PyObject *resultobj = 0;
34722 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34723 int result;
34724 void *argp1 = 0 ;
34725 int res1 = 0 ;
34726 PyObject *swig_obj[1] ;
34727
34728 if (!args) SWIG_fail;
34729 swig_obj[0] = args;
34730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34731 if (!SWIG_IsOK(res1)) {
34732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34733 }
34734 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34735 {
34736 PyThreadState* __tstate = wxPyBeginAllowThreads();
34737 result = (int)(arg1)->GetLen();
34738 wxPyEndAllowThreads(__tstate);
34739 if (PyErr_Occurred()) SWIG_fail;
34740 }
34741 resultobj = SWIG_From_int(static_cast< int >(result));
34742 return resultobj;
34743fail:
34744 return NULL;
34745}
34746
34747
34748SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34749 PyObject *resultobj = 0;
34750 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34751 int arg2 ;
34752 void *argp1 = 0 ;
34753 int res1 = 0 ;
34754 int val2 ;
34755 int ecode2 = 0 ;
34756 PyObject * obj0 = 0 ;
34757 PyObject * obj1 = 0 ;
34758 char * kwnames[] = {
34759 (char *) "self",(char *) "id", NULL
34760 };
34761
34762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
34763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34764 if (!SWIG_IsOK(res1)) {
34765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34766 }
34767 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34768 ecode2 = SWIG_AsVal_int(obj1, &val2);
34769 if (!SWIG_IsOK(ecode2)) {
34770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
34771 }
34772 arg2 = static_cast< int >(val2);
34773 {
34774 PyThreadState* __tstate = wxPyBeginAllowThreads();
34775 (arg1)->SetId(arg2);
34776 wxPyEndAllowThreads(__tstate);
34777 if (PyErr_Occurred()) SWIG_fail;
34778 }
34779 resultobj = SWIG_Py_Void();
34780 return resultobj;
34781fail:
34782 return NULL;
34783}
34784
34785
34786SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34787 PyObject *resultobj = 0;
34788 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34789 int arg2 ;
34790 void *argp1 = 0 ;
34791 int res1 = 0 ;
34792 int val2 ;
34793 int ecode2 = 0 ;
34794 PyObject * obj0 = 0 ;
34795 PyObject * obj1 = 0 ;
34796 char * kwnames[] = {
34797 (char *) "self",(char *) "id", NULL
34798 };
34799
34800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
34801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34802 if (!SWIG_IsOK(res1)) {
34803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34804 }
34805 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34806 ecode2 = SWIG_AsVal_int(obj1, &val2);
34807 if (!SWIG_IsOK(ecode2)) {
34808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
34809 }
34810 arg2 = static_cast< int >(val2);
34811 {
34812 PyThreadState* __tstate = wxPyBeginAllowThreads();
34813 (arg1)->ClearId(arg2);
34814 wxPyEndAllowThreads(__tstate);
34815 if (PyErr_Occurred()) SWIG_fail;
34816 }
34817 resultobj = SWIG_Py_Void();
34818 return resultobj;
34819fail:
34820 return NULL;
34821}
34822
34823
34824SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34825 PyObject *resultobj = 0;
34826 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34827 int arg2 ;
34828 void *argp1 = 0 ;
34829 int res1 = 0 ;
34830 int val2 ;
34831 int ecode2 = 0 ;
34832 PyObject * obj0 = 0 ;
34833 PyObject * obj1 = 0 ;
34834 char * kwnames[] = {
34835 (char *) "self",(char *) "id", NULL
34836 };
34837
34838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
34839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34840 if (!SWIG_IsOK(res1)) {
34841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34842 }
34843 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34844 ecode2 = SWIG_AsVal_int(obj1, &val2);
34845 if (!SWIG_IsOK(ecode2)) {
34846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
34847 }
34848 arg2 = static_cast< int >(val2);
34849 {
34850 PyThreadState* __tstate = wxPyBeginAllowThreads();
34851 (arg1)->RemoveId(arg2);
34852 wxPyEndAllowThreads(__tstate);
34853 if (PyErr_Occurred()) SWIG_fail;
34854 }
34855 resultobj = SWIG_Py_Void();
34856 return resultobj;
34857fail:
34858 return NULL;
34859}
34860
34861
34862SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34863 PyObject *resultobj = 0;
34864 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34865 int arg2 ;
34866 int arg3 ;
34867 int arg4 ;
34868 void *argp1 = 0 ;
34869 int res1 = 0 ;
34870 int val2 ;
34871 int ecode2 = 0 ;
34872 int val3 ;
34873 int ecode3 = 0 ;
34874 int val4 ;
34875 int ecode4 = 0 ;
34876 PyObject * obj0 = 0 ;
34877 PyObject * obj1 = 0 ;
34878 PyObject * obj2 = 0 ;
34879 PyObject * obj3 = 0 ;
34880 char * kwnames[] = {
34881 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
34882 };
34883
34884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34886 if (!SWIG_IsOK(res1)) {
34887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34888 }
34889 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34890 ecode2 = SWIG_AsVal_int(obj1, &val2);
34891 if (!SWIG_IsOK(ecode2)) {
34892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
34893 }
34894 arg2 = static_cast< int >(val2);
34895 ecode3 = SWIG_AsVal_int(obj2, &val3);
34896 if (!SWIG_IsOK(ecode3)) {
34897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
34898 }
34899 arg3 = static_cast< int >(val3);
34900 ecode4 = SWIG_AsVal_int(obj3, &val4);
34901 if (!SWIG_IsOK(ecode4)) {
34902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
34903 }
34904 arg4 = static_cast< int >(val4);
34905 {
34906 PyThreadState* __tstate = wxPyBeginAllowThreads();
34907 (arg1)->TranslateId(arg2,arg3,arg4);
34908 wxPyEndAllowThreads(__tstate);
34909 if (PyErr_Occurred()) SWIG_fail;
34910 }
34911 resultobj = SWIG_Py_Void();
34912 return resultobj;
34913fail:
34914 return NULL;
34915}
34916
34917
72ef6efb
RD
34918SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34919 PyObject *resultobj = 0;
34920 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34921 int arg2 ;
34922 bool arg3 = (bool) true ;
34923 void *argp1 = 0 ;
34924 int res1 = 0 ;
34925 int val2 ;
34926 int ecode2 = 0 ;
34927 bool val3 ;
34928 int ecode3 = 0 ;
34929 PyObject * obj0 = 0 ;
34930 PyObject * obj1 = 0 ;
34931 PyObject * obj2 = 0 ;
34932 char * kwnames[] = {
34933 (char *) "self",(char *) "id",(char *) "greyout", NULL
34934 };
34935
34936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34938 if (!SWIG_IsOK(res1)) {
34939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34940 }
34941 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34942 ecode2 = SWIG_AsVal_int(obj1, &val2);
34943 if (!SWIG_IsOK(ecode2)) {
34944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
34945 }
34946 arg2 = static_cast< int >(val2);
34947 if (obj2) {
34948 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34949 if (!SWIG_IsOK(ecode3)) {
34950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
34951 }
34952 arg3 = static_cast< bool >(val3);
34953 }
34954 {
34955 PyThreadState* __tstate = wxPyBeginAllowThreads();
34956 (arg1)->SetIdGreyedOut(arg2,arg3);
34957 wxPyEndAllowThreads(__tstate);
34958 if (PyErr_Occurred()) SWIG_fail;
34959 }
34960 resultobj = SWIG_Py_Void();
34961 return resultobj;
34962fail:
34963 return NULL;
34964}
34965
34966
34967SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34968 PyObject *resultobj = 0;
34969 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34970 int arg2 ;
34971 bool result;
34972 void *argp1 = 0 ;
34973 int res1 = 0 ;
34974 int val2 ;
34975 int ecode2 = 0 ;
34976 PyObject * obj0 = 0 ;
34977 PyObject * obj1 = 0 ;
34978 char * kwnames[] = {
34979 (char *) "self",(char *) "id", NULL
34980 };
34981
34982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
34983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34984 if (!SWIG_IsOK(res1)) {
34985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34986 }
34987 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34988 ecode2 = SWIG_AsVal_int(obj1, &val2);
34989 if (!SWIG_IsOK(ecode2)) {
34990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
34991 }
34992 arg2 = static_cast< int >(val2);
34993 {
34994 PyThreadState* __tstate = wxPyBeginAllowThreads();
34995 result = (bool)(arg1)->GetIdGreyedOut(arg2);
34996 wxPyEndAllowThreads(__tstate);
34997 if (PyErr_Occurred()) SWIG_fail;
34998 }
34999 {
35000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35001 }
35002 return resultobj;
35003fail:
35004 return NULL;
35005}
35006
35007
35008SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35009 PyObject *resultobj = 0;
35010 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35011 int arg2 ;
35012 int arg3 ;
35013 int arg4 = (int) 1 ;
35014 wxColor const &arg5_defvalue = *wxWHITE ;
35015 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35016 PyObject *result = 0 ;
35017 void *argp1 = 0 ;
35018 int res1 = 0 ;
35019 int val2 ;
35020 int ecode2 = 0 ;
35021 int val3 ;
35022 int ecode3 = 0 ;
35023 int val4 ;
35024 int ecode4 = 0 ;
35025 void *argp5 = 0 ;
35026 int res5 = 0 ;
35027 PyObject * obj0 = 0 ;
35028 PyObject * obj1 = 0 ;
35029 PyObject * obj2 = 0 ;
35030 PyObject * obj3 = 0 ;
35031 PyObject * obj4 = 0 ;
35032 char * kwnames[] = {
35033 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35034 };
35035
35036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35038 if (!SWIG_IsOK(res1)) {
35039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35040 }
35041 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35042 ecode2 = SWIG_AsVal_int(obj1, &val2);
35043 if (!SWIG_IsOK(ecode2)) {
35044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35045 }
35046 arg2 = static_cast< int >(val2);
35047 ecode3 = SWIG_AsVal_int(obj2, &val3);
35048 if (!SWIG_IsOK(ecode3)) {
35049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35050 }
35051 arg3 = static_cast< int >(val3);
35052 if (obj3) {
35053 ecode4 = SWIG_AsVal_int(obj3, &val4);
35054 if (!SWIG_IsOK(ecode4)) {
35055 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35056 }
35057 arg4 = static_cast< int >(val4);
35058 }
35059 if (obj4) {
35060 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35061 if (!SWIG_IsOK(res5)) {
35062 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35063 }
35064 if (!argp5) {
35065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35066 }
35067 arg5 = reinterpret_cast< wxColor * >(argp5);
35068 }
35069 {
35070 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35071 if (PyErr_Occurred()) SWIG_fail;
35072 }
35073 resultobj = result;
35074 return resultobj;
35075fail:
35076 return NULL;
35077}
35078
35079
35080SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35081 PyObject *resultobj = 0;
35082 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35083 int arg2 ;
35084 int arg3 ;
35085 PyObject *result = 0 ;
35086 void *argp1 = 0 ;
35087 int res1 = 0 ;
35088 int val2 ;
35089 int ecode2 = 0 ;
35090 int val3 ;
35091 int ecode3 = 0 ;
35092 PyObject * obj0 = 0 ;
35093 PyObject * obj1 = 0 ;
35094 PyObject * obj2 = 0 ;
35095 char * kwnames[] = {
35096 (char *) "self",(char *) "x",(char *) "y", NULL
35097 };
35098
35099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35101 if (!SWIG_IsOK(res1)) {
35102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35103 }
35104 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35105 ecode2 = SWIG_AsVal_int(obj1, &val2);
35106 if (!SWIG_IsOK(ecode2)) {
35107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35108 }
35109 arg2 = static_cast< int >(val2);
35110 ecode3 = SWIG_AsVal_int(obj2, &val3);
35111 if (!SWIG_IsOK(ecode3)) {
35112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35113 }
35114 arg3 = static_cast< int >(val3);
35115 {
35116 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35117 if (PyErr_Occurred()) SWIG_fail;
35118 }
35119 resultobj = result;
35120 return resultobj;
35121fail:
35122 return NULL;
35123}
35124
35125
27e45892
RD
35126SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35127 PyObject *resultobj = 0;
35128 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35129 int arg2 ;
35130 wxDC *arg3 = (wxDC *) 0 ;
35131 void *argp1 = 0 ;
35132 int res1 = 0 ;
35133 int val2 ;
35134 int ecode2 = 0 ;
35135 void *argp3 = 0 ;
35136 int res3 = 0 ;
35137 PyObject * obj0 = 0 ;
35138 PyObject * obj1 = 0 ;
35139 PyObject * obj2 = 0 ;
35140 char * kwnames[] = {
35141 (char *) "self",(char *) "id",(char *) "dc", NULL
35142 };
35143
35144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35146 if (!SWIG_IsOK(res1)) {
35147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35148 }
35149 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35150 ecode2 = SWIG_AsVal_int(obj1, &val2);
35151 if (!SWIG_IsOK(ecode2)) {
35152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35153 }
35154 arg2 = static_cast< int >(val2);
35155 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35156 if (!SWIG_IsOK(res3)) {
35157 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35158 }
35159 arg3 = reinterpret_cast< wxDC * >(argp3);
35160 {
35161 PyThreadState* __tstate = wxPyBeginAllowThreads();
35162 (arg1)->DrawIdToDC(arg2,arg3);
35163 wxPyEndAllowThreads(__tstate);
35164 if (PyErr_Occurred()) SWIG_fail;
35165 }
35166 resultobj = SWIG_Py_Void();
35167 return resultobj;
35168fail:
35169 return NULL;
35170}
35171
35172
35173SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35174 PyObject *resultobj = 0;
35175 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35176 int arg2 ;
35177 wxRect *arg3 = 0 ;
35178 void *argp1 = 0 ;
35179 int res1 = 0 ;
35180 int val2 ;
35181 int ecode2 = 0 ;
35182 wxRect temp3 ;
35183 PyObject * obj0 = 0 ;
35184 PyObject * obj1 = 0 ;
35185 PyObject * obj2 = 0 ;
35186 char * kwnames[] = {
35187 (char *) "self",(char *) "id",(char *) "rect", NULL
35188 };
35189
35190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35192 if (!SWIG_IsOK(res1)) {
35193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35194 }
35195 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35196 ecode2 = SWIG_AsVal_int(obj1, &val2);
35197 if (!SWIG_IsOK(ecode2)) {
35198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35199 }
35200 arg2 = static_cast< int >(val2);
35201 {
35202 arg3 = &temp3;
35203 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35204 }
35205 {
35206 PyThreadState* __tstate = wxPyBeginAllowThreads();
35207 (arg1)->SetIdBounds(arg2,*arg3);
35208 wxPyEndAllowThreads(__tstate);
35209 if (PyErr_Occurred()) SWIG_fail;
35210 }
35211 resultobj = SWIG_Py_Void();
35212 return resultobj;
35213fail:
35214 return NULL;
35215}
35216
35217
35218SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35219 PyObject *resultobj = 0;
35220 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35221 int arg2 ;
35222 wxRect result;
35223 void *argp1 = 0 ;
35224 int res1 = 0 ;
35225 int val2 ;
35226 int ecode2 = 0 ;
35227 PyObject * obj0 = 0 ;
35228 PyObject * obj1 = 0 ;
35229 char * kwnames[] = {
35230 (char *) "self",(char *) "id", NULL
35231 };
35232
35233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35235 if (!SWIG_IsOK(res1)) {
35236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35237 }
35238 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35239 ecode2 = SWIG_AsVal_int(obj1, &val2);
35240 if (!SWIG_IsOK(ecode2)) {
35241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35242 }
35243 arg2 = static_cast< int >(val2);
35244 {
35245 PyThreadState* __tstate = wxPyBeginAllowThreads();
35246 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35247 wxPyEndAllowThreads(__tstate);
35248 if (PyErr_Occurred()) SWIG_fail;
35249 }
35250 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35251 return resultobj;
35252fail:
35253 return NULL;
35254}
35255
35256
35257SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35258 PyObject *resultobj = 0;
35259 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35260 wxDC *arg2 = (wxDC *) 0 ;
35261 wxRect *arg3 = 0 ;
35262 void *argp1 = 0 ;
35263 int res1 = 0 ;
35264 void *argp2 = 0 ;
35265 int res2 = 0 ;
35266 wxRect temp3 ;
35267 PyObject * obj0 = 0 ;
35268 PyObject * obj1 = 0 ;
35269 PyObject * obj2 = 0 ;
35270 char * kwnames[] = {
35271 (char *) "self",(char *) "dc",(char *) "rect", NULL
35272 };
35273
35274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35276 if (!SWIG_IsOK(res1)) {
35277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35278 }
35279 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35280 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35281 if (!SWIG_IsOK(res2)) {
35282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35283 }
35284 arg2 = reinterpret_cast< wxDC * >(argp2);
35285 {
35286 arg3 = &temp3;
35287 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35288 }
35289 {
35290 PyThreadState* __tstate = wxPyBeginAllowThreads();
35291 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35292 wxPyEndAllowThreads(__tstate);
35293 if (PyErr_Occurred()) SWIG_fail;
35294 }
35295 resultobj = SWIG_Py_Void();
35296 return resultobj;
35297fail:
35298 return NULL;
35299}
35300
35301
35302SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35303 PyObject *resultobj = 0;
35304 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35305 wxDC *arg2 = (wxDC *) 0 ;
35306 wxRegion *arg3 = 0 ;
35307 void *argp1 = 0 ;
35308 int res1 = 0 ;
35309 void *argp2 = 0 ;
35310 int res2 = 0 ;
35311 void *argp3 = 0 ;
35312 int res3 = 0 ;
35313 PyObject * obj0 = 0 ;
35314 PyObject * obj1 = 0 ;
35315 PyObject * obj2 = 0 ;
35316 char * kwnames[] = {
35317 (char *) "self",(char *) "dc",(char *) "region", NULL
35318 };
35319
35320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35322 if (!SWIG_IsOK(res1)) {
35323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35324 }
35325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35326 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35327 if (!SWIG_IsOK(res2)) {
35328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35329 }
35330 arg2 = reinterpret_cast< wxDC * >(argp2);
35331 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35332 if (!SWIG_IsOK(res3)) {
35333 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35334 }
35335 if (!argp3) {
35336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35337 }
35338 arg3 = reinterpret_cast< wxRegion * >(argp3);
35339 {
35340 PyThreadState* __tstate = wxPyBeginAllowThreads();
35341 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35342 wxPyEndAllowThreads(__tstate);
35343 if (PyErr_Occurred()) SWIG_fail;
35344 }
35345 resultobj = SWIG_Py_Void();
35346 return resultobj;
35347fail:
35348 return NULL;
35349}
35350
35351
35352SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35353 PyObject *resultobj = 0;
35354 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35355 wxDC *arg2 = (wxDC *) 0 ;
35356 void *argp1 = 0 ;
35357 int res1 = 0 ;
35358 void *argp2 = 0 ;
35359 int res2 = 0 ;
35360 PyObject * obj0 = 0 ;
35361 PyObject * obj1 = 0 ;
35362 char * kwnames[] = {
35363 (char *) "self",(char *) "dc", NULL
35364 };
35365
35366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35368 if (!SWIG_IsOK(res1)) {
35369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35370 }
35371 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35372 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35373 if (!SWIG_IsOK(res2)) {
35374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35375 }
35376 arg2 = reinterpret_cast< wxDC * >(argp2);
35377 {
35378 PyThreadState* __tstate = wxPyBeginAllowThreads();
35379 (arg1)->DrawToDC(arg2);
35380 wxPyEndAllowThreads(__tstate);
35381 if (PyErr_Occurred()) SWIG_fail;
35382 }
35383 resultobj = SWIG_Py_Void();
35384 return resultobj;
35385fail:
35386 return NULL;
35387}
35388
35389
35390SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35391 PyObject *resultobj = 0;
35392 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35393 int arg2 ;
35394 int arg3 ;
35395 wxColour *arg4 = 0 ;
35396 int arg5 = (int) wxFLOOD_SURFACE ;
35397 void *argp1 = 0 ;
35398 int res1 = 0 ;
35399 int val2 ;
35400 int ecode2 = 0 ;
35401 int val3 ;
35402 int ecode3 = 0 ;
35403 wxColour temp4 ;
35404 int val5 ;
35405 int ecode5 = 0 ;
35406 PyObject * obj0 = 0 ;
35407 PyObject * obj1 = 0 ;
35408 PyObject * obj2 = 0 ;
35409 PyObject * obj3 = 0 ;
35410 PyObject * obj4 = 0 ;
35411 char * kwnames[] = {
35412 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35413 };
35414
35415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35417 if (!SWIG_IsOK(res1)) {
35418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35419 }
35420 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35421 ecode2 = SWIG_AsVal_int(obj1, &val2);
35422 if (!SWIG_IsOK(ecode2)) {
35423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35424 }
35425 arg2 = static_cast< int >(val2);
35426 ecode3 = SWIG_AsVal_int(obj2, &val3);
35427 if (!SWIG_IsOK(ecode3)) {
35428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35429 }
35430 arg3 = static_cast< int >(val3);
35431 {
35432 arg4 = &temp4;
35433 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35434 }
35435 if (obj4) {
35436 ecode5 = SWIG_AsVal_int(obj4, &val5);
35437 if (!SWIG_IsOK(ecode5)) {
35438 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35439 }
35440 arg5 = static_cast< int >(val5);
35441 }
35442 {
35443 PyThreadState* __tstate = wxPyBeginAllowThreads();
35444 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35445 wxPyEndAllowThreads(__tstate);
35446 if (PyErr_Occurred()) SWIG_fail;
35447 }
35448 resultobj = SWIG_Py_Void();
35449 return resultobj;
35450fail:
35451 return NULL;
35452}
35453
35454
35455SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35456 PyObject *resultobj = 0;
35457 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35458 wxPoint *arg2 = 0 ;
35459 wxColour *arg3 = 0 ;
35460 int arg4 = (int) wxFLOOD_SURFACE ;
35461 void *argp1 = 0 ;
35462 int res1 = 0 ;
35463 wxPoint temp2 ;
35464 wxColour temp3 ;
35465 int val4 ;
35466 int ecode4 = 0 ;
35467 PyObject * obj0 = 0 ;
35468 PyObject * obj1 = 0 ;
35469 PyObject * obj2 = 0 ;
35470 PyObject * obj3 = 0 ;
35471 char * kwnames[] = {
35472 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35473 };
35474
35475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35477 if (!SWIG_IsOK(res1)) {
35478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35479 }
35480 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35481 {
35482 arg2 = &temp2;
35483 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35484 }
35485 {
35486 arg3 = &temp3;
35487 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35488 }
35489 if (obj3) {
35490 ecode4 = SWIG_AsVal_int(obj3, &val4);
35491 if (!SWIG_IsOK(ecode4)) {
35492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35493 }
35494 arg4 = static_cast< int >(val4);
35495 }
35496 {
35497 PyThreadState* __tstate = wxPyBeginAllowThreads();
35498 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35499 wxPyEndAllowThreads(__tstate);
35500 if (PyErr_Occurred()) SWIG_fail;
35501 }
35502 resultobj = SWIG_Py_Void();
35503 return resultobj;
35504fail:
35505 return NULL;
35506}
35507
35508
35509SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35510 PyObject *resultobj = 0;
35511 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35512 int arg2 ;
35513 int arg3 ;
35514 int arg4 ;
35515 int arg5 ;
35516 void *argp1 = 0 ;
35517 int res1 = 0 ;
35518 int val2 ;
35519 int ecode2 = 0 ;
35520 int val3 ;
35521 int ecode3 = 0 ;
35522 int val4 ;
35523 int ecode4 = 0 ;
35524 int val5 ;
35525 int ecode5 = 0 ;
35526 PyObject * obj0 = 0 ;
35527 PyObject * obj1 = 0 ;
35528 PyObject * obj2 = 0 ;
35529 PyObject * obj3 = 0 ;
35530 PyObject * obj4 = 0 ;
35531 char * kwnames[] = {
35532 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35533 };
35534
35535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35537 if (!SWIG_IsOK(res1)) {
35538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35539 }
35540 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35541 ecode2 = SWIG_AsVal_int(obj1, &val2);
35542 if (!SWIG_IsOK(ecode2)) {
35543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35544 }
35545 arg2 = static_cast< int >(val2);
35546 ecode3 = SWIG_AsVal_int(obj2, &val3);
35547 if (!SWIG_IsOK(ecode3)) {
35548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35549 }
35550 arg3 = static_cast< int >(val3);
35551 ecode4 = SWIG_AsVal_int(obj3, &val4);
35552 if (!SWIG_IsOK(ecode4)) {
35553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35554 }
35555 arg4 = static_cast< int >(val4);
35556 ecode5 = SWIG_AsVal_int(obj4, &val5);
35557 if (!SWIG_IsOK(ecode5)) {
35558 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35559 }
35560 arg5 = static_cast< int >(val5);
35561 {
35562 PyThreadState* __tstate = wxPyBeginAllowThreads();
35563 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35564 wxPyEndAllowThreads(__tstate);
35565 if (PyErr_Occurred()) SWIG_fail;
35566 }
35567 resultobj = SWIG_Py_Void();
35568 return resultobj;
35569fail:
35570 return NULL;
35571}
35572
35573
35574SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35575 PyObject *resultobj = 0;
35576 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35577 wxPoint *arg2 = 0 ;
35578 wxPoint *arg3 = 0 ;
35579 void *argp1 = 0 ;
35580 int res1 = 0 ;
35581 wxPoint temp2 ;
35582 wxPoint temp3 ;
35583 PyObject * obj0 = 0 ;
35584 PyObject * obj1 = 0 ;
35585 PyObject * obj2 = 0 ;
35586 char * kwnames[] = {
35587 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35588 };
35589
35590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35592 if (!SWIG_IsOK(res1)) {
35593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35594 }
35595 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35596 {
35597 arg2 = &temp2;
35598 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35599 }
35600 {
35601 arg3 = &temp3;
35602 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35603 }
35604 {
35605 PyThreadState* __tstate = wxPyBeginAllowThreads();
35606 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35607 wxPyEndAllowThreads(__tstate);
35608 if (PyErr_Occurred()) SWIG_fail;
35609 }
35610 resultobj = SWIG_Py_Void();
35611 return resultobj;
35612fail:
35613 return NULL;
35614}
35615
35616
35617SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35618 PyObject *resultobj = 0;
35619 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35620 int arg2 ;
35621 int arg3 ;
35622 void *argp1 = 0 ;
35623 int res1 = 0 ;
35624 int val2 ;
35625 int ecode2 = 0 ;
35626 int val3 ;
35627 int ecode3 = 0 ;
35628 PyObject * obj0 = 0 ;
35629 PyObject * obj1 = 0 ;
35630 PyObject * obj2 = 0 ;
35631 char * kwnames[] = {
35632 (char *) "self",(char *) "x",(char *) "y", NULL
35633 };
35634
35635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35637 if (!SWIG_IsOK(res1)) {
35638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35639 }
35640 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35641 ecode2 = SWIG_AsVal_int(obj1, &val2);
35642 if (!SWIG_IsOK(ecode2)) {
35643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
35644 }
35645 arg2 = static_cast< int >(val2);
35646 ecode3 = SWIG_AsVal_int(obj2, &val3);
35647 if (!SWIG_IsOK(ecode3)) {
35648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
35649 }
35650 arg3 = static_cast< int >(val3);
35651 {
35652 PyThreadState* __tstate = wxPyBeginAllowThreads();
35653 (arg1)->CrossHair(arg2,arg3);
35654 wxPyEndAllowThreads(__tstate);
35655 if (PyErr_Occurred()) SWIG_fail;
35656 }
35657 resultobj = SWIG_Py_Void();
35658 return resultobj;
35659fail:
35660 return NULL;
35661}
35662
35663
35664SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35665 PyObject *resultobj = 0;
35666 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35667 wxPoint *arg2 = 0 ;
35668 void *argp1 = 0 ;
35669 int res1 = 0 ;
35670 wxPoint temp2 ;
35671 PyObject * obj0 = 0 ;
35672 PyObject * obj1 = 0 ;
35673 char * kwnames[] = {
35674 (char *) "self",(char *) "pt", NULL
35675 };
35676
35677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
35678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35679 if (!SWIG_IsOK(res1)) {
35680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35681 }
35682 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35683 {
35684 arg2 = &temp2;
35685 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35686 }
35687 {
35688 PyThreadState* __tstate = wxPyBeginAllowThreads();
35689 (arg1)->CrossHair((wxPoint const &)*arg2);
35690 wxPyEndAllowThreads(__tstate);
35691 if (PyErr_Occurred()) SWIG_fail;
35692 }
35693 resultobj = SWIG_Py_Void();
35694 return resultobj;
35695fail:
35696 return NULL;
35697}
35698
35699
35700SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35701 PyObject *resultobj = 0;
35702 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35703 int arg2 ;
35704 int arg3 ;
35705 int arg4 ;
35706 int arg5 ;
35707 int arg6 ;
35708 int arg7 ;
35709 void *argp1 = 0 ;
35710 int res1 = 0 ;
35711 int val2 ;
35712 int ecode2 = 0 ;
35713 int val3 ;
35714 int ecode3 = 0 ;
35715 int val4 ;
35716 int ecode4 = 0 ;
35717 int val5 ;
35718 int ecode5 = 0 ;
35719 int val6 ;
35720 int ecode6 = 0 ;
35721 int val7 ;
35722 int ecode7 = 0 ;
35723 PyObject * obj0 = 0 ;
35724 PyObject * obj1 = 0 ;
35725 PyObject * obj2 = 0 ;
35726 PyObject * obj3 = 0 ;
35727 PyObject * obj4 = 0 ;
35728 PyObject * obj5 = 0 ;
35729 PyObject * obj6 = 0 ;
35730 char * kwnames[] = {
35731 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
35732 };
35733
35734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35736 if (!SWIG_IsOK(res1)) {
35737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35738 }
35739 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35740 ecode2 = SWIG_AsVal_int(obj1, &val2);
35741 if (!SWIG_IsOK(ecode2)) {
35742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
35743 }
35744 arg2 = static_cast< int >(val2);
35745 ecode3 = SWIG_AsVal_int(obj2, &val3);
35746 if (!SWIG_IsOK(ecode3)) {
35747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
35748 }
35749 arg3 = static_cast< int >(val3);
35750 ecode4 = SWIG_AsVal_int(obj3, &val4);
35751 if (!SWIG_IsOK(ecode4)) {
35752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
35753 }
35754 arg4 = static_cast< int >(val4);
35755 ecode5 = SWIG_AsVal_int(obj4, &val5);
35756 if (!SWIG_IsOK(ecode5)) {
35757 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
35758 }
35759 arg5 = static_cast< int >(val5);
35760 ecode6 = SWIG_AsVal_int(obj5, &val6);
35761 if (!SWIG_IsOK(ecode6)) {
35762 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
35763 }
35764 arg6 = static_cast< int >(val6);
35765 ecode7 = SWIG_AsVal_int(obj6, &val7);
35766 if (!SWIG_IsOK(ecode7)) {
35767 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
35768 }
35769 arg7 = static_cast< int >(val7);
35770 {
35771 PyThreadState* __tstate = wxPyBeginAllowThreads();
35772 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
35773 wxPyEndAllowThreads(__tstate);
35774 if (PyErr_Occurred()) SWIG_fail;
35775 }
35776 resultobj = SWIG_Py_Void();
35777 return resultobj;
35778fail:
35779 return NULL;
35780}
35781
35782
35783SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35784 PyObject *resultobj = 0;
35785 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35786 wxPoint *arg2 = 0 ;
35787 wxPoint *arg3 = 0 ;
35788 wxPoint *arg4 = 0 ;
35789 void *argp1 = 0 ;
35790 int res1 = 0 ;
35791 wxPoint temp2 ;
35792 wxPoint temp3 ;
35793 wxPoint temp4 ;
35794 PyObject * obj0 = 0 ;
35795 PyObject * obj1 = 0 ;
35796 PyObject * obj2 = 0 ;
35797 PyObject * obj3 = 0 ;
35798 char * kwnames[] = {
35799 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
35800 };
35801
35802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35804 if (!SWIG_IsOK(res1)) {
35805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35806 }
35807 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35808 {
35809 arg2 = &temp2;
35810 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35811 }
35812 {
35813 arg3 = &temp3;
35814 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35815 }
35816 {
35817 arg4 = &temp4;
35818 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
35819 }
35820 {
35821 PyThreadState* __tstate = wxPyBeginAllowThreads();
35822 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
35823 wxPyEndAllowThreads(__tstate);
35824 if (PyErr_Occurred()) SWIG_fail;
35825 }
35826 resultobj = SWIG_Py_Void();
35827 return resultobj;
35828fail:
35829 return NULL;
35830}
35831
35832
35833SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35834 PyObject *resultobj = 0;
35835 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35836 int arg2 ;
35837 int arg3 ;
35838 int arg4 ;
35839 int arg5 ;
35840 void *argp1 = 0 ;
35841 int res1 = 0 ;
35842 int val2 ;
35843 int ecode2 = 0 ;
35844 int val3 ;
35845 int ecode3 = 0 ;
35846 int val4 ;
35847 int ecode4 = 0 ;
35848 int val5 ;
35849 int ecode5 = 0 ;
35850 PyObject * obj0 = 0 ;
35851 PyObject * obj1 = 0 ;
35852 PyObject * obj2 = 0 ;
35853 PyObject * obj3 = 0 ;
35854 PyObject * obj4 = 0 ;
35855 char * kwnames[] = {
35856 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
35857 };
35858
35859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35861 if (!SWIG_IsOK(res1)) {
35862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35863 }
35864 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35865 ecode2 = SWIG_AsVal_int(obj1, &val2);
35866 if (!SWIG_IsOK(ecode2)) {
35867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
35868 }
35869 arg2 = static_cast< int >(val2);
35870 ecode3 = SWIG_AsVal_int(obj2, &val3);
35871 if (!SWIG_IsOK(ecode3)) {
35872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
35873 }
35874 arg3 = static_cast< int >(val3);
35875 ecode4 = SWIG_AsVal_int(obj3, &val4);
35876 if (!SWIG_IsOK(ecode4)) {
35877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
35878 }
35879 arg4 = static_cast< int >(val4);
35880 ecode5 = SWIG_AsVal_int(obj4, &val5);
35881 if (!SWIG_IsOK(ecode5)) {
35882 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
35883 }
35884 arg5 = static_cast< int >(val5);
35885 {
35886 PyThreadState* __tstate = wxPyBeginAllowThreads();
35887 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
35888 wxPyEndAllowThreads(__tstate);
35889 if (PyErr_Occurred()) SWIG_fail;
35890 }
35891 resultobj = SWIG_Py_Void();
35892 return resultobj;
35893fail:
35894 return NULL;
35895}
35896
35897
35898SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35899 PyObject *resultobj = 0;
35900 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35901 wxRect *arg2 = 0 ;
35902 void *argp1 = 0 ;
35903 int res1 = 0 ;
35904 wxRect temp2 ;
35905 PyObject * obj0 = 0 ;
35906 PyObject * obj1 = 0 ;
35907 char * kwnames[] = {
35908 (char *) "self",(char *) "rect", NULL
35909 };
35910
35911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
35912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35913 if (!SWIG_IsOK(res1)) {
35914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35915 }
35916 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35917 {
35918 arg2 = &temp2;
35919 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
35920 }
35921 {
35922 PyThreadState* __tstate = wxPyBeginAllowThreads();
35923 (arg1)->DrawCheckMark((wxRect const &)*arg2);
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_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35935 PyObject *resultobj = 0;
35936 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35937 int arg2 ;
35938 int arg3 ;
35939 int arg4 ;
35940 int arg5 ;
35941 double arg6 ;
35942 double arg7 ;
35943 void *argp1 = 0 ;
35944 int res1 = 0 ;
35945 int val2 ;
35946 int ecode2 = 0 ;
35947 int val3 ;
35948 int ecode3 = 0 ;
35949 int val4 ;
35950 int ecode4 = 0 ;
35951 int val5 ;
35952 int ecode5 = 0 ;
35953 double val6 ;
35954 int ecode6 = 0 ;
35955 double val7 ;
35956 int ecode7 = 0 ;
35957 PyObject * obj0 = 0 ;
35958 PyObject * obj1 = 0 ;
35959 PyObject * obj2 = 0 ;
35960 PyObject * obj3 = 0 ;
35961 PyObject * obj4 = 0 ;
35962 PyObject * obj5 = 0 ;
35963 PyObject * obj6 = 0 ;
35964 char * kwnames[] = {
35965 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
35966 };
35967
35968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35970 if (!SWIG_IsOK(res1)) {
35971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35972 }
35973 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35974 ecode2 = SWIG_AsVal_int(obj1, &val2);
35975 if (!SWIG_IsOK(ecode2)) {
35976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
35977 }
35978 arg2 = static_cast< int >(val2);
35979 ecode3 = SWIG_AsVal_int(obj2, &val3);
35980 if (!SWIG_IsOK(ecode3)) {
35981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
35982 }
35983 arg3 = static_cast< int >(val3);
35984 ecode4 = SWIG_AsVal_int(obj3, &val4);
35985 if (!SWIG_IsOK(ecode4)) {
35986 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
35987 }
35988 arg4 = static_cast< int >(val4);
35989 ecode5 = SWIG_AsVal_int(obj4, &val5);
35990 if (!SWIG_IsOK(ecode5)) {
35991 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
35992 }
35993 arg5 = static_cast< int >(val5);
35994 ecode6 = SWIG_AsVal_double(obj5, &val6);
35995 if (!SWIG_IsOK(ecode6)) {
35996 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
35997 }
35998 arg6 = static_cast< double >(val6);
35999 ecode7 = SWIG_AsVal_double(obj6, &val7);
36000 if (!SWIG_IsOK(ecode7)) {
36001 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36002 }
36003 arg7 = static_cast< double >(val7);
36004 {
36005 PyThreadState* __tstate = wxPyBeginAllowThreads();
36006 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36007 wxPyEndAllowThreads(__tstate);
36008 if (PyErr_Occurred()) SWIG_fail;
36009 }
36010 resultobj = SWIG_Py_Void();
36011 return resultobj;
36012fail:
36013 return NULL;
36014}
36015
36016
36017SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36018 PyObject *resultobj = 0;
36019 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36020 wxPoint *arg2 = 0 ;
36021 wxSize *arg3 = 0 ;
36022 double arg4 ;
36023 double arg5 ;
36024 void *argp1 = 0 ;
36025 int res1 = 0 ;
36026 wxPoint temp2 ;
36027 wxSize temp3 ;
36028 double val4 ;
36029 int ecode4 = 0 ;
36030 double val5 ;
36031 int ecode5 = 0 ;
36032 PyObject * obj0 = 0 ;
36033 PyObject * obj1 = 0 ;
36034 PyObject * obj2 = 0 ;
36035 PyObject * obj3 = 0 ;
36036 PyObject * obj4 = 0 ;
36037 char * kwnames[] = {
36038 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36039 };
36040
36041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36043 if (!SWIG_IsOK(res1)) {
36044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36045 }
36046 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36047 {
36048 arg2 = &temp2;
36049 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36050 }
36051 {
36052 arg3 = &temp3;
36053 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36054 }
36055 ecode4 = SWIG_AsVal_double(obj3, &val4);
36056 if (!SWIG_IsOK(ecode4)) {
36057 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36058 }
36059 arg4 = static_cast< double >(val4);
36060 ecode5 = SWIG_AsVal_double(obj4, &val5);
36061 if (!SWIG_IsOK(ecode5)) {
36062 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36063 }
36064 arg5 = static_cast< double >(val5);
36065 {
36066 PyThreadState* __tstate = wxPyBeginAllowThreads();
36067 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36068 wxPyEndAllowThreads(__tstate);
36069 if (PyErr_Occurred()) SWIG_fail;
36070 }
36071 resultobj = SWIG_Py_Void();
36072 return resultobj;
36073fail:
36074 return NULL;
36075}
36076
36077
36078SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36079 PyObject *resultobj = 0;
36080 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36081 int arg2 ;
36082 int arg3 ;
36083 void *argp1 = 0 ;
36084 int res1 = 0 ;
36085 int val2 ;
36086 int ecode2 = 0 ;
36087 int val3 ;
36088 int ecode3 = 0 ;
36089 PyObject * obj0 = 0 ;
36090 PyObject * obj1 = 0 ;
36091 PyObject * obj2 = 0 ;
36092 char * kwnames[] = {
36093 (char *) "self",(char *) "x",(char *) "y", NULL
36094 };
36095
36096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36098 if (!SWIG_IsOK(res1)) {
36099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36100 }
36101 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36102 ecode2 = SWIG_AsVal_int(obj1, &val2);
36103 if (!SWIG_IsOK(ecode2)) {
36104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36105 }
36106 arg2 = static_cast< int >(val2);
36107 ecode3 = SWIG_AsVal_int(obj2, &val3);
36108 if (!SWIG_IsOK(ecode3)) {
36109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36110 }
36111 arg3 = static_cast< int >(val3);
36112 {
36113 PyThreadState* __tstate = wxPyBeginAllowThreads();
36114 (arg1)->DrawPoint(arg2,arg3);
36115 wxPyEndAllowThreads(__tstate);
36116 if (PyErr_Occurred()) SWIG_fail;
36117 }
36118 resultobj = SWIG_Py_Void();
36119 return resultobj;
36120fail:
36121 return NULL;
36122}
36123
36124
36125SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36126 PyObject *resultobj = 0;
36127 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36128 wxPoint *arg2 = 0 ;
36129 void *argp1 = 0 ;
36130 int res1 = 0 ;
36131 wxPoint temp2 ;
36132 PyObject * obj0 = 0 ;
36133 PyObject * obj1 = 0 ;
36134 char * kwnames[] = {
36135 (char *) "self",(char *) "pt", NULL
36136 };
36137
36138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36140 if (!SWIG_IsOK(res1)) {
36141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36142 }
36143 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36144 {
36145 arg2 = &temp2;
36146 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36147 }
36148 {
36149 PyThreadState* __tstate = wxPyBeginAllowThreads();
36150 (arg1)->DrawPoint((wxPoint const &)*arg2);
36151 wxPyEndAllowThreads(__tstate);
36152 if (PyErr_Occurred()) SWIG_fail;
36153 }
36154 resultobj = SWIG_Py_Void();
36155 return resultobj;
36156fail:
36157 return NULL;
36158}
36159
36160
36161SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36162 PyObject *resultobj = 0;
36163 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36164 int arg2 ;
36165 int arg3 ;
36166 int arg4 ;
36167 int arg5 ;
36168 void *argp1 = 0 ;
36169 int res1 = 0 ;
36170 int val2 ;
36171 int ecode2 = 0 ;
36172 int val3 ;
36173 int ecode3 = 0 ;
36174 int val4 ;
36175 int ecode4 = 0 ;
36176 int val5 ;
36177 int ecode5 = 0 ;
36178 PyObject * obj0 = 0 ;
36179 PyObject * obj1 = 0 ;
36180 PyObject * obj2 = 0 ;
36181 PyObject * obj3 = 0 ;
36182 PyObject * obj4 = 0 ;
36183 char * kwnames[] = {
36184 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36185 };
36186
36187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36189 if (!SWIG_IsOK(res1)) {
36190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36191 }
36192 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36193 ecode2 = SWIG_AsVal_int(obj1, &val2);
36194 if (!SWIG_IsOK(ecode2)) {
36195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36196 }
36197 arg2 = static_cast< int >(val2);
36198 ecode3 = SWIG_AsVal_int(obj2, &val3);
36199 if (!SWIG_IsOK(ecode3)) {
36200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36201 }
36202 arg3 = static_cast< int >(val3);
36203 ecode4 = SWIG_AsVal_int(obj3, &val4);
36204 if (!SWIG_IsOK(ecode4)) {
36205 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36206 }
36207 arg4 = static_cast< int >(val4);
36208 ecode5 = SWIG_AsVal_int(obj4, &val5);
36209 if (!SWIG_IsOK(ecode5)) {
36210 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36211 }
36212 arg5 = static_cast< int >(val5);
36213 {
36214 PyThreadState* __tstate = wxPyBeginAllowThreads();
36215 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36216 wxPyEndAllowThreads(__tstate);
36217 if (PyErr_Occurred()) SWIG_fail;
36218 }
36219 resultobj = SWIG_Py_Void();
36220 return resultobj;
36221fail:
36222 return NULL;
36223}
36224
36225
36226SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36227 PyObject *resultobj = 0;
36228 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36229 wxRect *arg2 = 0 ;
36230 void *argp1 = 0 ;
36231 int res1 = 0 ;
36232 wxRect temp2 ;
36233 PyObject * obj0 = 0 ;
36234 PyObject * obj1 = 0 ;
36235 char * kwnames[] = {
36236 (char *) "self",(char *) "rect", NULL
36237 };
36238
36239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36241 if (!SWIG_IsOK(res1)) {
36242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36243 }
36244 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36245 {
36246 arg2 = &temp2;
36247 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36248 }
36249 {
36250 PyThreadState* __tstate = wxPyBeginAllowThreads();
36251 (arg1)->DrawRectangle((wxRect const &)*arg2);
36252 wxPyEndAllowThreads(__tstate);
36253 if (PyErr_Occurred()) SWIG_fail;
36254 }
36255 resultobj = SWIG_Py_Void();
36256 return resultobj;
36257fail:
36258 return NULL;
36259}
36260
36261
36262SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36263 PyObject *resultobj = 0;
36264 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36265 wxPoint *arg2 = 0 ;
36266 wxSize *arg3 = 0 ;
36267 void *argp1 = 0 ;
36268 int res1 = 0 ;
36269 wxPoint temp2 ;
36270 wxSize temp3 ;
36271 PyObject * obj0 = 0 ;
36272 PyObject * obj1 = 0 ;
36273 PyObject * obj2 = 0 ;
36274 char * kwnames[] = {
36275 (char *) "self",(char *) "pt",(char *) "sz", NULL
36276 };
36277
36278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36280 if (!SWIG_IsOK(res1)) {
36281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36282 }
36283 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36284 {
36285 arg2 = &temp2;
36286 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36287 }
36288 {
36289 arg3 = &temp3;
36290 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36291 }
36292 {
36293 PyThreadState* __tstate = wxPyBeginAllowThreads();
36294 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36295 wxPyEndAllowThreads(__tstate);
36296 if (PyErr_Occurred()) SWIG_fail;
36297 }
36298 resultobj = SWIG_Py_Void();
36299 return resultobj;
36300fail:
36301 return NULL;
36302}
36303
36304
36305SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36306 PyObject *resultobj = 0;
36307 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36308 int arg2 ;
36309 int arg3 ;
36310 int arg4 ;
36311 int arg5 ;
36312 double arg6 ;
36313 void *argp1 = 0 ;
36314 int res1 = 0 ;
36315 int val2 ;
36316 int ecode2 = 0 ;
36317 int val3 ;
36318 int ecode3 = 0 ;
36319 int val4 ;
36320 int ecode4 = 0 ;
36321 int val5 ;
36322 int ecode5 = 0 ;
36323 double val6 ;
36324 int ecode6 = 0 ;
36325 PyObject * obj0 = 0 ;
36326 PyObject * obj1 = 0 ;
36327 PyObject * obj2 = 0 ;
36328 PyObject * obj3 = 0 ;
36329 PyObject * obj4 = 0 ;
36330 PyObject * obj5 = 0 ;
36331 char * kwnames[] = {
36332 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36333 };
36334
36335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36337 if (!SWIG_IsOK(res1)) {
36338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36339 }
36340 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36341 ecode2 = SWIG_AsVal_int(obj1, &val2);
36342 if (!SWIG_IsOK(ecode2)) {
36343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36344 }
36345 arg2 = static_cast< int >(val2);
36346 ecode3 = SWIG_AsVal_int(obj2, &val3);
36347 if (!SWIG_IsOK(ecode3)) {
36348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36349 }
36350 arg3 = static_cast< int >(val3);
36351 ecode4 = SWIG_AsVal_int(obj3, &val4);
36352 if (!SWIG_IsOK(ecode4)) {
36353 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36354 }
36355 arg4 = static_cast< int >(val4);
36356 ecode5 = SWIG_AsVal_int(obj4, &val5);
36357 if (!SWIG_IsOK(ecode5)) {
36358 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36359 }
36360 arg5 = static_cast< int >(val5);
36361 ecode6 = SWIG_AsVal_double(obj5, &val6);
36362 if (!SWIG_IsOK(ecode6)) {
36363 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36364 }
36365 arg6 = static_cast< double >(val6);
36366 {
36367 PyThreadState* __tstate = wxPyBeginAllowThreads();
36368 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36369 wxPyEndAllowThreads(__tstate);
36370 if (PyErr_Occurred()) SWIG_fail;
36371 }
36372 resultobj = SWIG_Py_Void();
36373 return resultobj;
36374fail:
36375 return NULL;
36376}
36377
36378
36379SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36380 PyObject *resultobj = 0;
36381 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36382 wxRect *arg2 = 0 ;
36383 double arg3 ;
36384 void *argp1 = 0 ;
36385 int res1 = 0 ;
36386 wxRect temp2 ;
36387 double val3 ;
36388 int ecode3 = 0 ;
36389 PyObject * obj0 = 0 ;
36390 PyObject * obj1 = 0 ;
36391 PyObject * obj2 = 0 ;
36392 char * kwnames[] = {
36393 (char *) "self",(char *) "r",(char *) "radius", NULL
36394 };
36395
36396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36398 if (!SWIG_IsOK(res1)) {
36399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36400 }
36401 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36402 {
36403 arg2 = &temp2;
36404 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36405 }
36406 ecode3 = SWIG_AsVal_double(obj2, &val3);
36407 if (!SWIG_IsOK(ecode3)) {
36408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36409 }
36410 arg3 = static_cast< double >(val3);
36411 {
36412 PyThreadState* __tstate = wxPyBeginAllowThreads();
36413 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36414 wxPyEndAllowThreads(__tstate);
36415 if (PyErr_Occurred()) SWIG_fail;
36416 }
36417 resultobj = SWIG_Py_Void();
36418 return resultobj;
36419fail:
36420 return NULL;
36421}
36422
36423
36424SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36425 PyObject *resultobj = 0;
36426 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36427 wxPoint *arg2 = 0 ;
36428 wxSize *arg3 = 0 ;
36429 double arg4 ;
36430 void *argp1 = 0 ;
36431 int res1 = 0 ;
36432 wxPoint temp2 ;
36433 wxSize temp3 ;
36434 double val4 ;
36435 int ecode4 = 0 ;
36436 PyObject * obj0 = 0 ;
36437 PyObject * obj1 = 0 ;
36438 PyObject * obj2 = 0 ;
36439 PyObject * obj3 = 0 ;
36440 char * kwnames[] = {
36441 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36442 };
36443
36444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36446 if (!SWIG_IsOK(res1)) {
36447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36448 }
36449 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36450 {
36451 arg2 = &temp2;
36452 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36453 }
36454 {
36455 arg3 = &temp3;
36456 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36457 }
36458 ecode4 = SWIG_AsVal_double(obj3, &val4);
36459 if (!SWIG_IsOK(ecode4)) {
36460 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36461 }
36462 arg4 = static_cast< double >(val4);
36463 {
36464 PyThreadState* __tstate = wxPyBeginAllowThreads();
36465 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36466 wxPyEndAllowThreads(__tstate);
36467 if (PyErr_Occurred()) SWIG_fail;
36468 }
36469 resultobj = SWIG_Py_Void();
36470 return resultobj;
36471fail:
36472 return NULL;
36473}
36474
36475
36476SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36477 PyObject *resultobj = 0;
36478 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36479 int arg2 ;
36480 int arg3 ;
36481 int arg4 ;
36482 void *argp1 = 0 ;
36483 int res1 = 0 ;
36484 int val2 ;
36485 int ecode2 = 0 ;
36486 int val3 ;
36487 int ecode3 = 0 ;
36488 int val4 ;
36489 int ecode4 = 0 ;
36490 PyObject * obj0 = 0 ;
36491 PyObject * obj1 = 0 ;
36492 PyObject * obj2 = 0 ;
36493 PyObject * obj3 = 0 ;
36494 char * kwnames[] = {
36495 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36496 };
36497
36498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36500 if (!SWIG_IsOK(res1)) {
36501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36502 }
36503 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36504 ecode2 = SWIG_AsVal_int(obj1, &val2);
36505 if (!SWIG_IsOK(ecode2)) {
36506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36507 }
36508 arg2 = static_cast< int >(val2);
36509 ecode3 = SWIG_AsVal_int(obj2, &val3);
36510 if (!SWIG_IsOK(ecode3)) {
36511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36512 }
36513 arg3 = static_cast< int >(val3);
36514 ecode4 = SWIG_AsVal_int(obj3, &val4);
36515 if (!SWIG_IsOK(ecode4)) {
36516 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36517 }
36518 arg4 = static_cast< int >(val4);
36519 {
36520 PyThreadState* __tstate = wxPyBeginAllowThreads();
36521 (arg1)->DrawCircle(arg2,arg3,arg4);
36522 wxPyEndAllowThreads(__tstate);
36523 if (PyErr_Occurred()) SWIG_fail;
36524 }
36525 resultobj = SWIG_Py_Void();
36526 return resultobj;
36527fail:
36528 return NULL;
36529}
36530
36531
36532SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36533 PyObject *resultobj = 0;
36534 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36535 wxPoint *arg2 = 0 ;
36536 int arg3 ;
36537 void *argp1 = 0 ;
36538 int res1 = 0 ;
36539 wxPoint temp2 ;
36540 int val3 ;
36541 int ecode3 = 0 ;
36542 PyObject * obj0 = 0 ;
36543 PyObject * obj1 = 0 ;
36544 PyObject * obj2 = 0 ;
36545 char * kwnames[] = {
36546 (char *) "self",(char *) "pt",(char *) "radius", NULL
36547 };
36548
36549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36551 if (!SWIG_IsOK(res1)) {
36552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36553 }
36554 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36555 {
36556 arg2 = &temp2;
36557 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36558 }
36559 ecode3 = SWIG_AsVal_int(obj2, &val3);
36560 if (!SWIG_IsOK(ecode3)) {
36561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36562 }
36563 arg3 = static_cast< int >(val3);
36564 {
36565 PyThreadState* __tstate = wxPyBeginAllowThreads();
36566 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36567 wxPyEndAllowThreads(__tstate);
36568 if (PyErr_Occurred()) SWIG_fail;
36569 }
36570 resultobj = SWIG_Py_Void();
36571 return resultobj;
36572fail:
36573 return NULL;
36574}
36575
36576
36577SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36578 PyObject *resultobj = 0;
36579 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36580 int arg2 ;
36581 int arg3 ;
36582 int arg4 ;
36583 int arg5 ;
36584 void *argp1 = 0 ;
36585 int res1 = 0 ;
36586 int val2 ;
36587 int ecode2 = 0 ;
36588 int val3 ;
36589 int ecode3 = 0 ;
36590 int val4 ;
36591 int ecode4 = 0 ;
36592 int val5 ;
36593 int ecode5 = 0 ;
36594 PyObject * obj0 = 0 ;
36595 PyObject * obj1 = 0 ;
36596 PyObject * obj2 = 0 ;
36597 PyObject * obj3 = 0 ;
36598 PyObject * obj4 = 0 ;
36599 char * kwnames[] = {
36600 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36601 };
36602
36603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36605 if (!SWIG_IsOK(res1)) {
36606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36607 }
36608 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36609 ecode2 = SWIG_AsVal_int(obj1, &val2);
36610 if (!SWIG_IsOK(ecode2)) {
36611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36612 }
36613 arg2 = static_cast< int >(val2);
36614 ecode3 = SWIG_AsVal_int(obj2, &val3);
36615 if (!SWIG_IsOK(ecode3)) {
36616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36617 }
36618 arg3 = static_cast< int >(val3);
36619 ecode4 = SWIG_AsVal_int(obj3, &val4);
36620 if (!SWIG_IsOK(ecode4)) {
36621 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36622 }
36623 arg4 = static_cast< int >(val4);
36624 ecode5 = SWIG_AsVal_int(obj4, &val5);
36625 if (!SWIG_IsOK(ecode5)) {
36626 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36627 }
36628 arg5 = static_cast< int >(val5);
36629 {
36630 PyThreadState* __tstate = wxPyBeginAllowThreads();
36631 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36632 wxPyEndAllowThreads(__tstate);
36633 if (PyErr_Occurred()) SWIG_fail;
36634 }
36635 resultobj = SWIG_Py_Void();
36636 return resultobj;
36637fail:
36638 return NULL;
36639}
36640
36641
36642SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36643 PyObject *resultobj = 0;
36644 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36645 wxRect *arg2 = 0 ;
36646 void *argp1 = 0 ;
36647 int res1 = 0 ;
36648 wxRect temp2 ;
36649 PyObject * obj0 = 0 ;
36650 PyObject * obj1 = 0 ;
36651 char * kwnames[] = {
36652 (char *) "self",(char *) "rect", NULL
36653 };
36654
36655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
36656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36657 if (!SWIG_IsOK(res1)) {
36658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36659 }
36660 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36661 {
36662 arg2 = &temp2;
36663 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36664 }
36665 {
36666 PyThreadState* __tstate = wxPyBeginAllowThreads();
36667 (arg1)->DrawEllipse((wxRect const &)*arg2);
36668 wxPyEndAllowThreads(__tstate);
36669 if (PyErr_Occurred()) SWIG_fail;
36670 }
36671 resultobj = SWIG_Py_Void();
36672 return resultobj;
36673fail:
36674 return NULL;
36675}
36676
36677
36678SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36679 PyObject *resultobj = 0;
36680 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36681 wxPoint *arg2 = 0 ;
36682 wxSize *arg3 = 0 ;
36683 void *argp1 = 0 ;
36684 int res1 = 0 ;
36685 wxPoint temp2 ;
36686 wxSize temp3 ;
36687 PyObject * obj0 = 0 ;
36688 PyObject * obj1 = 0 ;
36689 PyObject * obj2 = 0 ;
36690 char * kwnames[] = {
36691 (char *) "self",(char *) "pt",(char *) "sz", NULL
36692 };
36693
36694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36696 if (!SWIG_IsOK(res1)) {
36697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36698 }
36699 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36700 {
36701 arg2 = &temp2;
36702 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36703 }
36704 {
36705 arg3 = &temp3;
36706 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36707 }
36708 {
36709 PyThreadState* __tstate = wxPyBeginAllowThreads();
36710 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
36711 wxPyEndAllowThreads(__tstate);
36712 if (PyErr_Occurred()) SWIG_fail;
36713 }
36714 resultobj = SWIG_Py_Void();
36715 return resultobj;
36716fail:
36717 return NULL;
36718}
36719
36720
36721SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36722 PyObject *resultobj = 0;
36723 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36724 wxIcon *arg2 = 0 ;
36725 int arg3 ;
36726 int arg4 ;
36727 void *argp1 = 0 ;
36728 int res1 = 0 ;
36729 void *argp2 = 0 ;
36730 int res2 = 0 ;
36731 int val3 ;
36732 int ecode3 = 0 ;
36733 int val4 ;
36734 int ecode4 = 0 ;
36735 PyObject * obj0 = 0 ;
36736 PyObject * obj1 = 0 ;
36737 PyObject * obj2 = 0 ;
36738 PyObject * obj3 = 0 ;
36739 char * kwnames[] = {
36740 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
36741 };
36742
36743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36745 if (!SWIG_IsOK(res1)) {
36746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36747 }
36748 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36749 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
36750 if (!SWIG_IsOK(res2)) {
36751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36752 }
36753 if (!argp2) {
36754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36755 }
36756 arg2 = reinterpret_cast< wxIcon * >(argp2);
36757 ecode3 = SWIG_AsVal_int(obj2, &val3);
36758 if (!SWIG_IsOK(ecode3)) {
36759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
36760 }
36761 arg3 = static_cast< int >(val3);
36762 ecode4 = SWIG_AsVal_int(obj3, &val4);
36763 if (!SWIG_IsOK(ecode4)) {
36764 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
36765 }
36766 arg4 = static_cast< int >(val4);
36767 {
36768 PyThreadState* __tstate = wxPyBeginAllowThreads();
36769 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
36770 wxPyEndAllowThreads(__tstate);
36771 if (PyErr_Occurred()) SWIG_fail;
36772 }
36773 resultobj = SWIG_Py_Void();
36774 return resultobj;
36775fail:
36776 return NULL;
36777}
36778
36779
36780SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36781 PyObject *resultobj = 0;
36782 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36783 wxIcon *arg2 = 0 ;
36784 wxPoint *arg3 = 0 ;
36785 void *argp1 = 0 ;
36786 int res1 = 0 ;
36787 void *argp2 = 0 ;
36788 int res2 = 0 ;
36789 wxPoint temp3 ;
36790 PyObject * obj0 = 0 ;
36791 PyObject * obj1 = 0 ;
36792 PyObject * obj2 = 0 ;
36793 char * kwnames[] = {
36794 (char *) "self",(char *) "icon",(char *) "pt", NULL
36795 };
36796
36797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36799 if (!SWIG_IsOK(res1)) {
36800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36801 }
36802 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
36804 if (!SWIG_IsOK(res2)) {
36805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
36806 }
36807 if (!argp2) {
36808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
36809 }
36810 arg2 = reinterpret_cast< wxIcon * >(argp2);
36811 {
36812 arg3 = &temp3;
36813 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36814 }
36815 {
36816 PyThreadState* __tstate = wxPyBeginAllowThreads();
36817 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
36818 wxPyEndAllowThreads(__tstate);
36819 if (PyErr_Occurred()) SWIG_fail;
36820 }
36821 resultobj = SWIG_Py_Void();
36822 return resultobj;
36823fail:
36824 return NULL;
36825}
36826
36827
36828SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36829 PyObject *resultobj = 0;
36830 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36831 wxBitmap *arg2 = 0 ;
36832 int arg3 ;
36833 int arg4 ;
36834 bool arg5 = (bool) false ;
36835 void *argp1 = 0 ;
36836 int res1 = 0 ;
36837 void *argp2 = 0 ;
36838 int res2 = 0 ;
36839 int val3 ;
36840 int ecode3 = 0 ;
36841 int val4 ;
36842 int ecode4 = 0 ;
36843 bool val5 ;
36844 int ecode5 = 0 ;
36845 PyObject * obj0 = 0 ;
36846 PyObject * obj1 = 0 ;
36847 PyObject * obj2 = 0 ;
36848 PyObject * obj3 = 0 ;
36849 PyObject * obj4 = 0 ;
36850 char * kwnames[] = {
36851 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
36852 };
36853
36854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36858 }
36859 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36860 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
36861 if (!SWIG_IsOK(res2)) {
36862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36863 }
36864 if (!argp2) {
36865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36866 }
36867 arg2 = reinterpret_cast< wxBitmap * >(argp2);
36868 ecode3 = SWIG_AsVal_int(obj2, &val3);
36869 if (!SWIG_IsOK(ecode3)) {
36870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
36871 }
36872 arg3 = static_cast< int >(val3);
36873 ecode4 = SWIG_AsVal_int(obj3, &val4);
36874 if (!SWIG_IsOK(ecode4)) {
36875 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
36876 }
36877 arg4 = static_cast< int >(val4);
36878 if (obj4) {
36879 ecode5 = SWIG_AsVal_bool(obj4, &val5);
36880 if (!SWIG_IsOK(ecode5)) {
36881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
36882 }
36883 arg5 = static_cast< bool >(val5);
36884 }
36885 {
36886 PyThreadState* __tstate = wxPyBeginAllowThreads();
36887 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
36888 wxPyEndAllowThreads(__tstate);
36889 if (PyErr_Occurred()) SWIG_fail;
36890 }
36891 resultobj = SWIG_Py_Void();
36892 return resultobj;
36893fail:
36894 return NULL;
36895}
36896
36897
36898SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36899 PyObject *resultobj = 0;
36900 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36901 wxBitmap *arg2 = 0 ;
36902 wxPoint *arg3 = 0 ;
36903 bool arg4 = (bool) false ;
36904 void *argp1 = 0 ;
36905 int res1 = 0 ;
36906 void *argp2 = 0 ;
36907 int res2 = 0 ;
36908 wxPoint temp3 ;
36909 bool val4 ;
36910 int ecode4 = 0 ;
36911 PyObject * obj0 = 0 ;
36912 PyObject * obj1 = 0 ;
36913 PyObject * obj2 = 0 ;
36914 PyObject * obj3 = 0 ;
36915 char * kwnames[] = {
36916 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
36917 };
36918
36919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36921 if (!SWIG_IsOK(res1)) {
36922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36923 }
36924 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36925 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
36926 if (!SWIG_IsOK(res2)) {
36927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36928 }
36929 if (!argp2) {
36930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36931 }
36932 arg2 = reinterpret_cast< wxBitmap * >(argp2);
36933 {
36934 arg3 = &temp3;
36935 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36936 }
36937 if (obj3) {
36938 ecode4 = SWIG_AsVal_bool(obj3, &val4);
36939 if (!SWIG_IsOK(ecode4)) {
36940 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
36941 }
36942 arg4 = static_cast< bool >(val4);
36943 }
36944 {
36945 PyThreadState* __tstate = wxPyBeginAllowThreads();
36946 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
36947 wxPyEndAllowThreads(__tstate);
36948 if (PyErr_Occurred()) SWIG_fail;
36949 }
36950 resultobj = SWIG_Py_Void();
36951 return resultobj;
36952fail:
36953 return NULL;
36954}
36955
36956
36957SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36958 PyObject *resultobj = 0;
36959 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36960 wxString *arg2 = 0 ;
36961 int arg3 ;
36962 int arg4 ;
36963 void *argp1 = 0 ;
36964 int res1 = 0 ;
36965 bool temp2 = false ;
36966 int val3 ;
36967 int ecode3 = 0 ;
36968 int val4 ;
36969 int ecode4 = 0 ;
36970 PyObject * obj0 = 0 ;
36971 PyObject * obj1 = 0 ;
36972 PyObject * obj2 = 0 ;
36973 PyObject * obj3 = 0 ;
36974 char * kwnames[] = {
36975 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
36976 };
36977
36978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36980 if (!SWIG_IsOK(res1)) {
36981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36982 }
36983 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36984 {
36985 arg2 = wxString_in_helper(obj1);
36986 if (arg2 == NULL) SWIG_fail;
36987 temp2 = true;
36988 }
36989 ecode3 = SWIG_AsVal_int(obj2, &val3);
36990 if (!SWIG_IsOK(ecode3)) {
36991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
36992 }
36993 arg3 = static_cast< int >(val3);
36994 ecode4 = SWIG_AsVal_int(obj3, &val4);
36995 if (!SWIG_IsOK(ecode4)) {
36996 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
36997 }
36998 arg4 = static_cast< int >(val4);
36999 {
37000 PyThreadState* __tstate = wxPyBeginAllowThreads();
37001 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37002 wxPyEndAllowThreads(__tstate);
37003 if (PyErr_Occurred()) SWIG_fail;
37004 }
37005 resultobj = SWIG_Py_Void();
37006 {
37007 if (temp2)
37008 delete arg2;
37009 }
37010 return resultobj;
37011fail:
37012 {
37013 if (temp2)
37014 delete arg2;
37015 }
37016 return NULL;
37017}
37018
37019
37020SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37021 PyObject *resultobj = 0;
37022 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37023 wxString *arg2 = 0 ;
37024 wxPoint *arg3 = 0 ;
37025 void *argp1 = 0 ;
37026 int res1 = 0 ;
37027 bool temp2 = false ;
37028 wxPoint temp3 ;
37029 PyObject * obj0 = 0 ;
37030 PyObject * obj1 = 0 ;
37031 PyObject * obj2 = 0 ;
37032 char * kwnames[] = {
37033 (char *) "self",(char *) "text",(char *) "pt", NULL
37034 };
37035
37036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37038 if (!SWIG_IsOK(res1)) {
37039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37040 }
37041 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37042 {
37043 arg2 = wxString_in_helper(obj1);
37044 if (arg2 == NULL) SWIG_fail;
37045 temp2 = true;
37046 }
37047 {
37048 arg3 = &temp3;
37049 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37050 }
37051 {
37052 PyThreadState* __tstate = wxPyBeginAllowThreads();
37053 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37054 wxPyEndAllowThreads(__tstate);
37055 if (PyErr_Occurred()) SWIG_fail;
37056 }
37057 resultobj = SWIG_Py_Void();
37058 {
37059 if (temp2)
37060 delete arg2;
37061 }
37062 return resultobj;
37063fail:
37064 {
37065 if (temp2)
37066 delete arg2;
37067 }
37068 return NULL;
37069}
37070
37071
37072SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37073 PyObject *resultobj = 0;
37074 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37075 wxString *arg2 = 0 ;
37076 int arg3 ;
37077 int arg4 ;
37078 double arg5 ;
37079 void *argp1 = 0 ;
37080 int res1 = 0 ;
37081 bool temp2 = false ;
37082 int val3 ;
37083 int ecode3 = 0 ;
37084 int val4 ;
37085 int ecode4 = 0 ;
37086 double val5 ;
37087 int ecode5 = 0 ;
37088 PyObject * obj0 = 0 ;
37089 PyObject * obj1 = 0 ;
37090 PyObject * obj2 = 0 ;
37091 PyObject * obj3 = 0 ;
37092 PyObject * obj4 = 0 ;
37093 char * kwnames[] = {
37094 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37095 };
37096
37097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37099 if (!SWIG_IsOK(res1)) {
37100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37101 }
37102 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37103 {
37104 arg2 = wxString_in_helper(obj1);
37105 if (arg2 == NULL) SWIG_fail;
37106 temp2 = true;
37107 }
37108 ecode3 = SWIG_AsVal_int(obj2, &val3);
37109 if (!SWIG_IsOK(ecode3)) {
37110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37111 }
37112 arg3 = static_cast< int >(val3);
37113 ecode4 = SWIG_AsVal_int(obj3, &val4);
37114 if (!SWIG_IsOK(ecode4)) {
37115 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37116 }
37117 arg4 = static_cast< int >(val4);
37118 ecode5 = SWIG_AsVal_double(obj4, &val5);
37119 if (!SWIG_IsOK(ecode5)) {
37120 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37121 }
37122 arg5 = static_cast< double >(val5);
37123 {
37124 PyThreadState* __tstate = wxPyBeginAllowThreads();
37125 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37126 wxPyEndAllowThreads(__tstate);
37127 if (PyErr_Occurred()) SWIG_fail;
37128 }
37129 resultobj = SWIG_Py_Void();
37130 {
37131 if (temp2)
37132 delete arg2;
37133 }
37134 return resultobj;
37135fail:
37136 {
37137 if (temp2)
37138 delete arg2;
37139 }
37140 return NULL;
37141}
37142
37143
37144SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37145 PyObject *resultobj = 0;
37146 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37147 wxString *arg2 = 0 ;
37148 wxPoint *arg3 = 0 ;
37149 double arg4 ;
37150 void *argp1 = 0 ;
37151 int res1 = 0 ;
37152 bool temp2 = false ;
37153 wxPoint temp3 ;
37154 double val4 ;
37155 int ecode4 = 0 ;
37156 PyObject * obj0 = 0 ;
37157 PyObject * obj1 = 0 ;
37158 PyObject * obj2 = 0 ;
37159 PyObject * obj3 = 0 ;
37160 char * kwnames[] = {
37161 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37162 };
37163
37164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37166 if (!SWIG_IsOK(res1)) {
37167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37168 }
37169 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37170 {
37171 arg2 = wxString_in_helper(obj1);
37172 if (arg2 == NULL) SWIG_fail;
37173 temp2 = true;
37174 }
37175 {
37176 arg3 = &temp3;
37177 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37178 }
37179 ecode4 = SWIG_AsVal_double(obj3, &val4);
37180 if (!SWIG_IsOK(ecode4)) {
37181 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37182 }
37183 arg4 = static_cast< double >(val4);
37184 {
37185 PyThreadState* __tstate = wxPyBeginAllowThreads();
37186 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37187 wxPyEndAllowThreads(__tstate);
37188 if (PyErr_Occurred()) SWIG_fail;
37189 }
37190 resultobj = SWIG_Py_Void();
37191 {
37192 if (temp2)
37193 delete arg2;
37194 }
37195 return resultobj;
37196fail:
37197 {
37198 if (temp2)
37199 delete arg2;
37200 }
37201 return NULL;
37202}
37203
37204
37205SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37206 PyObject *resultobj = 0;
37207 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37208 int arg2 ;
37209 wxPoint *arg3 = (wxPoint *) 0 ;
37210 int arg4 = (int) 0 ;
37211 int arg5 = (int) 0 ;
37212 void *argp1 = 0 ;
37213 int res1 = 0 ;
37214 int val4 ;
37215 int ecode4 = 0 ;
37216 int val5 ;
37217 int ecode5 = 0 ;
37218 PyObject * obj0 = 0 ;
37219 PyObject * obj1 = 0 ;
37220 PyObject * obj2 = 0 ;
37221 PyObject * obj3 = 0 ;
37222 char * kwnames[] = {
37223 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37224 };
37225
37226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37228 if (!SWIG_IsOK(res1)) {
37229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37230 }
37231 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37232 {
37233 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37234 if (arg3 == NULL) SWIG_fail;
37235 }
37236 if (obj2) {
37237 ecode4 = SWIG_AsVal_int(obj2, &val4);
37238 if (!SWIG_IsOK(ecode4)) {
37239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37240 }
37241 arg4 = static_cast< int >(val4);
37242 }
37243 if (obj3) {
37244 ecode5 = SWIG_AsVal_int(obj3, &val5);
37245 if (!SWIG_IsOK(ecode5)) {
37246 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37247 }
37248 arg5 = static_cast< int >(val5);
37249 }
37250 {
37251 PyThreadState* __tstate = wxPyBeginAllowThreads();
37252 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37253 wxPyEndAllowThreads(__tstate);
37254 if (PyErr_Occurred()) SWIG_fail;
37255 }
37256 resultobj = SWIG_Py_Void();
37257 {
37258 if (arg3) delete [] arg3;
37259 }
37260 return resultobj;
37261fail:
37262 {
37263 if (arg3) delete [] arg3;
37264 }
37265 return NULL;
37266}
37267
37268
37269SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37270 PyObject *resultobj = 0;
37271 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37272 int arg2 ;
37273 wxPoint *arg3 = (wxPoint *) 0 ;
37274 int arg4 = (int) 0 ;
37275 int arg5 = (int) 0 ;
37276 int arg6 = (int) wxODDEVEN_RULE ;
37277 void *argp1 = 0 ;
37278 int res1 = 0 ;
37279 int val4 ;
37280 int ecode4 = 0 ;
37281 int val5 ;
37282 int ecode5 = 0 ;
37283 int val6 ;
37284 int ecode6 = 0 ;
37285 PyObject * obj0 = 0 ;
37286 PyObject * obj1 = 0 ;
37287 PyObject * obj2 = 0 ;
37288 PyObject * obj3 = 0 ;
37289 PyObject * obj4 = 0 ;
37290 char * kwnames[] = {
37291 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37292 };
37293
37294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37296 if (!SWIG_IsOK(res1)) {
37297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37298 }
37299 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37300 {
37301 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37302 if (arg3 == NULL) SWIG_fail;
37303 }
37304 if (obj2) {
37305 ecode4 = SWIG_AsVal_int(obj2, &val4);
37306 if (!SWIG_IsOK(ecode4)) {
37307 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37308 }
37309 arg4 = static_cast< int >(val4);
37310 }
37311 if (obj3) {
37312 ecode5 = SWIG_AsVal_int(obj3, &val5);
37313 if (!SWIG_IsOK(ecode5)) {
37314 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37315 }
37316 arg5 = static_cast< int >(val5);
37317 }
37318 if (obj4) {
37319 ecode6 = SWIG_AsVal_int(obj4, &val6);
37320 if (!SWIG_IsOK(ecode6)) {
37321 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37322 }
37323 arg6 = static_cast< int >(val6);
37324 }
37325 {
37326 PyThreadState* __tstate = wxPyBeginAllowThreads();
37327 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37328 wxPyEndAllowThreads(__tstate);
37329 if (PyErr_Occurred()) SWIG_fail;
37330 }
37331 resultobj = SWIG_Py_Void();
37332 {
37333 if (arg3) delete [] arg3;
37334 }
37335 return resultobj;
37336fail:
37337 {
37338 if (arg3) delete [] arg3;
37339 }
37340 return NULL;
37341}
37342
37343
37344SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37345 PyObject *resultobj = 0;
37346 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37347 wxString *arg2 = 0 ;
37348 wxRect *arg3 = 0 ;
37349 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37350 int arg5 = (int) -1 ;
37351 void *argp1 = 0 ;
37352 int res1 = 0 ;
37353 bool temp2 = false ;
37354 wxRect temp3 ;
37355 int val4 ;
37356 int ecode4 = 0 ;
37357 int val5 ;
37358 int ecode5 = 0 ;
37359 PyObject * obj0 = 0 ;
37360 PyObject * obj1 = 0 ;
37361 PyObject * obj2 = 0 ;
37362 PyObject * obj3 = 0 ;
37363 PyObject * obj4 = 0 ;
37364 char * kwnames[] = {
37365 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37366 };
37367
37368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37370 if (!SWIG_IsOK(res1)) {
37371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37372 }
37373 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37374 {
37375 arg2 = wxString_in_helper(obj1);
37376 if (arg2 == NULL) SWIG_fail;
37377 temp2 = true;
37378 }
37379 {
37380 arg3 = &temp3;
37381 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37382 }
37383 if (obj3) {
37384 ecode4 = SWIG_AsVal_int(obj3, &val4);
37385 if (!SWIG_IsOK(ecode4)) {
37386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37387 }
37388 arg4 = static_cast< int >(val4);
37389 }
37390 if (obj4) {
37391 ecode5 = SWIG_AsVal_int(obj4, &val5);
37392 if (!SWIG_IsOK(ecode5)) {
37393 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37394 }
37395 arg5 = static_cast< int >(val5);
37396 }
37397 {
37398 PyThreadState* __tstate = wxPyBeginAllowThreads();
37399 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37400 wxPyEndAllowThreads(__tstate);
37401 if (PyErr_Occurred()) SWIG_fail;
37402 }
37403 resultobj = SWIG_Py_Void();
37404 {
37405 if (temp2)
37406 delete arg2;
37407 }
37408 return resultobj;
37409fail:
37410 {
37411 if (temp2)
37412 delete arg2;
37413 }
37414 return NULL;
37415}
37416
37417
37418SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37419 PyObject *resultobj = 0;
37420 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37421 wxString *arg2 = 0 ;
37422 wxBitmap *arg3 = 0 ;
37423 wxRect *arg4 = 0 ;
37424 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37425 int arg6 = (int) -1 ;
37426 void *argp1 = 0 ;
37427 int res1 = 0 ;
37428 bool temp2 = false ;
37429 void *argp3 = 0 ;
37430 int res3 = 0 ;
37431 wxRect temp4 ;
37432 int val5 ;
37433 int ecode5 = 0 ;
37434 int val6 ;
37435 int ecode6 = 0 ;
37436 PyObject * obj0 = 0 ;
37437 PyObject * obj1 = 0 ;
37438 PyObject * obj2 = 0 ;
37439 PyObject * obj3 = 0 ;
37440 PyObject * obj4 = 0 ;
37441 PyObject * obj5 = 0 ;
37442 char * kwnames[] = {
37443 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37444 };
37445
37446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37448 if (!SWIG_IsOK(res1)) {
37449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37450 }
37451 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37452 {
37453 arg2 = wxString_in_helper(obj1);
37454 if (arg2 == NULL) SWIG_fail;
37455 temp2 = true;
37456 }
37457 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37458 if (!SWIG_IsOK(res3)) {
37459 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37460 }
37461 if (!argp3) {
37462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37463 }
37464 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37465 {
37466 arg4 = &temp4;
37467 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37468 }
37469 if (obj4) {
37470 ecode5 = SWIG_AsVal_int(obj4, &val5);
37471 if (!SWIG_IsOK(ecode5)) {
37472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37473 }
37474 arg5 = static_cast< int >(val5);
37475 }
37476 if (obj5) {
37477 ecode6 = SWIG_AsVal_int(obj5, &val6);
37478 if (!SWIG_IsOK(ecode6)) {
37479 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37480 }
37481 arg6 = static_cast< int >(val6);
37482 }
37483 {
37484 PyThreadState* __tstate = wxPyBeginAllowThreads();
37485 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37486 wxPyEndAllowThreads(__tstate);
37487 if (PyErr_Occurred()) SWIG_fail;
37488 }
37489 resultobj = SWIG_Py_Void();
37490 {
37491 if (temp2)
37492 delete arg2;
37493 }
37494 return resultobj;
37495fail:
37496 {
37497 if (temp2)
37498 delete arg2;
37499 }
37500 return NULL;
37501}
37502
37503
37504SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37505 PyObject *resultobj = 0;
37506 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37507 int arg2 ;
37508 wxPoint *arg3 = (wxPoint *) 0 ;
37509 void *argp1 = 0 ;
37510 int res1 = 0 ;
37511 PyObject * obj0 = 0 ;
37512 PyObject * obj1 = 0 ;
37513 char * kwnames[] = {
37514 (char *) "self",(char *) "points", NULL
37515 };
37516
37517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37519 if (!SWIG_IsOK(res1)) {
37520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37521 }
37522 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37523 {
37524 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37525 if (arg3 == NULL) SWIG_fail;
37526 }
37527 {
37528 PyThreadState* __tstate = wxPyBeginAllowThreads();
37529 (arg1)->DrawSpline(arg2,arg3);
37530 wxPyEndAllowThreads(__tstate);
37531 if (PyErr_Occurred()) SWIG_fail;
37532 }
37533 resultobj = SWIG_Py_Void();
37534 {
37535 if (arg3) delete [] arg3;
37536 }
37537 return resultobj;
37538fail:
37539 {
37540 if (arg3) delete [] arg3;
37541 }
37542 return NULL;
37543}
37544
37545
37546SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37547 PyObject *resultobj = 0;
37548 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37549 void *argp1 = 0 ;
37550 int res1 = 0 ;
37551 PyObject *swig_obj[1] ;
37552
37553 if (!args) SWIG_fail;
37554 swig_obj[0] = args;
37555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37556 if (!SWIG_IsOK(res1)) {
37557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37558 }
37559 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37560 {
37561 PyThreadState* __tstate = wxPyBeginAllowThreads();
37562 (arg1)->Clear();
37563 wxPyEndAllowThreads(__tstate);
37564 if (PyErr_Occurred()) SWIG_fail;
37565 }
37566 resultobj = SWIG_Py_Void();
37567 return resultobj;
37568fail:
37569 return NULL;
37570}
37571
37572
37573SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37574 PyObject *resultobj = 0;
37575 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37576 wxFont *arg2 = 0 ;
37577 void *argp1 = 0 ;
37578 int res1 = 0 ;
37579 void *argp2 = 0 ;
37580 int res2 = 0 ;
37581 PyObject * obj0 = 0 ;
37582 PyObject * obj1 = 0 ;
37583 char * kwnames[] = {
37584 (char *) "self",(char *) "font", NULL
37585 };
37586
37587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37589 if (!SWIG_IsOK(res1)) {
37590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37591 }
37592 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37594 if (!SWIG_IsOK(res2)) {
37595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37596 }
37597 if (!argp2) {
37598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37599 }
37600 arg2 = reinterpret_cast< wxFont * >(argp2);
37601 {
37602 PyThreadState* __tstate = wxPyBeginAllowThreads();
37603 (arg1)->SetFont((wxFont const &)*arg2);
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_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37615 PyObject *resultobj = 0;
37616 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37617 wxPen *arg2 = 0 ;
37618 void *argp1 = 0 ;
37619 int res1 = 0 ;
37620 void *argp2 = 0 ;
37621 int res2 = 0 ;
37622 PyObject * obj0 = 0 ;
37623 PyObject * obj1 = 0 ;
37624 char * kwnames[] = {
37625 (char *) "self",(char *) "pen", NULL
37626 };
37627
37628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37630 if (!SWIG_IsOK(res1)) {
37631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37632 }
37633 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37634 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37635 if (!SWIG_IsOK(res2)) {
37636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37637 }
37638 if (!argp2) {
37639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37640 }
37641 arg2 = reinterpret_cast< wxPen * >(argp2);
37642 {
37643 PyThreadState* __tstate = wxPyBeginAllowThreads();
37644 (arg1)->SetPen((wxPen const &)*arg2);
37645 wxPyEndAllowThreads(__tstate);
37646 if (PyErr_Occurred()) SWIG_fail;
37647 }
37648 resultobj = SWIG_Py_Void();
37649 return resultobj;
37650fail:
37651 return NULL;
37652}
37653
37654
37655SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37656 PyObject *resultobj = 0;
37657 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37658 wxBrush *arg2 = 0 ;
37659 void *argp1 = 0 ;
37660 int res1 = 0 ;
37661 void *argp2 = 0 ;
37662 int res2 = 0 ;
37663 PyObject * obj0 = 0 ;
37664 PyObject * obj1 = 0 ;
37665 char * kwnames[] = {
37666 (char *) "self",(char *) "brush", NULL
37667 };
37668
37669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
37670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37671 if (!SWIG_IsOK(res1)) {
37672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37673 }
37674 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37676 if (!SWIG_IsOK(res2)) {
37677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37678 }
37679 if (!argp2) {
37680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37681 }
37682 arg2 = reinterpret_cast< wxBrush * >(argp2);
37683 {
37684 PyThreadState* __tstate = wxPyBeginAllowThreads();
37685 (arg1)->SetBrush((wxBrush const &)*arg2);
37686 wxPyEndAllowThreads(__tstate);
37687 if (PyErr_Occurred()) SWIG_fail;
37688 }
37689 resultobj = SWIG_Py_Void();
37690 return resultobj;
37691fail:
37692 return NULL;
37693}
37694
37695
37696SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37697 PyObject *resultobj = 0;
37698 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37699 wxBrush *arg2 = 0 ;
37700 void *argp1 = 0 ;
37701 int res1 = 0 ;
37702 void *argp2 = 0 ;
37703 int res2 = 0 ;
37704 PyObject * obj0 = 0 ;
37705 PyObject * obj1 = 0 ;
37706 char * kwnames[] = {
37707 (char *) "self",(char *) "brush", NULL
37708 };
37709
37710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37712 if (!SWIG_IsOK(res1)) {
37713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37714 }
37715 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37717 if (!SWIG_IsOK(res2)) {
37718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37719 }
37720 if (!argp2) {
37721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37722 }
37723 arg2 = reinterpret_cast< wxBrush * >(argp2);
37724 {
37725 PyThreadState* __tstate = wxPyBeginAllowThreads();
37726 (arg1)->SetBackground((wxBrush const &)*arg2);
37727 wxPyEndAllowThreads(__tstate);
37728 if (PyErr_Occurred()) SWIG_fail;
37729 }
37730 resultobj = SWIG_Py_Void();
37731 return resultobj;
37732fail:
37733 return NULL;
37734}
37735
37736
37737SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37738 PyObject *resultobj = 0;
37739 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37740 int arg2 ;
37741 void *argp1 = 0 ;
37742 int res1 = 0 ;
37743 int val2 ;
37744 int ecode2 = 0 ;
37745 PyObject * obj0 = 0 ;
37746 PyObject * obj1 = 0 ;
37747 char * kwnames[] = {
37748 (char *) "self",(char *) "mode", NULL
37749 };
37750
37751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
37752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37753 if (!SWIG_IsOK(res1)) {
37754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37755 }
37756 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37757 ecode2 = SWIG_AsVal_int(obj1, &val2);
37758 if (!SWIG_IsOK(ecode2)) {
37759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
37760 }
37761 arg2 = static_cast< int >(val2);
37762 {
37763 PyThreadState* __tstate = wxPyBeginAllowThreads();
37764 (arg1)->SetBackgroundMode(arg2);
37765 wxPyEndAllowThreads(__tstate);
37766 if (PyErr_Occurred()) SWIG_fail;
37767 }
37768 resultobj = SWIG_Py_Void();
37769 return resultobj;
37770fail:
37771 return NULL;
37772}
37773
37774
37775SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37776 PyObject *resultobj = 0;
37777 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37778 wxPalette *arg2 = 0 ;
37779 void *argp1 = 0 ;
37780 int res1 = 0 ;
37781 void *argp2 = 0 ;
37782 int res2 = 0 ;
37783 PyObject * obj0 = 0 ;
37784 PyObject * obj1 = 0 ;
37785 char * kwnames[] = {
37786 (char *) "self",(char *) "palette", NULL
37787 };
37788
37789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
37790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37791 if (!SWIG_IsOK(res1)) {
37792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37793 }
37794 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
37796 if (!SWIG_IsOK(res2)) {
37797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
37798 }
37799 if (!argp2) {
37800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
37801 }
37802 arg2 = reinterpret_cast< wxPalette * >(argp2);
37803 {
37804 PyThreadState* __tstate = wxPyBeginAllowThreads();
37805 (arg1)->SetPalette((wxPalette const &)*arg2);
37806 wxPyEndAllowThreads(__tstate);
37807 if (PyErr_Occurred()) SWIG_fail;
37808 }
37809 resultobj = SWIG_Py_Void();
37810 return resultobj;
37811fail:
37812 return NULL;
37813}
37814
37815
37816SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37817 PyObject *resultobj = 0;
37818 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37819 wxColour *arg2 = 0 ;
37820 void *argp1 = 0 ;
37821 int res1 = 0 ;
37822 wxColour temp2 ;
37823 PyObject * obj0 = 0 ;
37824 PyObject * obj1 = 0 ;
37825 char * kwnames[] = {
37826 (char *) "self",(char *) "colour", NULL
37827 };
37828
37829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
37830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37831 if (!SWIG_IsOK(res1)) {
37832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37833 }
37834 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37835 {
37836 arg2 = &temp2;
37837 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
37838 }
37839 {
37840 PyThreadState* __tstate = wxPyBeginAllowThreads();
37841 (arg1)->SetTextForeground((wxColour const &)*arg2);
37842 wxPyEndAllowThreads(__tstate);
37843 if (PyErr_Occurred()) SWIG_fail;
37844 }
37845 resultobj = SWIG_Py_Void();
37846 return resultobj;
37847fail:
37848 return NULL;
37849}
37850
37851
37852SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37853 PyObject *resultobj = 0;
37854 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37855 wxColour *arg2 = 0 ;
37856 void *argp1 = 0 ;
37857 int res1 = 0 ;
37858 wxColour temp2 ;
37859 PyObject * obj0 = 0 ;
37860 PyObject * obj1 = 0 ;
37861 char * kwnames[] = {
37862 (char *) "self",(char *) "colour", NULL
37863 };
37864
37865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37867 if (!SWIG_IsOK(res1)) {
37868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37869 }
37870 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37871 {
37872 arg2 = &temp2;
37873 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
37874 }
37875 {
37876 PyThreadState* __tstate = wxPyBeginAllowThreads();
37877 (arg1)->SetTextBackground((wxColour const &)*arg2);
37878 wxPyEndAllowThreads(__tstate);
37879 if (PyErr_Occurred()) SWIG_fail;
37880 }
37881 resultobj = SWIG_Py_Void();
37882 return resultobj;
37883fail:
37884 return NULL;
37885}
37886
37887
37888SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37889 PyObject *resultobj = 0;
37890 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37891 int arg2 ;
37892 void *argp1 = 0 ;
37893 int res1 = 0 ;
37894 int val2 ;
37895 int ecode2 = 0 ;
37896 PyObject * obj0 = 0 ;
37897 PyObject * obj1 = 0 ;
37898 char * kwnames[] = {
37899 (char *) "self",(char *) "function", NULL
37900 };
37901
37902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
37903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37904 if (!SWIG_IsOK(res1)) {
37905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37906 }
37907 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37908 ecode2 = SWIG_AsVal_int(obj1, &val2);
37909 if (!SWIG_IsOK(ecode2)) {
37910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
37911 }
37912 arg2 = static_cast< int >(val2);
37913 {
37914 PyThreadState* __tstate = wxPyBeginAllowThreads();
37915 (arg1)->SetLogicalFunction(arg2);
37916 wxPyEndAllowThreads(__tstate);
37917 if (PyErr_Occurred()) SWIG_fail;
37918 }
37919 resultobj = SWIG_Py_Void();
37920 return resultobj;
37921fail:
37922 return NULL;
37923}
37924
37925
37926SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37927 PyObject *obj;
37928 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37929 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
37930 return SWIG_Py_Void();
37931}
37932
37933SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37934 return SWIG_Python_InitShadowInstance(args);
37935}
37936
37937static PyMethodDef SwigMethods[] = {
37938 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
37939 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
37940 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
37941 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
37942 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
37943 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
37944 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
37945 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
37946 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
37947 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
37948 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
37949 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 37950 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 37951 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
37952 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
37953 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
37954 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
37955 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
37956 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
37957 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
37958 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 37959 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
37960 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
37961 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
37962 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
37963 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
37964 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
37965 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
37966 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
37967 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 37968 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
37969 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
37970 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
37971 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
37972 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
37973 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
37974 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
37975 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
37976 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
37977 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 37978 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
37979 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
37980 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
37981 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
37982 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
37983 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
37984 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
37985 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
37986 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
37987 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
37988 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
37989 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
37990 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
37991 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
37992 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
37993 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
37994 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
37995 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
37996 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
37997 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
37998 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
37999 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38000 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38001 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38002 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38003 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38004 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38005 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38006 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38007 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38008 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38009 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38010 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38011 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38012 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38013 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38014 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38015 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38016 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38017 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38018 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38019 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38020 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38021 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38022 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38023 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38024 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38025 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38026 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38027 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38028 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38029 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38030 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38031 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38032 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38033 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38034 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38035 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38036 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38037 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38038 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38039 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38040 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38041 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38042 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38043 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38044 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38045 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38046 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38047 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38048 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38049 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38050 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38051 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38052 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38053 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38054 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38055 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38056 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38057 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38058 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38059 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38060 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38061 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38062 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38063 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38064 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38065 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38066 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38067 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38068 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38069 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38070 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38071 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38072 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38073 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38074 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38075 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38076 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38077 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38078 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38079 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38080 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38081 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38082 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38083 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38084 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38085 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38086 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38087 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38088 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38089 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38090 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38091 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38092 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38093 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38094 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38095 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38096 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38097 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38098 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38099 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38100 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38101 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38102 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38103 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38104 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38105 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38106 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38107 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38108 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38109 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38110 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38111 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38112 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38113 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38114 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38115 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38116 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38117 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38118 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38119 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38120 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38121 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38122 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38123 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38124 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38125 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38126 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38127 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38128 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38129 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38130 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38131 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38132 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38133 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38134 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38135 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38136 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38137 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38138 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38139 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38140 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38141 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38142 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38143 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38144 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38145 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38146 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38147 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38148 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38149 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38150 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38151 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38152 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38153 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38154 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38155 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38156 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38157 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38158 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38159 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38160 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38161 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38162 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38163 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38164 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38165 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38166 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38167 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38168 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38169 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38170 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38171 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38172 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38173 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38174 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38175 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38176 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38177 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38178 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38179 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38180 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38181 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38182 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38183 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38184 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38185 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38186 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38187 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38188 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38189 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38190 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38191 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38192 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38193 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38194 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38195 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38196 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38197 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38198 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38199 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38200 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38201 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38202 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38203 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38204 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38205 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38206 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38207 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38208 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38209 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38210 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38211 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38212 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38213 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38214 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38215 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38216 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38217 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38218 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38219 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38220 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38221 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38222 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38223 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38224 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38225 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38226 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38227 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38228 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38229 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38230 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38231 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38232 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38233 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38234 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38235 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38236 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38237 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38238 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38239 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38240 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38241 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38242 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38243 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38244 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38245 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38246 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38247 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38248 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38249 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38250 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38251 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38252 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38253 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38254 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38255 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38256 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38257 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38258 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38259 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38260 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38261 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38262 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38263 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38264 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38265 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38266 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38267 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38268 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38269 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38270 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38271 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38272 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38273 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38274 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38275 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38276 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38277 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38278 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38279 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38280 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38281 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38282 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38283 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38284 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38285 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38286 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38287 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38288 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38289 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38290 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38291 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38292 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38293 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38294 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38295 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38296 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38297 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38298 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38299 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38300 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38301 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38302 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38303 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38304 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38305 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38306 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38307 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38308 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38309 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38310 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38311 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38312 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38313 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38314 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38315 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38316 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38317 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38318 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38319 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38320 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38321 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38322 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38323 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38324 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38325 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38326 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38327 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38328 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38329 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38330 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38331 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38332 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38333 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38334 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38335 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38336 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38337 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38338 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38339 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38340 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38341 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38342 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38343 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38344 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38345 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38346 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38347 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38348 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38349 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38350 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38351 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38352 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38353 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38354 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38355 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38356 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38357 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38358 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38359 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38360 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38361 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38362 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38363 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38364 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38365 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38366 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38367 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38368 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38369 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38370 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38371 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38373 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38374 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38375 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38376 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38377 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38378 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38379 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38380 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38381 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38382 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38383 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38384 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38385 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38386 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38387 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38388 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38389 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38390 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38391 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38392 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38393 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38394 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38395 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38396 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38397 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38398 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38400 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38401 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38402 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38403 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38404 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38405 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38406 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38407 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38408 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38409 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38410 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38411 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38412 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38413 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38414 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38415 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38416 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38417 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
38418 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38419 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38420 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38421 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38422 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38423 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38424 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38425 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38426 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38427 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38428 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38429 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38430 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38431 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38432 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38433 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38434 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38435 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38436 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38437 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38438 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38439 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38440 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38441 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38442 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38443 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38444 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38445 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38446 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38447 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38448 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38449 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38450 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38451 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38452 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
38453 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38454 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38455 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38456 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38457 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38458 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38459 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38460 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38461 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38462 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38463 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38464 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38465 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38466 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38467 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38468 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38469 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38470 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38471 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38472 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38473 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38474 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38475 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38476 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38477 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
8e99bda9 38478 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38479 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38482 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38483 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38484 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38485 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38486 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38487 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38488 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
38489 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38490 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38491 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38492 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38494 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38495 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38496 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38497 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
38498 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38499 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38500 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
38501 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38502 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38503 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38504 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38505 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38506 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38507 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38508 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 38509 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38510 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38512 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38513 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38514 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38515 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38516 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38517 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38518 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38519 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38520 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38521 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 38522 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
38523 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
38524 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
38525 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
38526 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
38527 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38528 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38529 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
38531 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38532 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38533 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38534 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38535 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
38536 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38537 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38538 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38539 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38540 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38541 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38542 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38543 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38544 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38545 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38546 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38547 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38548 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38549 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38550 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38551 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38552 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38553 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
72ef6efb 38554 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
38555 { (char *)"GraphicsPath_Clone", (PyCFunction)_wrap_GraphicsPath_Clone, METH_O, NULL},
38556 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38557 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38558 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38559 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38560 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38561 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 38562 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
38563 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38564 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38565 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38566 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
38567 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38568 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38569 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38570 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38571 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38573 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 38574 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38575 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38576 { (char *)"GraphicsMatrix_Clone", (PyCFunction)_wrap_GraphicsMatrix_Clone, METH_O, NULL},
38577 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38581 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38582 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38583 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38584 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38585 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38586 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38588 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38589 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
72ef6efb 38590 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
38591 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
38592 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38593 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38594 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
38595 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38596 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38597 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38598 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38599 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38600 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38601 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38602 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 38603 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38604 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
38605 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38606 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
38607 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
38610 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38611 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38612 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
38613 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38614 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38615 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
38616 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38617 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 38618 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38619 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38624 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 38625 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38626 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38627 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38628 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38630 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 38631 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38632 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
38633 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
38634 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
38635 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
38636 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38637 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
38638 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38639 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38640 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38641 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38642 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38643 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38644 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
72ef6efb
RD
38645 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
38647 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
38648 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38649 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
38650 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
38651 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
38652 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
38653 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
38654 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
38655 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
38656 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
38657 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
38658 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
38659 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
38660 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38661 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
38662 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
38663 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
38665 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38666 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38667 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
38671 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
38673 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38674 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
38675 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
38676 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
38677 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
38678 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
38679 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
38680 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
38686 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
38687 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
38688 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
38689 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
38690 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 38691 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 38692 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 38693 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 38694 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 38695 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 38696 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 38697 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 38698 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
38699 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
38703 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
38704 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
38705 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
38710 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
38711 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
38712 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
38713 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
38714 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
38715 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
38716 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
38717 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
38718 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
38719 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
38720 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
38721 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38725 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
38730 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
38731 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
38733 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
38734 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
38735 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
38736 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
38737 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
38738 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
38739 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
38740 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
38741 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
38742 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
38743 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
38744 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
38745 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
38746 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
38747 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
38748 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
38749 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
38750 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
38751 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
38752 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
38753 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
38754 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
38755 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38756 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
38757 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
38758 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
38759 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
38760 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
38761 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
38762 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
38763 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
38764 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
38765 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38766 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
38769 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
38771 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
38773 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38774 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
38776 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
38777 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
38778 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38779 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
38780 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
38781 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
38782 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
38783 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
38784 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
38785 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
38786 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
38787 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
38790 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38791 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
38792 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
38793 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
38794 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38795 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
38797 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38802 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38805 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38806 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38809 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38811 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38812 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38813 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38814 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38816 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38818 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38824 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38826 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38827 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38829 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38831 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38833 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38835 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
38840 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38841 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38848 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
38850 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38851 { NULL, NULL, 0, NULL }
38852};
38853
38854
38855/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
38856
72ef6efb
RD
38857static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
38858 return (void *)((wxClientDC *) ((wxPaintDC *) x));
38859}
8e99bda9
RD
38860static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
38861 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
38862}
38863static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
38864 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
38865}
72ef6efb
RD
38866static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
38867 return (void *)((wxWindowDC *) ((wxClientDC *) x));
38868}
38869static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
38870 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
38871}
fc46b7f3
RD
38872static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
38873 return (void *)((wxLocale *) ((wxPyLocale *) x));
38874}
70d7cb34
RD
38875static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
38876 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
38877}
38878static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
38879 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
38880}
38881static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
38882 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
38883}
38884static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
38885 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
38886}
38887static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
38888 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
38889}
38890static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
38891 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
38892}
1bd55598
RD
38893static void *_p_wxIconTo_p_wxGDIObject(void *x) {
38894 return (void *)((wxGDIObject *) ((wxIcon *) x));
38895}
38896static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
38897 return (void *)((wxGDIObject *) ((wxPalette *) x));
38898}
38899static void *_p_wxPenTo_p_wxGDIObject(void *x) {
38900 return (void *)((wxGDIObject *) ((wxPen *) x));
38901}
38902static void *_p_wxFontTo_p_wxGDIObject(void *x) {
38903 return (void *)((wxGDIObject *) ((wxFont *) x));
38904}
38905static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
38906 return (void *)((wxGDIObject *) ((wxCursor *) x));
38907}
38908static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
38909 return (void *)((wxGDIObject *) ((wxBitmap *) x));
38910}
38911static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
38912 return (void *)((wxGDIObject *) ((wxRegion *) x));
38913}
38914static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
38915 return (void *)((wxGDIObject *) ((wxBrush *) x));
38916}
72ef6efb
RD
38917static void *_p_wxGCDCTo_p_wxDC(void *x) {
38918 return (void *)((wxDC *) ((wxGCDC *) x));
38919}
1bd55598
RD
38920static void *_p_wxScreenDCTo_p_wxDC(void *x) {
38921 return (void *)((wxDC *) ((wxScreenDC *) x));
38922}
24f6c4e8
RD
38923static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
38924 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
38925}
1bd55598
RD
38926static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
38927 return (void *)((wxDC *) ((wxMirrorDC *) x));
38928}
38929static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
38930 return (void *)((wxDC *) ((wxMemoryDC *) x));
38931}
38932static void *_p_wxWindowDCTo_p_wxDC(void *x) {
38933 return (void *)((wxDC *) ((wxWindowDC *) x));
38934}
38935static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
38936 return (void *)((wxDC *) ((wxMetaFileDC *) x));
38937}
1bd55598 38938static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 38939 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
38940}
38941static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 38942 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 38943}
24f6c4e8
RD
38944static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
38945 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
38946}
38947static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
38948 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
38949}
1bd55598
RD
38950static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
38951 return (void *)((wxDC *) ((wxPostScriptDC *) x));
38952}
38953static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
38954 return (void *)((wxDC *) ((wxPrinterDC *) x));
38955}
da91cb0f
RD
38956static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
38957 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
38958}
38959static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
38960 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
38961}
38962static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
38963 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
38964}
1bd55598
RD
38965static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
38966 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
38967}
38968static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
38969 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
38970}
38971static void *_p_wxPenTo_p_wxObject(void *x) {
38972 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
38973}
38974static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
38975 return (void *)((wxObject *) ((wxRegionIterator *) x));
38976}
1bd55598
RD
38977static void *_p_wxSizerItemTo_p_wxObject(void *x) {
38978 return (void *)((wxObject *) ((wxSizerItem *) x));
38979}
34e0a3bb
RD
38980static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
38981 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
38982}
1bd55598
RD
38983static void *_p_wxScrollEventTo_p_wxObject(void *x) {
38984 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
38985}
38986static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
38987 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
38988}
38989static void *_p_wxIconTo_p_wxObject(void *x) {
38990 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
38991}
38992static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
38993 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
38994}
38995static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
38996 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
38997}
38998static void *_p_wxSizerTo_p_wxObject(void *x) {
38999 return (void *)((wxObject *) ((wxSizer *) x));
39000}
39001static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39002 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39003}
39004static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39005 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39006}
1bd55598
RD
39007static void *_p_wxEventTo_p_wxObject(void *x) {
39008 return (void *)((wxObject *) ((wxEvent *) x));
39009}
39010static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39011 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39012}
39013static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39014 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39015}
39016static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39017 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39018}
27e45892
RD
39019static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39020 return (void *)((wxObject *) ((wxPseudoDC *) x));
39021}
2131d850
RD
39022static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39023 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39024}
1bd55598
RD
39025static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39026 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39027}
39028static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39029 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39030}
39031static void *_p_wxDCTo_p_wxObject(void *x) {
39032 return (void *)((wxObject *) ((wxDC *) x));
39033}
39034static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39035 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39036}
39037static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39038 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39039}
39040static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39041 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39042}
39043static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39044 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39045}
39046static void *_p_wxControlTo_p_wxObject(void *x) {
39047 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39048}
70d7cb34
RD
39049static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39050 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39051}
1bd55598
RD
39052static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39053 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39054}
39055static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39056 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39057}
39058static void *_p_wxFSFileTo_p_wxObject(void *x) {
39059 return (void *)((wxObject *) ((wxFSFile *) x));
39060}
39061static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39062 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
39063}
39064static void *_p_wxRegionTo_p_wxObject(void *x) {
39065 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39066}
39067static void *_p_wxPySizerTo_p_wxObject(void *x) {
39068 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39069}
39070static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39071 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39072}
39073static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39074 return (void *)((wxObject *) ((wxGDIObject *) x));
39075}
70d7cb34
RD
39076static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39077 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39078}
39079static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39080 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39081}
1bd55598
RD
39082static void *_p_wxEffectsTo_p_wxObject(void *x) {
39083 return (void *)((wxObject *) ((wxEffects *) x));
39084}
39085static void *_p_wxPyEventTo_p_wxObject(void *x) {
39086 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39087}
39088static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39089 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39090}
39091static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39092 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39093}
70d7cb34
RD
39094static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39095 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39096}
1bd55598
RD
39097static void *_p_wxShowEventTo_p_wxObject(void *x) {
39098 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39099}
39100static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39101 return (void *)((wxObject *) ((wxMenuItem *) x));
39102}
39103static void *_p_wxDateEventTo_p_wxObject(void *x) {
39104 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39105}
39106static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39107 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39108}
39109static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39110 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39111}
39112static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39113 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39114}
39115static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39116 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39117}
39118static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39119 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39120}
39121static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39122 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39123}
39124static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39125 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39126}
39127static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39128 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39129}
39130static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39131 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39132}
39133static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39134 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39135}
39136static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39137 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39138}
39139static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39140 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39141}
39142static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39143 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39144}
39145static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39146 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39147}
39148static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39149 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39150}
39151static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39152 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39153}
39154static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39155 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39156}
39157static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39158 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39159}
39160static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39161 return (void *)((wxObject *) ((wxImageHandler *) x));
39162}
39163static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39164 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39165}
39166static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39167 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39168}
39169static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39170 return (void *)((wxObject *) ((wxEvtHandler *) x));
39171}
34e0a3bb
RD
39172static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39173 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39174}
24f6c4e8
RD
39175static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39176 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39177}
1bd55598 39178static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 39179 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 39180}
24f6c4e8
RD
39181static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39182 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
39183}
39184static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39185 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39186}
39187static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39188 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39189}
39190static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39191 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39192}
39193static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39194 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39195}
39196static void *_p_wxImageTo_p_wxObject(void *x) {
39197 return (void *)((wxObject *) ((wxImage *) x));
39198}
39199static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39200 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39201}
70d7cb34
RD
39202static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39203 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39204}
39205static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39206 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39207}
1bd55598
RD
39208static void *_p_wxPaletteTo_p_wxObject(void *x) {
39209 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39210}
39211static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 39212 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
39213}
39214static void *_p_wxImageListTo_p_wxObject(void *x) {
39215 return (void *)((wxObject *) ((wxImageList *) x));
39216}
72ef6efb
RD
39217static void *_p_wxGCDCTo_p_wxObject(void *x) {
39218 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39219}
1bd55598
RD
39220static void *_p_wxCursorTo_p_wxObject(void *x) {
39221 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39222}
39223static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39224 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39225}
39226static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39227 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39228}
70d7cb34
RD
39229static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39230 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39231}
1bd55598
RD
39232static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39233 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39234}
39235static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39236 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39237}
39238static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39239 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39240}
39241static void *_p_wxWindowTo_p_wxObject(void *x) {
39242 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39243}
39244static void *_p_wxMenuTo_p_wxObject(void *x) {
39245 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39246}
39247static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39248 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39249}
39250static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39251 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39252}
1bd55598
RD
39253static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39254 return (void *)((wxObject *) ((wxFileSystem *) x));
39255}
39256static void *_p_wxBitmapTo_p_wxObject(void *x) {
39257 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39258}
39259static void *_p_wxMaskTo_p_wxObject(void *x) {
39260 return (void *)((wxObject *) ((wxMask *) x));
39261}
70d7cb34
RD
39262static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39263 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39264}
1bd55598
RD
39265static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39266 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39267}
39268static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39269 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39270}
39271static void *_p_wxPyAppTo_p_wxObject(void *x) {
39272 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39273}
39274static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39275 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39276}
39277static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39278 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39279}
39280static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39281 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39282}
39283static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39284 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39285}
39286static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39287 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39288}
39289static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39290 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39291}
39292static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39293 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39294}
39295static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39296 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39297}
39298static void *_p_wxFontTo_p_wxObject(void *x) {
39299 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39300}
39301static void *_p_wxBrushTo_p_wxObject(void *x) {
39302 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39303}
39304static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39305 return (void *)((wxObject *) ((wxMetaFile *) x));
39306}
39307static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39308 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39309}
39310static void *_p_wxColourTo_p_wxObject(void *x) {
39311 return (void *)((wxObject *) ((wxColour *) x));
39312}
1bd55598
RD
39313static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39314 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39315}
39316static void *_p_wxValidatorTo_p_wxObject(void *x) {
39317 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39318}
39319static void *_p_wxControlTo_p_wxWindow(void *x) {
39320 return (void *)((wxWindow *) ((wxControl *) x));
39321}
39322static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39323 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39324}
39325static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39326 return (void *)((wxWindow *) ((wxMenuBar *) x));
39327}
fc46b7f3
RD
39328static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39329 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39330}
39331static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39332 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39333}
39334static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 39335static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39336static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39337static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39338static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39339static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39340static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39341static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39342static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39343static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39344static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39345static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
39346static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39347static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39348static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39349static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39350static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39351static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598 39352static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39353static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
1bd55598
RD
39354static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39355static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39356static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39357static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39358static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39359static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39360static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39361static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39362static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
39363static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39364static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39365static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39366static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39367static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39368static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39369static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39370static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 39371static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 39372static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39373static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39374static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39375static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39376static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39377static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39378static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39379static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39380static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39381static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
39382static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39383static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39384static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39385static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39386static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39387static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39388static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39389static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39390static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39391static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39392static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39393static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39394static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39395static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39396static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39397static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
39398static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39399static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 39400static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39401static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
39402static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39403static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39404static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39405static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39406static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39407static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39408static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39409static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39410static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39411static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39412static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39413static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39414static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
39415static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39416static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39417static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39418static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39419static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39420static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39421static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39422static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39423static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39424static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39425static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39426static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39427static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39428static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39429static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39430static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39431static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39432static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39433static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39434static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39435static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39436static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39437static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598 39438static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
39439static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39440static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39441static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39442static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39443static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39444static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 39445static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 39446static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 39447static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 39448static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
39449static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39450static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39451static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 39452static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
39453static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
39454static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
39455static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39456static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39457static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39458static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39459static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39460static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39461static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39462static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39463static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39464static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39465static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39466static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39467static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39468static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39469static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39470static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39471static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39472static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39473static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39474static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 39475static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
39476static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39477static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39478static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39479static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39480static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 39481static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 39482static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 39483static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 39484static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39485static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39486static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39487static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 39488static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 39489static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 39490static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 39491static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 39492static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39493static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39494static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39495static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39496static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39497static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39498static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39499static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 39500static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
39501static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39502static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39503static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39504
39505static swig_type_info *swig_type_initial[] = {
fc46b7f3 39506 &_swigt__p_buffer,
1bd55598
RD
39507 &_swigt__p_char,
39508 &_swigt__p_double,
39509 &_swigt__p_form_ops_t,
39510 &_swigt__p_int,
39511 &_swigt__p_unsigned_char,
39512 &_swigt__p_unsigned_int,
39513 &_swigt__p_unsigned_long,
0a27f394 39514 &_swigt__p_void,
1bd55598
RD
39515 &_swigt__p_wxANIHandler,
39516 &_swigt__p_wxAcceleratorTable,
39517 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
39518 &_swigt__p_wxAlphaPixelData,
39519 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 39520 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
39521 &_swigt__p_wxBMPHandler,
39522 &_swigt__p_wxBitmap,
39523 &_swigt__p_wxBoxSizer,
39524 &_swigt__p_wxBrush,
39525 &_swigt__p_wxBrushList,
39526 &_swigt__p_wxBufferedDC,
39527 &_swigt__p_wxBufferedPaintDC,
39528 &_swigt__p_wxCURHandler,
fc46b7f3 39529 &_swigt__p_wxChar,
1bd55598
RD
39530 &_swigt__p_wxChildFocusEvent,
39531 &_swigt__p_wxClientDC,
2131d850 39532 &_swigt__p_wxClipboardTextEvent,
1bd55598 39533 &_swigt__p_wxCloseEvent,
72ef6efb 39534 &_swigt__p_wxColor,
1bd55598
RD
39535 &_swigt__p_wxColour,
39536 &_swigt__p_wxColourDatabase,
39537 &_swigt__p_wxCommandEvent,
39538 &_swigt__p_wxContextMenuEvent,
39539 &_swigt__p_wxControl,
39540 &_swigt__p_wxControlWithItems,
39541 &_swigt__p_wxCursor,
39542 &_swigt__p_wxDC,
70d7cb34
RD
39543 &_swigt__p_wxDCBrushChanger,
39544 &_swigt__p_wxDCClipper,
b39fe951 39545 &_swigt__p_wxDCOverlay,
70d7cb34
RD
39546 &_swigt__p_wxDCPenChanger,
39547 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
39548 &_swigt__p_wxDash,
39549 &_swigt__p_wxDateEvent,
39550 &_swigt__p_wxDisplayChangedEvent,
39551 &_swigt__p_wxDropFilesEvent,
39552 &_swigt__p_wxDuplexMode,
39553 &_swigt__p_wxEffects,
39554 &_swigt__p_wxEncodingConverter,
39555 &_swigt__p_wxEraseEvent,
39556 &_swigt__p_wxEvent,
39557 &_swigt__p_wxEvtHandler,
39558 &_swigt__p_wxFSFile,
39559 &_swigt__p_wxFileSystem,
39560 &_swigt__p_wxFlexGridSizer,
39561 &_swigt__p_wxFocusEvent,
39562 &_swigt__p_wxFont,
39563 &_swigt__p_wxFontList,
39564 &_swigt__p_wxFontMapper,
39565 &_swigt__p_wxGBSizerItem,
72ef6efb 39566 &_swigt__p_wxGCDC,
da91cb0f 39567 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
39568 &_swigt__p_wxGDIObject,
39569 &_swigt__p_wxGIFHandler,
70d7cb34 39570 &_swigt__p_wxGraphicsBrush,
72ef6efb 39571 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
39572 &_swigt__p_wxGraphicsFont,
39573 &_swigt__p_wxGraphicsMatrix,
39574 &_swigt__p_wxGraphicsObject,
72ef6efb 39575 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
39576 &_swigt__p_wxGraphicsPen,
39577 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
39578 &_swigt__p_wxGridBagSizer,
39579 &_swigt__p_wxGridSizer,
33d6fd3b 39580 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
39581 &_swigt__p_wxICOHandler,
39582 &_swigt__p_wxIcon,
39583 &_swigt__p_wxIconBundle,
39584 &_swigt__p_wxIconLocation,
39585 &_swigt__p_wxIconizeEvent,
39586 &_swigt__p_wxIdleEvent,
39587 &_swigt__p_wxImage,
39588 &_swigt__p_wxImageHandler,
39589 &_swigt__p_wxImageList,
39590 &_swigt__p_wxIndividualLayoutConstraint,
39591 &_swigt__p_wxInitDialogEvent,
39592 &_swigt__p_wxJPEGHandler,
39593 &_swigt__p_wxKeyEvent,
39594 &_swigt__p_wxLanguageInfo,
39595 &_swigt__p_wxLayoutConstraints,
39596 &_swigt__p_wxLocale,
39597 &_swigt__p_wxMask,
39598 &_swigt__p_wxMaximizeEvent,
39599 &_swigt__p_wxMemoryDC,
39600 &_swigt__p_wxMenu,
39601 &_swigt__p_wxMenuBar,
39602 &_swigt__p_wxMenuEvent,
39603 &_swigt__p_wxMenuItem,
39604 &_swigt__p_wxMetaFile,
39605 &_swigt__p_wxMetaFileDC,
39606 &_swigt__p_wxMirrorDC,
39607 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 39608 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
39609 &_swigt__p_wxMouseEvent,
39610 &_swigt__p_wxMoveEvent,
39611 &_swigt__p_wxNativeEncodingInfo,
39612 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
39613 &_swigt__p_wxNativePixelData,
39614 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
39615 &_swigt__p_wxNavigationKeyEvent,
39616 &_swigt__p_wxNcPaintEvent,
39617 &_swigt__p_wxNotifyEvent,
39618 &_swigt__p_wxObject,
b39fe951 39619 &_swigt__p_wxOverlay,
1bd55598
RD
39620 &_swigt__p_wxPCXHandler,
39621 &_swigt__p_wxPNGHandler,
39622 &_swigt__p_wxPNMHandler,
39623 &_swigt__p_wxPaintDC,
39624 &_swigt__p_wxPaintEvent,
39625 &_swigt__p_wxPalette,
39626 &_swigt__p_wxPaletteChangedEvent,
39627 &_swigt__p_wxPaperSize,
39628 &_swigt__p_wxPen,
39629 &_swigt__p_wxPenList,
fc46b7f3 39630 &_swigt__p_wxPixelDataBase,
1bd55598 39631 &_swigt__p_wxPoint,
72ef6efb 39632 &_swigt__p_wxPoint2D,
70d7cb34 39633 &_swigt__p_wxPoint2DDouble,
1bd55598
RD
39634 &_swigt__p_wxPostScriptDC,
39635 &_swigt__p_wxPrintData,
39636 &_swigt__p_wxPrinterDC,
27e45892 39637 &_swigt__p_wxPseudoDC,
1bd55598
RD
39638 &_swigt__p_wxPyApp,
39639 &_swigt__p_wxPyCommandEvent,
39640 &_swigt__p_wxPyEvent,
39641 &_swigt__p_wxPyFontEnumerator,
39642 &_swigt__p_wxPyImageHandler,
fc46b7f3 39643 &_swigt__p_wxPyLocale,
1bd55598
RD
39644 &_swigt__p_wxPySizer,
39645 &_swigt__p_wxPyValidator,
39646 &_swigt__p_wxQueryNewPaletteEvent,
39647 &_swigt__p_wxRect,
70d7cb34 39648 &_swigt__p_wxRect2DDouble,
1bd55598
RD
39649 &_swigt__p_wxRegion,
39650 &_swigt__p_wxRegionIterator,
39651 &_swigt__p_wxRendererNative,
39652 &_swigt__p_wxRendererVersion,
39653 &_swigt__p_wxScreenDC,
39654 &_swigt__p_wxScrollEvent,
39655 &_swigt__p_wxScrollWinEvent,
39656 &_swigt__p_wxSetCursorEvent,
39657 &_swigt__p_wxShowEvent,
39658 &_swigt__p_wxSize,
39659 &_swigt__p_wxSizeEvent,
39660 &_swigt__p_wxSizer,
39661 &_swigt__p_wxSizerItem,
39662 &_swigt__p_wxSplitterRenderParams,
39663 &_swigt__p_wxStaticBoxSizer,
39664 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 39665 &_swigt__p_wxStockGDI,
1bd55598
RD
39666 &_swigt__p_wxString,
39667 &_swigt__p_wxSysColourChangedEvent,
39668 &_swigt__p_wxTIFFHandler,
39669 &_swigt__p_wxUpdateUIEvent,
39670 &_swigt__p_wxValidator,
39671 &_swigt__p_wxWindow,
39672 &_swigt__p_wxWindowCreateEvent,
39673 &_swigt__p_wxWindowDC,
39674 &_swigt__p_wxWindowDestroyEvent,
39675 &_swigt__p_wxXPMHandler,
39676};
39677
fc46b7f3 39678static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39679static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
39680static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
39681static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
39682static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
39683static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
39684static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
39685static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 39686static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
39687static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
39688static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 39689static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39690static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
39691static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
39692static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
39693static 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}};
39694static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39695static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
39696static 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}};
39697static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39698static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
39699static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
39700static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 39701static 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
39702static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
39703static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 39704static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39705static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
39706static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39707static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
39708static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
39709static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
39710static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
39711static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
39712static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
39713static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39714static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 39715static 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 39716static 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 39717static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39718static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39719static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
39720static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
39721static 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 39722static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39723static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
39724static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 39725static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39726static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
39727static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
39728static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
39729static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
39730static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
39731static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39732static 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 39733static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 39734static 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
39735static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
39736static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
39737static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
39738static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
39739static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
39740static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
39741static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 39742static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 39743static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 39744static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39745static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
39746static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
39747static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39748static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39749static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
39750static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
39751static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
39752static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
39753static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
39754static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39755static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39756static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 39757static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39758static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39759static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39760static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39761static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39762static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39763static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39764static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
39765static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
39766static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
39767static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
39768static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
39769static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
39770static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
39771static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
39772static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
39773static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
39774static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
39775static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
39776static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39777static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39778static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39779static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
39780static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 39781static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39782static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
39783static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
39784static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
39785static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
39786static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
39787static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 39788static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39789static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 39790static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 39791static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39792static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
39793static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
39794static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 39795static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39796static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
39797static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
39798static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
39799static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
39800static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
39801static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
39802static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
39803static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
39804static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
39805static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
39806static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
39807static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
39808static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
39809static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
39810static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
39811static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
39812static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
39813static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
39814static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
39815static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
39816static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
39817static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 39818static 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_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_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_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 39819static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39820static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
39821static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
39822static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
39823static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
39824static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39825static 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 39826static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39827static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 39828static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39829static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
39830static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
39831static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 39832static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 39833static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39834static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 39835static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 39836static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39837static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
39838static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
39839static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
39840static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
39841static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
39842static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
39843static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 39844static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39845static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
39846static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
72ef6efb 39847static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
39848
39849static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 39850 _swigc__p_buffer,
1bd55598
RD
39851 _swigc__p_char,
39852 _swigc__p_double,
39853 _swigc__p_form_ops_t,
39854 _swigc__p_int,
39855 _swigc__p_unsigned_char,
39856 _swigc__p_unsigned_int,
39857 _swigc__p_unsigned_long,
0a27f394 39858 _swigc__p_void,
1bd55598
RD
39859 _swigc__p_wxANIHandler,
39860 _swigc__p_wxAcceleratorTable,
39861 _swigc__p_wxActivateEvent,
fc46b7f3
RD
39862 _swigc__p_wxAlphaPixelData,
39863 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 39864 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
39865 _swigc__p_wxBMPHandler,
39866 _swigc__p_wxBitmap,
39867 _swigc__p_wxBoxSizer,
39868 _swigc__p_wxBrush,
39869 _swigc__p_wxBrushList,
39870 _swigc__p_wxBufferedDC,
39871 _swigc__p_wxBufferedPaintDC,
39872 _swigc__p_wxCURHandler,
fc46b7f3 39873 _swigc__p_wxChar,
1bd55598
RD
39874 _swigc__p_wxChildFocusEvent,
39875 _swigc__p_wxClientDC,
2131d850 39876 _swigc__p_wxClipboardTextEvent,
1bd55598 39877 _swigc__p_wxCloseEvent,
72ef6efb 39878 _swigc__p_wxColor,
1bd55598
RD
39879 _swigc__p_wxColour,
39880 _swigc__p_wxColourDatabase,
39881 _swigc__p_wxCommandEvent,
39882 _swigc__p_wxContextMenuEvent,
39883 _swigc__p_wxControl,
39884 _swigc__p_wxControlWithItems,
39885 _swigc__p_wxCursor,
39886 _swigc__p_wxDC,
70d7cb34
RD
39887 _swigc__p_wxDCBrushChanger,
39888 _swigc__p_wxDCClipper,
b39fe951 39889 _swigc__p_wxDCOverlay,
70d7cb34
RD
39890 _swigc__p_wxDCPenChanger,
39891 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
39892 _swigc__p_wxDash,
39893 _swigc__p_wxDateEvent,
39894 _swigc__p_wxDisplayChangedEvent,
39895 _swigc__p_wxDropFilesEvent,
39896 _swigc__p_wxDuplexMode,
39897 _swigc__p_wxEffects,
39898 _swigc__p_wxEncodingConverter,
39899 _swigc__p_wxEraseEvent,
39900 _swigc__p_wxEvent,
39901 _swigc__p_wxEvtHandler,
39902 _swigc__p_wxFSFile,
39903 _swigc__p_wxFileSystem,
39904 _swigc__p_wxFlexGridSizer,
39905 _swigc__p_wxFocusEvent,
39906 _swigc__p_wxFont,
39907 _swigc__p_wxFontList,
39908 _swigc__p_wxFontMapper,
39909 _swigc__p_wxGBSizerItem,
72ef6efb 39910 _swigc__p_wxGCDC,
da91cb0f 39911 _swigc__p_wxGDIObjListBase,
1bd55598
RD
39912 _swigc__p_wxGDIObject,
39913 _swigc__p_wxGIFHandler,
70d7cb34 39914 _swigc__p_wxGraphicsBrush,
72ef6efb 39915 _swigc__p_wxGraphicsContext,
70d7cb34
RD
39916 _swigc__p_wxGraphicsFont,
39917 _swigc__p_wxGraphicsMatrix,
39918 _swigc__p_wxGraphicsObject,
72ef6efb 39919 _swigc__p_wxGraphicsPath,
70d7cb34
RD
39920 _swigc__p_wxGraphicsPen,
39921 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
39922 _swigc__p_wxGridBagSizer,
39923 _swigc__p_wxGridSizer,
33d6fd3b 39924 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
39925 _swigc__p_wxICOHandler,
39926 _swigc__p_wxIcon,
39927 _swigc__p_wxIconBundle,
39928 _swigc__p_wxIconLocation,
39929 _swigc__p_wxIconizeEvent,
39930 _swigc__p_wxIdleEvent,
39931 _swigc__p_wxImage,
39932 _swigc__p_wxImageHandler,
39933 _swigc__p_wxImageList,
39934 _swigc__p_wxIndividualLayoutConstraint,
39935 _swigc__p_wxInitDialogEvent,
39936 _swigc__p_wxJPEGHandler,
39937 _swigc__p_wxKeyEvent,
39938 _swigc__p_wxLanguageInfo,
39939 _swigc__p_wxLayoutConstraints,
39940 _swigc__p_wxLocale,
39941 _swigc__p_wxMask,
39942 _swigc__p_wxMaximizeEvent,
39943 _swigc__p_wxMemoryDC,
39944 _swigc__p_wxMenu,
39945 _swigc__p_wxMenuBar,
39946 _swigc__p_wxMenuEvent,
39947 _swigc__p_wxMenuItem,
39948 _swigc__p_wxMetaFile,
39949 _swigc__p_wxMetaFileDC,
39950 _swigc__p_wxMirrorDC,
39951 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 39952 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
39953 _swigc__p_wxMouseEvent,
39954 _swigc__p_wxMoveEvent,
39955 _swigc__p_wxNativeEncodingInfo,
39956 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
39957 _swigc__p_wxNativePixelData,
39958 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
39959 _swigc__p_wxNavigationKeyEvent,
39960 _swigc__p_wxNcPaintEvent,
39961 _swigc__p_wxNotifyEvent,
39962 _swigc__p_wxObject,
b39fe951 39963 _swigc__p_wxOverlay,
1bd55598
RD
39964 _swigc__p_wxPCXHandler,
39965 _swigc__p_wxPNGHandler,
39966 _swigc__p_wxPNMHandler,
39967 _swigc__p_wxPaintDC,
39968 _swigc__p_wxPaintEvent,
39969 _swigc__p_wxPalette,
39970 _swigc__p_wxPaletteChangedEvent,
39971 _swigc__p_wxPaperSize,
39972 _swigc__p_wxPen,
39973 _swigc__p_wxPenList,
fc46b7f3 39974 _swigc__p_wxPixelDataBase,
1bd55598 39975 _swigc__p_wxPoint,
72ef6efb 39976 _swigc__p_wxPoint2D,
70d7cb34 39977 _swigc__p_wxPoint2DDouble,
1bd55598
RD
39978 _swigc__p_wxPostScriptDC,
39979 _swigc__p_wxPrintData,
39980 _swigc__p_wxPrinterDC,
27e45892 39981 _swigc__p_wxPseudoDC,
1bd55598
RD
39982 _swigc__p_wxPyApp,
39983 _swigc__p_wxPyCommandEvent,
39984 _swigc__p_wxPyEvent,
39985 _swigc__p_wxPyFontEnumerator,
39986 _swigc__p_wxPyImageHandler,
fc46b7f3 39987 _swigc__p_wxPyLocale,
1bd55598
RD
39988 _swigc__p_wxPySizer,
39989 _swigc__p_wxPyValidator,
39990 _swigc__p_wxQueryNewPaletteEvent,
39991 _swigc__p_wxRect,
70d7cb34 39992 _swigc__p_wxRect2DDouble,
1bd55598
RD
39993 _swigc__p_wxRegion,
39994 _swigc__p_wxRegionIterator,
39995 _swigc__p_wxRendererNative,
39996 _swigc__p_wxRendererVersion,
39997 _swigc__p_wxScreenDC,
39998 _swigc__p_wxScrollEvent,
39999 _swigc__p_wxScrollWinEvent,
40000 _swigc__p_wxSetCursorEvent,
40001 _swigc__p_wxShowEvent,
40002 _swigc__p_wxSize,
40003 _swigc__p_wxSizeEvent,
40004 _swigc__p_wxSizer,
40005 _swigc__p_wxSizerItem,
40006 _swigc__p_wxSplitterRenderParams,
40007 _swigc__p_wxStaticBoxSizer,
40008 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40009 _swigc__p_wxStockGDI,
1bd55598
RD
40010 _swigc__p_wxString,
40011 _swigc__p_wxSysColourChangedEvent,
40012 _swigc__p_wxTIFFHandler,
40013 _swigc__p_wxUpdateUIEvent,
40014 _swigc__p_wxValidator,
40015 _swigc__p_wxWindow,
40016 _swigc__p_wxWindowCreateEvent,
40017 _swigc__p_wxWindowDC,
40018 _swigc__p_wxWindowDestroyEvent,
40019 _swigc__p_wxXPMHandler,
40020};
40021
40022
40023/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40024
40025static swig_const_info swig_const_table[] = {
40026{0, 0, 0, 0.0, 0, 0}};
40027
40028#ifdef __cplusplus
40029}
40030#endif
40031/* -----------------------------------------------------------------------------
40032 * Type initialization:
40033 * This problem is tough by the requirement that no dynamic
40034 * memory is used. Also, since swig_type_info structures store pointers to
40035 * swig_cast_info structures and swig_cast_info structures store pointers back
40036 * to swig_type_info structures, we need some lookup code at initialization.
40037 * The idea is that swig generates all the structures that are needed.
40038 * The runtime then collects these partially filled structures.
40039 * The SWIG_InitializeModule function takes these initial arrays out of
40040 * swig_module, and does all the lookup, filling in the swig_module.types
40041 * array with the correct data and linking the correct swig_cast_info
40042 * structures together.
40043 *
40044 * The generated swig_type_info structures are assigned staticly to an initial
40045 * array. We just loop though that array, and handle each type individually.
40046 * First we lookup if this type has been already loaded, and if so, use the
40047 * loaded structure instead of the generated one. Then we have to fill in the
40048 * cast linked list. The cast data is initially stored in something like a
40049 * two-dimensional array. Each row corresponds to a type (there are the same
40050 * number of rows as there are in the swig_type_initial array). Each entry in
40051 * a column is one of the swig_cast_info structures for that type.
40052 * The cast_initial array is actually an array of arrays, because each row has
40053 * a variable number of columns. So to actually build the cast linked list,
40054 * we find the array of casts associated with the type, and loop through it
40055 * adding the casts to the list. The one last trick we need to do is making
40056 * sure the type pointer in the swig_cast_info struct is correct.
40057 *
40058 * First off, we lookup the cast->type name to see if it is already loaded.
40059 * There are three cases to handle:
40060 * 1) If the cast->type has already been loaded AND the type we are adding
40061 * casting info to has not been loaded (it is in this module), THEN we
40062 * replace the cast->type pointer with the type pointer that has already
40063 * been loaded.
40064 * 2) If BOTH types (the one we are adding casting info to, and the
40065 * cast->type) are loaded, THEN the cast info has already been loaded by
40066 * the previous module so we just ignore it.
40067 * 3) Finally, if cast->type has not already been loaded, then we add that
40068 * swig_cast_info to the linked list (because the cast->type) pointer will
40069 * be correct.
40070 * ----------------------------------------------------------------------------- */
40071
40072#ifdef __cplusplus
40073extern "C" {
40074#if 0
40075} /* c-mode */
40076#endif
40077#endif
40078
40079#if 0
40080#define SWIGRUNTIME_DEBUG
40081#endif
40082
40083SWIGRUNTIME void
40084SWIG_InitializeModule(void *clientdata) {
40085 size_t i;
40086 swig_module_info *module_head;
40087 static int init_run = 0;
40088
40089 clientdata = clientdata;
40090
40091 if (init_run) return;
40092 init_run = 1;
40093
40094 /* Initialize the swig_module */
40095 swig_module.type_initial = swig_type_initial;
40096 swig_module.cast_initial = swig_cast_initial;
40097
40098 /* Try and load any already created modules */
40099 module_head = SWIG_GetModule(clientdata);
40100 if (module_head) {
40101 swig_module.next = module_head->next;
40102 module_head->next = &swig_module;
40103 } else {
40104 /* This is the first module loaded */
40105 swig_module.next = &swig_module;
40106 SWIG_SetModule(clientdata, &swig_module);
40107 }
40108
40109 /* Now work on filling in swig_module.types */
40110#ifdef SWIGRUNTIME_DEBUG
40111 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40112#endif
40113 for (i = 0; i < swig_module.size; ++i) {
40114 swig_type_info *type = 0;
40115 swig_type_info *ret;
40116 swig_cast_info *cast;
40117
40118#ifdef SWIGRUNTIME_DEBUG
40119 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40120#endif
40121
40122 /* if there is another module already loaded */
40123 if (swig_module.next != &swig_module) {
40124 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40125 }
1bd55598
RD
40126 if (type) {
40127 /* Overwrite clientdata field */
40128#ifdef SWIGRUNTIME_DEBUG
40129 printf("SWIG_InitializeModule: found type %s\n", type->name);
40130#endif
40131 if (swig_module.type_initial[i]->clientdata) {
40132 type->clientdata = swig_module.type_initial[i]->clientdata;
40133#ifdef SWIGRUNTIME_DEBUG
40134 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40135#endif
40136 }
40137 } else {
40138 type = swig_module.type_initial[i];
be9b1dca 40139 }
1bd55598
RD
40140
40141 /* Insert casting types */
40142 cast = swig_module.cast_initial[i];
40143 while (cast->type) {
40144 /* Don't need to add information already in the list */
40145 ret = 0;
40146#ifdef SWIGRUNTIME_DEBUG
40147 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40148#endif
40149 if (swig_module.next != &swig_module) {
40150 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40151#ifdef SWIGRUNTIME_DEBUG
40152 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40153#endif
40154 }
40155 if (ret) {
40156 if (type == swig_module.type_initial[i]) {
40157#ifdef SWIGRUNTIME_DEBUG
40158 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40159#endif
40160 cast->type = ret;
40161 ret = 0;
40162 } else {
40163 /* Check for casting already in the list */
40164 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40165#ifdef SWIGRUNTIME_DEBUG
40166 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40167#endif
40168 if (!ocast) ret = 0;
40169 }
40170 }
40171
40172 if (!ret) {
40173#ifdef SWIGRUNTIME_DEBUG
40174 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40175#endif
40176 if (type->cast) {
40177 type->cast->prev = cast;
40178 cast->next = type->cast;
40179 }
40180 type->cast = cast;
40181 }
40182 cast++;
be9b1dca 40183 }
1bd55598
RD
40184 /* Set entry in modules->types array equal to the type */
40185 swig_module.types[i] = type;
40186 }
40187 swig_module.types[i] = 0;
40188
40189#ifdef SWIGRUNTIME_DEBUG
40190 printf("**** SWIG_InitializeModule: Cast List ******\n");
40191 for (i = 0; i < swig_module.size; ++i) {
40192 int j = 0;
40193 swig_cast_info *cast = swig_module.cast_initial[i];
40194 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40195 while (cast->type) {
40196 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40197 cast++;
40198 ++j;
40199 }
40200 printf("---- Total casts: %d\n",j);
40201 }
40202 printf("**** SWIG_InitializeModule: Cast List ******\n");
40203#endif
40204}
40205
40206/* This function will propagate the clientdata field of type to
40207* any new swig_type_info structures that have been added into the list
40208* of equivalent types. It is like calling
40209* SWIG_TypeClientData(type, clientdata) a second time.
40210*/
40211SWIGRUNTIME void
40212SWIG_PropagateClientData(void) {
40213 size_t i;
40214 swig_cast_info *equiv;
40215 static int init_run = 0;
40216
40217 if (init_run) return;
40218 init_run = 1;
40219
40220 for (i = 0; i < swig_module.size; i++) {
40221 if (swig_module.types[i]->clientdata) {
40222 equiv = swig_module.types[i]->cast;
40223 while (equiv) {
40224 if (!equiv->converter) {
40225 if (equiv->type && !equiv->type->clientdata)
40226 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40227 }
40228 equiv = equiv->next;
40229 }
be9b1dca 40230 }
1bd55598
RD
40231 }
40232}
40233
40234#ifdef __cplusplus
40235#if 0
40236{
40237 /* c-mode */
40238#endif
40239}
40240#endif
40241
40242
40243
40244#ifdef __cplusplus
40245extern "C" {
40246#endif
40247
40248 /* Python-specific SWIG API */
40249#define SWIG_newvarlink() SWIG_Python_newvarlink()
40250#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40251#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40252
40253 /* -----------------------------------------------------------------------------
40254 * global variable support code.
40255 * ----------------------------------------------------------------------------- */
40256
40257 typedef struct swig_globalvar {
40258 char *name; /* Name of global variable */
40259 PyObject *(*get_attr)(void); /* Return the current value */
40260 int (*set_attr)(PyObject *); /* Set the value */
40261 struct swig_globalvar *next;
40262 } swig_globalvar;
40263
40264 typedef struct swig_varlinkobject {
40265 PyObject_HEAD
40266 swig_globalvar *vars;
40267 } swig_varlinkobject;
40268
40269 SWIGINTERN PyObject *
40270 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40271 return PyString_FromString("<Swig global variables>");
40272 }
40273
40274 SWIGINTERN PyObject *
40275 swig_varlink_str(swig_varlinkobject *v) {
40276 PyObject *str = PyString_FromString("(");
40277 swig_globalvar *var;
40278 for (var = v->vars; var; var=var->next) {
40279 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40280 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40281 }
40282 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40283 return str;
40284 }
40285
40286 SWIGINTERN int
40287 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40288 PyObject *str = swig_varlink_str(v);
40289 fprintf(fp,"Swig global variables ");
40290 fprintf(fp,"%s\n", PyString_AsString(str));
40291 Py_DECREF(str);
40292 return 0;
40293 }
40294
40295 SWIGINTERN void
40296 swig_varlink_dealloc(swig_varlinkobject *v) {
40297 swig_globalvar *var = v->vars;
40298 while (var) {
40299 swig_globalvar *n = var->next;
40300 free(var->name);
40301 free(var);
40302 var = n;
be9b1dca 40303 }
1bd55598
RD
40304 }
40305
40306 SWIGINTERN PyObject *
40307 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40308 PyObject *res = NULL;
40309 swig_globalvar *var = v->vars;
40310 while (var) {
40311 if (strcmp(var->name,n) == 0) {
40312 res = (*var->get_attr)();
40313 break;
40314 }
40315 var = var->next;
be9b1dca 40316 }
1bd55598
RD
40317 if (res == NULL && !PyErr_Occurred()) {
40318 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40319 }
1bd55598
RD
40320 return res;
40321 }
40322
40323 SWIGINTERN int
40324 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40325 int res = 1;
40326 swig_globalvar *var = v->vars;
40327 while (var) {
40328 if (strcmp(var->name,n) == 0) {
40329 res = (*var->set_attr)(p);
40330 break;
40331 }
40332 var = var->next;
be9b1dca 40333 }
1bd55598
RD
40334 if (res == 1 && !PyErr_Occurred()) {
40335 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40336 }
1bd55598
RD
40337 return res;
40338 }
40339
40340 SWIGINTERN PyTypeObject*
40341 swig_varlink_type(void) {
40342 static char varlink__doc__[] = "Swig var link object";
40343 static PyTypeObject varlink_type;
40344 static int type_init = 0;
40345 if (!type_init) {
40346 const PyTypeObject tmp
40347 = {
40348 PyObject_HEAD_INIT(NULL)
40349 0, /* Number of items in variable part (ob_size) */
40350 (char *)"swigvarlink", /* Type name (tp_name) */
40351 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40352 0, /* Itemsize (tp_itemsize) */
40353 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40354 (printfunc) swig_varlink_print, /* Print (tp_print) */
40355 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40356 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40357 0, /* tp_compare */
40358 (reprfunc) swig_varlink_repr, /* tp_repr */
40359 0, /* tp_as_number */
40360 0, /* tp_as_sequence */
40361 0, /* tp_as_mapping */
40362 0, /* tp_hash */
40363 0, /* tp_call */
40364 (reprfunc)swig_varlink_str, /* tp_str */
40365 0, /* tp_getattro */
40366 0, /* tp_setattro */
40367 0, /* tp_as_buffer */
40368 0, /* tp_flags */
40369 varlink__doc__, /* tp_doc */
40370 0, /* tp_traverse */
40371 0, /* tp_clear */
40372 0, /* tp_richcompare */
40373 0, /* tp_weaklistoffset */
40374#if PY_VERSION_HEX >= 0x02020000
40375 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40376#endif
40377#if PY_VERSION_HEX >= 0x02030000
40378 0, /* tp_del */
40379#endif
40380#ifdef COUNT_ALLOCS
40381 0,0,0,0 /* tp_alloc -> tp_next */
40382#endif
40383 };
40384 varlink_type = tmp;
40385 varlink_type.ob_type = &PyType_Type;
40386 type_init = 1;
be9b1dca 40387 }
1bd55598
RD
40388 return &varlink_type;
40389 }
40390
40391 /* Create a variable linking object for use later */
40392 SWIGINTERN PyObject *
40393 SWIG_Python_newvarlink(void) {
40394 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40395 if (result) {
40396 result->vars = 0;
40397 }
40398 return ((PyObject*) result);
40399 }
40400
40401 SWIGINTERN void
40402 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40403 swig_varlinkobject *v = (swig_varlinkobject *) p;
40404 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40405 if (gv) {
40406 size_t size = strlen(name)+1;
40407 gv->name = (char *)malloc(size);
40408 if (gv->name) {
40409 strncpy(gv->name,name,size);
40410 gv->get_attr = get_attr;
40411 gv->set_attr = set_attr;
40412 gv->next = v->vars;
40413 }
be9b1dca 40414 }
1bd55598
RD
40415 v->vars = gv;
40416 }
40417
40418 SWIGINTERN PyObject *
40419 SWIG_globals() {
40420 static PyObject *_SWIG_globals = 0;
40421 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40422 return _SWIG_globals;
40423 }
40424
40425 /* -----------------------------------------------------------------------------
40426 * constants/methods manipulation
40427 * ----------------------------------------------------------------------------- */
40428
40429 /* Install Constants */
40430 SWIGINTERN void
40431 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40432 PyObject *obj = 0;
40433 size_t i;
40434 for (i = 0; constants[i].type; ++i) {
40435 switch(constants[i].type) {
40436 case SWIG_PY_POINTER:
40437 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40438 break;
40439 case SWIG_PY_BINARY:
40440 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40441 break;
40442 default:
40443 obj = 0;
40444 break;
40445 }
40446 if (obj) {
40447 PyDict_SetItemString(d, constants[i].name, obj);
40448 Py_DECREF(obj);
40449 }
be9b1dca 40450 }
1bd55598
RD
40451 }
40452
40453 /* -----------------------------------------------------------------------------*/
40454 /* Fix SwigMethods to carry the callback ptrs when needed */
40455 /* -----------------------------------------------------------------------------*/
40456
40457 SWIGINTERN void
40458 SWIG_Python_FixMethods(PyMethodDef *methods,
40459 swig_const_info *const_table,
40460 swig_type_info **types,
40461 swig_type_info **types_initial) {
40462 size_t i;
40463 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 40464 const char *c = methods[i].ml_doc;
1bd55598
RD
40465 if (c && (c = strstr(c, "swig_ptr: "))) {
40466 int j;
40467 swig_const_info *ci = 0;
3d6c9062 40468 const char *name = c + 10;
1bd55598
RD
40469 for (j = 0; const_table[j].type; ++j) {
40470 if (strncmp(const_table[j].name, name,
40471 strlen(const_table[j].name)) == 0) {
40472 ci = &(const_table[j]);
40473 break;
40474 }
40475 }
40476 if (ci) {
40477 size_t shift = (ci->ptype) - types;
40478 swig_type_info *ty = types_initial[shift];
40479 size_t ldoc = (c - methods[i].ml_doc);
40480 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40481 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40482 if (ndoc) {
40483 char *buff = ndoc;
40484 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40485 if (ptr) {
40486 strncpy(buff, methods[i].ml_doc, ldoc);
40487 buff += ldoc;
40488 strncpy(buff, "swig_ptr: ", 10);
40489 buff += 10;
40490 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40491 methods[i].ml_doc = ndoc;
40492 }
40493 }
40494 }
40495 }
be9b1dca 40496 }
1bd55598
RD
40497 }
40498
40499#ifdef __cplusplus
40500}
40501#endif
40502
40503/* -----------------------------------------------------------------------------*
40504 * Partial Init method
40505 * -----------------------------------------------------------------------------*/
40506
40507#ifdef __cplusplus
40508extern "C"
40509#endif
40510SWIGEXPORT void SWIG_init(void) {
40511 PyObject *m, *d;
40512
40513 /* Fix SwigMethods to carry the callback ptrs when needed */
40514 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40515
40516 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40517 d = PyModule_GetDict(m);
40518
40519 SWIG_InitializeModule(0);
40520 SWIG_InstallConstants(d,swig_const_table);
40521
40522
2131d850
RD
40523 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40524 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40525 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
40526 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40527 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
40528 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40529 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40530 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40531 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40532 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40533 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40534 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40535 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40536 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40537 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40538 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40539 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40540 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40541 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40542 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40543 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40544 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40545 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40546 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40547 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40548 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40549 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40550 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40551 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40552 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40553 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40554 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40555 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40556 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40557 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40558 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40559 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40560 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40561 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40562 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40563 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40564 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40565 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40566 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40567 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40568 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40569 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40570 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40571 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40572 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40573 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40574 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40575 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40576 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40577 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40578 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40579 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40580 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40581 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40582 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40583 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40584 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40585 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40586 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40587 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40588 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40589 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40590 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40591 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40592 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40593 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40594 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40595 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40596 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40597 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40598 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40599 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40600 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40601 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40602 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40603 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40604 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40605 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40606 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40607 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40608 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40609 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40610 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40611 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40612 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40613 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40614 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40615 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40616 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40617 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40618 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40619 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40620 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40621 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40622 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40623 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
40624 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
40625 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
40626 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
40627 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
40628 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
40629 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
40630 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
40631 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
40632 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
40633 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
40634 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
40635 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
40636 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
40637 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
40638 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
40639 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
40640 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
40641 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
40642 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
40643 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
40644 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
40645 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
40646 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
40647 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
40648 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
40649 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
40650 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
40651 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
40652 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
40653 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
40654 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
40655
40656 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
40657
40658 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
40659 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
40660 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
40661 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
40662 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
40663 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
40664 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
40665 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
40666 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
40667 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
40668 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
40669 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
40670 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
40671 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
40672 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
40673 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
40674 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
40675 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
40676 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
40677 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
40678 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
40679 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
40680 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
40681 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
40682 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
40683 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
40684 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
40685 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
40686 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
40687 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
40688 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
40689 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
40690 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
40691 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
40692 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
40693 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
40694 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
40695 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
40696 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
40697 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
40698 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
40699 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
40700 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
40701 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
40702 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
40703 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
40704 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
40705 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
40706 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
40707 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
40708 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
40709 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
40710 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
40711 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
40712 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
40713 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
40714 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
40715 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
40716 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
40717 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
40718 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
40719 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
40720 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
40721 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
40722 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
40723 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
40724 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
40725 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
40726 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
40727 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
40728 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
40729 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
40730 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
40731 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
40732 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
40733 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
40734 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
40735 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
40736 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
40737 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
40738 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
40739 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
40740 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
40741 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
40742 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
40743 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
40744 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
40745 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
40746 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
40747 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
40748 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
40749 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
40750 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
40751 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
40752 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
40753 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
40754 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
40755 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
40756 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
40757 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
40758 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
40759 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
40760 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
40761 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
40762 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
40763 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
40764 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
40765 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
40766 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
40767 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
40768 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
40769 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
40770 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
40771 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
40772 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
40773 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
40774 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
40775 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
40776 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
40777 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
40778 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
40779 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
40780 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
40781 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
40782 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
40783 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
40784 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
40785 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
40786 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
40787 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
40788 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
40789 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
40790 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
40791 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
40792 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
40793 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
40794 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
40795 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
40796 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
40797 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
40798 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
40799 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
40800 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
40801 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
40802 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
40803 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
40804 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
40805 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
40806 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
40807 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
40808 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
40809 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
40810 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
40811 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
40812 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
40813 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
40814 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
40815 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
40816 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
40817 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
40818 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
40819 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
40820 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
40821 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
40822 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
40823 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
40824 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
40825 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
40826 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
40827 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
40828 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
40829 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
40830 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
40831 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
40832 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
40833 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
40834 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
40835 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
40836 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
40837 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
40838 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
40839 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
40840 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
40841 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
40842 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
40843 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
40844 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
40845 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
40846 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
40847 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
40848 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
40849 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
40850 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
40851 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
40852 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
40853 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
40854 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
40855 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
40856 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
40857 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
40858 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
40859 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
40860 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
40861 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
40862 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
40863 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
40864 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
40865 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
40866 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
40867 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
40868 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
40869 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
40870 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
40871 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
40872 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
40873 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
40874 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
40875 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
40876 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
40877 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
40878 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
40879 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
40880 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
40881 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
40882 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
40883 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
40884 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
40885 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
40886 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
40887 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
40888 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
40889 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
40890 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
40891 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
40892 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
40893 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
40894 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
40895 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
40896 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
40897 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
40898 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
40899 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
40900 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
40901 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
40902 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
40903 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
40904 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
40905 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
40906 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
40907 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
40908 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
40909 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
1bd55598
RD
40910 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
40911 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
40912 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
40913 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
40914 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
40915 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
40916 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
40917 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
40918 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
40919 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
40920 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
40921 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
40922 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
40923 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
40924 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
40925 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
40926 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
40927 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
40928 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
40929 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
40930 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
40931 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
40932 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
40933 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
40934 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
40935 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
40936 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
40937 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
40938 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
40939 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
40940 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
40941 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
40942 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
40943 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
40944 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
40945 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
40946 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
40947 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
40948 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
40949 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
40950 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
40951 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
40952 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
40953 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
40954 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
40955 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
40956 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
40957 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
40958 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
40959 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
40960 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
40961 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
40962 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 40963 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
40964 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
40965 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
40966 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 40967 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
40968 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
40969 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
40970 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
40971 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
40972 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
40973 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
40974 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
40975 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
40976 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
40977 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
40978 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
40979 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
40980
40981 // Work around a chicken/egg problem in drawlist.cpp
40982 wxPyDrawList_SetAPIPtr();
40983
d55e5bfc
RD
40984}
40985