]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
fix for longlongHash for architectures where sizeof(long long) == sizeof(long)
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d14a1e28 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
0085ce49
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
0085ce49
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
0085ce49
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
0085ce49
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
0085ce49
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d14a1e28 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d14a1e28
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d14a1e28 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
0085ce49 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
0085ce49 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d14a1e28 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d14a1e28 714
0085ce49
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
0085ce49
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d14a1e28 846
0085ce49
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
0085ce49
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
0085ce49
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
994141e6 1000
0085ce49
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
994141e6 1004
0085ce49
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d14a1e28 1008
0085ce49
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
994141e6 1012
0085ce49
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c32bde28 1017
0085ce49 1018/* Runtime API */
994141e6 1019
0085ce49
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
0085ce49
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
994141e6 1030
0085ce49 1031/* Runtime API implementation */
c32bde28 1032
0085ce49 1033/* Error manipulation */
c32bde28 1034
0085ce49
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1041}
15afbcd0 1042
0085ce49
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1048}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
c32bde28 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
15afbcd0
RD
1058}
1059
0085ce49 1060/* Append a value to the result obj */
69223c70 1061
0085ce49
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
093d3ff1 1088 } else {
0085ce49
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
15afbcd0 1100 }
0085ce49
RD
1101 return result;
1102#endif
093d3ff1 1103}
15afbcd0 1104
0085ce49 1105/* Unpack the argument tuple */
15afbcd0 1106
0085ce49
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
0085ce49
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
0085ce49
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
093d3ff1
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
32fe5131 1684 return &pyswigobject_type;
15afbcd0
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
0085ce49
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
0085ce49 1697 return (PyObject *)sobj;
15afbcd0
RD
1698}
1699
093d3ff1
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
0085ce49 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
c32bde28 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
15afbcd0 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
c32bde28
RD
1734}
1735
093d3ff1
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
c32bde28 1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
c32bde28 1749{
0085ce49
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
c32bde28
RD
1754}
1755
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
c32bde28 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
994141e6
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1 1880}
15afbcd0 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
15afbcd0 1903{
0085ce49
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
15afbcd0 1947 }
15afbcd0
RD
1948}
1949
0085ce49
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
093d3ff1 1961 }
0085ce49 1962 return 0;
994141e6
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
994141e6 2044
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
d14a1e28 2071
0085ce49 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
7e63a440 2084 }
0085ce49
RD
2085 return SWIG_OK;
2086}
d14a1e28 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
c32bde28 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d14a1e28 2096
0085ce49
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
0085ce49
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
0085ce49
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
0085ce49
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1 2158}
d14a1e28 2159
0085ce49
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d14a1e28 2180
0085ce49
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
15afbcd0 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
0085ce49 2215 return robj;
093d3ff1 2216 }
c32bde28
RD
2217}
2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
994141e6
RD
2224}
2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
15afbcd0 2241#else
093d3ff1
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
15afbcd0 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d14a1e28 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
d14a1e28 2284
0085ce49
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
0085ce49 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d14a1e28 2314
0085ce49
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
d14a1e28 2321
0085ce49
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
580080c5
RD
2628#define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629#define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630#define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631#define SWIGTYPE_p_wxValidator swig_types[165]
2632#define SWIGTYPE_p_wxWindow swig_types[166]
2633#define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634#define SWIGTYPE_p_wxWindowDC swig_types[168]
2635#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636#define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637static swig_type_info *swig_types[172];
2638static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
32fe5131
RD
2639#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d14a1e28 2641
093d3ff1 2642/* -------- TYPES TABLE (END) -------- */
d14a1e28 2643
0085ce49
RD
2644#if (PY_VERSION_HEX <= 0x02000000)
2645# if !defined(SWIG_PYTHON_CLASSIC)
2646# error "This python version requires to use swig with the '-classic' option"
2647# endif
2648#endif
2649#if (PY_VERSION_HEX <= 0x02020000)
2650# error "This python version requires to use swig with the '-nomodern' option"
2651#endif
2652#if (PY_VERSION_HEX <= 0x02020000)
2653# error "This python version requires to use swig with the '-nomodernargs' option"
2654#endif
2655#ifndef METH_O
2656# error "This python version requires to use swig with the '-nofastunpack' option"
2657#endif
d14a1e28 2658
093d3ff1
RD
2659/*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662#define SWIG_init init_gdi_
d14a1e28 2663
093d3ff1 2664#define SWIG_name "_gdi_"
d14a1e28 2665
0085ce49 2666#define SWIGVERSION 0x010329
d14a1e28 2667
d14a1e28 2668
0085ce49
RD
2669#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d14a1e28
RD
2671
2672
0085ce49
RD
2673#include <stdexcept>
2674
2675
2676namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
093d3ff1 2684 }
0085ce49
RD
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
093d3ff1 2689 }
0085ce49
RD
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
093d3ff1 2719}
d14a1e28 2720
994141e6 2721
0085ce49
RD
2722namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
69223c70 2731 }
0085ce49 2732 };
15afbcd0
RD
2733}
2734
2735
0085ce49
RD
2736#include "wx/wxPython/wxPython.h"
2737#include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
01f6b6d3
RD
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745SWIGINTERNINLINE PyObject *
2746SWIG_From_int (int value)
2747{
2748 return SWIG_From_long (value);
2749}
2750
2751
0085ce49
RD
2752#include <limits.h>
2753#ifndef LLONG_MIN
2754# define LLONG_MIN LONG_LONG_MIN
2755#endif
2756#ifndef LLONG_MAX
2757# define LLONG_MAX LONG_LONG_MAX
2758#endif
2759#ifndef ULLONG_MAX
2760# define ULLONG_MAX ULONG_LONG_MAX
2761#endif
b88bce5f 2762
b88bce5f 2763
50efceee
RD
2764SWIGINTERN int
2765SWIG_AsVal_long (PyObject* obj, long* val)
2766{
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772}
2773
2774
093d3ff1 2775SWIGINTERN int
0085ce49 2776SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2777{
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
0085ce49 2780 return SWIG_TypeError;
093d3ff1
RD
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
0085ce49 2784 return SWIG_OK;
093d3ff1 2785}
d14a1e28
RD
2786
2787
093d3ff1 2788SWIGINTERN int
0085ce49
RD
2789SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790{
093d3ff1 2791 unsigned long v;
0085ce49
RD
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
093d3ff1 2796 } else {
0085ce49 2797 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2798 }
0085ce49
RD
2799 }
2800 return res;
093d3ff1 2801}
33b885b9 2802
d14a1e28 2803
0085ce49
RD
2804SWIGINTERNINLINE PyObject*
2805SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2806{
0085ce49
RD
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2809}
d14a1e28 2810
d14a1e28 2811
0085ce49
RD
2812SWIGINTERNINLINE PyObject *
2813SWIG_From_unsigned_SS_char (unsigned char value)
2814{
2815 return SWIG_From_unsigned_SS_long (value);
2816}
d14a1e28 2817
e9d6f3a4
RD
2818SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
fc46b7f3
RD
2836
2837SWIGINTERN int
2838SWIG_AsVal_bool (PyObject *obj, bool *val)
2839{
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852}
2853
2854SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
fc46b7f3 2859 int alpha = wxALPHA_OPAQUE;
b39fe951 2860 if (self->IsOk()) {
093d3ff1
RD
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
fc46b7f3 2864 alpha = self->Alpha();
093d3ff1
RD
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2871 return rv;
2872 }
0085ce49 2873SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
d14a1e28 2876
0085ce49
RD
2877SWIGINTERN int
2878SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2879{
0085ce49
RD
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
d14a1e28
RD
2890}
2891
0085ce49 2892SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
5a446332 2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
0085ce49 2905SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d14a1e28 2909
093d3ff1
RD
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
0085ce49
RD
2924SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d14a1e28 2926
fc46b7f3
RD
2927#include <wx/rawbmp.h>
2928
2929
8f514ab4
RD
2930// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2931// appears to me that the other platforms are already doing it, so I'll just
2932// automatically do it for wxMSW here.
2933#ifdef __WXMSW__
2934#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2935#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2936#else
2937#define wxPy_premultiply(p, a) (p)
2938#define wxPy_unpremultiply(p, a) (p)
2939#endif
2940
2941
093d3ff1 2942#include <wx/image.h>
b88bce5f 2943
093d3ff1
RD
2944 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2945 char** cArray = NULL;
2946 int count;
2947
2948 if (!PyList_Check(listOfStrings)) {
2949 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2950 return NULL;
2951 }
2952 count = PyList_Size(listOfStrings);
2953 cArray = new char*[count];
2954
2955 for(int x=0; x<count; x++) {
2956 // TODO: Need some validation and error checking here
2957 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2958 }
2959 return cArray;
b88bce5f 2960 }
b88bce5f
RD
2961
2962
0085ce49 2963SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2964 char** cArray = NULL;
2965 wxBitmap* bmp;
2966
2967 cArray = ConvertListOfStrings(listOfStrings);
2968 if (! cArray)
2969 return NULL;
2970 bmp = new wxBitmap(cArray);
2971 delete [] cArray;
2972 return bmp;
2973 }
0085ce49 2974SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2975 char* buf;
2976 Py_ssize_t length;
2977 PyString_AsStringAndSize(bits, &buf, &length);
2978 return new wxBitmap(buf, width, height, depth);
2979 }
0085ce49 2980SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2981 wxSize size(self->GetWidth(), self->GetHeight());
2982 return size;
2983 }
0085ce49 2984SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2985 wxMask *mask = new wxMask(*self, colour);
2986 self->SetMask(mask);
2987 }
0085ce49 2988SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2989 self->SetWidth(size.x);
2990 self->SetHeight(size.y);
2991 }
8f514ab4
RD
2992SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2993 int height=self->GetHeight();
2994 int width=self->GetWidth();
fc46b7f3 2995
8f514ab4
RD
2996 if (DATASIZE != width * height * 3) {
2997 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2998 }
2999 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3000 if (! pixData) {
3001 // raise an exception...
3002 wxPyErr_SetString(PyExc_RuntimeError,
3003 "Failed to gain raw access to bitmap data.");
3004 return;
3005 }
fc46b7f3 3006
8f514ab4
RD
3007 wxNativePixelData::Iterator p(pixData);
3008 for (int y=0; y<height; y++) {
3009 wxNativePixelData::Iterator rowStart = p;
3010 for (int x=0; x<width; x++) {
3011 p.Red() = *(data++);
3012 p.Green() = *(data++);
3013 p.Blue() = *(data++);
3014 ++p;
3015 }
3016 p = rowStart;
3017 p.OffsetY(pixData, 1);
3018 }
3019 }
3020SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3021 int height=self->GetHeight();
3022 int width=self->GetWidth();
3023
3024 if (DATASIZE != width * height * 4) {
3025 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3026 }
3027 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3028 if (! pixData) {
3029 // raise an exception...
3030 wxPyErr_SetString(PyExc_RuntimeError,
3031 "Failed to gain raw access to bitmap data.");
3032 return;
3033 }
3034
3035 pixData.UseAlpha();
3036 wxAlphaPixelData::Iterator p(pixData);
3037 for (int y=0; y<height; y++) {
3038 wxAlphaPixelData::Iterator rowStart = p;
3039 for (int x=0; x<width; x++) {
3040 byte a = data[3];
3041 p.Red() = wxPy_premultiply(*(data++), a);
3042 p.Green() = wxPy_premultiply(*(data++), a);
3043 p.Blue() = wxPy_premultiply(*(data++), a);
3044 p.Alpha() = a; data++;
3045 ++p;
3046 }
3047 p = rowStart;
3048 p.OffsetY(pixData, 1);
3049 }
3050 }
3051SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3052SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3053
3054 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3055 buffer data, int DATASIZE,
3056 buffer alpha, int ALPHASIZE)
3057 {
3058 if (DATASIZE != width*height*3) {
3059 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3060 return NULL;
3061 }
3062
3063 if (ALPHASIZE != width*height) {
3064 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3065 return NULL;
3066 }
3067
3068 wxBitmap* bmp = new wxBitmap(width, height, 32);
3069 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3070 if (! pixData) {
3071 // raise an exception...
3072 wxPyErr_SetString(PyExc_RuntimeError,
3073 "Failed to gain raw access to bitmap data.");
3074 return NULL;
3075 }
3076
3077 pixData.UseAlpha();
3078 wxAlphaPixelData::Iterator p(pixData);
3079 for (int y=0; y<height; y++) {
3080 wxAlphaPixelData::Iterator rowStart = p;
3081 for (int x=0; x<width; x++) {
3082 byte a = *(alpha++);
3083 p.Red() = wxPy_premultiply(*(data++), a);
3084 p.Green() = wxPy_premultiply(*(data++), a);
3085 p.Blue() = wxPy_premultiply(*(data++), a);
3086 p.Alpha() = a;
3087 ++p;
3088 }
3089 p = rowStart;
3090 p.OffsetY(pixData, 1);
3091 }
3092 return bmp;
3093 }
3094
3095 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3096 {
3097 if (DATASIZE != width*height*3) {
3098 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3099 return NULL;
3100 }
3101
3102 wxBitmap* bmp = new wxBitmap(width, height, 24);
3103 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3104 if (! pixData) {
3105 // raise an exception...
3106 wxPyErr_SetString(PyExc_RuntimeError,
3107 "Failed to gain raw access to bitmap data.");
3108 return NULL;
3109 }
3110
3111 wxNativePixelData::Iterator p(pixData);
3112 for (int y=0; y<height; y++) {
3113 wxNativePixelData::Iterator rowStart = p;
3114 for (int x=0; x<width; x++) {
3115 p.Red() = *(data++);
3116 p.Green() = *(data++);
3117 p.Blue() = *(data++);
3118 ++p;
3119 }
3120 p = rowStart;
3121 p.OffsetY(pixData, 1);
3122 }
3123 return bmp;
3124 }
3125
3126
3127 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3128 {
3129 if (DATASIZE != width*height*4) {
3130 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3131 return NULL;
3132 }
3133
3134 wxBitmap* bmp = new wxBitmap(width, height, 32);
3135 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3136 if (! pixData) {
3137 // raise an exception...
3138 wxPyErr_SetString(PyExc_RuntimeError,
3139 "Failed to gain raw access to bitmap data.");
3140 return NULL;
3141 }
3142
3143 pixData.UseAlpha();
3144 wxAlphaPixelData::Iterator p(pixData);
3145 for (int y=0; y<height; y++) {
3146 wxAlphaPixelData::Iterator rowStart = p;
3147 for (int x=0; x<width; x++) {
3148 byte a = data[3];
3149 p.Red() = wxPy_premultiply(*(data++), a);
3150 p.Green() = wxPy_premultiply(*(data++), a);
3151 p.Blue() = wxPy_premultiply(*(data++), a);
3152 p.Alpha() = a; data++;
3153 ++p;
3154 }
3155 p = rowStart;
3156 p.OffsetY(pixData, 1);
3157 }
3158 return bmp;
3159 }
3160
3161
3162 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3163
3164SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3165SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3166SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3167 self->Red() = red;
3168 self->Green() = green;
3169 self->Blue() = blue;
3170 }
3171SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3172 PyObject* rv = PyTuple_New(3);
3173 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3174 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3175 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3176 return rv;
3177 }
3178
3179 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3180
3181SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3182SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3183SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3184 self->Red() = wxPy_premultiply(red, alpha);
3185 self->Green() = wxPy_premultiply(green, alpha);
3186 self->Blue() = wxPy_premultiply(blue, alpha);
3187 self->Alpha() = alpha;
3188 }
3189SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3190 PyObject* rv = PyTuple_New(4);
3191 int red = self->Red();
3192 int green = self->Green();
3193 int blue = self->Blue();
3194 int alpha = self->Alpha();
3195
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3199 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3200 return rv;
3201 }
0085ce49 3202SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3203 if ( !colour.IsOk() )
093d3ff1
RD
3204 return new wxMask(bitmap, *wxBLACK);
3205 else
3206 return new wxMask(bitmap, colour);
3207 }
d14a1e28 3208
093d3ff1 3209#include <wx/iconbndl.h>
d14a1e28 3210
0085ce49 3211SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3212 wxIcon* icon = new wxIcon();
3213 icon->CopyFromBitmap(bmp);
3214 return icon;
3215 }
0085ce49 3216SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3217 char** cArray = NULL;
3218 wxIcon* icon;
d14a1e28 3219
093d3ff1
RD
3220 cArray = ConvertListOfStrings(listOfStrings);
3221 if (! cArray)
3222 return NULL;
3223 icon = new wxIcon(cArray);
3224 delete [] cArray;
3225 return icon;
3226 }
0085ce49 3227SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d14a1e28
RD
3228
3229
d14a1e28 3230
093d3ff1 3231 return new wxIconLocation(*filename);
d14a1e28 3232
093d3ff1 3233 }
0085ce49 3234SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d14a1e28
RD
3235
3236
d14a1e28 3237
093d3ff1 3238 // do nothing
d14a1e28 3239
093d3ff1 3240 }
0085ce49 3241SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
b88bce5f
RD
3242
3243
093d3ff1
RD
3244
3245 return -1;
3246
3247 }
0085ce49 3248SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3249#ifdef __WXGTK__
7557b9b5
RD
3250 wxImage img(cursorName, type);
3251 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3252 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3253 return new wxCursor(img);
093d3ff1 3254#else
7557b9b5 3255 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3256#endif
3257 }
3258
3259
0085ce49 3260SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3261 (*self) ++;
3262 }
0085ce49 3263SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3264 return self->operator bool();
3265 }
3266
3267#include <wx/fontutil.h>
3268#include <wx/fontmap.h>
3269#include <wx/fontenum.h>
3270
0085ce49 3271SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3272 return self->ToString();
3273 }
3274
3275 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3276 static wxNativeEncodingInfo info;
3277 if ( wxGetNativeFontEncoding(encoding, &info) )
3278 return &info;
3279 else
3280 return NULL;
3281 }
3282
0085ce49
RD
3283
3284SWIGINTERNINLINE PyObject *
3285SWIG_From_size_t (size_t value)
3286{
3287 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3288}
3289
3290
3291SWIGINTERNINLINE int
3292SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3293{
3294 unsigned long v;
3295 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3296 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3297 return res;
3298}
3299
3300SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3301 wxFontEncoding alt_enc;
3302 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3303 return PyInt_FromLong(alt_enc);
3304 else {
3305 Py_INCREF(Py_None);
3306 return Py_None;
3307 }
3308 }
0085ce49 3309SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3310 wxNativeFontInfo nfi;
3311 nfi.FromString(info);
3312 return new wxFont(nfi);
3313 }
0085ce49 3314SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3315 return wxFont::New(pointSize, family, flags, face, encoding);
3316 }
0085ce49 3317SWIGINTERN 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
3318 return wxFontBase::New(pixelSize, family,
3319 style, weight, underlined,
3320 face, encoding);
3321 }
0085ce49 3322SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3323 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3324 }
0085ce49
RD
3325SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3326SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3327
3328class wxPyFontEnumerator : public wxFontEnumerator {
3329public:
3330 wxPyFontEnumerator() {}
3331 ~wxPyFontEnumerator() {}
3332
3333 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3334 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3335
3336 PYPRIVATE;
3337};
3338
3339IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3340IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3341
3342
704eda0c 3343SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3344 PyObject* ret;
704eda0c 3345 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3346 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3347 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3348 wxPyEndBlockThreads(blocked);
3349 return ret;
093d3ff1 3350 }
704eda0c 3351SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3352 PyObject* ret;
704eda0c 3353 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3354 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3355 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3356 wxPyEndBlockThreads(blocked);
3357 return ret;
093d3ff1
RD
3358 }
3359
3360#include <locale.h>
3361
0085ce49 3362SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3363 wxLocale* loc;
3364 if (language == -1)
3365 loc = new wxLocale();
3366 else
3367 loc = new wxLocale(language, flags);
3368 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3369 // for the floating point conversions and such to work right.
3370#if PY_VERSION_HEX < 0x02040000
3371 setlocale(LC_NUMERIC, "C");
3372#endif
3373 return loc;
3374 }
0085ce49 3375SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3376 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3377 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3378 // for the floating point conversions and such to work right.
3379#if PY_VERSION_HEX < 0x02040000
3380 setlocale(LC_NUMERIC, "C");
3381#endif
3382 return rc;
3383 }
0085ce49 3384SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3385 bool rc = self->Init(language, flags);
3386 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3387 // for the floating point conversions and such to work right.
3388#if PY_VERSION_HEX < 0x02040000
3389 setlocale(LC_NUMERIC, "C");
3390#endif
3391 return rc;
3392 }
3393
fc46b7f3
RD
3394class wxPyLocale : public wxLocale
3395{
3396public:
3397 wxPyLocale();
3398
3399 wxPyLocale(const wxChar *szName, // name (for messages)
3400 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3401 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3402 bool bLoadDefault = true, // preload wxstd.mo?
3403 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3404
3405 wxPyLocale(int language, // wxLanguage id or custom language
3406 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3407
3408 ~wxPyLocale();
3409
3410 virtual const wxChar *GetString(const wxChar *szOrigString,
3411 const wxChar *szDomain = NULL) const;
3412 virtual const wxChar *GetString(const wxChar *szOrigString,
3413 const wxChar *szOrigString2, size_t n,
3414 const wxChar *szDomain = NULL) const;
3415
3416 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3417 const wxChar *szDomain = NULL) const;
3418 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3419 const wxChar *szOrigString2, size_t n,
3420 const wxChar *szDomain = NULL) const;
3421
3422 PYPRIVATE;
3423private:
3424 DECLARE_NO_COPY_CLASS(wxPyLocale)
3425};
3426
3427wxPyLocale::wxPyLocale() : wxLocale()
3428{
3429}
3430
3431wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3432 const wxChar *szShort, // dir prefix (for msg files)
3433 const wxChar *szLocale, // locale (for setlocale)
3434 bool bLoadDefault, // preload wxstd.mo?
3435 bool bConvertEncoding) // convert Win<->Unix if necessary?
3436 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3437{
3438}
3439
3440wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3441 int flags) : wxLocale(language, flags)
3442{
3443}
3444
3445wxPyLocale::~wxPyLocale()
3446{
3447}
3448
3449const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3450 const wxChar *szDomain) const
3451{
3452 wxChar *str = GetSingularString(szOrigString, szDomain);
3453 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3454}
3455
3456const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3457 const wxChar *szOrigString2, size_t n,
3458 const wxChar *szDomain) const
3459{
3460 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3461 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3462}
3463
3464wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3465 const wxChar *szDomain) const
3466{
3467 bool found;
3468 static wxString str;
3469 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.
3470 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3471 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3472 PyObject* param1 = wx2PyString(szOrigString);
3473 PyObject* param2 = wx2PyString(szDomain);
3474 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3475 Py_DECREF(param1);
3476 Py_DECREF(param2);
3477 if (ret) {
3478 str = Py2wxString(ret);
3479 Py_DECREF(ret);
3480 }
3481 }
3482 wxPyEndBlockThreads(blocked);
3483 return (found ? (wxChar*)str.c_str() : NULL);
3484}
3485
3486wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3487 const wxChar *szOrigString2, size_t n,
3488 const wxChar *szDomain) const
3489{
3490 bool found;
3491 static wxString str;
3492 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szOrigString2);
3497 PyObject* param4 = wx2PyString(szDomain);
3498 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3499 Py_DECREF(param1);
3500 Py_DECREF(param2);
3501 Py_DECREF(param4);
3502 if( ret) {
3503 str = Py2wxString(ret);
3504 Py_DECREF(ret);
3505 }
3506 }
3507 wxPyEndBlockThreads(blocked);
3508 return (found ? (wxChar*)str.c_str() : NULL);
3509}
3510
3511SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3512 wxPyLocale* loc;
3513 if (language == -1)
3514 loc = new wxPyLocale();
3515 else
3516 loc = new wxPyLocale(language, flags);
3517 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3518 // for the floating point conversions and such to work right.
3519#if PY_VERSION_HEX < 0x02040000
3520 setlocale(LC_NUMERIC, "C");
3521#endif
3522 return loc;
3523 }
3524
093d3ff1
RD
3525#include "wx/wxPython/pydrawxxx.h"
3526
0085ce49 3527SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3528 wxColour col;
3529 self->GetPixel(x, y, &col);
3530 return col;
3531 }
0085ce49 3532SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3533 wxColour col;
3534 self->GetPixel(pt, &col);
3535 return col;
3536 }
3537
3538SWIGINTERN int
0085ce49 3539SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3540{
3541 if (PyNumber_Check(obj)) {
3542 if (val) *val = PyFloat_AsDouble(obj);
0085ce49 3543 return SWIG_OK;
093d3ff1 3544 }
0085ce49 3545 return SWIG_TypeError;
093d3ff1
RD
3546}
3547
0085ce49 3548SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
093d3ff1
RD
3549 wxRect rv;
3550 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3551 return rv;
3552 }
0085ce49 3553SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3554 wxRect rect;
3555 self->GetClippingBox(rect);
3556 return rect;
3557 }
0085ce49 3558SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3559 wxArrayInt widths;
3560 self->GetPartialTextExtents(text, widths);
3561 return widths;
3562 }
3563
0085ce49 3564 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3565
0085ce49 3566SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3567 self->SetLogicalOrigin(point.x, point.y);
3568 }
0085ce49 3569SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3570 self->SetDeviceOrigin(point.x, point.y);
3571 }
0085ce49 3572SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3573 self->CalcBoundingBox(point.x, point.y);
3574 }
0085ce49 3575SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3576 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3577 }
0085ce49 3578SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3579 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3580 }
0085ce49 3581SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3582 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3583 }
0085ce49 3584SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3585 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3586 }
0085ce49 3587SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3588 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3589 }
0085ce49 3590SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3591 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3592 }
3593
3594static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3595 *x1 = dc->MinX();
3596 *y1 = dc->MinY();
3597 *x2 = dc->MaxX();
3598 *y2 = dc->MaxY();
3599}
3600
3601
3602#include <wx/dcbuffer.h>
3603
3604
3605#include <wx/dcps.h>
3606
3607
3608class wxMetaFile : public wxObject {
3609public:
3610 wxMetaFile(const wxString&)
3611 { wxPyRaiseNotImplemented(); }
3612};
3613
3614class wxMetaFileDC : public wxClientDC {
3615public:
3616 wxMetaFileDC(const wxString&, int, int, const wxString&)
3617 { wxPyRaiseNotImplemented(); }
3618};
3619
3620
3621
3622class wxPrinterDC : public wxClientDC {
3623public:
3624 wxPrinterDC(const wxPrintData&)
3625 { wxPyRaiseNotImplemented(); }
3626
3627};
3628
3629
72ef6efb
RD
3630#include <wx/graphics.h>
3631
3632
3633#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3634// C++ stub classes for platforms or build configurations that don't have
3635// wxGraphicsContext yet.
72ef6efb 3636
70d7cb34
RD
3637
3638class wxGraphicsObject : public wxObject
72ef6efb
RD
3639{
3640public :
70d7cb34 3641 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3642 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3643 "wx.GraphicsObject is not available on this platform.");
3644 }
3645 wxGraphicsObject( const wxGraphicsObject& ) {}
3646 virtual ~wxGraphicsObject() {}
3647 bool IsNull() const { return false; }
3648 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3649} ;
3650
3651
3652
3653class wxGraphicsPen : public wxGraphicsObject
3654{
3655 wxGraphicsPen() {}
3656 virtual ~wxGraphicsPen() {}
3657} ;
3658wxGraphicsPen wxNullGraphicsPen;
3659
3660
3661
3662class wxGraphicsBrush : public wxGraphicsObject
3663{
3664public :
3665 wxGraphicsBrush() {}
3666 virtual ~wxGraphicsBrush() {}
3667} ;
3668wxGraphicsBrush wxNullGraphicsBrush;
3669
3670
3671
3672class wxGraphicsFont : public wxGraphicsObject
3673{
3674public :
3675 wxGraphicsFont() {}
3676 virtual ~wxGraphicsFont() {}
3677} ;
3678wxGraphicsFont wxNullGraphicsFont;
3679
3680
3681
3682class wxGraphicsPath : public wxGraphicsObject
3683{
3684public :
3685 wxGraphicsPath(wxGraphicsRenderer* ) {
3686 PyErr_SetString(PyExc_NotImplementedError,
3687 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3688 }
3689 virtual ~wxGraphicsPath() {}
70d7cb34 3690
72ef6efb 3691 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3692 void MoveToPoint( const wxPoint2DDouble& ) {}
3693 void AddLineToPoint( wxDouble, wxDouble ) {}
3694 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3695 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3696 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3697 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3698 void CloseSubpath() {}
3699 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3700 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3701 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3702 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3703
3704 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3705 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3706 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3707 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3708
70d7cb34
RD
3709 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3710 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3711 void * GetNativePath() const { return NULL; }
3712 void UnGetNativePath(void *) {}
3713 void Transform( wxGraphicsMatrix* ) {}
3714 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3715 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3716
3717 bool Contains( wxDouble , wxDouble , int ) { return false; }
3718 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3719};
5c8c7dd3 3720wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3721
3722
3723class wxGraphicsMatrix : public wxGraphicsObject
3724{
3725public :
3726 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3727 PyErr_SetString(PyExc_NotImplementedError,
3728 "wx.GraphicsMatrix is not available on this platform.");
3729 }
3730 virtual ~wxGraphicsMatrix() {}
70d7cb34
RD
3731 virtual void Concat( const wxGraphicsMatrix * ) {}
3732 virtual void Copy( const wxGraphicsMatrix * ) {}
3733 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3734 wxDouble , wxDouble ) {}
3735 virtual void Invert() {}
3736 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3737 virtual bool IsIdentity() { return false; }
3738 virtual void Translate( wxDouble , wxDouble ) {}
3739 virtual void Scale( wxDouble , wxDouble ) {}
3740 virtual void Rotate( wxDouble ) {}
3741 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3742 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3743 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3744};
5c8c7dd3 3745wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3746
70d7cb34
RD
3747
3748class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3749{
3750public:
70d7cb34
RD
3751
3752 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3753 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3754 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3755 }
70d7cb34 3756
72ef6efb 3757 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3758
3759 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3760 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3761 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3762 }
b876c1e4 3763
70d7cb34 3764 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3765 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3766 "wx.GraphicsContext is not available on this platform.");
3767 }
b876c1e4 3768
70d7cb34
RD
3769 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3770 PyErr_SetString(PyExc_NotImplementedError,
3771 "wx.GraphicsContext is not available on this platform.");
3772 }
3773
3774 static wxGraphicsContext* Create( wxWindow* ) {
3775 PyErr_SetString(PyExc_NotImplementedError,
3776 "wx.GraphicsContext is not available on this platform.");
3777 }
3778
3779 wxGraphicsPath * CreatePath() { return NULL; }
3780
3781 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3782
3783 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3784
3785 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3786 const wxColour&, const wxColour&) { return NULL; }
3787
3788 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3789 wxDouble xc, wxDouble yc, wxDouble radius,
3790 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3791
3792 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3793
3794 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3795 wxDouble, wxDouble) { return NULL; }
3796
3797 virtual void PushState() {}
3798 virtual void PopState() {}
3799 virtual void Clip( const wxRegion & ) {}
3800 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3801 virtual void ResetClip() {}
3802 virtual void * GetNativeContext() { return NULL; }
3803 virtual void Translate( wxDouble , wxDouble ) {}
3804 virtual void Scale( wxDouble , wxDouble ) {}
3805 virtual void Rotate( wxDouble ) {}
3806 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3807 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3808 virtual void GetTransform( wxGraphicsMatrix* ) {}
3809
3810 virtual void SetPen( const wxGraphicsPen& ) {}
3811 void SetPen( const wxPen& ) {}
3812
3813 virtual void SetBrush( const wxGraphicsBrush& ) {}
3814 void SetBrush( const wxBrush& ) {}
3815
3816 virtual void SetFont( const wxGraphicsFont& ) {}
3817 void SetFont( const wxFont&, const wxColour& ) {}
3818
3819 virtual void StrokePath( const wxGraphicsPath * ) {}
3820 virtual void FillPath( const wxGraphicsPath *, int ) {}
3821 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3822
3823 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3824 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3825 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3826 wxDouble *, wxDouble * ) const {}
3827 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3828
3829 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3830 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3831
3832 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3833 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3834 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3835 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3836 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3838 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3839 virtual bool ShouldOffset() const { return false; }
3840};
3841
3842
3843class wxGraphicsRenderer : public wxObject
3844{
3845public :
3846 wxGraphicsRenderer() {
3847 PyErr_SetString(PyExc_NotImplementedError,
3848 "wx.GraphicsRenderer is not available on this platform.");
3849 }
3850
3851 virtual ~wxGraphicsRenderer() {}
3852
3853 static wxGraphicsRenderer* GetDefaultRenderer(
3854 PyErr_SetString(PyExc_NotImplementedError,
3855 "wx.GraphicsRenderer is not available on this platform.");
3856 );
3857
3858 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3859 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3860 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3861 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3862
3863 virtual wxGraphicsPath * CreatePath() { return NULL; }
3864
3865 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3866 wxDouble , wxDouble ) { return NULL; }
3867
3868 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3869 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3870 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3871 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3872 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3873 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3874 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3875};
3876
3877
70d7cb34 3878
72ef6efb
RD
3879class wxGCDC: public wxWindowDC
3880{
3881public:
3882 wxGCDC(const wxWindowDC&) {
3883 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3884 PyErr_SetString(PyExc_NotImplementedError,
3885 "wxGCDC is not available on this platform.");
3886 wxPyEndBlockThreads(blocked);
3887 }
70d7cb34 3888
72ef6efb
RD
3889 wxGCDC() {
3890 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3891 PyErr_SetString(PyExc_NotImplementedError,
3892 "wxGCDC is not available on this platform.");
3893 wxPyEndBlockThreads(blocked);
3894 }
70d7cb34 3895
72ef6efb
RD
3896 virtual ~wxGCDC() {}
3897
b876c1e4
RD
3898 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3899 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3900};
3901
3902#endif
3903
5c8c7dd3
RD
3904SWIGINTERN void wxGraphicsMatrix_Copy(wxGraphicsMatrix *self,wxGraphicsMatrix const &t){
3905 *self = t;
3906 }
be68621e
RD
3907SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3908 wxDouble width = 0.0,
3909 height = 0.0;
3910 self->GetTextExtent(text, &width, &height, NULL, NULL);
3911 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3912 PyObject* rv = PyTuple_New(2);
3913 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3914 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3915 return rv;
3916 }
b39fe951
RD
3917SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3918 wxArrayDouble widths;
3919 self->GetPartialTextExtents(text, widths);
3920 return widths;
3921 }
f8eb59b9 3922SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3923 size_t c1, c2, count;
3924 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3925 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3926
3927 if ( beginP != NULL && endP != NULL )
3928 {
3929 count = wxMin(c1, c2);
3930 self->StrokeLines(count, beginP, endP);
3931 }
3932 delete [] beginP;
3933 delete [] endP;
3934 }
72ef6efb 3935
0a27f394
RD
3936#include "wx/dcgraph.h"
3937
3938
66493fc7
RD
3939#include <wx/overlay.h>
3940
3941
093d3ff1 3942
0085ce49 3943SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3944 self->AddColour(name, wxColour(red, green, blue));
3945 }
3946
50efceee
RD
3947 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3948 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3949 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3950 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3951
3952
093d3ff1
RD
3953#include <wx/effects.h>
3954
8d38bd1d
RD
3955
3956#include "wx/renderer.h"
3957
3958
32fe5131 3959SWIGINTERNINLINE PyObject*
0085ce49 3960 SWIG_From_bool (bool value)
8d38bd1d 3961{
0085ce49 3962 return PyBool_FromLong(value ? 1 : 0);
8d38bd1d
RD
3963}
3964
27e45892
RD
3965
3966#include "wx/wxPython/pseudodc.h"
3967
3968SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3969 wxRect rect;
3970 self->GetIdBounds(id, rect);
3971 return rect;
3972 }
093d3ff1
RD
3973#ifdef __cplusplus
3974extern "C" {
3975#endif
0085ce49
RD
3976SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3977 PyObject *resultobj = 0;
3978 wxGDIObject *result = 0 ;
3979
3980 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3981 {
3982 if (!wxPyCheckForApp()) SWIG_fail;
3983 PyThreadState* __tstate = wxPyBeginAllowThreads();
3984 result = (wxGDIObject *)new wxGDIObject();
3985 wxPyEndAllowThreads(__tstate);
3986 if (PyErr_Occurred()) SWIG_fail;
3987 }
3988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3989 return resultobj;
3990fail:
3991 return NULL;
093d3ff1
RD
3992}
3993
3994
0085ce49
RD
3995SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3996 PyObject *resultobj = 0;
3997 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3998 void *argp1 = 0 ;
3999 int res1 = 0 ;
4000 PyObject *swig_obj[1] ;
4001
4002 if (!args) SWIG_fail;
4003 swig_obj[0] = args;
4004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4005 if (!SWIG_IsOK(res1)) {
4006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4007 }
4008 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4009 {
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 delete arg1;
093d3ff1 4012
0085ce49
RD
4013 wxPyEndAllowThreads(__tstate);
4014 if (PyErr_Occurred()) SWIG_fail;
4015 }
4016 resultobj = SWIG_Py_Void();
4017 return resultobj;
4018fail:
4019 return NULL;
d14a1e28
RD
4020}
4021
4022
0085ce49
RD
4023SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4024 PyObject *resultobj = 0;
4025 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4026 bool result;
4027 void *argp1 = 0 ;
4028 int res1 = 0 ;
4029 PyObject *swig_obj[1] ;
4030
4031 if (!args) SWIG_fail;
4032 swig_obj[0] = args;
4033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4034 if (!SWIG_IsOK(res1)) {
4035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4036 }
4037 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4038 {
4039 PyThreadState* __tstate = wxPyBeginAllowThreads();
4040 result = (bool)(arg1)->IsNull();
4041 wxPyEndAllowThreads(__tstate);
4042 if (PyErr_Occurred()) SWIG_fail;
4043 }
4044 {
4045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4046 }
4047 return resultobj;
4048fail:
4049 return NULL;
4050}
4051
4052
4053SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4054 PyObject *obj;
4055 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4056 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4057 return SWIG_Py_Void();
4058}
4059
4060SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4061 return SWIG_Python_InitShadowInstance(args);
4062}
4063
4064SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4065 PyObject *resultobj = 0;
4066 byte arg1 = (byte) 0 ;
4067 byte arg2 = (byte) 0 ;
4068 byte arg3 = (byte) 0 ;
fc46b7f3 4069 byte arg4 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4070 wxColour *result = 0 ;
4071 unsigned char val1 ;
4072 int ecode1 = 0 ;
4073 unsigned char val2 ;
4074 int ecode2 = 0 ;
4075 unsigned char val3 ;
4076 int ecode3 = 0 ;
fc46b7f3
RD
4077 unsigned char val4 ;
4078 int ecode4 = 0 ;
0085ce49
RD
4079 PyObject * obj0 = 0 ;
4080 PyObject * obj1 = 0 ;
4081 PyObject * obj2 = 0 ;
fc46b7f3 4082 PyObject * obj3 = 0 ;
0085ce49 4083 char * kwnames[] = {
fc46b7f3 4084 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4085 };
4086
fc46b7f3 4087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
4088 if (obj0) {
4089 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4090 if (!SWIG_IsOK(ecode1)) {
4091 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4092 }
4093 arg1 = static_cast< byte >(val1);
4094 }
4095 if (obj1) {
4096 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4097 if (!SWIG_IsOK(ecode2)) {
4098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4099 }
4100 arg2 = static_cast< byte >(val2);
4101 }
4102 if (obj2) {
4103 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4104 if (!SWIG_IsOK(ecode3)) {
4105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4106 }
4107 arg3 = static_cast< byte >(val3);
4108 }
fc46b7f3
RD
4109 if (obj3) {
4110 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4111 if (!SWIG_IsOK(ecode4)) {
4112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4113 }
4114 arg4 = static_cast< byte >(val4);
4115 }
0085ce49
RD
4116 {
4117 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4118 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
0085ce49
RD
4119 wxPyEndAllowThreads(__tstate);
4120 if (PyErr_Occurred()) SWIG_fail;
4121 }
4122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4123 return resultobj;
4124fail:
4125 return NULL;
d14a1e28
RD
4126}
4127
4128
0085ce49
RD
4129SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4130 PyObject *resultobj = 0;
4131 wxString *arg1 = 0 ;
4132 wxColour *result = 0 ;
4133 bool temp1 = false ;
4134 PyObject * obj0 = 0 ;
4135 char * kwnames[] = {
4136 (char *) "colorName", NULL
4137 };
4138
4139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4140 {
4141 arg1 = wxString_in_helper(obj0);
4142 if (arg1 == NULL) SWIG_fail;
4143 temp1 = true;
4144 }
4145 {
4146 if (!wxPyCheckForApp()) SWIG_fail;
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 result = (wxColour *)new wxColour((wxString const &)*arg1);
4149 wxPyEndAllowThreads(__tstate);
4150 if (PyErr_Occurred()) SWIG_fail;
4151 }
4152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4153 {
4154 if (temp1)
4155 delete arg1;
4156 }
4157 return resultobj;
4158fail:
4159 {
4160 if (temp1)
4161 delete arg1;
4162 }
4163 return NULL;
d14a1e28
RD
4164}
4165
4166
0085ce49
RD
4167SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4168 PyObject *resultobj = 0;
4169 unsigned long arg1 ;
4170 wxColour *result = 0 ;
4171 unsigned long val1 ;
4172 int ecode1 = 0 ;
4173 PyObject * obj0 = 0 ;
4174 char * kwnames[] = {
4175 (char *) "colRGB", NULL
4176 };
4177
4178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4179 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4180 if (!SWIG_IsOK(ecode1)) {
4181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4182 }
4183 arg1 = static_cast< unsigned long >(val1);
4184 {
4185 PyThreadState* __tstate = wxPyBeginAllowThreads();
4186 result = (wxColour *)new wxColour(arg1);
4187 wxPyEndAllowThreads(__tstate);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 }
4190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4191 return resultobj;
4192fail:
4193 return NULL;
d14a1e28
RD
4194}
4195
4196
0085ce49
RD
4197SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4198 PyObject *resultobj = 0;
4199 wxColour *arg1 = (wxColour *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
4207 if (!SWIG_IsOK(res1)) {
4208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4209 }
4210 arg1 = reinterpret_cast< wxColour * >(argp1);
4211 {
4212 PyThreadState* __tstate = wxPyBeginAllowThreads();
4213 delete arg1;
d14a1e28 4214
0085ce49
RD
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 resultobj = SWIG_Py_Void();
4219 return resultobj;
4220fail:
4221 return NULL;
d14a1e28
RD
4222}
4223
4224
0085ce49
RD
4225SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4226 PyObject *resultobj = 0;
4227 wxColour *arg1 = (wxColour *) 0 ;
4228 byte result;
4229 void *argp1 = 0 ;
4230 int res1 = 0 ;
4231 PyObject *swig_obj[1] ;
4232
4233 if (!args) SWIG_fail;
4234 swig_obj[0] = args;
4235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4236 if (!SWIG_IsOK(res1)) {
4237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4238 }
4239 arg1 = reinterpret_cast< wxColour * >(argp1);
4240 {
4241 PyThreadState* __tstate = wxPyBeginAllowThreads();
4242 result = (byte)(arg1)->Red();
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4247 return resultobj;
4248fail:
4249 return NULL;
d14a1e28
RD
4250}
4251
4252
0085ce49
RD
4253SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4254 PyObject *resultobj = 0;
4255 wxColour *arg1 = (wxColour *) 0 ;
4256 byte result;
4257 void *argp1 = 0 ;
4258 int res1 = 0 ;
4259 PyObject *swig_obj[1] ;
4260
4261 if (!args) SWIG_fail;
4262 swig_obj[0] = args;
4263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4264 if (!SWIG_IsOK(res1)) {
4265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4266 }
4267 arg1 = reinterpret_cast< wxColour * >(argp1);
4268 {
4269 PyThreadState* __tstate = wxPyBeginAllowThreads();
4270 result = (byte)(arg1)->Green();
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4275 return resultobj;
4276fail:
4277 return NULL;
5cbf236d
RD
4278}
4279
4280
0085ce49
RD
4281SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4282 PyObject *resultobj = 0;
4283 wxColour *arg1 = (wxColour *) 0 ;
4284 byte result;
4285 void *argp1 = 0 ;
4286 int res1 = 0 ;
4287 PyObject *swig_obj[1] ;
4288
4289 if (!args) SWIG_fail;
4290 swig_obj[0] = args;
4291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4292 if (!SWIG_IsOK(res1)) {
4293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4294 }
4295 arg1 = reinterpret_cast< wxColour * >(argp1);
4296 {
4297 PyThreadState* __tstate = wxPyBeginAllowThreads();
4298 result = (byte)(arg1)->Blue();
4299 wxPyEndAllowThreads(__tstate);
4300 if (PyErr_Occurred()) SWIG_fail;
4301 }
4302 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4303 return resultobj;
4304fail:
4305 return NULL;
d14a1e28
RD
4306}
4307
4308
fc46b7f3
RD
4309SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4310 PyObject *resultobj = 0;
4311 wxColour *arg1 = (wxColour *) 0 ;
4312 byte result;
4313 void *argp1 = 0 ;
4314 int res1 = 0 ;
4315 PyObject *swig_obj[1] ;
4316
4317 if (!args) SWIG_fail;
4318 swig_obj[0] = args;
4319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4322 }
4323 arg1 = reinterpret_cast< wxColour * >(argp1);
4324 {
4325 PyThreadState* __tstate = wxPyBeginAllowThreads();
4326 result = (byte)(arg1)->Alpha();
4327 wxPyEndAllowThreads(__tstate);
4328 if (PyErr_Occurred()) SWIG_fail;
4329 }
4330 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4331 return resultobj;
4332fail:
4333 return NULL;
4334}
4335
4336
b39fe951 4337SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4338 PyObject *resultobj = 0;
4339 wxColour *arg1 = (wxColour *) 0 ;
4340 bool result;
4341 void *argp1 = 0 ;
4342 int res1 = 0 ;
4343 PyObject *swig_obj[1] ;
4344
4345 if (!args) SWIG_fail;
4346 swig_obj[0] = args;
4347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4348 if (!SWIG_IsOK(res1)) {
b39fe951 4349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4350 }
4351 arg1 = reinterpret_cast< wxColour * >(argp1);
4352 {
4353 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4354 result = (bool)(arg1)->IsOk();
0085ce49
RD
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 }
4358 {
4359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4360 }
4361 return resultobj;
4362fail:
4363 return NULL;
4364}
4365
4366
4367SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4368 PyObject *resultobj = 0;
4369 wxColour *arg1 = (wxColour *) 0 ;
4370 byte arg2 ;
4371 byte arg3 ;
4372 byte arg4 ;
fc46b7f3 4373 byte arg5 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4374 void *argp1 = 0 ;
4375 int res1 = 0 ;
4376 unsigned char val2 ;
4377 int ecode2 = 0 ;
4378 unsigned char val3 ;
4379 int ecode3 = 0 ;
4380 unsigned char val4 ;
4381 int ecode4 = 0 ;
fc46b7f3
RD
4382 unsigned char val5 ;
4383 int ecode5 = 0 ;
0085ce49
RD
4384 PyObject * obj0 = 0 ;
4385 PyObject * obj1 = 0 ;
4386 PyObject * obj2 = 0 ;
4387 PyObject * obj3 = 0 ;
fc46b7f3 4388 PyObject * obj4 = 0 ;
0085ce49 4389 char * kwnames[] = {
fc46b7f3 4390 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4391 };
4392
fc46b7f3 4393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
0085ce49
RD
4394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4395 if (!SWIG_IsOK(res1)) {
4396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4397 }
4398 arg1 = reinterpret_cast< wxColour * >(argp1);
4399 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4400 if (!SWIG_IsOK(ecode2)) {
4401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4402 }
4403 arg2 = static_cast< byte >(val2);
4404 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4405 if (!SWIG_IsOK(ecode3)) {
4406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4407 }
4408 arg3 = static_cast< byte >(val3);
4409 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4410 if (!SWIG_IsOK(ecode4)) {
4411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4412 }
4413 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4414 if (obj4) {
4415 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4416 if (!SWIG_IsOK(ecode5)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4418 }
4419 arg5 = static_cast< byte >(val5);
4420 }
0085ce49
RD
4421 {
4422 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4423 (arg1)->Set(arg2,arg3,arg4,arg5);
0085ce49
RD
4424 wxPyEndAllowThreads(__tstate);
4425 if (PyErr_Occurred()) SWIG_fail;
4426 }
4427 resultobj = SWIG_Py_Void();
4428 return resultobj;
4429fail:
4430 return NULL;
4431}
4432
4433
4434SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4435 PyObject *resultobj = 0;
4436 wxColour *arg1 = (wxColour *) 0 ;
4437 unsigned long arg2 ;
4438 void *argp1 = 0 ;
4439 int res1 = 0 ;
4440 unsigned long val2 ;
4441 int ecode2 = 0 ;
4442 PyObject * obj0 = 0 ;
4443 PyObject * obj1 = 0 ;
4444 char * kwnames[] = {
4445 (char *) "self",(char *) "colRGB", NULL
4446 };
4447
4448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4450 if (!SWIG_IsOK(res1)) {
4451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4452 }
4453 arg1 = reinterpret_cast< wxColour * >(argp1);
4454 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4455 if (!SWIG_IsOK(ecode2)) {
4456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4457 }
4458 arg2 = static_cast< unsigned long >(val2);
4459 {
4460 PyThreadState* __tstate = wxPyBeginAllowThreads();
4461 (arg1)->Set(arg2);
4462 wxPyEndAllowThreads(__tstate);
4463 if (PyErr_Occurred()) SWIG_fail;
4464 }
4465 resultobj = SWIG_Py_Void();
4466 return resultobj;
4467fail:
4468 return NULL;
4469}
4470
4471
4472SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4473 PyObject *resultobj = 0;
4474 wxColour *arg1 = (wxColour *) 0 ;
4475 wxString *arg2 = 0 ;
4476 void *argp1 = 0 ;
4477 int res1 = 0 ;
4478 bool temp2 = false ;
4479 PyObject * obj0 = 0 ;
4480 PyObject * obj1 = 0 ;
4481 char * kwnames[] = {
4482 (char *) "self",(char *) "colourName", NULL
4483 };
4484
4485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4487 if (!SWIG_IsOK(res1)) {
4488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4489 }
4490 arg1 = reinterpret_cast< wxColour * >(argp1);
4491 {
4492 arg2 = wxString_in_helper(obj1);
4493 if (arg2 == NULL) SWIG_fail;
4494 temp2 = true;
4495 }
4496 {
4497 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4498 (arg1)->Set((wxString const &)*arg2);
0085ce49
RD
4499 wxPyEndAllowThreads(__tstate);
4500 if (PyErr_Occurred()) SWIG_fail;
4501 }
4502 resultobj = SWIG_Py_Void();
4503 {
4504 if (temp2)
4505 delete arg2;
4506 }
4507 return resultobj;
4508fail:
4509 {
4510 if (temp2)
4511 delete arg2;
4512 }
4513 return NULL;
d14a1e28
RD
4514}
4515
4516
01f6b6d3
RD
4517SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4518 PyObject *resultobj = 0;
4519 wxColour *arg1 = (wxColour *) 0 ;
4520 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4521 wxString result;
4522 void *argp1 = 0 ;
4523 int res1 = 0 ;
4524 long val2 ;
4525 int ecode2 = 0 ;
4526 PyObject * obj0 = 0 ;
4527 PyObject * obj1 = 0 ;
4528 char * kwnames[] = {
4529 (char *) "self",(char *) "flags", NULL
4530 };
4531
4532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4534 if (!SWIG_IsOK(res1)) {
4535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4536 }
4537 arg1 = reinterpret_cast< wxColour * >(argp1);
4538 if (obj1) {
4539 ecode2 = SWIG_AsVal_long(obj1, &val2);
4540 if (!SWIG_IsOK(ecode2)) {
4541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4542 }
4543 arg2 = static_cast< long >(val2);
4544 }
4545 {
4546 PyThreadState* __tstate = wxPyBeginAllowThreads();
4547 result = ((wxColour const *)arg1)->GetAsString(arg2);
4548 wxPyEndAllowThreads(__tstate);
4549 if (PyErr_Occurred()) SWIG_fail;
4550 }
4551 {
4552#if wxUSE_UNICODE
4553 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4554#else
4555 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4556#endif
4557 }
4558 return resultobj;
4559fail:
4560 return NULL;
4561}
4562
4563
0085ce49
RD
4564SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4565 PyObject *resultobj = 0;
4566 wxColour *arg1 = (wxColour *) 0 ;
4567 long result;
4568 void *argp1 = 0 ;
4569 int res1 = 0 ;
4570 PyObject *swig_obj[1] ;
4571
4572 if (!args) SWIG_fail;
4573 swig_obj[0] = args;
4574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4575 if (!SWIG_IsOK(res1)) {
4576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4577 }
4578 arg1 = reinterpret_cast< wxColour * >(argp1);
4579 {
4580 PyThreadState* __tstate = wxPyBeginAllowThreads();
4581 result = (long)((wxColour const *)arg1)->GetPixel();
4582 wxPyEndAllowThreads(__tstate);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 }
4585 resultobj = SWIG_From_long(static_cast< long >(result));
4586 return resultobj;
4587fail:
4588 return NULL;
4589}
4590
4591
4592SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4593 PyObject *resultobj = 0;
4594 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4595 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4596 bool result;
4597 void *argp1 = 0 ;
4598 int res1 = 0 ;
0085ce49
RD
4599 PyObject * obj0 = 0 ;
4600 PyObject * obj1 = 0 ;
4601 char * kwnames[] = {
e9d6f3a4 4602 (char *) "self",(char *) "other", NULL
0085ce49
RD
4603 };
4604
4605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4607 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4609 }
4610 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4611 arg2 = obj1;
0085ce49 4612 {
e9d6f3a4 4613 result = (bool)wxColour___eq__(arg1,arg2);
0085ce49
RD
4614 if (PyErr_Occurred()) SWIG_fail;
4615 }
4616 {
4617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4618 }
4619 return resultobj;
4620fail:
4621 return NULL;
4622}
4623
4624
4625SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4626 PyObject *resultobj = 0;
4627 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4628 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4629 bool result;
4630 void *argp1 = 0 ;
4631 int res1 = 0 ;
0085ce49
RD
4632 PyObject * obj0 = 0 ;
4633 PyObject * obj1 = 0 ;
4634 char * kwnames[] = {
e9d6f3a4 4635 (char *) "self",(char *) "other", NULL
0085ce49
RD
4636 };
4637
4638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4640 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4642 }
4643 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4644 arg2 = obj1;
0085ce49 4645 {
e9d6f3a4 4646 result = (bool)wxColour___ne__(arg1,arg2);
0085ce49
RD
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 {
4650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4651 }
4652 return resultobj;
4653fail:
4654 return NULL;
d14a1e28
RD
4655}
4656
4657
fc46b7f3 4658SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
4659 PyObject *resultobj = 0;
4660 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4661 bool arg2 = (bool) false ;
0085ce49
RD
4662 PyObject *result = 0 ;
4663 void *argp1 = 0 ;
4664 int res1 = 0 ;
fc46b7f3
RD
4665 bool val2 ;
4666 int ecode2 = 0 ;
4667 PyObject * obj0 = 0 ;
4668 PyObject * obj1 = 0 ;
4669 char * kwnames[] = {
4670 (char *) "self",(char *) "includeAlpha", NULL
4671 };
0085ce49 4672
fc46b7f3
RD
4673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
0085ce49
RD
4675 if (!SWIG_IsOK(res1)) {
4676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4677 }
4678 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4679 if (obj1) {
4680 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4681 if (!SWIG_IsOK(ecode2)) {
4682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4683 }
4684 arg2 = static_cast< bool >(val2);
4685 }
0085ce49 4686 {
fc46b7f3 4687 result = (PyObject *)wxColour_Get(arg1,arg2);
0085ce49
RD
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
4690 resultobj = result;
4691 return resultobj;
4692fail:
4693 return NULL;
d14a1e28
RD
4694}
4695
4696
0085ce49
RD
4697SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4698 PyObject *resultobj = 0;
4699 wxColour *arg1 = (wxColour *) 0 ;
4700 unsigned long result;
4701 void *argp1 = 0 ;
4702 int res1 = 0 ;
4703 PyObject *swig_obj[1] ;
4704
4705 if (!args) SWIG_fail;
4706 swig_obj[0] = args;
4707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4708 if (!SWIG_IsOK(res1)) {
4709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4710 }
4711 arg1 = reinterpret_cast< wxColour * >(argp1);
4712 {
0085ce49 4713 result = (unsigned long)wxColour_GetRGB(arg1);
0085ce49
RD
4714 if (PyErr_Occurred()) SWIG_fail;
4715 }
4716 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4717 return resultobj;
4718fail:
4719 return NULL;
4720}
4721
4722
4723SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4724 PyObject *obj;
4725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4726 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4727 return SWIG_Py_Void();
4728}
4729
4730SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4731 return SWIG_Python_InitShadowInstance(args);
4732}
4733
4734SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4735 PyObject *resultobj = 0;
4736 int arg1 ;
4737 unsigned char *arg2 = (unsigned char *) 0 ;
4738 unsigned char *arg3 = (unsigned char *) 0 ;
4739 unsigned char *arg4 = (unsigned char *) 0 ;
4740 wxPalette *result = 0 ;
4741 int val1 ;
4742 int ecode1 = 0 ;
4743 void *argp2 = 0 ;
4744 int res2 = 0 ;
4745 void *argp3 = 0 ;
4746 int res3 = 0 ;
4747 void *argp4 = 0 ;
4748 int res4 = 0 ;
4749 PyObject * obj0 = 0 ;
4750 PyObject * obj1 = 0 ;
4751 PyObject * obj2 = 0 ;
4752 PyObject * obj3 = 0 ;
4753 char * kwnames[] = {
4754 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4755 };
4756
4757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4758 ecode1 = SWIG_AsVal_int(obj0, &val1);
4759 if (!SWIG_IsOK(ecode1)) {
4760 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4761 }
4762 arg1 = static_cast< int >(val1);
4763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4764 if (!SWIG_IsOK(res2)) {
4765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4766 }
4767 arg2 = reinterpret_cast< unsigned char * >(argp2);
4768 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4769 if (!SWIG_IsOK(res3)) {
4770 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4771 }
4772 arg3 = reinterpret_cast< unsigned char * >(argp3);
4773 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4774 if (!SWIG_IsOK(res4)) {
4775 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4776 }
4777 arg4 = reinterpret_cast< unsigned char * >(argp4);
4778 {
4779 if (!wxPyCheckForApp()) SWIG_fail;
4780 PyThreadState* __tstate = wxPyBeginAllowThreads();
4781 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4782 wxPyEndAllowThreads(__tstate);
4783 if (PyErr_Occurred()) SWIG_fail;
4784 }
4785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4786 return resultobj;
4787fail:
4788 return NULL;
d14a1e28
RD
4789}
4790
4791
0085ce49
RD
4792SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4793 PyObject *resultobj = 0;
4794 wxPalette *arg1 = (wxPalette *) 0 ;
4795 void *argp1 = 0 ;
4796 int res1 = 0 ;
4797 PyObject *swig_obj[1] ;
4798
4799 if (!args) SWIG_fail;
4800 swig_obj[0] = args;
4801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4802 if (!SWIG_IsOK(res1)) {
4803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4804 }
4805 arg1 = reinterpret_cast< wxPalette * >(argp1);
4806 {
4807 PyThreadState* __tstate = wxPyBeginAllowThreads();
4808 delete arg1;
d14a1e28 4809
0085ce49
RD
4810 wxPyEndAllowThreads(__tstate);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 }
4813 resultobj = SWIG_Py_Void();
4814 return resultobj;
4815fail:
4816 return NULL;
4817}
4818
4819
4820SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4821 PyObject *resultobj = 0;
4822 wxPalette *arg1 = (wxPalette *) 0 ;
4823 byte arg2 ;
4824 byte arg3 ;
4825 byte arg4 ;
4826 int result;
4827 void *argp1 = 0 ;
4828 int res1 = 0 ;
4829 unsigned char val2 ;
4830 int ecode2 = 0 ;
4831 unsigned char val3 ;
4832 int ecode3 = 0 ;
4833 unsigned char val4 ;
4834 int ecode4 = 0 ;
4835 PyObject * obj0 = 0 ;
4836 PyObject * obj1 = 0 ;
4837 PyObject * obj2 = 0 ;
4838 PyObject * obj3 = 0 ;
4839 char * kwnames[] = {
4840 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4841 };
4842
4843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4845 if (!SWIG_IsOK(res1)) {
4846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4847 }
4848 arg1 = reinterpret_cast< wxPalette * >(argp1);
4849 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4850 if (!SWIG_IsOK(ecode2)) {
4851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4852 }
4853 arg2 = static_cast< byte >(val2);
4854 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4855 if (!SWIG_IsOK(ecode3)) {
4856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4857 }
4858 arg3 = static_cast< byte >(val3);
4859 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4860 if (!SWIG_IsOK(ecode4)) {
4861 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4862 }
4863 arg4 = static_cast< byte >(val4);
4864 {
4865 PyThreadState* __tstate = wxPyBeginAllowThreads();
4866 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4867 wxPyEndAllowThreads(__tstate);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 resultobj = SWIG_From_int(static_cast< int >(result));
4871 return resultobj;
4872fail:
4873 return NULL;
4874}
4875
4876
4877SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4878 PyObject *resultobj = 0;
4879 wxPalette *arg1 = (wxPalette *) 0 ;
4880 int arg2 ;
4881 byte *arg3 = (byte *) 0 ;
4882 byte *arg4 = (byte *) 0 ;
4883 byte *arg5 = (byte *) 0 ;
4884 bool result;
4885 void *argp1 = 0 ;
4886 int res1 = 0 ;
4887 int val2 ;
4888 int ecode2 = 0 ;
4889 byte temp3 ;
4890 int res3 = SWIG_TMPOBJ ;
4891 byte temp4 ;
4892 int res4 = SWIG_TMPOBJ ;
4893 byte temp5 ;
4894 int res5 = SWIG_TMPOBJ ;
4895 PyObject * obj0 = 0 ;
4896 PyObject * obj1 = 0 ;
4897 char * kwnames[] = {
4898 (char *) "self",(char *) "pixel", NULL
4899 };
4900
4901 arg3 = &temp3;
4902 arg4 = &temp4;
4903 arg5 = &temp5;
4904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4906 if (!SWIG_IsOK(res1)) {
4907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4908 }
4909 arg1 = reinterpret_cast< wxPalette * >(argp1);
4910 ecode2 = SWIG_AsVal_int(obj1, &val2);
4911 if (!SWIG_IsOK(ecode2)) {
4912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4913 }
4914 arg2 = static_cast< int >(val2);
4915 {
4916 PyThreadState* __tstate = wxPyBeginAllowThreads();
4917 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4918 wxPyEndAllowThreads(__tstate);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 {
4922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4923 }
4924 if (SWIG_IsTmpObj(res3)) {
4925 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4926 } else {
4927 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4929 }
4930 if (SWIG_IsTmpObj(res4)) {
4931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4932 } else {
4933 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4935 }
4936 if (SWIG_IsTmpObj(res5)) {
4937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4938 } else {
4939 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4941 }
4942 return resultobj;
4943fail:
4944 return NULL;
d14a1e28
RD
4945}
4946
4947
0085ce49
RD
4948SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4949 PyObject *resultobj = 0;
4950 wxPalette *arg1 = (wxPalette *) 0 ;
4951 int result;
4952 void *argp1 = 0 ;
4953 int res1 = 0 ;
4954 PyObject *swig_obj[1] ;
4955
4956 if (!args) SWIG_fail;
4957 swig_obj[0] = args;
4958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4959 if (!SWIG_IsOK(res1)) {
4960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4961 }
4962 arg1 = reinterpret_cast< wxPalette * >(argp1);
4963 {
4964 PyThreadState* __tstate = wxPyBeginAllowThreads();
4965 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4966 wxPyEndAllowThreads(__tstate);
4967 if (PyErr_Occurred()) SWIG_fail;
4968 }
4969 resultobj = SWIG_From_int(static_cast< int >(result));
4970 return resultobj;
4971fail:
4972 return NULL;
d14a1e28
RD
4973}
4974
4975
b39fe951 4976SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4977 PyObject *resultobj = 0;
4978 wxPalette *arg1 = (wxPalette *) 0 ;
4979 bool result;
4980 void *argp1 = 0 ;
4981 int res1 = 0 ;
4982 PyObject *swig_obj[1] ;
4983
4984 if (!args) SWIG_fail;
4985 swig_obj[0] = args;
4986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4987 if (!SWIG_IsOK(res1)) {
b39fe951 4988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
0085ce49
RD
4989 }
4990 arg1 = reinterpret_cast< wxPalette * >(argp1);
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4993 result = (bool)(arg1)->IsOk();
0085ce49
RD
4994 wxPyEndAllowThreads(__tstate);
4995 if (PyErr_Occurred()) SWIG_fail;
4996 }
4997 {
4998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4999 }
5000 return resultobj;
5001fail:
5002 return NULL;
5003}
5004
5005
5006SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5007 PyObject *obj;
5008 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5009 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5010 return SWIG_Py_Void();
5011}
5012
5013SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5014 return SWIG_Python_InitShadowInstance(args);
5015}
5016
5017SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5018 PyObject *resultobj = 0;
5019 wxColour *arg1 = 0 ;
5020 int arg2 = (int) 1 ;
5021 int arg3 = (int) wxSOLID ;
5022 wxPen *result = 0 ;
5023 wxColour temp1 ;
5024 int val2 ;
5025 int ecode2 = 0 ;
5026 int val3 ;
5027 int ecode3 = 0 ;
5028 PyObject * obj0 = 0 ;
5029 PyObject * obj1 = 0 ;
5030 PyObject * obj2 = 0 ;
5031 char * kwnames[] = {
5032 (char *) "colour",(char *) "width",(char *) "style", NULL
5033 };
5034
5035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5036 {
5037 arg1 = &temp1;
5038 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5039 }
5040 if (obj1) {
5041 ecode2 = SWIG_AsVal_int(obj1, &val2);
5042 if (!SWIG_IsOK(ecode2)) {
5043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5044 }
5045 arg2 = static_cast< int >(val2);
5046 }
5047 if (obj2) {
5048 ecode3 = SWIG_AsVal_int(obj2, &val3);
5049 if (!SWIG_IsOK(ecode3)) {
5050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5051 }
5052 arg3 = static_cast< int >(val3);
5053 }
5054 {
5055 if (!wxPyCheckForApp()) SWIG_fail;
5056 PyThreadState* __tstate = wxPyBeginAllowThreads();
5057 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5058 wxPyEndAllowThreads(__tstate);
5059 if (PyErr_Occurred()) SWIG_fail;
5060 }
5061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5062 return resultobj;
5063fail:
5064 return NULL;
d14a1e28
RD
5065}
5066
5067
0085ce49
RD
5068SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5069 PyObject *resultobj = 0;
5070 wxPen *arg1 = (wxPen *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
5078 if (!SWIG_IsOK(res1)) {
5079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5080 }
5081 arg1 = reinterpret_cast< wxPen * >(argp1);
5082 {
5083 PyThreadState* __tstate = wxPyBeginAllowThreads();
5084 delete arg1;
d14a1e28 5085
0085ce49
RD
5086 wxPyEndAllowThreads(__tstate);
5087 if (PyErr_Occurred()) SWIG_fail;
5088 }
5089 resultobj = SWIG_Py_Void();
5090 return resultobj;
5091fail:
5092 return NULL;
d14a1e28
RD
5093}
5094
5095
0085ce49
RD
5096SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5097 PyObject *resultobj = 0;
5098 wxPen *arg1 = (wxPen *) 0 ;
5099 int result;
5100 void *argp1 = 0 ;
5101 int res1 = 0 ;
5102 PyObject *swig_obj[1] ;
5103
5104 if (!args) SWIG_fail;
5105 swig_obj[0] = args;
5106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5107 if (!SWIG_IsOK(res1)) {
5108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5109 }
5110 arg1 = reinterpret_cast< wxPen * >(argp1);
5111 {
5112 PyThreadState* __tstate = wxPyBeginAllowThreads();
5113 result = (int)(arg1)->GetCap();
5114 wxPyEndAllowThreads(__tstate);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 }
5117 resultobj = SWIG_From_int(static_cast< int >(result));
5118 return resultobj;
5119fail:
5120 return NULL;
d14a1e28
RD
5121}
5122
5123
0085ce49
RD
5124SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5125 PyObject *resultobj = 0;
5126 wxPen *arg1 = (wxPen *) 0 ;
5127 wxColour result;
5128 void *argp1 = 0 ;
5129 int res1 = 0 ;
5130 PyObject *swig_obj[1] ;
5131
5132 if (!args) SWIG_fail;
5133 swig_obj[0] = args;
5134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5135 if (!SWIG_IsOK(res1)) {
5136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5137 }
5138 arg1 = reinterpret_cast< wxPen * >(argp1);
5139 {
5140 PyThreadState* __tstate = wxPyBeginAllowThreads();
5141 result = (arg1)->GetColour();
5142 wxPyEndAllowThreads(__tstate);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 }
5145 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5146 return resultobj;
5147fail:
5148 return NULL;
d14a1e28
RD
5149}
5150
5151
0085ce49
RD
5152SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5153 PyObject *resultobj = 0;
5154 wxPen *arg1 = (wxPen *) 0 ;
5155 int result;
5156 void *argp1 = 0 ;
5157 int res1 = 0 ;
5158 PyObject *swig_obj[1] ;
5159
5160 if (!args) SWIG_fail;
5161 swig_obj[0] = args;
5162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5163 if (!SWIG_IsOK(res1)) {
5164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5165 }
5166 arg1 = reinterpret_cast< wxPen * >(argp1);
5167 {
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (int)(arg1)->GetJoin();
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 resultobj = SWIG_From_int(static_cast< int >(result));
5174 return resultobj;
5175fail:
5176 return NULL;
d14a1e28
RD
5177}
5178
5179
0085ce49
RD
5180SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5181 PyObject *resultobj = 0;
5182 wxPen *arg1 = (wxPen *) 0 ;
5183 int result;
5184 void *argp1 = 0 ;
5185 int res1 = 0 ;
5186 PyObject *swig_obj[1] ;
5187
5188 if (!args) SWIG_fail;
5189 swig_obj[0] = args;
5190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5191 if (!SWIG_IsOK(res1)) {
5192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5193 }
5194 arg1 = reinterpret_cast< wxPen * >(argp1);
5195 {
5196 PyThreadState* __tstate = wxPyBeginAllowThreads();
5197 result = (int)(arg1)->GetStyle();
5198 wxPyEndAllowThreads(__tstate);
5199 if (PyErr_Occurred()) SWIG_fail;
5200 }
5201 resultobj = SWIG_From_int(static_cast< int >(result));
5202 return resultobj;
5203fail:
5204 return NULL;
3adfb63b
RD
5205}
5206
5207
0085ce49
RD
5208SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5209 PyObject *resultobj = 0;
5210 wxPen *arg1 = (wxPen *) 0 ;
5211 int result;
5212 void *argp1 = 0 ;
5213 int res1 = 0 ;
5214 PyObject *swig_obj[1] ;
5215
5216 if (!args) SWIG_fail;
5217 swig_obj[0] = args;
5218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5219 if (!SWIG_IsOK(res1)) {
5220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5221 }
5222 arg1 = reinterpret_cast< wxPen * >(argp1);
5223 {
5224 PyThreadState* __tstate = wxPyBeginAllowThreads();
5225 result = (int)(arg1)->GetWidth();
5226 wxPyEndAllowThreads(__tstate);
5227 if (PyErr_Occurred()) SWIG_fail;
5228 }
5229 resultobj = SWIG_From_int(static_cast< int >(result));
5230 return resultobj;
5231fail:
5232 return NULL;
d14a1e28
RD
5233}
5234
5235
b39fe951 5236SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
5237 PyObject *resultobj = 0;
5238 wxPen *arg1 = (wxPen *) 0 ;
5239 bool result;
5240 void *argp1 = 0 ;
5241 int res1 = 0 ;
5242 PyObject *swig_obj[1] ;
5243
5244 if (!args) SWIG_fail;
5245 swig_obj[0] = args;
5246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5247 if (!SWIG_IsOK(res1)) {
b39fe951 5248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
0085ce49
RD
5249 }
5250 arg1 = reinterpret_cast< wxPen * >(argp1);
5251 {
5252 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5253 result = (bool)(arg1)->IsOk();
0085ce49
RD
5254 wxPyEndAllowThreads(__tstate);
5255 if (PyErr_Occurred()) SWIG_fail;
5256 }
5257 {
5258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5259 }
5260 return resultobj;
5261fail:
5262 return NULL;
5263}
5264
5265
5266SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5267 PyObject *resultobj = 0;
5268 wxPen *arg1 = (wxPen *) 0 ;
5269 int arg2 ;
5270 void *argp1 = 0 ;
5271 int res1 = 0 ;
5272 int val2 ;
5273 int ecode2 = 0 ;
5274 PyObject * obj0 = 0 ;
5275 PyObject * obj1 = 0 ;
5276 char * kwnames[] = {
5277 (char *) "self",(char *) "cap_style", NULL
5278 };
5279
5280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5282 if (!SWIG_IsOK(res1)) {
5283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5284 }
5285 arg1 = reinterpret_cast< wxPen * >(argp1);
5286 ecode2 = SWIG_AsVal_int(obj1, &val2);
5287 if (!SWIG_IsOK(ecode2)) {
5288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5289 }
5290 arg2 = static_cast< int >(val2);
5291 {
5292 PyThreadState* __tstate = wxPyBeginAllowThreads();
5293 (arg1)->SetCap(arg2);
5294 wxPyEndAllowThreads(__tstate);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 }
5297 resultobj = SWIG_Py_Void();
5298 return resultobj;
5299fail:
5300 return NULL;
5301}
5302
5303
5304SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5305 PyObject *resultobj = 0;
5306 wxPen *arg1 = (wxPen *) 0 ;
5307 wxColour *arg2 = 0 ;
5308 void *argp1 = 0 ;
5309 int res1 = 0 ;
5310 wxColour temp2 ;
5311 PyObject * obj0 = 0 ;
5312 PyObject * obj1 = 0 ;
5313 char * kwnames[] = {
5314 (char *) "self",(char *) "colour", NULL
5315 };
5316
5317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5319 if (!SWIG_IsOK(res1)) {
5320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5321 }
5322 arg1 = reinterpret_cast< wxPen * >(argp1);
5323 {
5324 arg2 = &temp2;
5325 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5326 }
5327 {
5328 PyThreadState* __tstate = wxPyBeginAllowThreads();
5329 (arg1)->SetColour(*arg2);
5330 wxPyEndAllowThreads(__tstate);
5331 if (PyErr_Occurred()) SWIG_fail;
5332 }
5333 resultobj = SWIG_Py_Void();
5334 return resultobj;
5335fail:
5336 return NULL;
5337}
5338
5339
5340SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5341 PyObject *resultobj = 0;
5342 wxPen *arg1 = (wxPen *) 0 ;
5343 int arg2 ;
5344 void *argp1 = 0 ;
5345 int res1 = 0 ;
5346 int val2 ;
5347 int ecode2 = 0 ;
5348 PyObject * obj0 = 0 ;
5349 PyObject * obj1 = 0 ;
5350 char * kwnames[] = {
5351 (char *) "self",(char *) "join_style", NULL
5352 };
5353
5354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5356 if (!SWIG_IsOK(res1)) {
5357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5358 }
5359 arg1 = reinterpret_cast< wxPen * >(argp1);
5360 ecode2 = SWIG_AsVal_int(obj1, &val2);
5361 if (!SWIG_IsOK(ecode2)) {
5362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5363 }
5364 arg2 = static_cast< int >(val2);
5365 {
5366 PyThreadState* __tstate = wxPyBeginAllowThreads();
5367 (arg1)->SetJoin(arg2);
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 resultobj = SWIG_Py_Void();
5372 return resultobj;
5373fail:
5374 return NULL;
5375}
5376
5377
5378SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj = 0;
5380 wxPen *arg1 = (wxPen *) 0 ;
5381 int arg2 ;
5382 void *argp1 = 0 ;
5383 int res1 = 0 ;
5384 int val2 ;
5385 int ecode2 = 0 ;
5386 PyObject * obj0 = 0 ;
5387 PyObject * obj1 = 0 ;
5388 char * kwnames[] = {
5389 (char *) "self",(char *) "style", NULL
5390 };
5391
5392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5394 if (!SWIG_IsOK(res1)) {
5395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5396 }
5397 arg1 = reinterpret_cast< wxPen * >(argp1);
5398 ecode2 = SWIG_AsVal_int(obj1, &val2);
5399 if (!SWIG_IsOK(ecode2)) {
5400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5401 }
5402 arg2 = static_cast< int >(val2);
5403 {
5404 PyThreadState* __tstate = wxPyBeginAllowThreads();
5405 (arg1)->SetStyle(arg2);
5406 wxPyEndAllowThreads(__tstate);
5407 if (PyErr_Occurred()) SWIG_fail;
5408 }
5409 resultobj = SWIG_Py_Void();
5410 return resultobj;
5411fail:
5412 return NULL;
5413}
5414
5415
5416SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5417 PyObject *resultobj = 0;
5418 wxPen *arg1 = (wxPen *) 0 ;
5419 int arg2 ;
5420 void *argp1 = 0 ;
5421 int res1 = 0 ;
5422 int val2 ;
5423 int ecode2 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 PyObject * obj1 = 0 ;
5426 char * kwnames[] = {
5427 (char *) "self",(char *) "width", NULL
5428 };
5429
5430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5432 if (!SWIG_IsOK(res1)) {
5433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5434 }
5435 arg1 = reinterpret_cast< wxPen * >(argp1);
5436 ecode2 = SWIG_AsVal_int(obj1, &val2);
5437 if (!SWIG_IsOK(ecode2)) {
5438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5439 }
5440 arg2 = static_cast< int >(val2);
5441 {
5442 PyThreadState* __tstate = wxPyBeginAllowThreads();
5443 (arg1)->SetWidth(arg2);
5444 wxPyEndAllowThreads(__tstate);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 }
5447 resultobj = SWIG_Py_Void();
5448 return resultobj;
5449fail:
5450 return NULL;
5451}
5452
5453
5454SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5455 PyObject *resultobj = 0;
5456 wxPen *arg1 = (wxPen *) 0 ;
5457 int arg2 ;
5458 wxDash *arg3 = (wxDash *) 0 ;
5459 void *argp1 = 0 ;
5460 int res1 = 0 ;
5461 PyObject * obj0 = 0 ;
5462 PyObject * obj1 = 0 ;
5463 char * kwnames[] = {
5464 (char *) "self",(char *) "dashes", NULL
5465 };
5466
5467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5469 if (!SWIG_IsOK(res1)) {
5470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5471 }
5472 arg1 = reinterpret_cast< wxPen * >(argp1);
5473 {
5474 arg2 = PyList_Size(obj1);
5475 arg3 = (wxDash*)byte_LIST_helper(obj1);
5476 if (arg3 == NULL) SWIG_fail;
5477 }
5478 {
5479 PyThreadState* __tstate = wxPyBeginAllowThreads();
5480 (arg1)->SetDashes(arg2,arg3);
5481 wxPyEndAllowThreads(__tstate);
5482 if (PyErr_Occurred()) SWIG_fail;
5483 }
5484 resultobj = SWIG_Py_Void();
5485 {
5486 if (arg3) delete [] arg3;
5487 }
5488 return resultobj;
5489fail:
5490 {
5491 if (arg3) delete [] arg3;
5492 }
5493 return NULL;
d14a1e28
RD
5494}
5495
5496
0085ce49
RD
5497SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5498 PyObject *resultobj = 0;
5499 wxPen *arg1 = (wxPen *) 0 ;
5500 PyObject *result = 0 ;
5501 void *argp1 = 0 ;
5502 int res1 = 0 ;
5503 PyObject *swig_obj[1] ;
5504
5505 if (!args) SWIG_fail;
5506 swig_obj[0] = args;
5507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5508 if (!SWIG_IsOK(res1)) {
5509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5510 }
5511 arg1 = reinterpret_cast< wxPen * >(argp1);
5512 {
5513 PyThreadState* __tstate = wxPyBeginAllowThreads();
5514 result = (PyObject *)wxPen_GetDashes(arg1);
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 resultobj = result;
5519 return resultobj;
5520fail:
5521 return NULL;
5522}
5523
5524
5525SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5526 PyObject *resultobj = 0;
5527 wxPen *arg1 = (wxPen *) 0 ;
5528 PyObject *arg2 = (PyObject *) 0 ;
5529 PyObject *arg3 = (PyObject *) 0 ;
5530 void *argp1 = 0 ;
5531 int res1 = 0 ;
5532 PyObject * obj0 = 0 ;
5533 PyObject * obj1 = 0 ;
5534 PyObject * obj2 = 0 ;
5535 char * kwnames[] = {
5536 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5537 };
5538
5539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5541 if (!SWIG_IsOK(res1)) {
5542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5543 }
5544 arg1 = reinterpret_cast< wxPen * >(argp1);
5545 arg2 = obj1;
5546 arg3 = obj2;
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 wxPen__SetDashes(arg1,arg2,arg3);
5550 wxPyEndAllowThreads(__tstate);
5551 if (PyErr_Occurred()) SWIG_fail;
5552 }
5553 resultobj = SWIG_Py_Void();
5554 return resultobj;
5555fail:
5556 return NULL;
d14a1e28
RD
5557}
5558
5559
0085ce49
RD
5560SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5561 PyObject *resultobj = 0;
5562 wxPen *arg1 = (wxPen *) 0 ;
5563 int result;
5564 void *argp1 = 0 ;
5565 int res1 = 0 ;
5566 PyObject *swig_obj[1] ;
5567
5568 if (!args) SWIG_fail;
5569 swig_obj[0] = args;
5570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5571 if (!SWIG_IsOK(res1)) {
5572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5573 }
5574 arg1 = reinterpret_cast< wxPen * >(argp1);
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (int)((wxPen const *)arg1)->GetDashCount();
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 resultobj = SWIG_From_int(static_cast< int >(result));
5582 return resultobj;
5583fail:
5584 return NULL;
5585}
5586
5587
5588SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5589 PyObject *resultobj = 0;
5590 wxPen *arg1 = (wxPen *) 0 ;
5591 wxPen *arg2 = (wxPen *) 0 ;
5592 bool result;
5593 void *argp1 = 0 ;
5594 int res1 = 0 ;
5595 void *argp2 = 0 ;
5596 int res2 = 0 ;
5597 PyObject * obj0 = 0 ;
5598 PyObject * obj1 = 0 ;
5599 char * kwnames[] = {
5600 (char *) "self",(char *) "other", NULL
5601 };
5602
5603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5605 if (!SWIG_IsOK(res1)) {
5606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5607 }
5608 arg1 = reinterpret_cast< wxPen * >(argp1);
5609 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5610 if (!SWIG_IsOK(res2)) {
5611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5612 }
5613 arg2 = reinterpret_cast< wxPen * >(argp2);
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5617 wxPyEndAllowThreads(__tstate);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 {
5621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5622 }
5623 return resultobj;
5624fail:
5625 return NULL;
5626}
5627
5628
5629SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj = 0;
5631 wxPen *arg1 = (wxPen *) 0 ;
5632 wxPen *arg2 = (wxPen *) 0 ;
5633 bool result;
5634 void *argp1 = 0 ;
5635 int res1 = 0 ;
5636 void *argp2 = 0 ;
5637 int res2 = 0 ;
5638 PyObject * obj0 = 0 ;
5639 PyObject * obj1 = 0 ;
5640 char * kwnames[] = {
5641 (char *) "self",(char *) "other", NULL
5642 };
5643
5644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5646 if (!SWIG_IsOK(res1)) {
5647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5648 }
5649 arg1 = reinterpret_cast< wxPen * >(argp1);
5650 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5651 if (!SWIG_IsOK(res2)) {
5652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5653 }
5654 arg2 = reinterpret_cast< wxPen * >(argp2);
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 }
5661 {
5662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5663 }
5664 return resultobj;
5665fail:
5666 return NULL;
d14a1e28
RD
5667}
5668
5669
0085ce49
RD
5670SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5671 PyObject *obj;
5672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5673 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5674 return SWIG_Py_Void();
d14a1e28
RD
5675}
5676
0085ce49
RD
5677SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5678 return SWIG_Python_InitShadowInstance(args);
5679}
d14a1e28 5680
0085ce49
RD
5681SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5682 PyObject *resultobj = 0;
5683 wxColour *arg1 = 0 ;
5684 int arg2 = (int) wxSOLID ;
5685 wxBrush *result = 0 ;
5686 wxColour temp1 ;
5687 int val2 ;
5688 int ecode2 = 0 ;
5689 PyObject * obj0 = 0 ;
5690 PyObject * obj1 = 0 ;
5691 char * kwnames[] = {
5692 (char *) "colour",(char *) "style", NULL
5693 };
5694
5695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5696 {
5697 arg1 = &temp1;
5698 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5699 }
5700 if (obj1) {
5701 ecode2 = SWIG_AsVal_int(obj1, &val2);
5702 if (!SWIG_IsOK(ecode2)) {
5703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5704 }
5705 arg2 = static_cast< int >(val2);
5706 }
5707 {
5708 if (!wxPyCheckForApp()) SWIG_fail;
5709 PyThreadState* __tstate = wxPyBeginAllowThreads();
5710 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5711 wxPyEndAllowThreads(__tstate);
5712 if (PyErr_Occurred()) SWIG_fail;
5713 }
5714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5715 return resultobj;
5716fail:
5717 return NULL;
5718}
5719
5720
5721SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5722 PyObject *resultobj = 0;
5723 wxBitmap *arg1 = 0 ;
5724 wxBrush *result = 0 ;
5725 void *argp1 = 0 ;
5726 int res1 = 0 ;
5727 PyObject * obj0 = 0 ;
5728 char * kwnames[] = {
5729 (char *) "stippleBitmap", NULL
5730 };
5731
5732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5733 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5734 if (!SWIG_IsOK(res1)) {
5735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5736 }
5737 if (!argp1) {
5738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5739 }
5740 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5741 {
5742 if (!wxPyCheckForApp()) SWIG_fail;
5743 PyThreadState* __tstate = wxPyBeginAllowThreads();
5744 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5745 wxPyEndAllowThreads(__tstate);
5746 if (PyErr_Occurred()) SWIG_fail;
5747 }
5748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5749 return resultobj;
5750fail:
5751 return NULL;
d14a1e28
RD
5752}
5753
5754
0085ce49
RD
5755SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5756 PyObject *resultobj = 0;
5757 wxBrush *arg1 = (wxBrush *) 0 ;
5758 void *argp1 = 0 ;
5759 int res1 = 0 ;
5760 PyObject *swig_obj[1] ;
5761
5762 if (!args) SWIG_fail;
5763 swig_obj[0] = args;
5764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5765 if (!SWIG_IsOK(res1)) {
5766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5767 }
5768 arg1 = reinterpret_cast< wxBrush * >(argp1);
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 delete arg1;
d14a1e28 5772
0085ce49
RD
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
5776 resultobj = SWIG_Py_Void();
5777 return resultobj;
5778fail:
5779 return NULL;
5780}
5781
5782
5783SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5784 PyObject *resultobj = 0;
5785 wxBrush *arg1 = (wxBrush *) 0 ;
5786 wxColour *arg2 = 0 ;
5787 void *argp1 = 0 ;
5788 int res1 = 0 ;
5789 wxColour temp2 ;
5790 PyObject * obj0 = 0 ;
5791 PyObject * obj1 = 0 ;
5792 char * kwnames[] = {
5793 (char *) "self",(char *) "col", NULL
5794 };
5795
5796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5798 if (!SWIG_IsOK(res1)) {
5799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5800 }
5801 arg1 = reinterpret_cast< wxBrush * >(argp1);
5802 {
5803 arg2 = &temp2;
5804 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5805 }
5806 {
5807 PyThreadState* __tstate = wxPyBeginAllowThreads();
5808 (arg1)->SetColour((wxColour const &)*arg2);
5809 wxPyEndAllowThreads(__tstate);
5810 if (PyErr_Occurred()) SWIG_fail;
5811 }
5812 resultobj = SWIG_Py_Void();
5813 return resultobj;
5814fail:
5815 return NULL;
5816}
5817
5818
5819SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5820 PyObject *resultobj = 0;
5821 wxBrush *arg1 = (wxBrush *) 0 ;
5822 int arg2 ;
5823 void *argp1 = 0 ;
5824 int res1 = 0 ;
5825 int val2 ;
5826 int ecode2 = 0 ;
5827 PyObject * obj0 = 0 ;
5828 PyObject * obj1 = 0 ;
5829 char * kwnames[] = {
5830 (char *) "self",(char *) "style", NULL
5831 };
5832
5833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5835 if (!SWIG_IsOK(res1)) {
5836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5837 }
5838 arg1 = reinterpret_cast< wxBrush * >(argp1);
5839 ecode2 = SWIG_AsVal_int(obj1, &val2);
5840 if (!SWIG_IsOK(ecode2)) {
5841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5842 }
5843 arg2 = static_cast< int >(val2);
5844 {
5845 PyThreadState* __tstate = wxPyBeginAllowThreads();
5846 (arg1)->SetStyle(arg2);
5847 wxPyEndAllowThreads(__tstate);
5848 if (PyErr_Occurred()) SWIG_fail;
5849 }
5850 resultobj = SWIG_Py_Void();
5851 return resultobj;
5852fail:
5853 return NULL;
5854}
5855
5856
5857SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5858 PyObject *resultobj = 0;
5859 wxBrush *arg1 = (wxBrush *) 0 ;
5860 wxBitmap *arg2 = 0 ;
5861 void *argp1 = 0 ;
5862 int res1 = 0 ;
5863 void *argp2 = 0 ;
5864 int res2 = 0 ;
5865 PyObject * obj0 = 0 ;
5866 PyObject * obj1 = 0 ;
5867 char * kwnames[] = {
5868 (char *) "self",(char *) "stipple", NULL
5869 };
5870
5871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5873 if (!SWIG_IsOK(res1)) {
5874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5875 }
5876 arg1 = reinterpret_cast< wxBrush * >(argp1);
5877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5878 if (!SWIG_IsOK(res2)) {
5879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5880 }
5881 if (!argp2) {
5882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5883 }
5884 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5885 {
5886 PyThreadState* __tstate = wxPyBeginAllowThreads();
5887 (arg1)->SetStipple((wxBitmap const &)*arg2);
5888 wxPyEndAllowThreads(__tstate);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 resultobj = SWIG_Py_Void();
5892 return resultobj;
5893fail:
5894 return NULL;
d14a1e28
RD
5895}
5896
5897
0085ce49
RD
5898SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5899 PyObject *resultobj = 0;
5900 wxBrush *arg1 = (wxBrush *) 0 ;
5901 wxColour result;
5902 void *argp1 = 0 ;
5903 int res1 = 0 ;
5904 PyObject *swig_obj[1] ;
5905
5906 if (!args) SWIG_fail;
5907 swig_obj[0] = args;
5908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5909 if (!SWIG_IsOK(res1)) {
5910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5911 }
5912 arg1 = reinterpret_cast< wxBrush * >(argp1);
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 result = ((wxBrush const *)arg1)->GetColour();
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5920 return resultobj;
5921fail:
5922 return NULL;
d14a1e28
RD
5923}
5924
5925
0085ce49
RD
5926SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5927 PyObject *resultobj = 0;
5928 wxBrush *arg1 = (wxBrush *) 0 ;
5929 int result;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5939 }
5940 arg1 = reinterpret_cast< wxBrush * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 result = (int)((wxBrush const *)arg1)->GetStyle();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_From_int(static_cast< int >(result));
5948 return resultobj;
5949fail:
5950 return NULL;
d14a1e28
RD
5951}
5952
5953
0085ce49
RD
5954SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5955 PyObject *resultobj = 0;
5956 wxBrush *arg1 = (wxBrush *) 0 ;
5957 wxBitmap *result = 0 ;
5958 void *argp1 = 0 ;
5959 int res1 = 0 ;
5960 PyObject *swig_obj[1] ;
5961
5962 if (!args) SWIG_fail;
5963 swig_obj[0] = args;
5964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5965 if (!SWIG_IsOK(res1)) {
5966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5967 }
5968 arg1 = reinterpret_cast< wxBrush * >(argp1);
5969 {
5970 PyThreadState* __tstate = wxPyBeginAllowThreads();
5971 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5972 wxPyEndAllowThreads(__tstate);
5973 if (PyErr_Occurred()) SWIG_fail;
5974 }
5975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5976 return resultobj;
5977fail:
5978 return NULL;
d14a1e28
RD
5979}
5980
5981
0085ce49
RD
5982SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5983 PyObject *resultobj = 0;
5984 wxBrush *arg1 = (wxBrush *) 0 ;
5985 bool result;
5986 void *argp1 = 0 ;
5987 int res1 = 0 ;
5988 PyObject *swig_obj[1] ;
5989
5990 if (!args) SWIG_fail;
5991 swig_obj[0] = args;
5992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5993 if (!SWIG_IsOK(res1)) {
5994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5995 }
5996 arg1 = reinterpret_cast< wxBrush * >(argp1);
5997 {
5998 PyThreadState* __tstate = wxPyBeginAllowThreads();
5999 result = (bool)((wxBrush const *)arg1)->IsHatch();
6000 wxPyEndAllowThreads(__tstate);
6001 if (PyErr_Occurred()) SWIG_fail;
6002 }
6003 {
6004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6005 }
6006 return resultobj;
6007fail:
6008 return NULL;
f78cc896
RD
6009}
6010
6011
b39fe951 6012SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6013 PyObject *resultobj = 0;
6014 wxBrush *arg1 = (wxBrush *) 0 ;
6015 bool result;
6016 void *argp1 = 0 ;
6017 int res1 = 0 ;
6018 PyObject *swig_obj[1] ;
6019
6020 if (!args) SWIG_fail;
6021 swig_obj[0] = args;
6022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6023 if (!SWIG_IsOK(res1)) {
b39fe951 6024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
0085ce49
RD
6025 }
6026 arg1 = reinterpret_cast< wxBrush * >(argp1);
6027 {
6028 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6029 result = (bool)(arg1)->IsOk();
0085ce49
RD
6030 wxPyEndAllowThreads(__tstate);
6031 if (PyErr_Occurred()) SWIG_fail;
6032 }
6033 {
6034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6035 }
6036 return resultobj;
6037fail:
6038 return NULL;
d14a1e28
RD
6039}
6040
6041
0085ce49
RD
6042SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6043 PyObject *obj;
6044 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6045 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6046 return SWIG_Py_Void();
d14a1e28
RD
6047}
6048
0085ce49
RD
6049SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6050 return SWIG_Python_InitShadowInstance(args);
6051}
d14a1e28 6052
0085ce49
RD
6053SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6054 PyObject *resultobj = 0;
6055 wxString *arg1 = 0 ;
6056 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6057 wxBitmap *result = 0 ;
6058 bool temp1 = false ;
6059 int val2 ;
6060 int ecode2 = 0 ;
6061 PyObject * obj0 = 0 ;
6062 PyObject * obj1 = 0 ;
6063 char * kwnames[] = {
6064 (char *) "name",(char *) "type", NULL
6065 };
6066
6067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6068 {
6069 arg1 = wxString_in_helper(obj0);
6070 if (arg1 == NULL) SWIG_fail;
6071 temp1 = true;
6072 }
6073 if (obj1) {
6074 ecode2 = SWIG_AsVal_int(obj1, &val2);
6075 if (!SWIG_IsOK(ecode2)) {
6076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6077 }
6078 arg2 = static_cast< wxBitmapType >(val2);
6079 }
6080 {
6081 if (!wxPyCheckForApp()) SWIG_fail;
6082 PyThreadState* __tstate = wxPyBeginAllowThreads();
6083 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6084 wxPyEndAllowThreads(__tstate);
6085 if (PyErr_Occurred()) SWIG_fail;
6086 }
6087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6088 {
6089 if (temp1)
6090 delete arg1;
6091 }
6092 return resultobj;
6093fail:
6094 {
6095 if (temp1)
6096 delete arg1;
6097 }
6098 return NULL;
d14a1e28
RD
6099}
6100
6101
0085ce49
RD
6102SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6103 PyObject *resultobj = 0;
6104 wxBitmap *arg1 = (wxBitmap *) 0 ;
6105 void *argp1 = 0 ;
6106 int res1 = 0 ;
6107 PyObject *swig_obj[1] ;
6108
6109 if (!args) SWIG_fail;
6110 swig_obj[0] = args;
6111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6112 if (!SWIG_IsOK(res1)) {
6113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6114 }
6115 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6116 {
0085ce49 6117 delete arg1;
66c033b4 6118
0085ce49
RD
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 resultobj = SWIG_Py_Void();
6122 return resultobj;
6123fail:
6124 return NULL;
6125}
6126
6127
6128SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6129 PyObject *resultobj = 0;
6130 int arg1 ;
6131 int arg2 ;
6132 int arg3 = (int) -1 ;
6133 wxBitmap *result = 0 ;
6134 int val1 ;
6135 int ecode1 = 0 ;
6136 int val2 ;
6137 int ecode2 = 0 ;
6138 int val3 ;
6139 int ecode3 = 0 ;
6140 PyObject * obj0 = 0 ;
6141 PyObject * obj1 = 0 ;
6142 PyObject * obj2 = 0 ;
6143 char * kwnames[] = {
6144 (char *) "width",(char *) "height",(char *) "depth", NULL
6145 };
6146
6147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6148 ecode1 = SWIG_AsVal_int(obj0, &val1);
6149 if (!SWIG_IsOK(ecode1)) {
6150 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6151 }
6152 arg1 = static_cast< int >(val1);
6153 ecode2 = SWIG_AsVal_int(obj1, &val2);
6154 if (!SWIG_IsOK(ecode2)) {
6155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6156 }
6157 arg2 = static_cast< int >(val2);
6158 if (obj2) {
6159 ecode3 = SWIG_AsVal_int(obj2, &val3);
6160 if (!SWIG_IsOK(ecode3)) {
6161 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6162 }
6163 arg3 = static_cast< int >(val3);
6164 }
6165 {
6166 if (!wxPyCheckForApp()) SWIG_fail;
6167 PyThreadState* __tstate = wxPyBeginAllowThreads();
6168 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6169 wxPyEndAllowThreads(__tstate);
6170 if (PyErr_Occurred()) SWIG_fail;
6171 }
6172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6173 return resultobj;
6174fail:
6175 return NULL;
6176}
6177
6178
6179SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6180 PyObject *resultobj = 0;
6181 wxIcon *arg1 = 0 ;
6182 wxBitmap *result = 0 ;
6183 void *argp1 = 0 ;
6184 int res1 = 0 ;
6185 PyObject * obj0 = 0 ;
6186 char * kwnames[] = {
6187 (char *) "icon", NULL
6188 };
6189
6190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6191 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6192 if (!SWIG_IsOK(res1)) {
6193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6194 }
6195 if (!argp1) {
6196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6197 }
6198 arg1 = reinterpret_cast< wxIcon * >(argp1);
6199 {
6200 if (!wxPyCheckForApp()) SWIG_fail;
6201 PyThreadState* __tstate = wxPyBeginAllowThreads();
6202 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6207 return resultobj;
6208fail:
6209 return NULL;
6210}
6211
6212
6213SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6214 PyObject *resultobj = 0;
6215 wxImage *arg1 = 0 ;
6216 int arg2 = (int) -1 ;
6217 wxBitmap *result = 0 ;
6218 void *argp1 = 0 ;
6219 int res1 = 0 ;
6220 int val2 ;
6221 int ecode2 = 0 ;
6222 PyObject * obj0 = 0 ;
6223 PyObject * obj1 = 0 ;
6224 char * kwnames[] = {
6225 (char *) "image",(char *) "depth", NULL
6226 };
6227
6228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6229 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6230 if (!SWIG_IsOK(res1)) {
6231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6232 }
6233 if (!argp1) {
6234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6235 }
6236 arg1 = reinterpret_cast< wxImage * >(argp1);
6237 if (obj1) {
6238 ecode2 = SWIG_AsVal_int(obj1, &val2);
6239 if (!SWIG_IsOK(ecode2)) {
6240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6241 }
6242 arg2 = static_cast< int >(val2);
6243 }
6244 {
6245 if (!wxPyCheckForApp()) SWIG_fail;
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) SWIG_fail;
6250 }
6251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6252 return resultobj;
6253fail:
6254 return NULL;
66c033b4
RD
6255}
6256
6257
0085ce49
RD
6258SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6259 PyObject *resultobj = 0;
6260 PyObject *arg1 = (PyObject *) 0 ;
6261 wxBitmap *result = 0 ;
6262 PyObject * obj0 = 0 ;
6263 char * kwnames[] = {
6264 (char *) "listOfStrings", NULL
6265 };
6266
6267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6268 arg1 = obj0;
6269 {
6270 if (!wxPyCheckForApp()) SWIG_fail;
6271 PyThreadState* __tstate = wxPyBeginAllowThreads();
6272 result = (wxBitmap *)new_wxBitmap(arg1);
6273 wxPyEndAllowThreads(__tstate);
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
6276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6277 return resultobj;
6278fail:
6279 return NULL;
6280}
6281
6282
6283SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6284 PyObject *resultobj = 0;
6285 PyObject *arg1 = (PyObject *) 0 ;
6286 int arg2 ;
6287 int arg3 ;
6288 int arg4 = (int) 1 ;
6289 wxBitmap *result = 0 ;
6290 int val2 ;
6291 int ecode2 = 0 ;
6292 int val3 ;
6293 int ecode3 = 0 ;
6294 int val4 ;
6295 int ecode4 = 0 ;
6296 PyObject * obj0 = 0 ;
6297 PyObject * obj1 = 0 ;
6298 PyObject * obj2 = 0 ;
6299 PyObject * obj3 = 0 ;
6300 char * kwnames[] = {
6301 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6302 };
6303
6304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6305 arg1 = obj0;
6306 ecode2 = SWIG_AsVal_int(obj1, &val2);
6307 if (!SWIG_IsOK(ecode2)) {
6308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6309 }
6310 arg2 = static_cast< int >(val2);
6311 ecode3 = SWIG_AsVal_int(obj2, &val3);
6312 if (!SWIG_IsOK(ecode3)) {
6313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6314 }
6315 arg3 = static_cast< int >(val3);
6316 if (obj3) {
6317 ecode4 = SWIG_AsVal_int(obj3, &val4);
6318 if (!SWIG_IsOK(ecode4)) {
6319 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6320 }
6321 arg4 = static_cast< int >(val4);
6322 }
6323 {
6324 if (!wxPyCheckForApp()) SWIG_fail;
6325 PyThreadState* __tstate = wxPyBeginAllowThreads();
6326 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6331 return resultobj;
6332fail:
6333 return NULL;
d14a1e28
RD
6334}
6335
6336
b39fe951 6337SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6338 PyObject *resultobj = 0;
6339 wxBitmap *arg1 = (wxBitmap *) 0 ;
6340 bool result;
6341 void *argp1 = 0 ;
6342 int res1 = 0 ;
6343 PyObject *swig_obj[1] ;
6344
6345 if (!args) SWIG_fail;
6346 swig_obj[0] = args;
6347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6348 if (!SWIG_IsOK(res1)) {
b39fe951 6349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
0085ce49
RD
6350 }
6351 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6352 {
b39fe951 6353 result = (bool)(arg1)->IsOk();
0085ce49
RD
6354 if (PyErr_Occurred()) SWIG_fail;
6355 }
6356 {
6357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6358 }
6359 return resultobj;
6360fail:
6361 return NULL;
d14a1e28
RD
6362}
6363
6364
0085ce49
RD
6365SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6366 PyObject *resultobj = 0;
6367 wxBitmap *arg1 = (wxBitmap *) 0 ;
6368 int result;
6369 void *argp1 = 0 ;
6370 int res1 = 0 ;
6371 PyObject *swig_obj[1] ;
6372
6373 if (!args) SWIG_fail;
6374 swig_obj[0] = args;
6375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6376 if (!SWIG_IsOK(res1)) {
6377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6378 }
6379 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6380 {
0085ce49 6381 result = (int)(arg1)->GetWidth();
0085ce49
RD
6382 if (PyErr_Occurred()) SWIG_fail;
6383 }
6384 resultobj = SWIG_From_int(static_cast< int >(result));
6385 return resultobj;
6386fail:
6387 return NULL;
d14a1e28
RD
6388}
6389
6390
0085ce49
RD
6391SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6392 PyObject *resultobj = 0;
6393 wxBitmap *arg1 = (wxBitmap *) 0 ;
6394 int result;
6395 void *argp1 = 0 ;
6396 int res1 = 0 ;
6397 PyObject *swig_obj[1] ;
6398
6399 if (!args) SWIG_fail;
6400 swig_obj[0] = args;
6401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6402 if (!SWIG_IsOK(res1)) {
6403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6404 }
6405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6406 {
0085ce49 6407 result = (int)(arg1)->GetHeight();
0085ce49
RD
6408 if (PyErr_Occurred()) SWIG_fail;
6409 }
6410 resultobj = SWIG_From_int(static_cast< int >(result));
6411 return resultobj;
6412fail:
6413 return NULL;
d14a1e28
RD
6414}
6415
6416
0085ce49
RD
6417SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6418 PyObject *resultobj = 0;
6419 wxBitmap *arg1 = (wxBitmap *) 0 ;
6420 int result;
6421 void *argp1 = 0 ;
6422 int res1 = 0 ;
6423 PyObject *swig_obj[1] ;
6424
6425 if (!args) SWIG_fail;
6426 swig_obj[0] = args;
6427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6428 if (!SWIG_IsOK(res1)) {
6429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6430 }
6431 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6432 {
0085ce49 6433 result = (int)(arg1)->GetDepth();
0085ce49
RD
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 resultobj = SWIG_From_int(static_cast< int >(result));
6437 return resultobj;
6438fail:
6439 return NULL;
d14a1e28
RD
6440}
6441
6442
0085ce49
RD
6443SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6444 PyObject *resultobj = 0;
6445 wxBitmap *arg1 = (wxBitmap *) 0 ;
6446 wxSize result;
6447 void *argp1 = 0 ;
6448 int res1 = 0 ;
6449 PyObject *swig_obj[1] ;
6450
6451 if (!args) SWIG_fail;
6452 swig_obj[0] = args;
6453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6454 if (!SWIG_IsOK(res1)) {
6455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6456 }
6457 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6458 {
0085ce49 6459 result = wxBitmap_GetSize(arg1);
0085ce49
RD
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6463 return resultobj;
6464fail:
6465 return NULL;
d14a1e28
RD
6466}
6467
6468
0085ce49
RD
6469SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6470 PyObject *resultobj = 0;
6471 wxBitmap *arg1 = (wxBitmap *) 0 ;
6472 SwigValueWrapper<wxImage > result;
6473 void *argp1 = 0 ;
6474 int res1 = 0 ;
6475 PyObject *swig_obj[1] ;
6476
6477 if (!args) SWIG_fail;
6478 swig_obj[0] = args;
6479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6480 if (!SWIG_IsOK(res1)) {
6481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6482 }
6483 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6484 {
0085ce49 6485 result = ((wxBitmap const *)arg1)->ConvertToImage();
0085ce49
RD
6486 if (PyErr_Occurred()) SWIG_fail;
6487 }
6488 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6489 return resultobj;
6490fail:
6491 return NULL;
d14a1e28
RD
6492}
6493
6494
0085ce49
RD
6495SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6496 PyObject *resultobj = 0;
6497 wxBitmap *arg1 = (wxBitmap *) 0 ;
6498 wxMask *result = 0 ;
6499 void *argp1 = 0 ;
6500 int res1 = 0 ;
6501 PyObject *swig_obj[1] ;
6502
6503 if (!args) SWIG_fail;
6504 swig_obj[0] = args;
6505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6506 if (!SWIG_IsOK(res1)) {
6507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6508 }
6509 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6510 {
0085ce49 6511 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
0085ce49
RD
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6515 return resultobj;
6516fail:
6517 return NULL;
6518}
6519
6520
6521SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6522 PyObject *resultobj = 0;
6523 wxBitmap *arg1 = (wxBitmap *) 0 ;
6524 wxMask *arg2 = (wxMask *) 0 ;
6525 void *argp1 = 0 ;
6526 int res1 = 0 ;
6527 int res2 = 0 ;
6528 PyObject * obj0 = 0 ;
6529 PyObject * obj1 = 0 ;
6530 char * kwnames[] = {
6531 (char *) "self",(char *) "mask", NULL
6532 };
6533
6534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6536 if (!SWIG_IsOK(res1)) {
6537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6538 }
6539 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6540 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6541 if (!SWIG_IsOK(res2)) {
6542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6543 }
6544 {
0085ce49 6545 (arg1)->SetMask(arg2);
0085ce49
RD
6546 if (PyErr_Occurred()) SWIG_fail;
6547 }
6548 resultobj = SWIG_Py_Void();
6549 return resultobj;
6550fail:
6551 return NULL;
6552}
6553
6554
6555SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6556 PyObject *resultobj = 0;
6557 wxBitmap *arg1 = (wxBitmap *) 0 ;
6558 wxColour *arg2 = 0 ;
6559 void *argp1 = 0 ;
6560 int res1 = 0 ;
6561 wxColour temp2 ;
6562 PyObject * obj0 = 0 ;
6563 PyObject * obj1 = 0 ;
6564 char * kwnames[] = {
6565 (char *) "self",(char *) "colour", NULL
6566 };
6567
6568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6570 if (!SWIG_IsOK(res1)) {
6571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6572 }
6573 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6574 {
6575 arg2 = &temp2;
6576 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6577 }
6578 {
0085ce49 6579 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
0085ce49
RD
6580 if (PyErr_Occurred()) SWIG_fail;
6581 }
6582 resultobj = SWIG_Py_Void();
6583 return resultobj;
6584fail:
6585 return NULL;
6586}
6587
6588
6589SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6590 PyObject *resultobj = 0;
6591 wxBitmap *arg1 = (wxBitmap *) 0 ;
6592 wxRect *arg2 = 0 ;
6593 SwigValueWrapper<wxBitmap > result;
6594 void *argp1 = 0 ;
6595 int res1 = 0 ;
6596 wxRect temp2 ;
6597 PyObject * obj0 = 0 ;
6598 PyObject * obj1 = 0 ;
6599 char * kwnames[] = {
6600 (char *) "self",(char *) "rect", NULL
6601 };
6602
6603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6605 if (!SWIG_IsOK(res1)) {
6606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6607 }
6608 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6609 {
6610 arg2 = &temp2;
6611 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6612 }
6613 {
0085ce49 6614 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
0085ce49
RD
6615 if (PyErr_Occurred()) SWIG_fail;
6616 }
6617 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6618 return resultobj;
6619fail:
6620 return NULL;
6621}
6622
6623
6624SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6625 PyObject *resultobj = 0;
6626 wxBitmap *arg1 = (wxBitmap *) 0 ;
6627 wxString *arg2 = 0 ;
6628 wxBitmapType arg3 ;
6629 wxPalette *arg4 = (wxPalette *) NULL ;
6630 bool result;
6631 void *argp1 = 0 ;
6632 int res1 = 0 ;
6633 bool temp2 = false ;
6634 int val3 ;
6635 int ecode3 = 0 ;
6636 void *argp4 = 0 ;
6637 int res4 = 0 ;
6638 PyObject * obj0 = 0 ;
6639 PyObject * obj1 = 0 ;
6640 PyObject * obj2 = 0 ;
6641 PyObject * obj3 = 0 ;
6642 char * kwnames[] = {
6643 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6644 };
6645
6646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6648 if (!SWIG_IsOK(res1)) {
6649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6650 }
6651 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6652 {
6653 arg2 = wxString_in_helper(obj1);
6654 if (arg2 == NULL) SWIG_fail;
6655 temp2 = true;
6656 }
6657 ecode3 = SWIG_AsVal_int(obj2, &val3);
6658 if (!SWIG_IsOK(ecode3)) {
6659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6660 }
6661 arg3 = static_cast< wxBitmapType >(val3);
6662 if (obj3) {
6663 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6664 if (!SWIG_IsOK(res4)) {
6665 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6666 }
0085ce49
RD
6667 arg4 = reinterpret_cast< wxPalette * >(argp4);
6668 }
6669 {
0085ce49 6670 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
0085ce49
RD
6671 if (PyErr_Occurred()) SWIG_fail;
6672 }
6673 {
6674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6675 }
6676 {
6677 if (temp2)
6678 delete arg2;
6679 }
6680 return resultobj;
6681fail:
6682 {
6683 if (temp2)
6684 delete arg2;
6685 }
6686 return NULL;
6687}
6688
6689
6690SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6691 PyObject *resultobj = 0;
6692 wxBitmap *arg1 = (wxBitmap *) 0 ;
6693 wxString *arg2 = 0 ;
6694 wxBitmapType arg3 ;
6695 bool result;
6696 void *argp1 = 0 ;
6697 int res1 = 0 ;
6698 bool temp2 = false ;
6699 int val3 ;
6700 int ecode3 = 0 ;
6701 PyObject * obj0 = 0 ;
6702 PyObject * obj1 = 0 ;
6703 PyObject * obj2 = 0 ;
6704 char * kwnames[] = {
6705 (char *) "self",(char *) "name",(char *) "type", NULL
6706 };
6707
6708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6710 if (!SWIG_IsOK(res1)) {
6711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6712 }
6713 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6714 {
6715 arg2 = wxString_in_helper(obj1);
6716 if (arg2 == NULL) SWIG_fail;
6717 temp2 = true;
6718 }
6719 ecode3 = SWIG_AsVal_int(obj2, &val3);
6720 if (!SWIG_IsOK(ecode3)) {
6721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6722 }
6723 arg3 = static_cast< wxBitmapType >(val3);
6724 {
0085ce49 6725 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
6726 if (PyErr_Occurred()) SWIG_fail;
6727 }
6728 {
6729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6730 }
6731 {
6732 if (temp2)
6733 delete arg2;
6734 }
6735 return resultobj;
6736fail:
6737 {
6738 if (temp2)
6739 delete arg2;
6740 }
6741 return NULL;
d04418a7
RD
6742}
6743
6744
0085ce49
RD
6745SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6746 PyObject *resultobj = 0;
6747 wxBitmap *arg1 = (wxBitmap *) 0 ;
6748 wxPalette *result = 0 ;
6749 void *argp1 = 0 ;
6750 int res1 = 0 ;
6751 PyObject *swig_obj[1] ;
6752
6753 if (!args) SWIG_fail;
6754 swig_obj[0] = args;
6755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6756 if (!SWIG_IsOK(res1)) {
6757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6758 }
6759 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6760 {
0085ce49 6761 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
0085ce49
RD
6762 if (PyErr_Occurred()) SWIG_fail;
6763 }
6764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6765 return resultobj;
6766fail:
6767 return NULL;
6768}
6769
6770
6771SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6772 PyObject *resultobj = 0;
6773 wxBitmap *arg1 = (wxBitmap *) 0 ;
6774 wxIcon *arg2 = 0 ;
6775 bool result;
6776 void *argp1 = 0 ;
6777 int res1 = 0 ;
6778 void *argp2 = 0 ;
6779 int res2 = 0 ;
6780 PyObject * obj0 = 0 ;
6781 PyObject * obj1 = 0 ;
6782 char * kwnames[] = {
6783 (char *) "self",(char *) "icon", NULL
6784 };
6785
6786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6788 if (!SWIG_IsOK(res1)) {
6789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6790 }
6791 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6792 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6793 if (!SWIG_IsOK(res2)) {
6794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6795 }
6796 if (!argp2) {
6797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6798 }
6799 arg2 = reinterpret_cast< wxIcon * >(argp2);
6800 {
0085ce49 6801 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
0085ce49
RD
6802 if (PyErr_Occurred()) SWIG_fail;
6803 }
6804 {
6805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6806 }
6807 return resultobj;
6808fail:
6809 return NULL;
6810}
6811
6812
6813SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6814 PyObject *resultobj = 0;
6815 wxBitmap *arg1 = (wxBitmap *) 0 ;
6816 int arg2 ;
6817 void *argp1 = 0 ;
6818 int res1 = 0 ;
6819 int val2 ;
6820 int ecode2 = 0 ;
6821 PyObject * obj0 = 0 ;
6822 PyObject * obj1 = 0 ;
6823 char * kwnames[] = {
6824 (char *) "self",(char *) "height", NULL
6825 };
6826
6827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6829 if (!SWIG_IsOK(res1)) {
6830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6831 }
6832 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6833 ecode2 = SWIG_AsVal_int(obj1, &val2);
6834 if (!SWIG_IsOK(ecode2)) {
6835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6836 }
6837 arg2 = static_cast< int >(val2);
6838 {
0085ce49 6839 (arg1)->SetHeight(arg2);
0085ce49
RD
6840 if (PyErr_Occurred()) SWIG_fail;
6841 }
6842 resultobj = SWIG_Py_Void();
6843 return resultobj;
6844fail:
6845 return NULL;
6846}
6847
6848
6849SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj = 0;
6851 wxBitmap *arg1 = (wxBitmap *) 0 ;
6852 int arg2 ;
6853 void *argp1 = 0 ;
6854 int res1 = 0 ;
6855 int val2 ;
6856 int ecode2 = 0 ;
6857 PyObject * obj0 = 0 ;
6858 PyObject * obj1 = 0 ;
6859 char * kwnames[] = {
6860 (char *) "self",(char *) "width", NULL
6861 };
6862
6863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6865 if (!SWIG_IsOK(res1)) {
6866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6867 }
6868 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6869 ecode2 = SWIG_AsVal_int(obj1, &val2);
6870 if (!SWIG_IsOK(ecode2)) {
6871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6872 }
6873 arg2 = static_cast< int >(val2);
6874 {
0085ce49 6875 (arg1)->SetWidth(arg2);
0085ce49
RD
6876 if (PyErr_Occurred()) SWIG_fail;
6877 }
6878 resultobj = SWIG_Py_Void();
6879 return resultobj;
6880fail:
6881 return NULL;
6882}
6883
6884
6885SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6886 PyObject *resultobj = 0;
6887 wxBitmap *arg1 = (wxBitmap *) 0 ;
6888 int arg2 ;
6889 void *argp1 = 0 ;
6890 int res1 = 0 ;
6891 int val2 ;
6892 int ecode2 = 0 ;
6893 PyObject * obj0 = 0 ;
6894 PyObject * obj1 = 0 ;
6895 char * kwnames[] = {
6896 (char *) "self",(char *) "depth", NULL
6897 };
6898
6899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6901 if (!SWIG_IsOK(res1)) {
6902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6903 }
6904 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6905 ecode2 = SWIG_AsVal_int(obj1, &val2);
6906 if (!SWIG_IsOK(ecode2)) {
6907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6908 }
6909 arg2 = static_cast< int >(val2);
6910 {
0085ce49 6911 (arg1)->SetDepth(arg2);
0085ce49
RD
6912 if (PyErr_Occurred()) SWIG_fail;
6913 }
6914 resultobj = SWIG_Py_Void();
6915 return resultobj;
6916fail:
6917 return NULL;
6918}
6919
6920
6921SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6922 PyObject *resultobj = 0;
6923 wxBitmap *arg1 = (wxBitmap *) 0 ;
6924 wxSize *arg2 = 0 ;
6925 void *argp1 = 0 ;
6926 int res1 = 0 ;
6927 wxSize temp2 ;
6928 PyObject * obj0 = 0 ;
6929 PyObject * obj1 = 0 ;
6930 char * kwnames[] = {
6931 (char *) "self",(char *) "size", NULL
6932 };
6933
6934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6936 if (!SWIG_IsOK(res1)) {
6937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6938 }
6939 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6940 {
6941 arg2 = &temp2;
6942 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6943 }
6944 {
0085ce49 6945 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
0085ce49
RD
6946 if (PyErr_Occurred()) SWIG_fail;
6947 }
6948 resultobj = SWIG_Py_Void();
6949 return resultobj;
6950fail:
6951 return NULL;
6952}
6953
6954
8f514ab4
RD
6955SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6956 PyObject *resultobj = 0;
6957 wxBitmap *arg1 = (wxBitmap *) 0 ;
6958 buffer arg2 ;
6959 int arg3 ;
6960 void *argp1 = 0 ;
6961 int res1 = 0 ;
6962 Py_ssize_t temp2 ;
6963 PyObject * obj0 = 0 ;
6964 PyObject * obj1 = 0 ;
6965 char * kwnames[] = {
6966 (char *) "self",(char *) "data", NULL
6967 };
6968
6969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
6970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6971 if (!SWIG_IsOK(res1)) {
6972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
6973 }
6974 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6975 {
6976 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
6977 arg3 = (int)temp2;
6978 }
6979 {
6980 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
6981 if (PyErr_Occurred()) SWIG_fail;
6982 }
6983 resultobj = SWIG_Py_Void();
6984 return resultobj;
6985fail:
6986 return NULL;
6987}
6988
6989
6990SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6991 PyObject *resultobj = 0;
6992 wxBitmap *arg1 = (wxBitmap *) 0 ;
6993 buffer arg2 ;
6994 int arg3 ;
6995 void *argp1 = 0 ;
6996 int res1 = 0 ;
6997 Py_ssize_t temp2 ;
6998 PyObject * obj0 = 0 ;
6999 PyObject * obj1 = 0 ;
7000 char * kwnames[] = {
7001 (char *) "self",(char *) "data", NULL
7002 };
7003
7004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7006 if (!SWIG_IsOK(res1)) {
7007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7008 }
7009 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7010 {
7011 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7012 arg3 = (int)temp2;
7013 }
7014 {
7015 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7016 if (PyErr_Occurred()) SWIG_fail;
7017 }
7018 resultobj = SWIG_Py_Void();
7019 return resultobj;
7020fail:
7021 return NULL;
7022}
7023
7024
0085ce49
RD
7025SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7026 PyObject *resultobj = 0;
7027 wxBitmap *arg1 = (wxBitmap *) 0 ;
7028 wxBitmap *arg2 = (wxBitmap *) 0 ;
7029 bool result;
7030 void *argp1 = 0 ;
7031 int res1 = 0 ;
7032 void *argp2 = 0 ;
7033 int res2 = 0 ;
7034 PyObject * obj0 = 0 ;
7035 PyObject * obj1 = 0 ;
7036 char * kwnames[] = {
7037 (char *) "self",(char *) "other", NULL
7038 };
7039
7040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7042 if (!SWIG_IsOK(res1)) {
7043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7044 }
7045 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7046 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7047 if (!SWIG_IsOK(res2)) {
7048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7049 }
7050 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7051 {
0085ce49 7052 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
0085ce49
RD
7053 if (PyErr_Occurred()) SWIG_fail;
7054 }
7055 {
fc46b7f3
RD
7056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7057 }
7058 return resultobj;
7059fail:
7060 return NULL;
7061}
7062
7063
7064SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj = 0;
7066 wxBitmap *arg1 = (wxBitmap *) 0 ;
7067 wxBitmap *arg2 = (wxBitmap *) 0 ;
7068 bool result;
7069 void *argp1 = 0 ;
7070 int res1 = 0 ;
7071 void *argp2 = 0 ;
7072 int res2 = 0 ;
7073 PyObject * obj0 = 0 ;
7074 PyObject * obj1 = 0 ;
7075 char * kwnames[] = {
7076 (char *) "self",(char *) "other", NULL
7077 };
7078
7079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7081 if (!SWIG_IsOK(res1)) {
7082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7083 }
7084 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7085 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7086 if (!SWIG_IsOK(res2)) {
7087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7088 }
7089 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7090 {
7091 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 {
7095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7096 }
7097 return resultobj;
7098fail:
7099 return NULL;
7100}
7101
7102
7103SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7104 PyObject *obj;
7105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7106 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7107 return SWIG_Py_Void();
7108}
7109
7110SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7111 return SWIG_Python_InitShadowInstance(args);
7112}
7113
7114SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj = 0;
7116 int arg1 ;
7117 int arg2 ;
7118 buffer arg3 ;
7119 int arg4 ;
7120 buffer arg5 ;
7121 int arg6 ;
7122 wxBitmap *result = 0 ;
7123 int val1 ;
7124 int ecode1 = 0 ;
7125 int val2 ;
7126 int ecode2 = 0 ;
c79fdf86
RD
7127 Py_ssize_t temp3 ;
7128 Py_ssize_t temp5 ;
fc46b7f3
RD
7129 PyObject * obj0 = 0 ;
7130 PyObject * obj1 = 0 ;
7131 PyObject * obj2 = 0 ;
7132 PyObject * obj3 = 0 ;
7133 char * kwnames[] = {
7134 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7135 };
7136
7137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7138 ecode1 = SWIG_AsVal_int(obj0, &val1);
7139 if (!SWIG_IsOK(ecode1)) {
7140 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7141 }
7142 arg1 = static_cast< int >(val1);
7143 ecode2 = SWIG_AsVal_int(obj1, &val2);
7144 if (!SWIG_IsOK(ecode2)) {
7145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7146 }
7147 arg2 = static_cast< int >(val2);
7148 {
c79fdf86
RD
7149 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7150 arg4 = (int)temp3;
fc46b7f3
RD
7151 }
7152 {
7153 if (obj3 != Py_None) {
c79fdf86
RD
7154 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7155 arg6 = (int)temp5;
fc46b7f3
RD
7156 }
7157 }
7158 {
7159 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7163 return resultobj;
7164fail:
7165 return NULL;
7166}
7167
7168
7169SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7170 PyObject *resultobj = 0;
7171 int arg1 ;
7172 int arg2 ;
7173 buffer arg3 ;
7174 int arg4 ;
7175 wxBitmap *result = 0 ;
7176 int val1 ;
7177 int ecode1 = 0 ;
7178 int val2 ;
7179 int ecode2 = 0 ;
c79fdf86 7180 Py_ssize_t temp3 ;
fc46b7f3
RD
7181 PyObject * obj0 = 0 ;
7182 PyObject * obj1 = 0 ;
7183 PyObject * obj2 = 0 ;
7184 char * kwnames[] = {
7185 (char *) "width",(char *) "height",(char *) "data", NULL
7186 };
7187
7188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7189 ecode1 = SWIG_AsVal_int(obj0, &val1);
7190 if (!SWIG_IsOK(ecode1)) {
7191 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7192 }
7193 arg1 = static_cast< int >(val1);
7194 ecode2 = SWIG_AsVal_int(obj1, &val2);
7195 if (!SWIG_IsOK(ecode2)) {
7196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7197 }
7198 arg2 = static_cast< int >(val2);
7199 {
c79fdf86
RD
7200 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7201 arg4 = (int)temp3;
fc46b7f3
RD
7202 }
7203 {
7204 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7205 if (PyErr_Occurred()) SWIG_fail;
7206 }
7207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7208 return resultobj;
7209fail:
7210 return NULL;
7211}
7212
7213
7214SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7215 PyObject *resultobj = 0;
7216 int arg1 ;
7217 int arg2 ;
7218 buffer arg3 ;
7219 int arg4 ;
7220 wxBitmap *result = 0 ;
7221 int val1 ;
7222 int ecode1 = 0 ;
7223 int val2 ;
7224 int ecode2 = 0 ;
c79fdf86 7225 Py_ssize_t temp3 ;
fc46b7f3
RD
7226 PyObject * obj0 = 0 ;
7227 PyObject * obj1 = 0 ;
7228 PyObject * obj2 = 0 ;
7229 char * kwnames[] = {
7230 (char *) "width",(char *) "height",(char *) "data", NULL
7231 };
7232
7233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7234 ecode1 = SWIG_AsVal_int(obj0, &val1);
7235 if (!SWIG_IsOK(ecode1)) {
7236 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7237 }
7238 arg1 = static_cast< int >(val1);
7239 ecode2 = SWIG_AsVal_int(obj1, &val2);
7240 if (!SWIG_IsOK(ecode2)) {
7241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7242 }
7243 arg2 = static_cast< int >(val2);
7244 {
c79fdf86
RD
7245 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7246 arg4 = (int)temp3;
fc46b7f3
RD
7247 }
7248 {
7249 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7250 if (PyErr_Occurred()) SWIG_fail;
7251 }
7252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7253 return resultobj;
7254fail:
7255 return NULL;
7256}
7257
7258
7259SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7260 PyObject *resultobj = 0;
7261 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7262 wxPoint result;
7263 void *argp1 = 0 ;
7264 int res1 = 0 ;
7265 PyObject *swig_obj[1] ;
7266
7267 if (!args) SWIG_fail;
7268 swig_obj[0] = args;
7269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7270 if (!SWIG_IsOK(res1)) {
7271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7272 }
7273 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7274 {
7275 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7276 if (PyErr_Occurred()) SWIG_fail;
7277 }
7278 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7279 return resultobj;
7280fail:
7281 return NULL;
7282}
7283
7284
7285SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7286 PyObject *resultobj = 0;
7287 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7288 int result;
7289 void *argp1 = 0 ;
7290 int res1 = 0 ;
7291 PyObject *swig_obj[1] ;
7292
7293 if (!args) SWIG_fail;
7294 swig_obj[0] = args;
7295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7296 if (!SWIG_IsOK(res1)) {
7297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7298 }
7299 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7300 {
7301 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7302 if (PyErr_Occurred()) SWIG_fail;
7303 }
7304 resultobj = SWIG_From_int(static_cast< int >(result));
7305 return resultobj;
7306fail:
7307 return NULL;
7308}
7309
7310
7311SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7312 PyObject *resultobj = 0;
7313 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7314 int result;
7315 void *argp1 = 0 ;
7316 int res1 = 0 ;
7317 PyObject *swig_obj[1] ;
7318
7319 if (!args) SWIG_fail;
7320 swig_obj[0] = args;
7321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7322 if (!SWIG_IsOK(res1)) {
7323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7324 }
7325 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7326 {
7327 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 resultobj = SWIG_From_int(static_cast< int >(result));
7331 return resultobj;
7332fail:
7333 return NULL;
7334}
7335
7336
7337SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7338 PyObject *resultobj = 0;
7339 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7340 wxSize result;
7341 void *argp1 = 0 ;
7342 int res1 = 0 ;
7343 PyObject *swig_obj[1] ;
7344
7345 if (!args) SWIG_fail;
7346 swig_obj[0] = args;
7347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7348 if (!SWIG_IsOK(res1)) {
7349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7350 }
7351 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7352 {
7353 result = ((wxPixelDataBase const *)arg1)->GetSize();
7354 if (PyErr_Occurred()) SWIG_fail;
7355 }
7356 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7357 return resultobj;
7358fail:
7359 return NULL;
7360}
7361
7362
7363SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7364 PyObject *resultobj = 0;
7365 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7366 int result;
7367 void *argp1 = 0 ;
7368 int res1 = 0 ;
7369 PyObject *swig_obj[1] ;
7370
7371 if (!args) SWIG_fail;
7372 swig_obj[0] = args;
7373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7374 if (!SWIG_IsOK(res1)) {
7375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7376 }
7377 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7378 {
7379 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7380 if (PyErr_Occurred()) SWIG_fail;
7381 }
7382 resultobj = SWIG_From_int(static_cast< int >(result));
7383 return resultobj;
7384fail:
7385 return NULL;
7386}
7387
7388
7389SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7390 PyObject *obj;
7391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7392 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7393 return SWIG_Py_Void();
7394}
7395
7396SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7397 PyObject *resultobj = 0;
7398 wxBitmap *arg1 = 0 ;
7399 wxNativePixelData *result = 0 ;
7400 void *argp1 = 0 ;
7401 int res1 = 0 ;
7402
7403 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7405 if (!SWIG_IsOK(res1)) {
7406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7407 }
7408 if (!argp1) {
7409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7410 }
7411 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7412 {
7413 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7414 if (PyErr_Occurred()) SWIG_fail;
7415 }
7416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7417 return resultobj;
7418fail:
7419 return NULL;
7420}
7421
7422
7423SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7424 PyObject *resultobj = 0;
7425 wxBitmap *arg1 = 0 ;
7426 wxRect *arg2 = 0 ;
7427 wxNativePixelData *result = 0 ;
7428 void *argp1 = 0 ;
7429 int res1 = 0 ;
7430 wxRect temp2 ;
7431
7432 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7434 if (!SWIG_IsOK(res1)) {
7435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7436 }
7437 if (!argp1) {
7438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7439 }
7440 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7441 {
7442 arg2 = &temp2;
7443 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7444 }
7445 {
7446 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 }
7449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7450 return resultobj;
7451fail:
7452 return NULL;
7453}
7454
7455
7456SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7457 PyObject *resultobj = 0;
7458 wxBitmap *arg1 = 0 ;
7459 wxPoint *arg2 = 0 ;
7460 wxSize *arg3 = 0 ;
7461 wxNativePixelData *result = 0 ;
7462 void *argp1 = 0 ;
7463 int res1 = 0 ;
7464 wxPoint temp2 ;
7465 wxSize temp3 ;
7466
7467 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7469 if (!SWIG_IsOK(res1)) {
7470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7471 }
7472 if (!argp1) {
7473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7474 }
7475 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7476 {
7477 arg2 = &temp2;
7478 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7479 }
7480 {
7481 arg3 = &temp3;
7482 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7483 }
7484 {
7485 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7486 if (PyErr_Occurred()) SWIG_fail;
7487 }
7488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7489 return resultobj;
7490fail:
7491 return NULL;
7492}
7493
7494
7495SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7496 int argc;
7497 PyObject *argv[4];
7498
7499 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7500 --argc;
7501 if (argc == 1) {
7502 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7503 }
7504 if (argc == 2) {
7505 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7506 }
7507 if (argc == 3) {
7508 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7509 }
7510
7511fail:
7512 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7513 return NULL;
7514}
7515
7516
7517SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7518 PyObject *resultobj = 0;
7519 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7520 void *argp1 = 0 ;
7521 int res1 = 0 ;
7522 PyObject *swig_obj[1] ;
7523
7524 if (!args) SWIG_fail;
7525 swig_obj[0] = args;
7526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7527 if (!SWIG_IsOK(res1)) {
7528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7529 }
7530 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7531 {
7532 delete arg1;
7533
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 resultobj = SWIG_Py_Void();
7537 return resultobj;
7538fail:
7539 return NULL;
7540}
7541
7542
7543SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7544 PyObject *resultobj = 0;
7545 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7546 wxNativePixelData_Accessor result;
7547 void *argp1 = 0 ;
7548 int res1 = 0 ;
7549 PyObject *swig_obj[1] ;
7550
7551 if (!args) SWIG_fail;
7552 swig_obj[0] = args;
7553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7554 if (!SWIG_IsOK(res1)) {
7555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7556 }
7557 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7558 {
7559 result = ((wxNativePixelData const *)arg1)->GetPixels();
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7563 return resultobj;
7564fail:
7565 return NULL;
7566}
7567
7568
7569SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7570 PyObject *resultobj = 0;
7571 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7572 void *argp1 = 0 ;
7573 int res1 = 0 ;
7574 PyObject *swig_obj[1] ;
7575
7576 if (!args) SWIG_fail;
7577 swig_obj[0] = args;
7578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7579 if (!SWIG_IsOK(res1)) {
7580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7581 }
7582 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7583 {
7584 (arg1)->UseAlpha();
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 resultobj = SWIG_Py_Void();
7588 return resultobj;
7589fail:
7590 return NULL;
7591}
7592
7593
7594SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7595 PyObject *resultobj = 0;
7596 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7597 bool result;
7598 void *argp1 = 0 ;
7599 int res1 = 0 ;
7600 PyObject *swig_obj[1] ;
7601
7602 if (!args) SWIG_fail;
7603 swig_obj[0] = args;
7604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7605 if (!SWIG_IsOK(res1)) {
7606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7607 }
7608 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7609 {
7610 result = (bool)wxNativePixelData___nonzero__(arg1);
7611 if (PyErr_Occurred()) SWIG_fail;
7612 }
7613 {
7614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7615 }
7616 return resultobj;
7617fail:
7618 return NULL;
7619}
7620
7621
7622SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7623 PyObject *obj;
7624 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7625 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7626 return SWIG_Py_Void();
7627}
7628
7629SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7630 return SWIG_Python_InitShadowInstance(args);
7631}
7632
7633SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7634 PyObject *resultobj = 0;
7635 wxNativePixelData *arg1 = 0 ;
7636 wxNativePixelData_Accessor *result = 0 ;
7637 void *argp1 = 0 ;
7638 int res1 = 0 ;
7639
7640 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7642 if (!SWIG_IsOK(res1)) {
7643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7644 }
7645 if (!argp1) {
7646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7647 }
7648 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7649 {
7650 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 }
7653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7654 return resultobj;
7655fail:
7656 return NULL;
7657}
7658
7659
7660SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7661 PyObject *resultobj = 0;
7662 wxBitmap *arg1 = 0 ;
7663 wxNativePixelData *arg2 = 0 ;
7664 wxNativePixelData_Accessor *result = 0 ;
7665 void *argp1 = 0 ;
7666 int res1 = 0 ;
7667 void *argp2 = 0 ;
7668 int res2 = 0 ;
7669
7670 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7672 if (!SWIG_IsOK(res1)) {
7673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7674 }
7675 if (!argp1) {
7676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7677 }
7678 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7679 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7680 if (!SWIG_IsOK(res2)) {
7681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7682 }
7683 if (!argp2) {
7684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7685 }
7686 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7687 {
7688 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7689 if (PyErr_Occurred()) SWIG_fail;
7690 }
7691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7692 return resultobj;
7693fail:
7694 return NULL;
7695}
7696
7697
7698SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7699 PyObject *resultobj = 0;
7700 wxNativePixelData_Accessor *result = 0 ;
7701
7702 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7703 {
7704 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7705 if (PyErr_Occurred()) SWIG_fail;
7706 }
7707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7708 return resultobj;
7709fail:
7710 return NULL;
7711}
7712
7713
7714SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7715 int argc;
7716 PyObject *argv[3];
7717
7718 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7719 --argc;
7720 if (argc == 0) {
7721 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7722 }
7723 if (argc == 1) {
7724 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7725 }
7726 if (argc == 2) {
7727 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7728 }
7729
7730fail:
7731 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7732 return NULL;
7733}
7734
7735
7736SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7737 PyObject *resultobj = 0;
7738 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7739 void *argp1 = 0 ;
7740 int res1 = 0 ;
7741 PyObject *swig_obj[1] ;
7742
7743 if (!args) SWIG_fail;
7744 swig_obj[0] = args;
7745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7746 if (!SWIG_IsOK(res1)) {
7747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7748 }
7749 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7750 {
7751 delete arg1;
7752
7753 if (PyErr_Occurred()) SWIG_fail;
7754 }
7755 resultobj = SWIG_Py_Void();
7756 return resultobj;
7757fail:
7758 return NULL;
7759}
7760
7761
7762SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7763 PyObject *resultobj = 0;
7764 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7765 wxNativePixelData *arg2 = 0 ;
7766 void *argp1 = 0 ;
7767 int res1 = 0 ;
7768 void *argp2 = 0 ;
7769 int res2 = 0 ;
7770 PyObject * obj0 = 0 ;
7771 PyObject * obj1 = 0 ;
7772 char * kwnames[] = {
7773 (char *) "self",(char *) "data", NULL
7774 };
7775
7776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7778 if (!SWIG_IsOK(res1)) {
7779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7780 }
7781 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7783 if (!SWIG_IsOK(res2)) {
7784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7785 }
7786 if (!argp2) {
7787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7788 }
7789 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7790 {
7791 (arg1)->Reset((wxNativePixelData const &)*arg2);
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 resultobj = SWIG_Py_Void();
7795 return resultobj;
7796fail:
7797 return NULL;
7798}
7799
7800
7801SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7802 PyObject *resultobj = 0;
7803 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7804 bool result;
7805 void *argp1 = 0 ;
7806 int res1 = 0 ;
7807 PyObject *swig_obj[1] ;
7808
7809 if (!args) SWIG_fail;
7810 swig_obj[0] = args;
7811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7812 if (!SWIG_IsOK(res1)) {
7813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7814 }
7815 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7816 {
7817 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7818 if (PyErr_Occurred()) SWIG_fail;
7819 }
7820 {
7821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7822 }
7823 return resultobj;
7824fail:
7825 return NULL;
7826}
7827
7828
7829SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 PyObject *resultobj = 0;
7831 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7832 void *argp1 = 0 ;
7833 int res1 = 0 ;
7834 PyObject *swig_obj[1] ;
7835
7836 if (!args) SWIG_fail;
7837 swig_obj[0] = args;
7838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7839 if (!SWIG_IsOK(res1)) {
7840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7841 }
7842 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7843 {
7844 wxNativePixelData_Accessor_nextPixel(arg1);
7845 if (PyErr_Occurred()) SWIG_fail;
7846 }
7847 resultobj = SWIG_Py_Void();
7848 return resultobj;
7849fail:
7850 return NULL;
7851}
7852
7853
7854SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7855 PyObject *resultobj = 0;
7856 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7857 wxNativePixelData *arg2 = 0 ;
7858 int arg3 ;
7859 int arg4 ;
7860 void *argp1 = 0 ;
7861 int res1 = 0 ;
7862 void *argp2 = 0 ;
7863 int res2 = 0 ;
7864 int val3 ;
7865 int ecode3 = 0 ;
7866 int val4 ;
7867 int ecode4 = 0 ;
7868 PyObject * obj0 = 0 ;
7869 PyObject * obj1 = 0 ;
7870 PyObject * obj2 = 0 ;
7871 PyObject * obj3 = 0 ;
7872 char * kwnames[] = {
7873 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7874 };
7875
7876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7878 if (!SWIG_IsOK(res1)) {
7879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7880 }
7881 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7882 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7883 if (!SWIG_IsOK(res2)) {
7884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7885 }
7886 if (!argp2) {
7887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7888 }
7889 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7890 ecode3 = SWIG_AsVal_int(obj2, &val3);
7891 if (!SWIG_IsOK(ecode3)) {
7892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7893 }
7894 arg3 = static_cast< int >(val3);
7895 ecode4 = SWIG_AsVal_int(obj3, &val4);
7896 if (!SWIG_IsOK(ecode4)) {
7897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7898 }
7899 arg4 = static_cast< int >(val4);
7900 {
7901 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7902 if (PyErr_Occurred()) SWIG_fail;
7903 }
7904 resultobj = SWIG_Py_Void();
7905 return resultobj;
7906fail:
7907 return NULL;
7908}
7909
7910
7911SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7912 PyObject *resultobj = 0;
7913 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7914 wxNativePixelData *arg2 = 0 ;
7915 int arg3 ;
7916 void *argp1 = 0 ;
7917 int res1 = 0 ;
7918 void *argp2 = 0 ;
7919 int res2 = 0 ;
7920 int val3 ;
7921 int ecode3 = 0 ;
7922 PyObject * obj0 = 0 ;
7923 PyObject * obj1 = 0 ;
7924 PyObject * obj2 = 0 ;
7925 char * kwnames[] = {
7926 (char *) "self",(char *) "data",(char *) "x", NULL
7927 };
7928
7929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7931 if (!SWIG_IsOK(res1)) {
7932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7933 }
7934 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7936 if (!SWIG_IsOK(res2)) {
7937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7938 }
7939 if (!argp2) {
7940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7941 }
7942 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7943 ecode3 = SWIG_AsVal_int(obj2, &val3);
7944 if (!SWIG_IsOK(ecode3)) {
7945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7946 }
7947 arg3 = static_cast< int >(val3);
7948 {
7949 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7950 if (PyErr_Occurred()) SWIG_fail;
7951 }
7952 resultobj = SWIG_Py_Void();
7953 return resultobj;
7954fail:
7955 return NULL;
7956}
7957
7958
7959SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7960 PyObject *resultobj = 0;
7961 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7962 wxNativePixelData *arg2 = 0 ;
7963 int arg3 ;
7964 void *argp1 = 0 ;
7965 int res1 = 0 ;
7966 void *argp2 = 0 ;
7967 int res2 = 0 ;
7968 int val3 ;
7969 int ecode3 = 0 ;
7970 PyObject * obj0 = 0 ;
7971 PyObject * obj1 = 0 ;
7972 PyObject * obj2 = 0 ;
7973 char * kwnames[] = {
7974 (char *) "self",(char *) "data",(char *) "y", NULL
7975 };
7976
7977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7979 if (!SWIG_IsOK(res1)) {
7980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7981 }
7982 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7984 if (!SWIG_IsOK(res2)) {
7985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7986 }
7987 if (!argp2) {
7988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7989 }
7990 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7991 ecode3 = SWIG_AsVal_int(obj2, &val3);
7992 if (!SWIG_IsOK(ecode3)) {
7993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7994 }
7995 arg3 = static_cast< int >(val3);
7996 {
7997 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 resultobj = SWIG_Py_Void();
8001 return resultobj;
8002fail:
8003 return NULL;
8004}
8005
8006
8007SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8008 PyObject *resultobj = 0;
8009 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8010 wxNativePixelData *arg2 = 0 ;
8011 int arg3 ;
8012 int arg4 ;
8013 void *argp1 = 0 ;
8014 int res1 = 0 ;
8015 void *argp2 = 0 ;
8016 int res2 = 0 ;
8017 int val3 ;
8018 int ecode3 = 0 ;
8019 int val4 ;
8020 int ecode4 = 0 ;
8021 PyObject * obj0 = 0 ;
8022 PyObject * obj1 = 0 ;
8023 PyObject * obj2 = 0 ;
8024 PyObject * obj3 = 0 ;
8025 char * kwnames[] = {
8026 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8027 };
8028
8029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8031 if (!SWIG_IsOK(res1)) {
8032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8033 }
8034 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8036 if (!SWIG_IsOK(res2)) {
8037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8038 }
8039 if (!argp2) {
8040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8041 }
8042 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8043 ecode3 = SWIG_AsVal_int(obj2, &val3);
8044 if (!SWIG_IsOK(ecode3)) {
8045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8046 }
8047 arg3 = static_cast< int >(val3);
8048 ecode4 = SWIG_AsVal_int(obj3, &val4);
8049 if (!SWIG_IsOK(ecode4)) {
8050 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8051 }
8052 arg4 = static_cast< int >(val4);
8053 {
8054 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8055 if (PyErr_Occurred()) SWIG_fail;
8056 }
8057 resultobj = SWIG_Py_Void();
8058 return resultobj;
8059fail:
8060 return NULL;
8061}
8062
8063
8064SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8065 PyObject *resultobj = 0;
8066 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8067 byte arg2 ;
8068 byte arg3 ;
8069 byte arg4 ;
8070 void *argp1 = 0 ;
8071 int res1 = 0 ;
8072 unsigned char val2 ;
8073 int ecode2 = 0 ;
8074 unsigned char val3 ;
8075 int ecode3 = 0 ;
8076 unsigned char val4 ;
8077 int ecode4 = 0 ;
8078 PyObject * obj0 = 0 ;
8079 PyObject * obj1 = 0 ;
8080 PyObject * obj2 = 0 ;
8081 PyObject * obj3 = 0 ;
8082 char * kwnames[] = {
8083 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8084 };
8085
8086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8088 if (!SWIG_IsOK(res1)) {
8089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8090 }
8091 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8092 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8093 if (!SWIG_IsOK(ecode2)) {
8094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8095 }
8096 arg2 = static_cast< byte >(val2);
8097 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8098 if (!SWIG_IsOK(ecode3)) {
8099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8100 }
8101 arg3 = static_cast< byte >(val3);
8102 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8103 if (!SWIG_IsOK(ecode4)) {
8104 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8105 }
8106 arg4 = static_cast< byte >(val4);
8107 {
8108 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 resultobj = SWIG_Py_Void();
8112 return resultobj;
8113fail:
8114 return NULL;
8115}
8116
8117
8118SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8119 PyObject *resultobj = 0;
8120 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8121 PyObject *result = 0 ;
8122 void *argp1 = 0 ;
8123 int res1 = 0 ;
8124 PyObject *swig_obj[1] ;
8125
8126 if (!args) SWIG_fail;
8127 swig_obj[0] = args;
8128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8129 if (!SWIG_IsOK(res1)) {
8130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8131 }
8132 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8133 {
8134 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 }
8137 resultobj = result;
8138 return resultobj;
8139fail:
8140 return NULL;
8141}
8142
8143
8144SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8145 PyObject *obj;
8146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8147 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8148 return SWIG_Py_Void();
8149}
8150
8151SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8152 return SWIG_Python_InitShadowInstance(args);
8153}
8154
8155SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8156 PyObject *resultobj = 0;
8157 wxBitmap *arg1 = 0 ;
8158 wxAlphaPixelData *result = 0 ;
8159 void *argp1 = 0 ;
8160 int res1 = 0 ;
8161
8162 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8164 if (!SWIG_IsOK(res1)) {
8165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8166 }
8167 if (!argp1) {
8168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8169 }
8170 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8171 {
8172 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8176 return resultobj;
8177fail:
8178 return NULL;
8179}
8180
8181
8182SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8183 PyObject *resultobj = 0;
8184 wxBitmap *arg1 = 0 ;
8185 wxRect *arg2 = 0 ;
8186 wxAlphaPixelData *result = 0 ;
8187 void *argp1 = 0 ;
8188 int res1 = 0 ;
8189 wxRect temp2 ;
8190
8191 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8193 if (!SWIG_IsOK(res1)) {
8194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8195 }
8196 if (!argp1) {
8197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8198 }
8199 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8200 {
8201 arg2 = &temp2;
8202 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8203 }
8204 {
8205 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8206 if (PyErr_Occurred()) SWIG_fail;
8207 }
8208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8209 return resultobj;
8210fail:
8211 return NULL;
8212}
8213
8214
8215SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8216 PyObject *resultobj = 0;
8217 wxBitmap *arg1 = 0 ;
8218 wxPoint *arg2 = 0 ;
8219 wxSize *arg3 = 0 ;
8220 wxAlphaPixelData *result = 0 ;
8221 void *argp1 = 0 ;
8222 int res1 = 0 ;
8223 wxPoint temp2 ;
8224 wxSize temp3 ;
8225
8226 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8228 if (!SWIG_IsOK(res1)) {
8229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8230 }
8231 if (!argp1) {
8232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8233 }
8234 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8235 {
8236 arg2 = &temp2;
8237 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8238 }
8239 {
8240 arg3 = &temp3;
8241 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8242 }
8243 {
8244 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8245 if (PyErr_Occurred()) SWIG_fail;
8246 }
8247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8248 return resultobj;
8249fail:
8250 return NULL;
8251}
8252
8253
8254SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8255 int argc;
8256 PyObject *argv[4];
8257
8258 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8259 --argc;
8260 if (argc == 1) {
8261 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8262 }
8263 if (argc == 2) {
8264 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8265 }
8266 if (argc == 3) {
8267 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8268 }
8269
8270fail:
8271 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8272 return NULL;
8273}
8274
8275
8276SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8277 PyObject *resultobj = 0;
8278 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8279 void *argp1 = 0 ;
8280 int res1 = 0 ;
8281 PyObject *swig_obj[1] ;
8282
8283 if (!args) SWIG_fail;
8284 swig_obj[0] = args;
8285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8286 if (!SWIG_IsOK(res1)) {
8287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8288 }
8289 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8290 {
8291 delete arg1;
8292
8293 if (PyErr_Occurred()) SWIG_fail;
8294 }
8295 resultobj = SWIG_Py_Void();
8296 return resultobj;
8297fail:
8298 return NULL;
8299}
8300
8301
8302SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8303 PyObject *resultobj = 0;
8304 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8305 wxAlphaPixelData_Accessor result;
8306 void *argp1 = 0 ;
8307 int res1 = 0 ;
8308 PyObject *swig_obj[1] ;
8309
8310 if (!args) SWIG_fail;
8311 swig_obj[0] = args;
8312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8313 if (!SWIG_IsOK(res1)) {
8314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8315 }
8316 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8317 {
8318 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8319 if (PyErr_Occurred()) SWIG_fail;
8320 }
8321 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8322 return resultobj;
8323fail:
8324 return NULL;
8325}
8326
8327
8328SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8329 PyObject *resultobj = 0;
8330 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8331 void *argp1 = 0 ;
8332 int res1 = 0 ;
8333 PyObject *swig_obj[1] ;
8334
8335 if (!args) SWIG_fail;
8336 swig_obj[0] = args;
8337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8338 if (!SWIG_IsOK(res1)) {
8339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8340 }
8341 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8342 {
8343 (arg1)->UseAlpha();
8344 if (PyErr_Occurred()) SWIG_fail;
8345 }
8346 resultobj = SWIG_Py_Void();
8347 return resultobj;
8348fail:
8349 return NULL;
8350}
8351
8352
8353SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8354 PyObject *resultobj = 0;
8355 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8356 bool result;
8357 void *argp1 = 0 ;
8358 int res1 = 0 ;
8359 PyObject *swig_obj[1] ;
8360
8361 if (!args) SWIG_fail;
8362 swig_obj[0] = args;
8363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8364 if (!SWIG_IsOK(res1)) {
8365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8366 }
8367 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8368 {
8369 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8370 if (PyErr_Occurred()) SWIG_fail;
8371 }
8372 {
8373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8374 }
8375 return resultobj;
8376fail:
8377 return NULL;
8378}
8379
8380
8381SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8382 PyObject *obj;
8383 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8384 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8385 return SWIG_Py_Void();
8386}
8387
8388SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8389 return SWIG_Python_InitShadowInstance(args);
8390}
8391
8392SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8393 PyObject *resultobj = 0;
8394 wxAlphaPixelData *arg1 = 0 ;
8395 wxAlphaPixelData_Accessor *result = 0 ;
8396 void *argp1 = 0 ;
8397 int res1 = 0 ;
8398
8399 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8401 if (!SWIG_IsOK(res1)) {
8402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8403 }
8404 if (!argp1) {
8405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8406 }
8407 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8408 {
8409 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8410 if (PyErr_Occurred()) SWIG_fail;
8411 }
8412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8413 return resultobj;
8414fail:
8415 return NULL;
8416}
8417
8418
8419SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8420 PyObject *resultobj = 0;
8421 wxBitmap *arg1 = 0 ;
8422 wxAlphaPixelData *arg2 = 0 ;
8423 wxAlphaPixelData_Accessor *result = 0 ;
8424 void *argp1 = 0 ;
8425 int res1 = 0 ;
8426 void *argp2 = 0 ;
8427 int res2 = 0 ;
8428
8429 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8431 if (!SWIG_IsOK(res1)) {
8432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8433 }
8434 if (!argp1) {
8435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8436 }
8437 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8438 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8439 if (!SWIG_IsOK(res2)) {
8440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8441 }
8442 if (!argp2) {
8443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8444 }
8445 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8446 {
8447 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8448 if (PyErr_Occurred()) SWIG_fail;
8449 }
8450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8451 return resultobj;
8452fail:
8453 return NULL;
8454}
8455
8456
8457SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8458 PyObject *resultobj = 0;
8459 wxAlphaPixelData_Accessor *result = 0 ;
8460
8461 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8462 {
8463 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8464 if (PyErr_Occurred()) SWIG_fail;
8465 }
8466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8467 return resultobj;
8468fail:
8469 return NULL;
8470}
8471
8472
8473SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8474 int argc;
8475 PyObject *argv[3];
8476
8477 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8478 --argc;
8479 if (argc == 0) {
8480 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8481 }
8482 if (argc == 1) {
8483 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8484 }
8485 if (argc == 2) {
8486 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8487 }
8488
8489fail:
8490 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8491 return NULL;
8492}
8493
8494
8495SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8496 PyObject *resultobj = 0;
8497 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8498 void *argp1 = 0 ;
8499 int res1 = 0 ;
8500 PyObject *swig_obj[1] ;
8501
8502 if (!args) SWIG_fail;
8503 swig_obj[0] = args;
8504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8505 if (!SWIG_IsOK(res1)) {
8506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8507 }
8508 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8509 {
8510 delete arg1;
8511
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_Py_Void();
8515 return resultobj;
8516fail:
8517 return NULL;
8518}
8519
8520
8521SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8522 PyObject *resultobj = 0;
8523 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8524 wxAlphaPixelData *arg2 = 0 ;
8525 void *argp1 = 0 ;
8526 int res1 = 0 ;
8527 void *argp2 = 0 ;
8528 int res2 = 0 ;
8529 PyObject * obj0 = 0 ;
8530 PyObject * obj1 = 0 ;
8531 char * kwnames[] = {
8532 (char *) "self",(char *) "data", NULL
8533 };
8534
8535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8537 if (!SWIG_IsOK(res1)) {
8538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8539 }
8540 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8541 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8542 if (!SWIG_IsOK(res2)) {
8543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8544 }
8545 if (!argp2) {
8546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8547 }
8548 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8549 {
8550 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 resultobj = SWIG_Py_Void();
8554 return resultobj;
8555fail:
8556 return NULL;
8557}
8558
8559
8560SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8561 PyObject *resultobj = 0;
8562 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8563 bool result;
8564 void *argp1 = 0 ;
8565 int res1 = 0 ;
8566 PyObject *swig_obj[1] ;
8567
8568 if (!args) SWIG_fail;
8569 swig_obj[0] = args;
8570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8571 if (!SWIG_IsOK(res1)) {
8572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8573 }
8574 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8575 {
8576 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8577 if (PyErr_Occurred()) SWIG_fail;
8578 }
8579 {
8580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8581 }
8582 return resultobj;
8583fail:
8584 return NULL;
8585}
8586
8587
8588SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8589 PyObject *resultobj = 0;
8590 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8591 void *argp1 = 0 ;
8592 int res1 = 0 ;
8593 PyObject *swig_obj[1] ;
8594
8595 if (!args) SWIG_fail;
8596 swig_obj[0] = args;
8597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8598 if (!SWIG_IsOK(res1)) {
8599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8600 }
8601 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8602 {
8603 wxAlphaPixelData_Accessor_nextPixel(arg1);
8604 if (PyErr_Occurred()) SWIG_fail;
8605 }
8606 resultobj = SWIG_Py_Void();
8607 return resultobj;
8608fail:
8609 return NULL;
8610}
8611
8612
8613SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8614 PyObject *resultobj = 0;
8615 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8616 wxAlphaPixelData *arg2 = 0 ;
8617 int arg3 ;
8618 int arg4 ;
8619 void *argp1 = 0 ;
8620 int res1 = 0 ;
8621 void *argp2 = 0 ;
8622 int res2 = 0 ;
8623 int val3 ;
8624 int ecode3 = 0 ;
8625 int val4 ;
8626 int ecode4 = 0 ;
8627 PyObject * obj0 = 0 ;
8628 PyObject * obj1 = 0 ;
8629 PyObject * obj2 = 0 ;
8630 PyObject * obj3 = 0 ;
8631 char * kwnames[] = {
8632 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8633 };
8634
8635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8637 if (!SWIG_IsOK(res1)) {
8638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8639 }
8640 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8642 if (!SWIG_IsOK(res2)) {
8643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8644 }
8645 if (!argp2) {
8646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8647 }
8648 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8649 ecode3 = SWIG_AsVal_int(obj2, &val3);
8650 if (!SWIG_IsOK(ecode3)) {
8651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8652 }
8653 arg3 = static_cast< int >(val3);
8654 ecode4 = SWIG_AsVal_int(obj3, &val4);
8655 if (!SWIG_IsOK(ecode4)) {
8656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8657 }
8658 arg4 = static_cast< int >(val4);
8659 {
8660 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8661 if (PyErr_Occurred()) SWIG_fail;
8662 }
8663 resultobj = SWIG_Py_Void();
8664 return resultobj;
8665fail:
8666 return NULL;
8667}
8668
8669
8670SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8671 PyObject *resultobj = 0;
8672 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8673 wxAlphaPixelData *arg2 = 0 ;
8674 int arg3 ;
8675 void *argp1 = 0 ;
8676 int res1 = 0 ;
8677 void *argp2 = 0 ;
8678 int res2 = 0 ;
8679 int val3 ;
8680 int ecode3 = 0 ;
8681 PyObject * obj0 = 0 ;
8682 PyObject * obj1 = 0 ;
8683 PyObject * obj2 = 0 ;
8684 char * kwnames[] = {
8685 (char *) "self",(char *) "data",(char *) "x", NULL
8686 };
8687
8688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8690 if (!SWIG_IsOK(res1)) {
8691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8692 }
8693 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8695 if (!SWIG_IsOK(res2)) {
8696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8697 }
8698 if (!argp2) {
8699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8700 }
8701 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8702 ecode3 = SWIG_AsVal_int(obj2, &val3);
8703 if (!SWIG_IsOK(ecode3)) {
8704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8705 }
8706 arg3 = static_cast< int >(val3);
8707 {
8708 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 resultobj = SWIG_Py_Void();
8712 return resultobj;
8713fail:
8714 return NULL;
8715}
8716
8717
8718SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8719 PyObject *resultobj = 0;
8720 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8721 wxAlphaPixelData *arg2 = 0 ;
8722 int arg3 ;
8723 void *argp1 = 0 ;
8724 int res1 = 0 ;
8725 void *argp2 = 0 ;
8726 int res2 = 0 ;
8727 int val3 ;
8728 int ecode3 = 0 ;
8729 PyObject * obj0 = 0 ;
8730 PyObject * obj1 = 0 ;
8731 PyObject * obj2 = 0 ;
8732 char * kwnames[] = {
8733 (char *) "self",(char *) "data",(char *) "y", NULL
8734 };
8735
8736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8738 if (!SWIG_IsOK(res1)) {
8739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8740 }
8741 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8743 if (!SWIG_IsOK(res2)) {
8744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8745 }
8746 if (!argp2) {
8747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8748 }
8749 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8750 ecode3 = SWIG_AsVal_int(obj2, &val3);
8751 if (!SWIG_IsOK(ecode3)) {
8752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8753 }
8754 arg3 = static_cast< int >(val3);
8755 {
8756 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8757 if (PyErr_Occurred()) SWIG_fail;
8758 }
8759 resultobj = SWIG_Py_Void();
8760 return resultobj;
8761fail:
8762 return NULL;
8763}
8764
8765
8766SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8767 PyObject *resultobj = 0;
8768 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8769 wxAlphaPixelData *arg2 = 0 ;
8770 int arg3 ;
8771 int arg4 ;
8772 void *argp1 = 0 ;
8773 int res1 = 0 ;
8774 void *argp2 = 0 ;
8775 int res2 = 0 ;
8776 int val3 ;
8777 int ecode3 = 0 ;
8778 int val4 ;
8779 int ecode4 = 0 ;
8780 PyObject * obj0 = 0 ;
8781 PyObject * obj1 = 0 ;
8782 PyObject * obj2 = 0 ;
8783 PyObject * obj3 = 0 ;
8784 char * kwnames[] = {
8785 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8786 };
8787
8788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8790 if (!SWIG_IsOK(res1)) {
8791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8792 }
8793 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8794 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8795 if (!SWIG_IsOK(res2)) {
8796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8797 }
8798 if (!argp2) {
8799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8800 }
8801 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8802 ecode3 = SWIG_AsVal_int(obj2, &val3);
8803 if (!SWIG_IsOK(ecode3)) {
8804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8805 }
8806 arg3 = static_cast< int >(val3);
8807 ecode4 = SWIG_AsVal_int(obj3, &val4);
8808 if (!SWIG_IsOK(ecode4)) {
8809 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8810 }
8811 arg4 = static_cast< int >(val4);
8812 {
8813 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 resultobj = SWIG_Py_Void();
8817 return resultobj;
8818fail:
8819 return NULL;
8820}
8821
8822
8823SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj = 0;
8825 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8826 byte arg2 ;
8827 byte arg3 ;
8828 byte arg4 ;
8829 byte arg5 ;
8830 void *argp1 = 0 ;
8831 int res1 = 0 ;
8832 unsigned char val2 ;
8833 int ecode2 = 0 ;
8834 unsigned char val3 ;
8835 int ecode3 = 0 ;
8836 unsigned char val4 ;
8837 int ecode4 = 0 ;
8838 unsigned char val5 ;
8839 int ecode5 = 0 ;
8840 PyObject * obj0 = 0 ;
8841 PyObject * obj1 = 0 ;
8842 PyObject * obj2 = 0 ;
8843 PyObject * obj3 = 0 ;
8844 PyObject * obj4 = 0 ;
8845 char * kwnames[] = {
8846 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8847 };
8848
8849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8851 if (!SWIG_IsOK(res1)) {
8852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8853 }
8854 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8855 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8856 if (!SWIG_IsOK(ecode2)) {
8857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8858 }
8859 arg2 = static_cast< byte >(val2);
8860 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8861 if (!SWIG_IsOK(ecode3)) {
8862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8863 }
8864 arg3 = static_cast< byte >(val3);
8865 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8866 if (!SWIG_IsOK(ecode4)) {
8867 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8868 }
8869 arg4 = static_cast< byte >(val4);
8870 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8871 if (!SWIG_IsOK(ecode5)) {
8872 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8873 }
8874 arg5 = static_cast< byte >(val5);
8875 {
8876 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8877 if (PyErr_Occurred()) SWIG_fail;
0085ce49 8878 }
fc46b7f3 8879 resultobj = SWIG_Py_Void();
0085ce49
RD
8880 return resultobj;
8881fail:
8882 return NULL;
8883}
8884
8885
fc46b7f3 8886SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8887 PyObject *resultobj = 0;
fc46b7f3
RD
8888 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8889 PyObject *result = 0 ;
0085ce49
RD
8890 void *argp1 = 0 ;
8891 int res1 = 0 ;
fc46b7f3 8892 PyObject *swig_obj[1] ;
0085ce49 8893
fc46b7f3
RD
8894 if (!args) SWIG_fail;
8895 swig_obj[0] = args;
8896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
0085ce49 8897 if (!SWIG_IsOK(res1)) {
fc46b7f3 8898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
0085ce49 8899 }
fc46b7f3 8900 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
0085ce49 8901 {
fc46b7f3 8902 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
0085ce49
RD
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
fc46b7f3 8905 resultobj = result;
0085ce49
RD
8906 return resultobj;
8907fail:
8908 return NULL;
d14a1e28
RD
8909}
8910
8911
fc46b7f3 8912SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
8913 PyObject *obj;
8914 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8915 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
0085ce49 8916 return SWIG_Py_Void();
b2df227b
RD
8917}
8918
fc46b7f3 8919SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8920 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
8921}
8922
0085ce49
RD
8923SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8924 PyObject *resultobj = 0;
8925 wxBitmap *arg1 = 0 ;
8926 wxColour const &arg2_defvalue = wxNullColour ;
8927 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8928 wxMask *result = 0 ;
8929 void *argp1 = 0 ;
8930 int res1 = 0 ;
8931 wxColour temp2 ;
8932 PyObject * obj0 = 0 ;
8933 PyObject * obj1 = 0 ;
8934 char * kwnames[] = {
8935 (char *) "bitmap",(char *) "colour", NULL
8936 };
8937
8938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8939 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8940 if (!SWIG_IsOK(res1)) {
8941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8942 }
8943 if (!argp1) {
8944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8945 }
8946 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8947 if (obj1) {
d14a1e28 8948 {
0085ce49
RD
8949 arg2 = &temp2;
8950 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 8951 }
0085ce49
RD
8952 }
8953 {
8954 if (!wxPyCheckForApp()) SWIG_fail;
8955 PyThreadState* __tstate = wxPyBeginAllowThreads();
8956 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8957 wxPyEndAllowThreads(__tstate);
8958 if (PyErr_Occurred()) SWIG_fail;
8959 }
8960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8961 return resultobj;
8962fail:
8963 return NULL;
d14a1e28
RD
8964}
8965
8966
0085ce49
RD
8967SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8968 PyObject *resultobj = 0;
8969 wxMask *arg1 = (wxMask *) 0 ;
8970 void *argp1 = 0 ;
8971 int res1 = 0 ;
8972 PyObject *swig_obj[1] ;
8973
8974 if (!args) SWIG_fail;
8975 swig_obj[0] = args;
8976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8977 if (!SWIG_IsOK(res1)) {
8978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8979 }
8980 arg1 = reinterpret_cast< wxMask * >(argp1);
8981 {
0085ce49 8982 delete arg1;
d14a1e28 8983
0085ce49
RD
8984 if (PyErr_Occurred()) SWIG_fail;
8985 }
8986 resultobj = SWIG_Py_Void();
8987 return resultobj;
8988fail:
8989 return NULL;
8990}
8991
8992
8993SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8994 PyObject *obj;
8995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8996 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8997 return SWIG_Py_Void();
8998}
8999
9000SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9001 return SWIG_Python_InitShadowInstance(args);
9002}
9003
9004SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9005 PyObject *resultobj = 0;
9006 wxString *arg1 = 0 ;
9007 wxBitmapType arg2 ;
9008 int arg3 = (int) -1 ;
9009 int arg4 = (int) -1 ;
9010 wxIcon *result = 0 ;
9011 bool temp1 = false ;
9012 int val2 ;
9013 int ecode2 = 0 ;
9014 int val3 ;
9015 int ecode3 = 0 ;
9016 int val4 ;
9017 int ecode4 = 0 ;
9018 PyObject * obj0 = 0 ;
9019 PyObject * obj1 = 0 ;
9020 PyObject * obj2 = 0 ;
9021 PyObject * obj3 = 0 ;
9022 char * kwnames[] = {
9023 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9024 };
9025
9026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9027 {
9028 arg1 = wxString_in_helper(obj0);
9029 if (arg1 == NULL) SWIG_fail;
9030 temp1 = true;
9031 }
9032 ecode2 = SWIG_AsVal_int(obj1, &val2);
9033 if (!SWIG_IsOK(ecode2)) {
9034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9035 }
9036 arg2 = static_cast< wxBitmapType >(val2);
9037 if (obj2) {
9038 ecode3 = SWIG_AsVal_int(obj2, &val3);
9039 if (!SWIG_IsOK(ecode3)) {
9040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9041 }
9042 arg3 = static_cast< int >(val3);
9043 }
9044 if (obj3) {
9045 ecode4 = SWIG_AsVal_int(obj3, &val4);
9046 if (!SWIG_IsOK(ecode4)) {
9047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9048 }
9049 arg4 = static_cast< int >(val4);
9050 }
9051 {
9052 if (!wxPyCheckForApp()) SWIG_fail;
9053 PyThreadState* __tstate = wxPyBeginAllowThreads();
9054 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9055 wxPyEndAllowThreads(__tstate);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 }
9058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9059 {
9060 if (temp1)
9061 delete arg1;
9062 }
9063 return resultobj;
9064fail:
9065 {
9066 if (temp1)
9067 delete arg1;
9068 }
9069 return NULL;
d14a1e28
RD
9070}
9071
9072
0085ce49
RD
9073SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9074 PyObject *resultobj = 0;
9075 wxIcon *arg1 = (wxIcon *) 0 ;
9076 void *argp1 = 0 ;
9077 int res1 = 0 ;
9078 PyObject *swig_obj[1] ;
9079
9080 if (!args) SWIG_fail;
9081 swig_obj[0] = args;
9082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9083 if (!SWIG_IsOK(res1)) {
9084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9085 }
9086 arg1 = reinterpret_cast< wxIcon * >(argp1);
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 delete arg1;
d14a1e28 9090
0085ce49
RD
9091 wxPyEndAllowThreads(__tstate);
9092 if (PyErr_Occurred()) SWIG_fail;
9093 }
9094 resultobj = SWIG_Py_Void();
9095 return resultobj;
9096fail:
9097 return NULL;
d14a1e28
RD
9098}
9099
9100
0085ce49
RD
9101SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9102 PyObject *resultobj = 0;
9103 wxIcon *result = 0 ;
9104
9105 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9106 {
9107 if (!wxPyCheckForApp()) SWIG_fail;
9108 PyThreadState* __tstate = wxPyBeginAllowThreads();
9109 result = (wxIcon *)new wxIcon();
9110 wxPyEndAllowThreads(__tstate);
9111 if (PyErr_Occurred()) SWIG_fail;
9112 }
9113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9114 return resultobj;
9115fail:
9116 return NULL;
9117}
9118
9119
9120SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9121 PyObject *resultobj = 0;
9122 wxIconLocation *arg1 = 0 ;
9123 wxIcon *result = 0 ;
9124 void *argp1 = 0 ;
9125 int res1 = 0 ;
9126 PyObject * obj0 = 0 ;
9127 char * kwnames[] = {
9128 (char *) "loc", NULL
9129 };
9130
9131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9132 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9133 if (!SWIG_IsOK(res1)) {
9134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9135 }
9136 if (!argp1) {
9137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9138 }
9139 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9140 {
9141 if (!wxPyCheckForApp()) SWIG_fail;
9142 PyThreadState* __tstate = wxPyBeginAllowThreads();
9143 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9144 wxPyEndAllowThreads(__tstate);
9145 if (PyErr_Occurred()) SWIG_fail;
9146 }
9147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9148 return resultobj;
9149fail:
9150 return NULL;
9151}
9152
9153
9154SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9155 PyObject *resultobj = 0;
9156 wxBitmap *arg1 = 0 ;
9157 wxIcon *result = 0 ;
9158 void *argp1 = 0 ;
9159 int res1 = 0 ;
9160 PyObject * obj0 = 0 ;
9161 char * kwnames[] = {
9162 (char *) "bmp", NULL
9163 };
9164
9165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9166 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9167 if (!SWIG_IsOK(res1)) {
9168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9169 }
9170 if (!argp1) {
9171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9172 }
9173 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9174 {
9175 if (!wxPyCheckForApp()) SWIG_fail;
9176 PyThreadState* __tstate = wxPyBeginAllowThreads();
9177 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9178 wxPyEndAllowThreads(__tstate);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 }
9181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9182 return resultobj;
9183fail:
9184 return NULL;
d14a1e28
RD
9185}
9186
9187
0085ce49
RD
9188SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9189 PyObject *resultobj = 0;
9190 PyObject *arg1 = (PyObject *) 0 ;
9191 wxIcon *result = 0 ;
9192 PyObject * obj0 = 0 ;
9193 char * kwnames[] = {
9194 (char *) "listOfStrings", NULL
9195 };
9196
9197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9198 arg1 = obj0;
9199 {
9200 if (!wxPyCheckForApp()) SWIG_fail;
9201 PyThreadState* __tstate = wxPyBeginAllowThreads();
9202 result = (wxIcon *)new_wxIcon(arg1);
9203 wxPyEndAllowThreads(__tstate);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 }
9206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9207 return resultobj;
9208fail:
9209 return NULL;
9210}
9211
9212
9213SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj = 0;
9215 wxIcon *arg1 = (wxIcon *) 0 ;
9216 wxString *arg2 = 0 ;
9217 wxBitmapType arg3 ;
9218 bool result;
9219 void *argp1 = 0 ;
9220 int res1 = 0 ;
9221 bool temp2 = false ;
9222 int val3 ;
9223 int ecode3 = 0 ;
9224 PyObject * obj0 = 0 ;
9225 PyObject * obj1 = 0 ;
9226 PyObject * obj2 = 0 ;
9227 char * kwnames[] = {
9228 (char *) "self",(char *) "name",(char *) "type", NULL
9229 };
9230
9231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9233 if (!SWIG_IsOK(res1)) {
9234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9235 }
9236 arg1 = reinterpret_cast< wxIcon * >(argp1);
9237 {
9238 arg2 = wxString_in_helper(obj1);
9239 if (arg2 == NULL) SWIG_fail;
9240 temp2 = true;
9241 }
9242 ecode3 = SWIG_AsVal_int(obj2, &val3);
9243 if (!SWIG_IsOK(ecode3)) {
9244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9245 }
9246 arg3 = static_cast< wxBitmapType >(val3);
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 {
9254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9255 }
9256 {
9257 if (temp2)
9258 delete arg2;
9259 }
9260 return resultobj;
9261fail:
9262 {
9263 if (temp2)
9264 delete arg2;
9265 }
9266 return NULL;
d14a1e28
RD
9267}
9268
9269
b39fe951 9270SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
9271 PyObject *resultobj = 0;
9272 wxIcon *arg1 = (wxIcon *) 0 ;
9273 bool result;
9274 void *argp1 = 0 ;
9275 int res1 = 0 ;
9276 PyObject *swig_obj[1] ;
9277
9278 if (!args) SWIG_fail;
9279 swig_obj[0] = args;
9280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9281 if (!SWIG_IsOK(res1)) {
b39fe951 9282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
0085ce49
RD
9283 }
9284 arg1 = reinterpret_cast< wxIcon * >(argp1);
9285 {
9286 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9287 result = (bool)(arg1)->IsOk();
0085ce49
RD
9288 wxPyEndAllowThreads(__tstate);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 }
9291 {
9292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9293 }
9294 return resultobj;
9295fail:
9296 return NULL;
d14a1e28
RD
9297}
9298
9299
0085ce49
RD
9300SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9301 PyObject *resultobj = 0;
9302 wxIcon *arg1 = (wxIcon *) 0 ;
9303 int result;
9304 void *argp1 = 0 ;
9305 int res1 = 0 ;
9306 PyObject *swig_obj[1] ;
9307
9308 if (!args) SWIG_fail;
9309 swig_obj[0] = args;
9310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9311 if (!SWIG_IsOK(res1)) {
9312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9313 }
9314 arg1 = reinterpret_cast< wxIcon * >(argp1);
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 result = (int)(arg1)->GetWidth();
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 resultobj = SWIG_From_int(static_cast< int >(result));
9322 return resultobj;
9323fail:
9324 return NULL;
d3b6e4ff
RD
9325}
9326
9327
0085ce49
RD
9328SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9329 PyObject *resultobj = 0;
9330 wxIcon *arg1 = (wxIcon *) 0 ;
9331 int result;
9332 void *argp1 = 0 ;
9333 int res1 = 0 ;
9334 PyObject *swig_obj[1] ;
9335
9336 if (!args) SWIG_fail;
9337 swig_obj[0] = args;
9338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9339 if (!SWIG_IsOK(res1)) {
9340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9341 }
9342 arg1 = reinterpret_cast< wxIcon * >(argp1);
9343 {
9344 PyThreadState* __tstate = wxPyBeginAllowThreads();
9345 result = (int)(arg1)->GetHeight();
9346 wxPyEndAllowThreads(__tstate);
9347 if (PyErr_Occurred()) SWIG_fail;
9348 }
9349 resultobj = SWIG_From_int(static_cast< int >(result));
9350 return resultobj;
9351fail:
9352 return NULL;
d14a1e28
RD
9353}
9354
9355
0085ce49
RD
9356SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9357 PyObject *resultobj = 0;
9358 wxIcon *arg1 = (wxIcon *) 0 ;
9359 int result;
9360 void *argp1 = 0 ;
9361 int res1 = 0 ;
9362 PyObject *swig_obj[1] ;
9363
9364 if (!args) SWIG_fail;
9365 swig_obj[0] = args;
9366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9367 if (!SWIG_IsOK(res1)) {
9368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9369 }
9370 arg1 = reinterpret_cast< wxIcon * >(argp1);
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 result = (int)(arg1)->GetDepth();
9374 wxPyEndAllowThreads(__tstate);
9375 if (PyErr_Occurred()) SWIG_fail;
9376 }
9377 resultobj = SWIG_From_int(static_cast< int >(result));
9378 return resultobj;
9379fail:
9380 return NULL;
9381}
9382
9383
9384SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9385 PyObject *resultobj = 0;
9386 wxIcon *arg1 = (wxIcon *) 0 ;
9387 int arg2 ;
9388 void *argp1 = 0 ;
9389 int res1 = 0 ;
9390 int val2 ;
9391 int ecode2 = 0 ;
9392 PyObject * obj0 = 0 ;
9393 PyObject * obj1 = 0 ;
9394 char * kwnames[] = {
9395 (char *) "self",(char *) "w", NULL
9396 };
9397
9398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9400 if (!SWIG_IsOK(res1)) {
9401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9402 }
9403 arg1 = reinterpret_cast< wxIcon * >(argp1);
9404 ecode2 = SWIG_AsVal_int(obj1, &val2);
9405 if (!SWIG_IsOK(ecode2)) {
9406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9407 }
9408 arg2 = static_cast< int >(val2);
9409 {
9410 PyThreadState* __tstate = wxPyBeginAllowThreads();
9411 (arg1)->SetWidth(arg2);
9412 wxPyEndAllowThreads(__tstate);
9413 if (PyErr_Occurred()) SWIG_fail;
9414 }
9415 resultobj = SWIG_Py_Void();
9416 return resultobj;
9417fail:
9418 return NULL;
9419}
9420
9421
9422SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9423 PyObject *resultobj = 0;
9424 wxIcon *arg1 = (wxIcon *) 0 ;
9425 int arg2 ;
9426 void *argp1 = 0 ;
9427 int res1 = 0 ;
9428 int val2 ;
9429 int ecode2 = 0 ;
9430 PyObject * obj0 = 0 ;
9431 PyObject * obj1 = 0 ;
9432 char * kwnames[] = {
9433 (char *) "self",(char *) "h", NULL
9434 };
9435
9436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9438 if (!SWIG_IsOK(res1)) {
9439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9440 }
9441 arg1 = reinterpret_cast< wxIcon * >(argp1);
9442 ecode2 = SWIG_AsVal_int(obj1, &val2);
9443 if (!SWIG_IsOK(ecode2)) {
9444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9445 }
9446 arg2 = static_cast< int >(val2);
9447 {
9448 PyThreadState* __tstate = wxPyBeginAllowThreads();
9449 (arg1)->SetHeight(arg2);
9450 wxPyEndAllowThreads(__tstate);
9451 if (PyErr_Occurred()) SWIG_fail;
9452 }
9453 resultobj = SWIG_Py_Void();
9454 return resultobj;
9455fail:
9456 return NULL;
9457}
9458
9459
9460SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9461 PyObject *resultobj = 0;
9462 wxIcon *arg1 = (wxIcon *) 0 ;
9463 int arg2 ;
9464 void *argp1 = 0 ;
9465 int res1 = 0 ;
9466 int val2 ;
9467 int ecode2 = 0 ;
9468 PyObject * obj0 = 0 ;
9469 PyObject * obj1 = 0 ;
9470 char * kwnames[] = {
9471 (char *) "self",(char *) "d", NULL
9472 };
9473
9474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9476 if (!SWIG_IsOK(res1)) {
9477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9478 }
9479 arg1 = reinterpret_cast< wxIcon * >(argp1);
9480 ecode2 = SWIG_AsVal_int(obj1, &val2);
9481 if (!SWIG_IsOK(ecode2)) {
9482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9483 }
9484 arg2 = static_cast< int >(val2);
9485 {
9486 PyThreadState* __tstate = wxPyBeginAllowThreads();
9487 (arg1)->SetDepth(arg2);
9488 wxPyEndAllowThreads(__tstate);
9489 if (PyErr_Occurred()) SWIG_fail;
9490 }
9491 resultobj = SWIG_Py_Void();
9492 return resultobj;
9493fail:
9494 return NULL;
9495}
9496
9497
9498SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9499 PyObject *resultobj = 0;
9500 wxIcon *arg1 = (wxIcon *) 0 ;
9501 wxBitmap *arg2 = 0 ;
9502 void *argp1 = 0 ;
9503 int res1 = 0 ;
9504 void *argp2 = 0 ;
9505 int res2 = 0 ;
9506 PyObject * obj0 = 0 ;
9507 PyObject * obj1 = 0 ;
9508 char * kwnames[] = {
9509 (char *) "self",(char *) "bmp", NULL
9510 };
9511
9512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9514 if (!SWIG_IsOK(res1)) {
9515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9516 }
9517 arg1 = reinterpret_cast< wxIcon * >(argp1);
9518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9519 if (!SWIG_IsOK(res2)) {
9520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9521 }
9522 if (!argp2) {
9523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9524 }
9525 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9526 {
9527 PyThreadState* __tstate = wxPyBeginAllowThreads();
9528 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9529 wxPyEndAllowThreads(__tstate);
9530 if (PyErr_Occurred()) SWIG_fail;
9531 }
9532 resultobj = SWIG_Py_Void();
9533 return resultobj;
9534fail:
9535 return NULL;
d14a1e28
RD
9536}
9537
9538
0085ce49
RD
9539SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9540 PyObject *obj;
9541 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9542 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9543 return SWIG_Py_Void();
d14a1e28
RD
9544}
9545
0085ce49
RD
9546SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9547 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9548}
9549
0085ce49
RD
9550SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9551 PyObject *resultobj = 0;
9552 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9553 int arg2 = (int) 0 ;
9554 wxIconLocation *result = 0 ;
9555 bool temp1 = false ;
9556 int val2 ;
9557 int ecode2 = 0 ;
9558 PyObject * obj0 = 0 ;
9559 PyObject * obj1 = 0 ;
9560 char * kwnames[] = {
9561 (char *) "filename",(char *) "num", NULL
9562 };
9563
9564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9565 if (obj0) {
b2df227b 9566 {
0085ce49
RD
9567 arg1 = wxString_in_helper(obj0);
9568 if (arg1 == NULL) SWIG_fail;
9569 temp1 = true;
b2df227b 9570 }
0085ce49
RD
9571 }
9572 if (obj1) {
9573 ecode2 = SWIG_AsVal_int(obj1, &val2);
9574 if (!SWIG_IsOK(ecode2)) {
9575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9576 }
9577 arg2 = static_cast< int >(val2);
9578 }
9579 {
9580 PyThreadState* __tstate = wxPyBeginAllowThreads();
9581 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9582 wxPyEndAllowThreads(__tstate);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 }
9585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9586 {
9587 if (temp1)
9588 delete arg1;
9589 }
9590 return resultobj;
9591fail:
9592 {
9593 if (temp1)
9594 delete arg1;
9595 }
9596 return NULL;
b2df227b
RD
9597}
9598
9599
0085ce49
RD
9600SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9601 PyObject *resultobj = 0;
9602 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9603 void *argp1 = 0 ;
9604 int res1 = 0 ;
9605 PyObject *swig_obj[1] ;
9606
9607 if (!args) SWIG_fail;
9608 swig_obj[0] = args;
9609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9612 }
9613 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 delete arg1;
4276dc52 9617
0085ce49
RD
9618 wxPyEndAllowThreads(__tstate);
9619 if (PyErr_Occurred()) SWIG_fail;
9620 }
9621 resultobj = SWIG_Py_Void();
9622 return resultobj;
9623fail:
9624 return NULL;
4276dc52
RD
9625}
9626
9627
0085ce49
RD
9628SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9629 PyObject *resultobj = 0;
9630 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9631 bool result;
9632 void *argp1 = 0 ;
9633 int res1 = 0 ;
9634 PyObject *swig_obj[1] ;
9635
9636 if (!args) SWIG_fail;
9637 swig_obj[0] = args;
9638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9639 if (!SWIG_IsOK(res1)) {
9640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9641 }
9642 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9643 {
9644 PyThreadState* __tstate = wxPyBeginAllowThreads();
9645 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9646 wxPyEndAllowThreads(__tstate);
9647 if (PyErr_Occurred()) SWIG_fail;
9648 }
9649 {
9650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9651 }
9652 return resultobj;
9653fail:
9654 return NULL;
9655}
9656
9657
9658SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9659 PyObject *resultobj = 0;
9660 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9661 wxString *arg2 = 0 ;
9662 void *argp1 = 0 ;
9663 int res1 = 0 ;
9664 bool temp2 = false ;
9665 PyObject * obj0 = 0 ;
9666 PyObject * obj1 = 0 ;
9667 char * kwnames[] = {
9668 (char *) "self",(char *) "filename", NULL
9669 };
9670
9671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9673 if (!SWIG_IsOK(res1)) {
9674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9675 }
9676 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9677 {
9678 arg2 = wxString_in_helper(obj1);
9679 if (arg2 == NULL) SWIG_fail;
9680 temp2 = true;
9681 }
9682 {
9683 PyThreadState* __tstate = wxPyBeginAllowThreads();
9684 (arg1)->SetFileName((wxString const &)*arg2);
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 }
9688 resultobj = SWIG_Py_Void();
9689 {
9690 if (temp2)
9691 delete arg2;
9692 }
9693 return resultobj;
9694fail:
9695 {
9696 if (temp2)
9697 delete arg2;
9698 }
9699 return NULL;
4276dc52
RD
9700}
9701
9702
0085ce49
RD
9703SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9704 PyObject *resultobj = 0;
9705 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9706 wxString *result = 0 ;
9707 void *argp1 = 0 ;
9708 int res1 = 0 ;
9709 PyObject *swig_obj[1] ;
9710
9711 if (!args) SWIG_fail;
9712 swig_obj[0] = args;
9713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9714 if (!SWIG_IsOK(res1)) {
9715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9716 }
9717 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9718 {
9719 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9720 {
0085ce49
RD
9721 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9722 result = (wxString *) &_result_ref;
093d3ff1 9723 }
0085ce49
RD
9724 wxPyEndAllowThreads(__tstate);
9725 if (PyErr_Occurred()) SWIG_fail;
9726 }
9727 {
9728#if wxUSE_UNICODE
9729 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9730#else
9731 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9732#endif
9733 }
9734 return resultobj;
9735fail:
9736 return NULL;
9737}
9738
9739
9740SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9741 PyObject *resultobj = 0;
9742 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9743 int arg2 ;
9744 void *argp1 = 0 ;
9745 int res1 = 0 ;
9746 int val2 ;
9747 int ecode2 = 0 ;
9748 PyObject * obj0 = 0 ;
9749 PyObject * obj1 = 0 ;
9750 char * kwnames[] = {
9751 (char *) "self",(char *) "num", NULL
9752 };
9753
9754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9756 if (!SWIG_IsOK(res1)) {
9757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9758 }
9759 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9760 ecode2 = SWIG_AsVal_int(obj1, &val2);
9761 if (!SWIG_IsOK(ecode2)) {
9762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9763 }
9764 arg2 = static_cast< int >(val2);
9765 {
9766 PyThreadState* __tstate = wxPyBeginAllowThreads();
9767 wxIconLocation_SetIndex(arg1,arg2);
9768 wxPyEndAllowThreads(__tstate);
9769 if (PyErr_Occurred()) SWIG_fail;
9770 }
9771 resultobj = SWIG_Py_Void();
9772 return resultobj;
9773fail:
9774 return NULL;
d14a1e28
RD
9775}
9776
9777
0085ce49
RD
9778SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9779 PyObject *resultobj = 0;
9780 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9781 int result;
9782 void *argp1 = 0 ;
9783 int res1 = 0 ;
9784 PyObject *swig_obj[1] ;
9785
9786 if (!args) SWIG_fail;
9787 swig_obj[0] = args;
9788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9789 if (!SWIG_IsOK(res1)) {
9790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9791 }
9792 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9793 {
9794 PyThreadState* __tstate = wxPyBeginAllowThreads();
9795 result = (int)wxIconLocation_GetIndex(arg1);
9796 wxPyEndAllowThreads(__tstate);
9797 if (PyErr_Occurred()) SWIG_fail;
9798 }
9799 resultobj = SWIG_From_int(static_cast< int >(result));
9800 return resultobj;
9801fail:
9802 return NULL;
d14a1e28
RD
9803}
9804
9805
0085ce49
RD
9806SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9807 PyObject *obj;
9808 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9809 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9810 return SWIG_Py_Void();
d14a1e28
RD
9811}
9812
0085ce49
RD
9813SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9814 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9815}
9816
0085ce49
RD
9817SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9818 PyObject *resultobj = 0;
9819 wxIconBundle *result = 0 ;
9820
9821 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 result = (wxIconBundle *)new wxIconBundle();
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9829 return resultobj;
9830fail:
9831 return NULL;
9832}
9833
9834
9835SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj = 0;
9837 wxString *arg1 = 0 ;
9838 long arg2 ;
9839 wxIconBundle *result = 0 ;
9840 bool temp1 = false ;
9841 long val2 ;
9842 int ecode2 = 0 ;
9843 PyObject * obj0 = 0 ;
9844 PyObject * obj1 = 0 ;
9845 char * kwnames[] = {
9846 (char *) "file",(char *) "type", NULL
9847 };
9848
9849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9850 {
9851 arg1 = wxString_in_helper(obj0);
9852 if (arg1 == NULL) SWIG_fail;
9853 temp1 = true;
9854 }
9855 ecode2 = SWIG_AsVal_long(obj1, &val2);
9856 if (!SWIG_IsOK(ecode2)) {
9857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9858 }
9859 arg2 = static_cast< long >(val2);
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9863 wxPyEndAllowThreads(__tstate);
9864 if (PyErr_Occurred()) SWIG_fail;
9865 }
9866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9867 {
9868 if (temp1)
9869 delete arg1;
9870 }
9871 return resultobj;
9872fail:
9873 {
9874 if (temp1)
9875 delete arg1;
9876 }
9877 return NULL;
d14a1e28
RD
9878}
9879
9880
0085ce49
RD
9881SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9882 PyObject *resultobj = 0;
9883 wxIcon *arg1 = 0 ;
9884 wxIconBundle *result = 0 ;
9885 void *argp1 = 0 ;
9886 int res1 = 0 ;
9887 PyObject * obj0 = 0 ;
9888 char * kwnames[] = {
9889 (char *) "icon", NULL
9890 };
9891
9892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9893 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9894 if (!SWIG_IsOK(res1)) {
9895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9896 }
9897 if (!argp1) {
9898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9899 }
9900 arg1 = reinterpret_cast< wxIcon * >(argp1);
9901 {
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9904 wxPyEndAllowThreads(__tstate);
9905 if (PyErr_Occurred()) SWIG_fail;
9906 }
9907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9908 return resultobj;
9909fail:
9910 return NULL;
d14a1e28
RD
9911}
9912
9913
0085ce49
RD
9914SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9915 PyObject *resultobj = 0;
9916 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9917 void *argp1 = 0 ;
9918 int res1 = 0 ;
9919 PyObject *swig_obj[1] ;
9920
9921 if (!args) SWIG_fail;
9922 swig_obj[0] = args;
9923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9924 if (!SWIG_IsOK(res1)) {
9925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9926 }
9927 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9928 {
9929 PyThreadState* __tstate = wxPyBeginAllowThreads();
9930 delete arg1;
d14a1e28 9931
0085ce49
RD
9932 wxPyEndAllowThreads(__tstate);
9933 if (PyErr_Occurred()) SWIG_fail;
9934 }
9935 resultobj = SWIG_Py_Void();
9936 return resultobj;
9937fail:
9938 return NULL;
9939}
9940
9941
9942SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9943 PyObject *resultobj = 0;
9944 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9945 wxIcon *arg2 = 0 ;
9946 void *argp1 = 0 ;
9947 int res1 = 0 ;
9948 void *argp2 = 0 ;
9949 int res2 = 0 ;
9950 PyObject * obj0 = 0 ;
9951 PyObject * obj1 = 0 ;
9952 char * kwnames[] = {
9953 (char *) "self",(char *) "icon", NULL
9954 };
9955
9956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9958 if (!SWIG_IsOK(res1)) {
9959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9960 }
9961 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9963 if (!SWIG_IsOK(res2)) {
9964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9965 }
9966 if (!argp2) {
9967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9968 }
9969 arg2 = reinterpret_cast< wxIcon * >(argp2);
9970 {
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 (arg1)->AddIcon((wxIcon const &)*arg2);
9973 wxPyEndAllowThreads(__tstate);
9974 if (PyErr_Occurred()) SWIG_fail;
9975 }
9976 resultobj = SWIG_Py_Void();
9977 return resultobj;
9978fail:
9979 return NULL;
9980}
9981
9982
9983SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9984 PyObject *resultobj = 0;
9985 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9986 wxString *arg2 = 0 ;
9987 long arg3 ;
9988 void *argp1 = 0 ;
9989 int res1 = 0 ;
9990 bool temp2 = false ;
9991 long val3 ;
9992 int ecode3 = 0 ;
9993 PyObject * obj0 = 0 ;
9994 PyObject * obj1 = 0 ;
9995 PyObject * obj2 = 0 ;
9996 char * kwnames[] = {
9997 (char *) "self",(char *) "file",(char *) "type", NULL
9998 };
9999
10000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10002 if (!SWIG_IsOK(res1)) {
10003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10004 }
10005 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10006 {
10007 arg2 = wxString_in_helper(obj1);
10008 if (arg2 == NULL) SWIG_fail;
10009 temp2 = true;
10010 }
10011 ecode3 = SWIG_AsVal_long(obj2, &val3);
10012 if (!SWIG_IsOK(ecode3)) {
10013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10014 }
10015 arg3 = static_cast< long >(val3);
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10019 wxPyEndAllowThreads(__tstate);
10020 if (PyErr_Occurred()) SWIG_fail;
10021 }
10022 resultobj = SWIG_Py_Void();
10023 {
10024 if (temp2)
10025 delete arg2;
10026 }
10027 return resultobj;
10028fail:
10029 {
10030 if (temp2)
10031 delete arg2;
10032 }
10033 return NULL;
10034}
10035
10036
10037SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10038 PyObject *resultobj = 0;
10039 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10040 wxSize *arg2 = 0 ;
10041 wxIcon *result = 0 ;
10042 void *argp1 = 0 ;
10043 int res1 = 0 ;
10044 wxSize temp2 ;
10045 PyObject * obj0 = 0 ;
10046 PyObject * obj1 = 0 ;
10047 char * kwnames[] = {
10048 (char *) "self",(char *) "size", NULL
10049 };
10050
10051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10053 if (!SWIG_IsOK(res1)) {
10054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10055 }
10056 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10057 {
10058 arg2 = &temp2;
10059 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10060 }
10061 {
10062 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 10063 {
0085ce49
RD
10064 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10065 result = (wxIcon *) &_result_ref;
d14a1e28 10066 }
0085ce49
RD
10067 wxPyEndAllowThreads(__tstate);
10068 if (PyErr_Occurred()) SWIG_fail;
10069 }
10070 {
10071 wxIcon* resultptr = new wxIcon(*result);
10072 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10073 }
10074 return resultobj;
10075fail:
10076 return NULL;
10077}
10078
10079
10080SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10081 PyObject *obj;
10082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10083 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10084 return SWIG_Py_Void();
10085}
10086
10087SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10088 return SWIG_Python_InitShadowInstance(args);
10089}
10090
10091SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10092 PyObject *resultobj = 0;
10093 wxString *arg1 = 0 ;
10094 long arg2 ;
10095 int arg3 = (int) 0 ;
10096 int arg4 = (int) 0 ;
10097 wxCursor *result = 0 ;
10098 bool temp1 = false ;
10099 long val2 ;
10100 int ecode2 = 0 ;
10101 int val3 ;
10102 int ecode3 = 0 ;
10103 int val4 ;
10104 int ecode4 = 0 ;
10105 PyObject * obj0 = 0 ;
10106 PyObject * obj1 = 0 ;
10107 PyObject * obj2 = 0 ;
10108 PyObject * obj3 = 0 ;
10109 char * kwnames[] = {
10110 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10111 };
10112
10113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10114 {
10115 arg1 = wxString_in_helper(obj0);
10116 if (arg1 == NULL) SWIG_fail;
10117 temp1 = true;
10118 }
10119 ecode2 = SWIG_AsVal_long(obj1, &val2);
10120 if (!SWIG_IsOK(ecode2)) {
10121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10122 }
10123 arg2 = static_cast< long >(val2);
10124 if (obj2) {
10125 ecode3 = SWIG_AsVal_int(obj2, &val3);
10126 if (!SWIG_IsOK(ecode3)) {
10127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10128 }
10129 arg3 = static_cast< int >(val3);
10130 }
10131 if (obj3) {
10132 ecode4 = SWIG_AsVal_int(obj3, &val4);
10133 if (!SWIG_IsOK(ecode4)) {
10134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10135 }
10136 arg4 = static_cast< int >(val4);
10137 }
10138 {
10139 if (!wxPyCheckForApp()) SWIG_fail;
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10146 {
10147 if (temp1)
10148 delete arg1;
10149 }
10150 return resultobj;
10151fail:
10152 {
10153 if (temp1)
10154 delete arg1;
10155 }
10156 return NULL;
d14a1e28
RD
10157}
10158
10159
0085ce49
RD
10160SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10161 PyObject *resultobj = 0;
10162 wxCursor *arg1 = (wxCursor *) 0 ;
10163 void *argp1 = 0 ;
10164 int res1 = 0 ;
10165 PyObject *swig_obj[1] ;
10166
10167 if (!args) SWIG_fail;
10168 swig_obj[0] = args;
10169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10170 if (!SWIG_IsOK(res1)) {
10171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10172 }
10173 arg1 = reinterpret_cast< wxCursor * >(argp1);
10174 {
10175 PyThreadState* __tstate = wxPyBeginAllowThreads();
10176 delete arg1;
093d3ff1 10177
0085ce49
RD
10178 wxPyEndAllowThreads(__tstate);
10179 if (PyErr_Occurred()) SWIG_fail;
10180 }
10181 resultobj = SWIG_Py_Void();
10182 return resultobj;
10183fail:
10184 return NULL;
10185}
10186
10187
10188SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10189 PyObject *resultobj = 0;
10190 int arg1 ;
10191 wxCursor *result = 0 ;
10192 int val1 ;
10193 int ecode1 = 0 ;
10194 PyObject * obj0 = 0 ;
10195 char * kwnames[] = {
10196 (char *) "id", NULL
10197 };
10198
10199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10200 ecode1 = SWIG_AsVal_int(obj0, &val1);
10201 if (!SWIG_IsOK(ecode1)) {
10202 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10203 }
10204 arg1 = static_cast< int >(val1);
10205 {
10206 if (!wxPyCheckForApp()) SWIG_fail;
10207 PyThreadState* __tstate = wxPyBeginAllowThreads();
10208 result = (wxCursor *)new wxCursor(arg1);
10209 wxPyEndAllowThreads(__tstate);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
10212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10213 return resultobj;
10214fail:
10215 return NULL;
10216}
10217
10218
10219SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10220 PyObject *resultobj = 0;
10221 wxImage *arg1 = 0 ;
10222 wxCursor *result = 0 ;
10223 void *argp1 = 0 ;
10224 int res1 = 0 ;
10225 PyObject * obj0 = 0 ;
10226 char * kwnames[] = {
10227 (char *) "image", NULL
10228 };
10229
10230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10231 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10232 if (!SWIG_IsOK(res1)) {
10233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10234 }
10235 if (!argp1) {
10236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10237 }
10238 arg1 = reinterpret_cast< wxImage * >(argp1);
10239 {
10240 if (!wxPyCheckForApp()) SWIG_fail;
10241 PyThreadState* __tstate = wxPyBeginAllowThreads();
10242 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10243 wxPyEndAllowThreads(__tstate);
10244 if (PyErr_Occurred()) SWIG_fail;
10245 }
10246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10247 return resultobj;
10248fail:
10249 return NULL;
093d3ff1
RD
10250}
10251
10252
b39fe951 10253SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
10254 PyObject *resultobj = 0;
10255 wxCursor *arg1 = (wxCursor *) 0 ;
10256 bool result;
10257 void *argp1 = 0 ;
10258 int res1 = 0 ;
10259 PyObject *swig_obj[1] ;
10260
10261 if (!args) SWIG_fail;
10262 swig_obj[0] = args;
10263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10264 if (!SWIG_IsOK(res1)) {
b39fe951 10265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
0085ce49
RD
10266 }
10267 arg1 = reinterpret_cast< wxCursor * >(argp1);
10268 {
10269 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10270 result = (bool)(arg1)->IsOk();
0085ce49
RD
10271 wxPyEndAllowThreads(__tstate);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 }
10274 {
10275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10276 }
10277 return resultobj;
10278fail:
10279 return NULL;
10280}
10281
10282
10283SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10284 PyObject *obj;
10285 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10286 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10287 return SWIG_Py_Void();
10288}
10289
10290SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10291 return SWIG_Python_InitShadowInstance(args);
10292}
10293
10294SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10295 PyObject *resultobj = 0;
10296 int arg1 = (int) 0 ;
10297 int arg2 = (int) 0 ;
10298 int arg3 = (int) 0 ;
10299 int arg4 = (int) 0 ;
10300 wxRegion *result = 0 ;
10301 int val1 ;
10302 int ecode1 = 0 ;
10303 int val2 ;
10304 int ecode2 = 0 ;
10305 int val3 ;
10306 int ecode3 = 0 ;
10307 int val4 ;
10308 int ecode4 = 0 ;
10309 PyObject * obj0 = 0 ;
10310 PyObject * obj1 = 0 ;
10311 PyObject * obj2 = 0 ;
10312 PyObject * obj3 = 0 ;
10313 char * kwnames[] = {
10314 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10315 };
10316
10317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10318 if (obj0) {
10319 ecode1 = SWIG_AsVal_int(obj0, &val1);
10320 if (!SWIG_IsOK(ecode1)) {
10321 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10322 }
10323 arg1 = static_cast< int >(val1);
10324 }
10325 if (obj1) {
10326 ecode2 = SWIG_AsVal_int(obj1, &val2);
10327 if (!SWIG_IsOK(ecode2)) {
10328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10329 }
10330 arg2 = static_cast< int >(val2);
10331 }
10332 if (obj2) {
10333 ecode3 = SWIG_AsVal_int(obj2, &val3);
10334 if (!SWIG_IsOK(ecode3)) {
10335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10336 }
10337 arg3 = static_cast< int >(val3);
10338 }
10339 if (obj3) {
10340 ecode4 = SWIG_AsVal_int(obj3, &val4);
10341 if (!SWIG_IsOK(ecode4)) {
10342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10343 }
10344 arg4 = static_cast< int >(val4);
10345 }
10346 {
10347 if (!wxPyCheckForApp()) SWIG_fail;
10348 PyThreadState* __tstate = wxPyBeginAllowThreads();
10349 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10354 return resultobj;
10355fail:
10356 return NULL;
10357}
10358
10359
10360SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj = 0;
10362 wxBitmap *arg1 = 0 ;
10363 wxRegion *result = 0 ;
10364 void *argp1 = 0 ;
10365 int res1 = 0 ;
10366 PyObject * obj0 = 0 ;
10367 char * kwnames[] = {
10368 (char *) "bmp", NULL
10369 };
10370
10371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10372 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10373 if (!SWIG_IsOK(res1)) {
10374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10375 }
10376 if (!argp1) {
10377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10378 }
10379 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10380 {
10381 if (!wxPyCheckForApp()) SWIG_fail;
10382 PyThreadState* __tstate = wxPyBeginAllowThreads();
10383 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10384 wxPyEndAllowThreads(__tstate);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 }
10387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10388 return resultobj;
10389fail:
10390 return NULL;
10391}
10392
10393
10394SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10395 PyObject *resultobj = 0;
10396 wxBitmap *arg1 = 0 ;
10397 wxColour *arg2 = 0 ;
10398 int arg3 = (int) 0 ;
10399 wxRegion *result = 0 ;
10400 void *argp1 = 0 ;
10401 int res1 = 0 ;
10402 wxColour temp2 ;
10403 int val3 ;
10404 int ecode3 = 0 ;
10405 PyObject * obj0 = 0 ;
10406 PyObject * obj1 = 0 ;
10407 PyObject * obj2 = 0 ;
10408 char * kwnames[] = {
10409 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10410 };
10411
10412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10413 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10414 if (!SWIG_IsOK(res1)) {
10415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10416 }
10417 if (!argp1) {
10418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10419 }
10420 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10421 {
10422 arg2 = &temp2;
10423 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10424 }
10425 if (obj2) {
10426 ecode3 = SWIG_AsVal_int(obj2, &val3);
10427 if (!SWIG_IsOK(ecode3)) {
10428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10429 }
10430 arg3 = static_cast< int >(val3);
10431 }
10432 {
10433 if (!wxPyCheckForApp()) SWIG_fail;
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10436 wxPyEndAllowThreads(__tstate);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10440 return resultobj;
10441fail:
10442 return NULL;
10443}
10444
10445
10446SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10447 PyObject *resultobj = 0;
10448 int arg1 ;
10449 wxPoint *arg2 = (wxPoint *) 0 ;
10450 int arg3 = (int) wxWINDING_RULE ;
10451 wxRegion *result = 0 ;
10452 int val3 ;
10453 int ecode3 = 0 ;
10454 PyObject * obj0 = 0 ;
10455 PyObject * obj1 = 0 ;
10456 char * kwnames[] = {
10457 (char *) "points",(char *) "fillStyle", NULL
10458 };
10459
10460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10461 {
10462 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10463 if (arg2 == NULL) SWIG_fail;
10464 }
10465 if (obj1) {
10466 ecode3 = SWIG_AsVal_int(obj1, &val3);
10467 if (!SWIG_IsOK(ecode3)) {
10468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10469 }
10470 arg3 = static_cast< int >(val3);
10471 }
10472 {
10473 if (!wxPyCheckForApp()) SWIG_fail;
10474 PyThreadState* __tstate = wxPyBeginAllowThreads();
10475 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10476 wxPyEndAllowThreads(__tstate);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 }
10479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10480 {
10481 if (arg2) delete [] arg2;
10482 }
10483 return resultobj;
10484fail:
10485 {
10486 if (arg2) delete [] arg2;
10487 }
10488 return NULL;
d14a1e28
RD
10489}
10490
10491
0085ce49
RD
10492SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10493 PyObject *resultobj = 0;
10494 wxRegion *arg1 = (wxRegion *) 0 ;
10495 void *argp1 = 0 ;
10496 int res1 = 0 ;
10497 PyObject *swig_obj[1] ;
10498
10499 if (!args) SWIG_fail;
10500 swig_obj[0] = args;
10501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10502 if (!SWIG_IsOK(res1)) {
10503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10504 }
10505 arg1 = reinterpret_cast< wxRegion * >(argp1);
10506 {
10507 PyThreadState* __tstate = wxPyBeginAllowThreads();
10508 delete arg1;
d14a1e28 10509
0085ce49
RD
10510 wxPyEndAllowThreads(__tstate);
10511 if (PyErr_Occurred()) SWIG_fail;
10512 }
10513 resultobj = SWIG_Py_Void();
10514 return resultobj;
10515fail:
10516 return NULL;
d14a1e28
RD
10517}
10518
10519
0085ce49
RD
10520SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10521 PyObject *resultobj = 0;
10522 wxRegion *arg1 = (wxRegion *) 0 ;
10523 void *argp1 = 0 ;
10524 int res1 = 0 ;
10525 PyObject *swig_obj[1] ;
10526
10527 if (!args) SWIG_fail;
10528 swig_obj[0] = args;
10529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10530 if (!SWIG_IsOK(res1)) {
10531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10532 }
10533 arg1 = reinterpret_cast< wxRegion * >(argp1);
10534 {
10535 PyThreadState* __tstate = wxPyBeginAllowThreads();
10536 (arg1)->Clear();
10537 wxPyEndAllowThreads(__tstate);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 }
10540 resultobj = SWIG_Py_Void();
10541 return resultobj;
10542fail:
10543 return NULL;
10544}
10545
10546
10547SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10548 PyObject *resultobj = 0;
10549 wxRegion *arg1 = (wxRegion *) 0 ;
10550 int arg2 ;
10551 int arg3 ;
10552 bool result;
10553 void *argp1 = 0 ;
10554 int res1 = 0 ;
10555 int val2 ;
10556 int ecode2 = 0 ;
10557 int val3 ;
10558 int ecode3 = 0 ;
10559 PyObject * obj0 = 0 ;
10560 PyObject * obj1 = 0 ;
10561 PyObject * obj2 = 0 ;
10562 char * kwnames[] = {
10563 (char *) "self",(char *) "x",(char *) "y", NULL
10564 };
10565
10566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10568 if (!SWIG_IsOK(res1)) {
10569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10570 }
10571 arg1 = reinterpret_cast< wxRegion * >(argp1);
10572 ecode2 = SWIG_AsVal_int(obj1, &val2);
10573 if (!SWIG_IsOK(ecode2)) {
10574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10575 }
10576 arg2 = static_cast< int >(val2);
10577 ecode3 = SWIG_AsVal_int(obj2, &val3);
10578 if (!SWIG_IsOK(ecode3)) {
10579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10580 }
10581 arg3 = static_cast< int >(val3);
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 result = (bool)(arg1)->Offset(arg2,arg3);
10585 wxPyEndAllowThreads(__tstate);
10586 if (PyErr_Occurred()) SWIG_fail;
10587 }
10588 {
10589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10590 }
10591 return resultobj;
10592fail:
10593 return NULL;
10594}
10595
10596
10597SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10598 PyObject *resultobj = 0;
10599 wxRegion *arg1 = (wxRegion *) 0 ;
10600 int arg2 ;
10601 int arg3 ;
10602 wxRegionContain result;
10603 void *argp1 = 0 ;
10604 int res1 = 0 ;
10605 int val2 ;
10606 int ecode2 = 0 ;
10607 int val3 ;
10608 int ecode3 = 0 ;
10609 PyObject * obj0 = 0 ;
10610 PyObject * obj1 = 0 ;
10611 PyObject * obj2 = 0 ;
10612 char * kwnames[] = {
10613 (char *) "self",(char *) "x",(char *) "y", NULL
10614 };
10615
10616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10618 if (!SWIG_IsOK(res1)) {
10619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10620 }
10621 arg1 = reinterpret_cast< wxRegion * >(argp1);
10622 ecode2 = SWIG_AsVal_int(obj1, &val2);
10623 if (!SWIG_IsOK(ecode2)) {
10624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10625 }
10626 arg2 = static_cast< int >(val2);
10627 ecode3 = SWIG_AsVal_int(obj2, &val3);
10628 if (!SWIG_IsOK(ecode3)) {
10629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10630 }
10631 arg3 = static_cast< int >(val3);
10632 {
10633 PyThreadState* __tstate = wxPyBeginAllowThreads();
10634 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 resultobj = SWIG_From_int(static_cast< int >(result));
10639 return resultobj;
10640fail:
10641 return NULL;
10642}
10643
10644
10645SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10646 PyObject *resultobj = 0;
10647 wxRegion *arg1 = (wxRegion *) 0 ;
10648 wxPoint *arg2 = 0 ;
10649 wxRegionContain result;
10650 void *argp1 = 0 ;
10651 int res1 = 0 ;
10652 wxPoint temp2 ;
10653 PyObject * obj0 = 0 ;
10654 PyObject * obj1 = 0 ;
10655 char * kwnames[] = {
10656 (char *) "self",(char *) "pt", NULL
10657 };
10658
10659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10661 if (!SWIG_IsOK(res1)) {
10662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10663 }
10664 arg1 = reinterpret_cast< wxRegion * >(argp1);
10665 {
10666 arg2 = &temp2;
10667 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10668 }
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10672 wxPyEndAllowThreads(__tstate);
10673 if (PyErr_Occurred()) SWIG_fail;
10674 }
10675 resultobj = SWIG_From_int(static_cast< int >(result));
10676 return resultobj;
10677fail:
10678 return NULL;
10679}
10680
10681
10682SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj = 0;
10684 wxRegion *arg1 = (wxRegion *) 0 ;
10685 wxRect *arg2 = 0 ;
10686 wxRegionContain result;
10687 void *argp1 = 0 ;
10688 int res1 = 0 ;
10689 wxRect temp2 ;
10690 PyObject * obj0 = 0 ;
10691 PyObject * obj1 = 0 ;
10692 char * kwnames[] = {
10693 (char *) "self",(char *) "rect", NULL
10694 };
10695
10696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10698 if (!SWIG_IsOK(res1)) {
10699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10700 }
10701 arg1 = reinterpret_cast< wxRegion * >(argp1);
10702 {
10703 arg2 = &temp2;
10704 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10705 }
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 }
10712 resultobj = SWIG_From_int(static_cast< int >(result));
10713 return resultobj;
10714fail:
10715 return NULL;
10716}
10717
10718
10719SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj = 0;
10721 wxRegion *arg1 = (wxRegion *) 0 ;
10722 int arg2 ;
10723 int arg3 ;
10724 int arg4 ;
10725 int arg5 ;
10726 wxRegionContain result;
10727 void *argp1 = 0 ;
10728 int res1 = 0 ;
10729 int val2 ;
10730 int ecode2 = 0 ;
10731 int val3 ;
10732 int ecode3 = 0 ;
10733 int val4 ;
10734 int ecode4 = 0 ;
10735 int val5 ;
10736 int ecode5 = 0 ;
10737 PyObject * obj0 = 0 ;
10738 PyObject * obj1 = 0 ;
10739 PyObject * obj2 = 0 ;
10740 PyObject * obj3 = 0 ;
10741 PyObject * obj4 = 0 ;
10742 char * kwnames[] = {
10743 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10744 };
10745
10746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10748 if (!SWIG_IsOK(res1)) {
10749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10750 }
10751 arg1 = reinterpret_cast< wxRegion * >(argp1);
10752 ecode2 = SWIG_AsVal_int(obj1, &val2);
10753 if (!SWIG_IsOK(ecode2)) {
10754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10755 }
10756 arg2 = static_cast< int >(val2);
10757 ecode3 = SWIG_AsVal_int(obj2, &val3);
10758 if (!SWIG_IsOK(ecode3)) {
10759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10760 }
10761 arg3 = static_cast< int >(val3);
10762 ecode4 = SWIG_AsVal_int(obj3, &val4);
10763 if (!SWIG_IsOK(ecode4)) {
10764 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10765 }
10766 arg4 = static_cast< int >(val4);
10767 ecode5 = SWIG_AsVal_int(obj4, &val5);
10768 if (!SWIG_IsOK(ecode5)) {
10769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10770 }
10771 arg5 = static_cast< int >(val5);
10772 {
10773 PyThreadState* __tstate = wxPyBeginAllowThreads();
10774 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10775 wxPyEndAllowThreads(__tstate);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 }
10778 resultobj = SWIG_From_int(static_cast< int >(result));
10779 return resultobj;
10780fail:
10781 return NULL;
d14a1e28
RD
10782}
10783
10784
0085ce49
RD
10785SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10786 PyObject *resultobj = 0;
10787 wxRegion *arg1 = (wxRegion *) 0 ;
10788 wxRect result;
10789 void *argp1 = 0 ;
10790 int res1 = 0 ;
10791 PyObject *swig_obj[1] ;
10792
10793 if (!args) SWIG_fail;
10794 swig_obj[0] = args;
10795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10796 if (!SWIG_IsOK(res1)) {
10797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10798 }
10799 arg1 = reinterpret_cast< wxRegion * >(argp1);
10800 {
10801 PyThreadState* __tstate = wxPyBeginAllowThreads();
10802 result = (arg1)->GetBox();
10803 wxPyEndAllowThreads(__tstate);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 }
10806 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10807 return resultobj;
10808fail:
10809 return NULL;
10810}
10811
10812
10813SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10814 PyObject *resultobj = 0;
10815 wxRegion *arg1 = (wxRegion *) 0 ;
10816 int arg2 ;
10817 int arg3 ;
10818 int arg4 ;
10819 int arg5 ;
10820 bool result;
10821 void *argp1 = 0 ;
10822 int res1 = 0 ;
10823 int val2 ;
10824 int ecode2 = 0 ;
10825 int val3 ;
10826 int ecode3 = 0 ;
10827 int val4 ;
10828 int ecode4 = 0 ;
10829 int val5 ;
10830 int ecode5 = 0 ;
10831 PyObject * obj0 = 0 ;
10832 PyObject * obj1 = 0 ;
10833 PyObject * obj2 = 0 ;
10834 PyObject * obj3 = 0 ;
10835 PyObject * obj4 = 0 ;
10836 char * kwnames[] = {
10837 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10838 };
10839
10840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10842 if (!SWIG_IsOK(res1)) {
10843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10844 }
10845 arg1 = reinterpret_cast< wxRegion * >(argp1);
10846 ecode2 = SWIG_AsVal_int(obj1, &val2);
10847 if (!SWIG_IsOK(ecode2)) {
10848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10849 }
10850 arg2 = static_cast< int >(val2);
10851 ecode3 = SWIG_AsVal_int(obj2, &val3);
10852 if (!SWIG_IsOK(ecode3)) {
10853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10854 }
10855 arg3 = static_cast< int >(val3);
10856 ecode4 = SWIG_AsVal_int(obj3, &val4);
10857 if (!SWIG_IsOK(ecode4)) {
10858 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10859 }
10860 arg4 = static_cast< int >(val4);
10861 ecode5 = SWIG_AsVal_int(obj4, &val5);
10862 if (!SWIG_IsOK(ecode5)) {
10863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10864 }
10865 arg5 = static_cast< int >(val5);
10866 {
10867 PyThreadState* __tstate = wxPyBeginAllowThreads();
10868 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 {
10873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10874 }
10875 return resultobj;
10876fail:
10877 return NULL;
10878}
10879
10880
10881SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10882 PyObject *resultobj = 0;
10883 wxRegion *arg1 = (wxRegion *) 0 ;
10884 wxRect *arg2 = 0 ;
10885 bool result;
10886 void *argp1 = 0 ;
10887 int res1 = 0 ;
10888 wxRect temp2 ;
10889 PyObject * obj0 = 0 ;
10890 PyObject * obj1 = 0 ;
10891 char * kwnames[] = {
10892 (char *) "self",(char *) "rect", NULL
10893 };
10894
10895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10897 if (!SWIG_IsOK(res1)) {
10898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10899 }
10900 arg1 = reinterpret_cast< wxRegion * >(argp1);
10901 {
10902 arg2 = &temp2;
10903 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10904 }
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10908 wxPyEndAllowThreads(__tstate);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
10911 {
10912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10913 }
10914 return resultobj;
10915fail:
10916 return NULL;
10917}
10918
10919
10920SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj = 0;
10922 wxRegion *arg1 = (wxRegion *) 0 ;
10923 wxRegion *arg2 = 0 ;
10924 bool result;
10925 void *argp1 = 0 ;
10926 int res1 = 0 ;
10927 void *argp2 = 0 ;
10928 int res2 = 0 ;
10929 PyObject * obj0 = 0 ;
10930 PyObject * obj1 = 0 ;
10931 char * kwnames[] = {
10932 (char *) "self",(char *) "region", NULL
10933 };
10934
10935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10937 if (!SWIG_IsOK(res1)) {
10938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10939 }
10940 arg1 = reinterpret_cast< wxRegion * >(argp1);
10941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10942 if (!SWIG_IsOK(res2)) {
10943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10944 }
10945 if (!argp2) {
10946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10947 }
10948 arg2 = reinterpret_cast< wxRegion * >(argp2);
10949 {
10950 PyThreadState* __tstate = wxPyBeginAllowThreads();
10951 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10952 wxPyEndAllowThreads(__tstate);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 }
10955 {
10956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10957 }
10958 return resultobj;
10959fail:
10960 return NULL;
d14a1e28
RD
10961}
10962
10963
0085ce49
RD
10964SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10965 PyObject *resultobj = 0;
10966 wxRegion *arg1 = (wxRegion *) 0 ;
10967 bool result;
10968 void *argp1 = 0 ;
10969 int res1 = 0 ;
10970 PyObject *swig_obj[1] ;
10971
10972 if (!args) SWIG_fail;
10973 swig_obj[0] = args;
10974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10975 if (!SWIG_IsOK(res1)) {
10976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10977 }
10978 arg1 = reinterpret_cast< wxRegion * >(argp1);
10979 {
10980 PyThreadState* __tstate = wxPyBeginAllowThreads();
10981 result = (bool)(arg1)->IsEmpty();
10982 wxPyEndAllowThreads(__tstate);
10983 if (PyErr_Occurred()) SWIG_fail;
10984 }
10985 {
10986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10987 }
10988 return resultobj;
10989fail:
10990 return NULL;
10991}
10992
10993
f5263701
RD
10994SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10995 PyObject *resultobj = 0;
10996 wxRegion *arg1 = (wxRegion *) 0 ;
10997 wxRegion *arg2 = 0 ;
10998 bool result;
10999 void *argp1 = 0 ;
11000 int res1 = 0 ;
11001 void *argp2 = 0 ;
11002 int res2 = 0 ;
11003 PyObject * obj0 = 0 ;
11004 PyObject * obj1 = 0 ;
11005 char * kwnames[] = {
11006 (char *) "self",(char *) "region", NULL
11007 };
11008
11009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11011 if (!SWIG_IsOK(res1)) {
11012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11013 }
11014 arg1 = reinterpret_cast< wxRegion * >(argp1);
11015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11016 if (!SWIG_IsOK(res2)) {
11017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11018 }
11019 if (!argp2) {
11020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11021 }
11022 arg2 = reinterpret_cast< wxRegion * >(argp2);
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 {
11030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11031 }
11032 return resultobj;
11033fail:
11034 return NULL;
11035}
11036
11037
0085ce49
RD
11038SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11039 PyObject *resultobj = 0;
11040 wxRegion *arg1 = (wxRegion *) 0 ;
11041 int arg2 ;
11042 int arg3 ;
11043 int arg4 ;
11044 int arg5 ;
11045 bool result;
11046 void *argp1 = 0 ;
11047 int res1 = 0 ;
11048 int val2 ;
11049 int ecode2 = 0 ;
11050 int val3 ;
11051 int ecode3 = 0 ;
11052 int val4 ;
11053 int ecode4 = 0 ;
11054 int val5 ;
11055 int ecode5 = 0 ;
11056 PyObject * obj0 = 0 ;
11057 PyObject * obj1 = 0 ;
11058 PyObject * obj2 = 0 ;
11059 PyObject * obj3 = 0 ;
11060 PyObject * obj4 = 0 ;
11061 char * kwnames[] = {
11062 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11063 };
11064
11065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11067 if (!SWIG_IsOK(res1)) {
11068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11069 }
11070 arg1 = reinterpret_cast< wxRegion * >(argp1);
11071 ecode2 = SWIG_AsVal_int(obj1, &val2);
11072 if (!SWIG_IsOK(ecode2)) {
11073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11074 }
11075 arg2 = static_cast< int >(val2);
11076 ecode3 = SWIG_AsVal_int(obj2, &val3);
11077 if (!SWIG_IsOK(ecode3)) {
11078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11079 }
11080 arg3 = static_cast< int >(val3);
11081 ecode4 = SWIG_AsVal_int(obj3, &val4);
11082 if (!SWIG_IsOK(ecode4)) {
11083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11084 }
11085 arg4 = static_cast< int >(val4);
11086 ecode5 = SWIG_AsVal_int(obj4, &val5);
11087 if (!SWIG_IsOK(ecode5)) {
11088 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11089 }
11090 arg5 = static_cast< int >(val5);
11091 {
11092 PyThreadState* __tstate = wxPyBeginAllowThreads();
11093 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11094 wxPyEndAllowThreads(__tstate);
11095 if (PyErr_Occurred()) SWIG_fail;
11096 }
11097 {
11098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11099 }
11100 return resultobj;
11101fail:
11102 return NULL;
11103}
11104
11105
11106SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11107 PyObject *resultobj = 0;
11108 wxRegion *arg1 = (wxRegion *) 0 ;
11109 wxRect *arg2 = 0 ;
11110 bool result;
11111 void *argp1 = 0 ;
11112 int res1 = 0 ;
11113 wxRect temp2 ;
11114 PyObject * obj0 = 0 ;
11115 PyObject * obj1 = 0 ;
11116 char * kwnames[] = {
11117 (char *) "self",(char *) "rect", NULL
11118 };
11119
11120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11122 if (!SWIG_IsOK(res1)) {
11123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11124 }
11125 arg1 = reinterpret_cast< wxRegion * >(argp1);
11126 {
11127 arg2 = &temp2;
11128 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11129 }
11130 {
11131 PyThreadState* __tstate = wxPyBeginAllowThreads();
11132 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11133 wxPyEndAllowThreads(__tstate);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 {
11137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11138 }
11139 return resultobj;
11140fail:
11141 return NULL;
11142}
11143
11144
11145SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11146 PyObject *resultobj = 0;
11147 wxRegion *arg1 = (wxRegion *) 0 ;
11148 wxRegion *arg2 = 0 ;
11149 bool result;
11150 void *argp1 = 0 ;
11151 int res1 = 0 ;
11152 void *argp2 = 0 ;
11153 int res2 = 0 ;
11154 PyObject * obj0 = 0 ;
11155 PyObject * obj1 = 0 ;
11156 char * kwnames[] = {
11157 (char *) "self",(char *) "region", NULL
11158 };
11159
11160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11162 if (!SWIG_IsOK(res1)) {
11163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11164 }
11165 arg1 = reinterpret_cast< wxRegion * >(argp1);
11166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11167 if (!SWIG_IsOK(res2)) {
11168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11169 }
11170 if (!argp2) {
11171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11172 }
11173 arg2 = reinterpret_cast< wxRegion * >(argp2);
11174 {
11175 PyThreadState* __tstate = wxPyBeginAllowThreads();
11176 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 {
11181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11182 }
11183 return resultobj;
11184fail:
11185 return NULL;
11186}
11187
11188
11189SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11190 PyObject *resultobj = 0;
11191 wxRegion *arg1 = (wxRegion *) 0 ;
11192 int arg2 ;
11193 int arg3 ;
11194 int arg4 ;
11195 int arg5 ;
11196 bool result;
11197 void *argp1 = 0 ;
11198 int res1 = 0 ;
11199 int val2 ;
11200 int ecode2 = 0 ;
11201 int val3 ;
11202 int ecode3 = 0 ;
11203 int val4 ;
11204 int ecode4 = 0 ;
11205 int val5 ;
11206 int ecode5 = 0 ;
11207 PyObject * obj0 = 0 ;
11208 PyObject * obj1 = 0 ;
11209 PyObject * obj2 = 0 ;
11210 PyObject * obj3 = 0 ;
11211 PyObject * obj4 = 0 ;
11212 char * kwnames[] = {
11213 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11214 };
11215
11216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11218 if (!SWIG_IsOK(res1)) {
11219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11220 }
11221 arg1 = reinterpret_cast< wxRegion * >(argp1);
11222 ecode2 = SWIG_AsVal_int(obj1, &val2);
11223 if (!SWIG_IsOK(ecode2)) {
11224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11225 }
11226 arg2 = static_cast< int >(val2);
11227 ecode3 = SWIG_AsVal_int(obj2, &val3);
11228 if (!SWIG_IsOK(ecode3)) {
11229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11230 }
11231 arg3 = static_cast< int >(val3);
11232 ecode4 = SWIG_AsVal_int(obj3, &val4);
11233 if (!SWIG_IsOK(ecode4)) {
11234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11235 }
11236 arg4 = static_cast< int >(val4);
11237 ecode5 = SWIG_AsVal_int(obj4, &val5);
11238 if (!SWIG_IsOK(ecode5)) {
11239 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11240 }
11241 arg5 = static_cast< int >(val5);
11242 {
11243 PyThreadState* __tstate = wxPyBeginAllowThreads();
11244 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 {
11249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11250 }
11251 return resultobj;
11252fail:
11253 return NULL;
11254}
11255
11256
11257SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11258 PyObject *resultobj = 0;
11259 wxRegion *arg1 = (wxRegion *) 0 ;
11260 wxRect *arg2 = 0 ;
11261 bool result;
11262 void *argp1 = 0 ;
11263 int res1 = 0 ;
11264 wxRect temp2 ;
11265 PyObject * obj0 = 0 ;
11266 PyObject * obj1 = 0 ;
11267 char * kwnames[] = {
11268 (char *) "self",(char *) "rect", NULL
11269 };
11270
11271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11273 if (!SWIG_IsOK(res1)) {
11274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11275 }
11276 arg1 = reinterpret_cast< wxRegion * >(argp1);
11277 {
11278 arg2 = &temp2;
11279 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11280 }
11281 {
11282 PyThreadState* __tstate = wxPyBeginAllowThreads();
11283 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11284 wxPyEndAllowThreads(__tstate);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 {
11288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11289 }
11290 return resultobj;
11291fail:
11292 return NULL;
11293}
11294
11295
11296SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11297 PyObject *resultobj = 0;
11298 wxRegion *arg1 = (wxRegion *) 0 ;
11299 wxRegion *arg2 = 0 ;
11300 bool result;
11301 void *argp1 = 0 ;
11302 int res1 = 0 ;
11303 void *argp2 = 0 ;
11304 int res2 = 0 ;
11305 PyObject * obj0 = 0 ;
11306 PyObject * obj1 = 0 ;
11307 char * kwnames[] = {
11308 (char *) "self",(char *) "region", NULL
11309 };
11310
11311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11313 if (!SWIG_IsOK(res1)) {
11314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11315 }
11316 arg1 = reinterpret_cast< wxRegion * >(argp1);
11317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11318 if (!SWIG_IsOK(res2)) {
11319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11320 }
11321 if (!argp2) {
11322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11323 }
11324 arg2 = reinterpret_cast< wxRegion * >(argp2);
11325 {
11326 PyThreadState* __tstate = wxPyBeginAllowThreads();
11327 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11328 wxPyEndAllowThreads(__tstate);
11329 if (PyErr_Occurred()) SWIG_fail;
11330 }
11331 {
11332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11333 }
11334 return resultobj;
11335fail:
11336 return NULL;
11337}
11338
11339
11340SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11341 PyObject *resultobj = 0;
11342 wxRegion *arg1 = (wxRegion *) 0 ;
11343 int arg2 ;
11344 int arg3 ;
11345 int arg4 ;
11346 int arg5 ;
11347 bool result;
11348 void *argp1 = 0 ;
11349 int res1 = 0 ;
11350 int val2 ;
11351 int ecode2 = 0 ;
11352 int val3 ;
11353 int ecode3 = 0 ;
11354 int val4 ;
11355 int ecode4 = 0 ;
11356 int val5 ;
11357 int ecode5 = 0 ;
11358 PyObject * obj0 = 0 ;
11359 PyObject * obj1 = 0 ;
11360 PyObject * obj2 = 0 ;
11361 PyObject * obj3 = 0 ;
11362 PyObject * obj4 = 0 ;
11363 char * kwnames[] = {
11364 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11365 };
11366
11367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11369 if (!SWIG_IsOK(res1)) {
11370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11371 }
11372 arg1 = reinterpret_cast< wxRegion * >(argp1);
11373 ecode2 = SWIG_AsVal_int(obj1, &val2);
11374 if (!SWIG_IsOK(ecode2)) {
11375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11376 }
11377 arg2 = static_cast< int >(val2);
11378 ecode3 = SWIG_AsVal_int(obj2, &val3);
11379 if (!SWIG_IsOK(ecode3)) {
11380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11381 }
11382 arg3 = static_cast< int >(val3);
11383 ecode4 = SWIG_AsVal_int(obj3, &val4);
11384 if (!SWIG_IsOK(ecode4)) {
11385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11386 }
11387 arg4 = static_cast< int >(val4);
11388 ecode5 = SWIG_AsVal_int(obj4, &val5);
11389 if (!SWIG_IsOK(ecode5)) {
11390 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11391 }
11392 arg5 = static_cast< int >(val5);
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11396 wxPyEndAllowThreads(__tstate);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 }
11399 {
11400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11401 }
11402 return resultobj;
11403fail:
11404 return NULL;
11405}
11406
11407
11408SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11409 PyObject *resultobj = 0;
11410 wxRegion *arg1 = (wxRegion *) 0 ;
11411 wxRect *arg2 = 0 ;
11412 bool result;
11413 void *argp1 = 0 ;
11414 int res1 = 0 ;
11415 wxRect temp2 ;
11416 PyObject * obj0 = 0 ;
11417 PyObject * obj1 = 0 ;
11418 char * kwnames[] = {
11419 (char *) "self",(char *) "rect", NULL
11420 };
11421
11422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11424 if (!SWIG_IsOK(res1)) {
11425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11426 }
11427 arg1 = reinterpret_cast< wxRegion * >(argp1);
11428 {
11429 arg2 = &temp2;
11430 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11431 }
11432 {
11433 PyThreadState* __tstate = wxPyBeginAllowThreads();
11434 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11435 wxPyEndAllowThreads(__tstate);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 }
11438 {
11439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11440 }
11441 return resultobj;
11442fail:
11443 return NULL;
11444}
11445
11446
11447SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11448 PyObject *resultobj = 0;
11449 wxRegion *arg1 = (wxRegion *) 0 ;
11450 wxRegion *arg2 = 0 ;
11451 bool result;
11452 void *argp1 = 0 ;
11453 int res1 = 0 ;
11454 void *argp2 = 0 ;
11455 int res2 = 0 ;
11456 PyObject * obj0 = 0 ;
11457 PyObject * obj1 = 0 ;
11458 char * kwnames[] = {
11459 (char *) "self",(char *) "region", NULL
11460 };
11461
11462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11464 if (!SWIG_IsOK(res1)) {
11465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11466 }
11467 arg1 = reinterpret_cast< wxRegion * >(argp1);
11468 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11469 if (!SWIG_IsOK(res2)) {
11470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11471 }
11472 if (!argp2) {
11473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11474 }
11475 arg2 = reinterpret_cast< wxRegion * >(argp2);
11476 {
11477 PyThreadState* __tstate = wxPyBeginAllowThreads();
11478 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11479 wxPyEndAllowThreads(__tstate);
11480 if (PyErr_Occurred()) SWIG_fail;
11481 }
11482 {
11483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11484 }
11485 return resultobj;
11486fail:
11487 return NULL;
d14a1e28
RD
11488}
11489
11490
0085ce49
RD
11491SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11492 PyObject *resultobj = 0;
11493 wxRegion *arg1 = (wxRegion *) 0 ;
11494 SwigValueWrapper<wxBitmap > result;
11495 void *argp1 = 0 ;
11496 int res1 = 0 ;
11497 PyObject *swig_obj[1] ;
11498
11499 if (!args) SWIG_fail;
11500 swig_obj[0] = args;
11501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11502 if (!SWIG_IsOK(res1)) {
11503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11504 }
11505 arg1 = reinterpret_cast< wxRegion * >(argp1);
11506 {
11507 PyThreadState* __tstate = wxPyBeginAllowThreads();
11508 result = (arg1)->ConvertToBitmap();
11509 wxPyEndAllowThreads(__tstate);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 }
11512 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11513 return resultobj;
11514fail:
11515 return NULL;
11516}
11517
11518
11519SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11520 PyObject *resultobj = 0;
11521 wxRegion *arg1 = (wxRegion *) 0 ;
11522 wxBitmap *arg2 = 0 ;
11523 bool result;
11524 void *argp1 = 0 ;
11525 int res1 = 0 ;
11526 void *argp2 = 0 ;
11527 int res2 = 0 ;
11528 PyObject * obj0 = 0 ;
11529 PyObject * obj1 = 0 ;
11530 char * kwnames[] = {
11531 (char *) "self",(char *) "bmp", NULL
11532 };
11533
11534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11536 if (!SWIG_IsOK(res1)) {
11537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11538 }
11539 arg1 = reinterpret_cast< wxRegion * >(argp1);
11540 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11541 if (!SWIG_IsOK(res2)) {
11542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11543 }
11544 if (!argp2) {
11545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11546 }
11547 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11548 {
11549 PyThreadState* __tstate = wxPyBeginAllowThreads();
11550 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11551 wxPyEndAllowThreads(__tstate);
11552 if (PyErr_Occurred()) SWIG_fail;
11553 }
11554 {
11555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11556 }
11557 return resultobj;
11558fail:
11559 return NULL;
11560}
11561
11562
11563SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11564 PyObject *resultobj = 0;
11565 wxRegion *arg1 = (wxRegion *) 0 ;
11566 wxBitmap *arg2 = 0 ;
11567 wxColour *arg3 = 0 ;
11568 int arg4 = (int) 0 ;
11569 bool result;
11570 void *argp1 = 0 ;
11571 int res1 = 0 ;
11572 void *argp2 = 0 ;
11573 int res2 = 0 ;
11574 wxColour temp3 ;
11575 int val4 ;
11576 int ecode4 = 0 ;
11577 PyObject * obj0 = 0 ;
11578 PyObject * obj1 = 0 ;
11579 PyObject * obj2 = 0 ;
11580 PyObject * obj3 = 0 ;
11581 char * kwnames[] = {
11582 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11583 };
11584
11585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11587 if (!SWIG_IsOK(res1)) {
11588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11589 }
11590 arg1 = reinterpret_cast< wxRegion * >(argp1);
11591 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11592 if (!SWIG_IsOK(res2)) {
11593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11594 }
11595 if (!argp2) {
11596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11597 }
11598 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11599 {
11600 arg3 = &temp3;
11601 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11602 }
11603 if (obj3) {
11604 ecode4 = SWIG_AsVal_int(obj3, &val4);
11605 if (!SWIG_IsOK(ecode4)) {
11606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11607 }
11608 arg4 = static_cast< int >(val4);
11609 }
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11613 wxPyEndAllowThreads(__tstate);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
11616 {
11617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11618 }
11619 return resultobj;
11620fail:
11621 return NULL;
d14a1e28
RD
11622}
11623
11624
0085ce49
RD
11625SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11626 PyObject *obj;
11627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11628 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11629 return SWIG_Py_Void();
d14a1e28
RD
11630}
11631
0085ce49
RD
11632SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11633 return SWIG_Python_InitShadowInstance(args);
11634}
d14a1e28 11635
0085ce49
RD
11636SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11637 PyObject *resultobj = 0;
11638 wxRegion *arg1 = 0 ;
11639 wxRegionIterator *result = 0 ;
11640 void *argp1 = 0 ;
11641 int res1 = 0 ;
11642 PyObject * obj0 = 0 ;
11643 char * kwnames[] = {
11644 (char *) "region", NULL
11645 };
11646
11647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11648 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11649 if (!SWIG_IsOK(res1)) {
11650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11651 }
11652 if (!argp1) {
11653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11654 }
11655 arg1 = reinterpret_cast< wxRegion * >(argp1);
11656 {
11657 if (!wxPyCheckForApp()) SWIG_fail;
11658 PyThreadState* __tstate = wxPyBeginAllowThreads();
11659 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11660 wxPyEndAllowThreads(__tstate);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11664 return resultobj;
11665fail:
11666 return NULL;
d14a1e28
RD
11667}
11668
11669
0085ce49
RD
11670SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11671 PyObject *resultobj = 0;
11672 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11673 void *argp1 = 0 ;
11674 int res1 = 0 ;
11675 PyObject *swig_obj[1] ;
11676
11677 if (!args) SWIG_fail;
11678 swig_obj[0] = args;
11679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11680 if (!SWIG_IsOK(res1)) {
11681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11682 }
11683 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11684 {
11685 PyThreadState* __tstate = wxPyBeginAllowThreads();
11686 delete arg1;
d14a1e28 11687
0085ce49
RD
11688 wxPyEndAllowThreads(__tstate);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 }
11691 resultobj = SWIG_Py_Void();
11692 return resultobj;
11693fail:
11694 return NULL;
d14a1e28
RD
11695}
11696
11697
0085ce49
RD
11698SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11699 PyObject *resultobj = 0;
11700 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11701 int result;
11702 void *argp1 = 0 ;
11703 int res1 = 0 ;
11704 PyObject *swig_obj[1] ;
11705
11706 if (!args) SWIG_fail;
11707 swig_obj[0] = args;
11708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11709 if (!SWIG_IsOK(res1)) {
11710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11711 }
11712 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11713 {
11714 PyThreadState* __tstate = wxPyBeginAllowThreads();
11715 result = (int)(arg1)->GetX();
11716 wxPyEndAllowThreads(__tstate);
11717 if (PyErr_Occurred()) SWIG_fail;
11718 }
11719 resultobj = SWIG_From_int(static_cast< int >(result));
11720 return resultobj;
11721fail:
11722 return NULL;
d14a1e28
RD
11723}
11724
11725
0085ce49
RD
11726SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11727 PyObject *resultobj = 0;
11728 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11729 int result;
11730 void *argp1 = 0 ;
11731 int res1 = 0 ;
11732 PyObject *swig_obj[1] ;
11733
11734 if (!args) SWIG_fail;
11735 swig_obj[0] = args;
11736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11737 if (!SWIG_IsOK(res1)) {
11738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11739 }
11740 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11741 {
11742 PyThreadState* __tstate = wxPyBeginAllowThreads();
11743 result = (int)(arg1)->GetY();
11744 wxPyEndAllowThreads(__tstate);
11745 if (PyErr_Occurred()) SWIG_fail;
11746 }
11747 resultobj = SWIG_From_int(static_cast< int >(result));
11748 return resultobj;
11749fail:
11750 return NULL;
d14a1e28
RD
11751}
11752
11753
0085ce49
RD
11754SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11755 PyObject *resultobj = 0;
11756 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11757 int result;
11758 void *argp1 = 0 ;
11759 int res1 = 0 ;
11760 PyObject *swig_obj[1] ;
11761
11762 if (!args) SWIG_fail;
11763 swig_obj[0] = args;
11764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11765 if (!SWIG_IsOK(res1)) {
11766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11767 }
11768 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11769 {
11770 PyThreadState* __tstate = wxPyBeginAllowThreads();
11771 result = (int)(arg1)->GetW();
11772 wxPyEndAllowThreads(__tstate);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 }
11775 resultobj = SWIG_From_int(static_cast< int >(result));
11776 return resultobj;
11777fail:
11778 return NULL;
d14a1e28
RD
11779}
11780
11781
0085ce49
RD
11782SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11783 PyObject *resultobj = 0;
11784 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11785 int result;
11786 void *argp1 = 0 ;
11787 int res1 = 0 ;
11788 PyObject *swig_obj[1] ;
11789
11790 if (!args) SWIG_fail;
11791 swig_obj[0] = args;
11792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11793 if (!SWIG_IsOK(res1)) {
11794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11795 }
11796 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11797 {
11798 PyThreadState* __tstate = wxPyBeginAllowThreads();
11799 result = (int)(arg1)->GetWidth();
11800 wxPyEndAllowThreads(__tstate);
11801 if (PyErr_Occurred()) SWIG_fail;
11802 }
11803 resultobj = SWIG_From_int(static_cast< int >(result));
11804 return resultobj;
11805fail:
11806 return NULL;
093d3ff1
RD
11807}
11808
11809
0085ce49
RD
11810SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11811 PyObject *resultobj = 0;
11812 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11813 int result;
11814 void *argp1 = 0 ;
11815 int res1 = 0 ;
11816 PyObject *swig_obj[1] ;
11817
11818 if (!args) SWIG_fail;
11819 swig_obj[0] = args;
11820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11821 if (!SWIG_IsOK(res1)) {
11822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11823 }
11824 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11825 {
11826 PyThreadState* __tstate = wxPyBeginAllowThreads();
11827 result = (int)(arg1)->GetH();
11828 wxPyEndAllowThreads(__tstate);
11829 if (PyErr_Occurred()) SWIG_fail;
11830 }
11831 resultobj = SWIG_From_int(static_cast< int >(result));
11832 return resultobj;
11833fail:
11834 return NULL;
d14a1e28
RD
11835}
11836
11837
0085ce49
RD
11838SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11839 PyObject *resultobj = 0;
11840 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11841 int result;
11842 void *argp1 = 0 ;
11843 int res1 = 0 ;
11844 PyObject *swig_obj[1] ;
11845
11846 if (!args) SWIG_fail;
11847 swig_obj[0] = args;
11848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11849 if (!SWIG_IsOK(res1)) {
11850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11851 }
11852 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11853 {
11854 PyThreadState* __tstate = wxPyBeginAllowThreads();
11855 result = (int)(arg1)->GetHeight();
11856 wxPyEndAllowThreads(__tstate);
11857 if (PyErr_Occurred()) SWIG_fail;
11858 }
11859 resultobj = SWIG_From_int(static_cast< int >(result));
11860 return resultobj;
11861fail:
11862 return NULL;
093d3ff1
RD
11863}
11864
11865
0085ce49
RD
11866SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11867 PyObject *resultobj = 0;
11868 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11869 wxRect result;
11870 void *argp1 = 0 ;
11871 int res1 = 0 ;
11872 PyObject *swig_obj[1] ;
11873
11874 if (!args) SWIG_fail;
11875 swig_obj[0] = args;
11876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11877 if (!SWIG_IsOK(res1)) {
11878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11879 }
11880 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11881 {
11882 PyThreadState* __tstate = wxPyBeginAllowThreads();
11883 result = (arg1)->GetRect();
11884 wxPyEndAllowThreads(__tstate);
11885 if (PyErr_Occurred()) SWIG_fail;
11886 }
11887 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11888 return resultobj;
11889fail:
11890 return NULL;
d14a1e28
RD
11891}
11892
11893
0085ce49
RD
11894SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11895 PyObject *resultobj = 0;
11896 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11897 bool result;
11898 void *argp1 = 0 ;
11899 int res1 = 0 ;
11900 PyObject *swig_obj[1] ;
11901
11902 if (!args) SWIG_fail;
11903 swig_obj[0] = args;
11904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11905 if (!SWIG_IsOK(res1)) {
11906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11907 }
11908 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11909 {
11910 PyThreadState* __tstate = wxPyBeginAllowThreads();
11911 result = (bool)(arg1)->HaveRects();
11912 wxPyEndAllowThreads(__tstate);
11913 if (PyErr_Occurred()) SWIG_fail;
11914 }
11915 {
11916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11917 }
11918 return resultobj;
11919fail:
11920 return NULL;
093d3ff1
RD
11921}
11922
11923
0085ce49
RD
11924SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11925 PyObject *resultobj = 0;
11926 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11927 void *argp1 = 0 ;
11928 int res1 = 0 ;
11929 PyObject *swig_obj[1] ;
11930
11931 if (!args) SWIG_fail;
11932 swig_obj[0] = args;
11933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11934 if (!SWIG_IsOK(res1)) {
11935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11936 }
11937 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11938 {
11939 PyThreadState* __tstate = wxPyBeginAllowThreads();
11940 (arg1)->Reset();
11941 wxPyEndAllowThreads(__tstate);
11942 if (PyErr_Occurred()) SWIG_fail;
11943 }
11944 resultobj = SWIG_Py_Void();
11945 return resultobj;
11946fail:
11947 return NULL;
d14a1e28
RD
11948}
11949
11950
0085ce49
RD
11951SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11952 PyObject *resultobj = 0;
11953 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11954 void *argp1 = 0 ;
11955 int res1 = 0 ;
11956 PyObject *swig_obj[1] ;
11957
11958 if (!args) SWIG_fail;
11959 swig_obj[0] = args;
11960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11961 if (!SWIG_IsOK(res1)) {
11962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11963 }
11964 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11965 {
11966 PyThreadState* __tstate = wxPyBeginAllowThreads();
11967 wxRegionIterator_Next(arg1);
11968 wxPyEndAllowThreads(__tstate);
11969 if (PyErr_Occurred()) SWIG_fail;
11970 }
11971 resultobj = SWIG_Py_Void();
11972 return resultobj;
11973fail:
11974 return NULL;
d14a1e28
RD
11975}
11976
11977
0085ce49
RD
11978SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11979 PyObject *resultobj = 0;
11980 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11981 bool result;
11982 void *argp1 = 0 ;
11983 int res1 = 0 ;
11984 PyObject *swig_obj[1] ;
11985
11986 if (!args) SWIG_fail;
11987 swig_obj[0] = args;
11988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11989 if (!SWIG_IsOK(res1)) {
11990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11991 }
11992 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11993 {
11994 PyThreadState* __tstate = wxPyBeginAllowThreads();
11995 result = (bool)wxRegionIterator___nonzero__(arg1);
11996 wxPyEndAllowThreads(__tstate);
11997 if (PyErr_Occurred()) SWIG_fail;
11998 }
11999 {
12000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12001 }
12002 return resultobj;
12003fail:
12004 return NULL;
d14a1e28
RD
12005}
12006
12007
0085ce49
RD
12008SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12009 PyObject *obj;
12010 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12011 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12012 return SWIG_Py_Void();
d14a1e28
RD
12013}
12014
0085ce49
RD
12015SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12016 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12017}
12018
0085ce49
RD
12019SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12020 PyObject *resultobj = 0;
12021 wxNativeFontInfo *result = 0 ;
12022
12023 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12024 {
12025 PyThreadState* __tstate = wxPyBeginAllowThreads();
12026 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12031 return resultobj;
12032fail:
12033 return NULL;
d14a1e28
RD
12034}
12035
12036
0085ce49
RD
12037SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12038 PyObject *resultobj = 0;
12039 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12040 void *argp1 = 0 ;
12041 int res1 = 0 ;
12042 PyObject *swig_obj[1] ;
12043
12044 if (!args) SWIG_fail;
12045 swig_obj[0] = args;
12046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12047 if (!SWIG_IsOK(res1)) {
12048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12049 }
12050 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12051 {
12052 PyThreadState* __tstate = wxPyBeginAllowThreads();
12053 delete arg1;
d14a1e28 12054
0085ce49
RD
12055 wxPyEndAllowThreads(__tstate);
12056 if (PyErr_Occurred()) SWIG_fail;
12057 }
12058 resultobj = SWIG_Py_Void();
12059 return resultobj;
12060fail:
12061 return NULL;
d14a1e28
RD
12062}
12063
12064
0085ce49
RD
12065SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12066 PyObject *resultobj = 0;
12067 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12068 void *argp1 = 0 ;
12069 int res1 = 0 ;
12070 PyObject *swig_obj[1] ;
12071
12072 if (!args) SWIG_fail;
12073 swig_obj[0] = args;
12074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12075 if (!SWIG_IsOK(res1)) {
12076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12077 }
12078 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->Init();
12082 wxPyEndAllowThreads(__tstate);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 }
12085 resultobj = SWIG_Py_Void();
12086 return resultobj;
12087fail:
12088 return NULL;
12089}
12090
12091
12092SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12093 PyObject *resultobj = 0;
12094 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12095 wxFont *arg2 = 0 ;
12096 void *argp1 = 0 ;
12097 int res1 = 0 ;
12098 void *argp2 = 0 ;
12099 int res2 = 0 ;
12100 PyObject * obj0 = 0 ;
12101 PyObject * obj1 = 0 ;
12102 char * kwnames[] = {
12103 (char *) "self",(char *) "font", NULL
12104 };
12105
12106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12108 if (!SWIG_IsOK(res1)) {
12109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12110 }
12111 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12113 if (!SWIG_IsOK(res2)) {
12114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12115 }
12116 if (!argp2) {
12117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12118 }
12119 arg2 = reinterpret_cast< wxFont * >(argp2);
12120 {
12121 PyThreadState* __tstate = wxPyBeginAllowThreads();
12122 (arg1)->InitFromFont((wxFont const &)*arg2);
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 resultobj = SWIG_Py_Void();
12127 return resultobj;
12128fail:
12129 return NULL;
e6ffcedd
RD
12130}
12131
12132
0085ce49
RD
12133SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12134 PyObject *resultobj = 0;
12135 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12136 int result;
12137 void *argp1 = 0 ;
12138 int res1 = 0 ;
12139 PyObject *swig_obj[1] ;
12140
12141 if (!args) SWIG_fail;
12142 swig_obj[0] = args;
12143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12144 if (!SWIG_IsOK(res1)) {
12145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12146 }
12147 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12148 {
12149 PyThreadState* __tstate = wxPyBeginAllowThreads();
12150 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12151 wxPyEndAllowThreads(__tstate);
12152 if (PyErr_Occurred()) SWIG_fail;
12153 }
12154 resultobj = SWIG_From_int(static_cast< int >(result));
12155 return resultobj;
12156fail:
12157 return NULL;
d14a1e28
RD
12158}
12159
12160
0085ce49
RD
12161SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12162 PyObject *resultobj = 0;
12163 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12164 wxFontStyle result;
12165 void *argp1 = 0 ;
12166 int res1 = 0 ;
12167 PyObject *swig_obj[1] ;
12168
12169 if (!args) SWIG_fail;
12170 swig_obj[0] = args;
12171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12172 if (!SWIG_IsOK(res1)) {
12173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12174 }
12175 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12176 {
12177 PyThreadState* __tstate = wxPyBeginAllowThreads();
12178 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12179 wxPyEndAllowThreads(__tstate);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 resultobj = SWIG_From_int(static_cast< int >(result));
12183 return resultobj;
12184fail:
12185 return NULL;
d14a1e28
RD
12186}
12187
12188
0085ce49
RD
12189SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12190 PyObject *resultobj = 0;
12191 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12192 wxFontWeight result;
12193 void *argp1 = 0 ;
12194 int res1 = 0 ;
12195 PyObject *swig_obj[1] ;
12196
12197 if (!args) SWIG_fail;
12198 swig_obj[0] = args;
12199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12200 if (!SWIG_IsOK(res1)) {
12201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12202 }
12203 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12204 {
12205 PyThreadState* __tstate = wxPyBeginAllowThreads();
12206 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12207 wxPyEndAllowThreads(__tstate);
12208 if (PyErr_Occurred()) SWIG_fail;
12209 }
12210 resultobj = SWIG_From_int(static_cast< int >(result));
12211 return resultobj;
12212fail:
12213 return NULL;
d14a1e28
RD
12214}
12215
12216
0085ce49
RD
12217SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12218 PyObject *resultobj = 0;
12219 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12220 bool result;
12221 void *argp1 = 0 ;
12222 int res1 = 0 ;
12223 PyObject *swig_obj[1] ;
12224
12225 if (!args) SWIG_fail;
12226 swig_obj[0] = args;
12227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12228 if (!SWIG_IsOK(res1)) {
12229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12230 }
12231 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12232 {
12233 PyThreadState* __tstate = wxPyBeginAllowThreads();
12234 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12235 wxPyEndAllowThreads(__tstate);
12236 if (PyErr_Occurred()) SWIG_fail;
12237 }
12238 {
12239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12240 }
12241 return resultobj;
12242fail:
12243 return NULL;
d14a1e28
RD
12244}
12245
12246
0085ce49
RD
12247SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12248 PyObject *resultobj = 0;
12249 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12250 wxString result;
12251 void *argp1 = 0 ;
12252 int res1 = 0 ;
12253 PyObject *swig_obj[1] ;
12254
12255 if (!args) SWIG_fail;
12256 swig_obj[0] = args;
12257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12258 if (!SWIG_IsOK(res1)) {
12259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12260 }
12261 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12262 {
12263 PyThreadState* __tstate = wxPyBeginAllowThreads();
12264 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12265 wxPyEndAllowThreads(__tstate);
12266 if (PyErr_Occurred()) SWIG_fail;
12267 }
12268 {
12269#if wxUSE_UNICODE
12270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12271#else
12272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12273#endif
12274 }
12275 return resultobj;
12276fail:
12277 return NULL;
d14a1e28
RD
12278}
12279
12280
0085ce49
RD
12281SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12282 PyObject *resultobj = 0;
12283 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12284 wxFontFamily result;
12285 void *argp1 = 0 ;
12286 int res1 = 0 ;
12287 PyObject *swig_obj[1] ;
12288
12289 if (!args) SWIG_fail;
12290 swig_obj[0] = args;
12291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12292 if (!SWIG_IsOK(res1)) {
12293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12294 }
12295 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12296 {
12297 PyThreadState* __tstate = wxPyBeginAllowThreads();
12298 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12299 wxPyEndAllowThreads(__tstate);
12300 if (PyErr_Occurred()) SWIG_fail;
12301 }
12302 resultobj = SWIG_From_int(static_cast< int >(result));
12303 return resultobj;
12304fail:
12305 return NULL;
d14a1e28
RD
12306}
12307
12308
0085ce49
RD
12309SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12310 PyObject *resultobj = 0;
12311 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12312 wxFontEncoding result;
12313 void *argp1 = 0 ;
12314 int res1 = 0 ;
12315 PyObject *swig_obj[1] ;
12316
12317 if (!args) SWIG_fail;
12318 swig_obj[0] = args;
12319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12320 if (!SWIG_IsOK(res1)) {
12321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12322 }
12323 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12324 {
12325 PyThreadState* __tstate = wxPyBeginAllowThreads();
12326 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12327 wxPyEndAllowThreads(__tstate);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 }
12330 resultobj = SWIG_From_int(static_cast< int >(result));
12331 return resultobj;
12332fail:
12333 return NULL;
12334}
12335
12336
12337SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12338 PyObject *resultobj = 0;
12339 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12340 int arg2 ;
12341 void *argp1 = 0 ;
12342 int res1 = 0 ;
12343 int val2 ;
12344 int ecode2 = 0 ;
12345 PyObject * obj0 = 0 ;
12346 PyObject * obj1 = 0 ;
12347 char * kwnames[] = {
12348 (char *) "self",(char *) "pointsize", NULL
12349 };
12350
12351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12353 if (!SWIG_IsOK(res1)) {
12354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12355 }
12356 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12357 ecode2 = SWIG_AsVal_int(obj1, &val2);
12358 if (!SWIG_IsOK(ecode2)) {
12359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12360 }
12361 arg2 = static_cast< int >(val2);
12362 {
12363 PyThreadState* __tstate = wxPyBeginAllowThreads();
12364 (arg1)->SetPointSize(arg2);
12365 wxPyEndAllowThreads(__tstate);
12366 if (PyErr_Occurred()) SWIG_fail;
12367 }
12368 resultobj = SWIG_Py_Void();
12369 return resultobj;
12370fail:
12371 return NULL;
12372}
12373
12374
12375SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12376 PyObject *resultobj = 0;
12377 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12378 wxFontStyle arg2 ;
12379 void *argp1 = 0 ;
12380 int res1 = 0 ;
12381 int val2 ;
12382 int ecode2 = 0 ;
12383 PyObject * obj0 = 0 ;
12384 PyObject * obj1 = 0 ;
12385 char * kwnames[] = {
12386 (char *) "self",(char *) "style", NULL
12387 };
12388
12389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12391 if (!SWIG_IsOK(res1)) {
12392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12393 }
12394 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12395 ecode2 = SWIG_AsVal_int(obj1, &val2);
12396 if (!SWIG_IsOK(ecode2)) {
12397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12398 }
12399 arg2 = static_cast< wxFontStyle >(val2);
12400 {
12401 PyThreadState* __tstate = wxPyBeginAllowThreads();
12402 (arg1)->SetStyle(arg2);
12403 wxPyEndAllowThreads(__tstate);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 }
12406 resultobj = SWIG_Py_Void();
12407 return resultobj;
12408fail:
12409 return NULL;
12410}
12411
12412
12413SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12414 PyObject *resultobj = 0;
12415 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12416 wxFontWeight arg2 ;
12417 void *argp1 = 0 ;
12418 int res1 = 0 ;
12419 int val2 ;
12420 int ecode2 = 0 ;
12421 PyObject * obj0 = 0 ;
12422 PyObject * obj1 = 0 ;
12423 char * kwnames[] = {
12424 (char *) "self",(char *) "weight", NULL
12425 };
12426
12427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12429 if (!SWIG_IsOK(res1)) {
12430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12431 }
12432 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12433 ecode2 = SWIG_AsVal_int(obj1, &val2);
12434 if (!SWIG_IsOK(ecode2)) {
12435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12436 }
12437 arg2 = static_cast< wxFontWeight >(val2);
12438 {
12439 PyThreadState* __tstate = wxPyBeginAllowThreads();
12440 (arg1)->SetWeight(arg2);
12441 wxPyEndAllowThreads(__tstate);
12442 if (PyErr_Occurred()) SWIG_fail;
12443 }
12444 resultobj = SWIG_Py_Void();
12445 return resultobj;
12446fail:
12447 return NULL;
12448}
12449
12450
12451SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12452 PyObject *resultobj = 0;
12453 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12454 bool arg2 ;
12455 void *argp1 = 0 ;
12456 int res1 = 0 ;
12457 bool val2 ;
12458 int ecode2 = 0 ;
12459 PyObject * obj0 = 0 ;
12460 PyObject * obj1 = 0 ;
12461 char * kwnames[] = {
12462 (char *) "self",(char *) "underlined", NULL
12463 };
12464
12465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12467 if (!SWIG_IsOK(res1)) {
12468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12469 }
12470 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12471 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12472 if (!SWIG_IsOK(ecode2)) {
12473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12474 }
12475 arg2 = static_cast< bool >(val2);
12476 {
12477 PyThreadState* __tstate = wxPyBeginAllowThreads();
12478 (arg1)->SetUnderlined(arg2);
12479 wxPyEndAllowThreads(__tstate);
12480 if (PyErr_Occurred()) SWIG_fail;
12481 }
12482 resultobj = SWIG_Py_Void();
12483 return resultobj;
12484fail:
12485 return NULL;
12486}
12487
12488
12489SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12490 PyObject *resultobj = 0;
12491 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12492 wxString arg2 ;
704eda0c 12493 bool result;
0085ce49
RD
12494 void *argp1 = 0 ;
12495 int res1 = 0 ;
12496 PyObject * obj0 = 0 ;
12497 PyObject * obj1 = 0 ;
12498 char * kwnames[] = {
12499 (char *) "self",(char *) "facename", NULL
12500 };
12501
12502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12504 if (!SWIG_IsOK(res1)) {
12505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12506 }
12507 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12508 {
12509 wxString* sptr = wxString_in_helper(obj1);
12510 if (sptr == NULL) SWIG_fail;
12511 arg2 = *sptr;
12512 delete sptr;
12513 }
12514 {
12515 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12516 result = (bool)(arg1)->SetFaceName(arg2);
0085ce49
RD
12517 wxPyEndAllowThreads(__tstate);
12518 if (PyErr_Occurred()) SWIG_fail;
12519 }
704eda0c
RD
12520 {
12521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12522 }
0085ce49
RD
12523 return resultobj;
12524fail:
12525 return NULL;
12526}
12527
12528
12529SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12530 PyObject *resultobj = 0;
12531 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12532 wxFontFamily arg2 ;
12533 void *argp1 = 0 ;
12534 int res1 = 0 ;
12535 int val2 ;
12536 int ecode2 = 0 ;
12537 PyObject * obj0 = 0 ;
12538 PyObject * obj1 = 0 ;
12539 char * kwnames[] = {
12540 (char *) "self",(char *) "family", NULL
12541 };
12542
12543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12545 if (!SWIG_IsOK(res1)) {
12546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12547 }
12548 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12549 ecode2 = SWIG_AsVal_int(obj1, &val2);
12550 if (!SWIG_IsOK(ecode2)) {
12551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12552 }
12553 arg2 = static_cast< wxFontFamily >(val2);
12554 {
12555 PyThreadState* __tstate = wxPyBeginAllowThreads();
12556 (arg1)->SetFamily(arg2);
12557 wxPyEndAllowThreads(__tstate);
12558 if (PyErr_Occurred()) SWIG_fail;
12559 }
12560 resultobj = SWIG_Py_Void();
12561 return resultobj;
12562fail:
12563 return NULL;
12564}
12565
12566
12567SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12568 PyObject *resultobj = 0;
12569 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12570 wxFontEncoding arg2 ;
12571 void *argp1 = 0 ;
12572 int res1 = 0 ;
12573 int val2 ;
12574 int ecode2 = 0 ;
12575 PyObject * obj0 = 0 ;
12576 PyObject * obj1 = 0 ;
12577 char * kwnames[] = {
12578 (char *) "self",(char *) "encoding", NULL
12579 };
12580
12581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12583 if (!SWIG_IsOK(res1)) {
12584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12585 }
12586 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12587 ecode2 = SWIG_AsVal_int(obj1, &val2);
12588 if (!SWIG_IsOK(ecode2)) {
12589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12590 }
12591 arg2 = static_cast< wxFontEncoding >(val2);
12592 {
12593 PyThreadState* __tstate = wxPyBeginAllowThreads();
12594 (arg1)->SetEncoding(arg2);
12595 wxPyEndAllowThreads(__tstate);
12596 if (PyErr_Occurred()) SWIG_fail;
12597 }
12598 resultobj = SWIG_Py_Void();
12599 return resultobj;
12600fail:
12601 return NULL;
12602}
12603
12604
12605SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12606 PyObject *resultobj = 0;
12607 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12608 wxString *arg2 = 0 ;
12609 bool result;
12610 void *argp1 = 0 ;
12611 int res1 = 0 ;
12612 bool temp2 = false ;
12613 PyObject * obj0 = 0 ;
12614 PyObject * obj1 = 0 ;
12615 char * kwnames[] = {
12616 (char *) "self",(char *) "s", NULL
12617 };
12618
12619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12621 if (!SWIG_IsOK(res1)) {
12622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12623 }
12624 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12625 {
12626 arg2 = wxString_in_helper(obj1);
12627 if (arg2 == NULL) SWIG_fail;
12628 temp2 = true;
12629 }
12630 {
12631 PyThreadState* __tstate = wxPyBeginAllowThreads();
12632 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12633 wxPyEndAllowThreads(__tstate);
12634 if (PyErr_Occurred()) SWIG_fail;
12635 }
12636 {
12637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12638 }
12639 {
12640 if (temp2)
12641 delete arg2;
12642 }
12643 return resultobj;
12644fail:
12645 {
12646 if (temp2)
12647 delete arg2;
12648 }
12649 return NULL;
d14a1e28
RD
12650}
12651
12652
0085ce49
RD
12653SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12654 PyObject *resultobj = 0;
12655 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12656 wxString result;
12657 void *argp1 = 0 ;
12658 int res1 = 0 ;
12659 PyObject *swig_obj[1] ;
12660
12661 if (!args) SWIG_fail;
12662 swig_obj[0] = args;
12663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12664 if (!SWIG_IsOK(res1)) {
12665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12666 }
12667 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12668 {
12669 PyThreadState* __tstate = wxPyBeginAllowThreads();
12670 result = ((wxNativeFontInfo const *)arg1)->ToString();
12671 wxPyEndAllowThreads(__tstate);
12672 if (PyErr_Occurred()) SWIG_fail;
12673 }
12674 {
12675#if wxUSE_UNICODE
12676 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12677#else
12678 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12679#endif
12680 }
12681 return resultobj;
12682fail:
12683 return NULL;
d14a1e28
RD
12684}
12685
12686
0085ce49
RD
12687SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12688 PyObject *resultobj = 0;
12689 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12690 wxString result;
12691 void *argp1 = 0 ;
12692 int res1 = 0 ;
12693 PyObject *swig_obj[1] ;
12694
12695 if (!args) SWIG_fail;
12696 swig_obj[0] = args;
12697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12698 if (!SWIG_IsOK(res1)) {
12699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12700 }
12701 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12702 {
12703 PyThreadState* __tstate = wxPyBeginAllowThreads();
12704 result = wxNativeFontInfo___str__(arg1);
12705 wxPyEndAllowThreads(__tstate);
12706 if (PyErr_Occurred()) SWIG_fail;
12707 }
12708 {
12709#if wxUSE_UNICODE
12710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12711#else
12712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12713#endif
12714 }
12715 return resultobj;
12716fail:
12717 return NULL;
12718}
12719
12720
12721SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12722 PyObject *resultobj = 0;
12723 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12724 wxString *arg2 = 0 ;
12725 bool result;
12726 void *argp1 = 0 ;
12727 int res1 = 0 ;
12728 bool temp2 = false ;
12729 PyObject * obj0 = 0 ;
12730 PyObject * obj1 = 0 ;
12731 char * kwnames[] = {
12732 (char *) "self",(char *) "s", NULL
12733 };
12734
12735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12737 if (!SWIG_IsOK(res1)) {
12738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12739 }
12740 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12741 {
12742 arg2 = wxString_in_helper(obj1);
12743 if (arg2 == NULL) SWIG_fail;
12744 temp2 = true;
12745 }
12746 {
12747 PyThreadState* __tstate = wxPyBeginAllowThreads();
12748 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12749 wxPyEndAllowThreads(__tstate);
12750 if (PyErr_Occurred()) SWIG_fail;
12751 }
12752 {
12753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12754 }
12755 {
12756 if (temp2)
12757 delete arg2;
12758 }
12759 return resultobj;
12760fail:
12761 {
12762 if (temp2)
12763 delete arg2;
12764 }
12765 return NULL;
d14a1e28
RD
12766}
12767
12768
0085ce49
RD
12769SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12770 PyObject *resultobj = 0;
12771 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12772 wxString result;
12773 void *argp1 = 0 ;
12774 int res1 = 0 ;
12775 PyObject *swig_obj[1] ;
12776
12777 if (!args) SWIG_fail;
12778 swig_obj[0] = args;
12779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12780 if (!SWIG_IsOK(res1)) {
12781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12782 }
12783 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12784 {
12785 PyThreadState* __tstate = wxPyBeginAllowThreads();
12786 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12787 wxPyEndAllowThreads(__tstate);
12788 if (PyErr_Occurred()) SWIG_fail;
12789 }
12790 {
12791#if wxUSE_UNICODE
12792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12793#else
12794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12795#endif
12796 }
12797 return resultobj;
12798fail:
12799 return NULL;
d14a1e28
RD
12800}
12801
12802
0085ce49
RD
12803SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12804 PyObject *obj;
12805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12806 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12807 return SWIG_Py_Void();
d14a1e28
RD
12808}
12809
0085ce49
RD
12810SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12811 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12812}
12813
0085ce49
RD
12814SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12815 PyObject *resultobj = 0;
12816 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12817 wxString *arg2 = (wxString *) 0 ;
12818 void *argp1 = 0 ;
12819 int res1 = 0 ;
12820 bool temp2 = false ;
12821 PyObject *swig_obj[2] ;
12822
12823 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12825 if (!SWIG_IsOK(res1)) {
12826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12827 }
12828 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12829 {
12830 arg2 = wxString_in_helper(swig_obj[1]);
12831 if (arg2 == NULL) SWIG_fail;
12832 temp2 = true;
12833 }
12834 if (arg1) (arg1)->facename = *arg2;
12835
12836 resultobj = SWIG_Py_Void();
12837 {
12838 if (temp2)
12839 delete arg2;
12840 }
12841 return resultobj;
12842fail:
12843 {
12844 if (temp2)
12845 delete arg2;
12846 }
12847 return NULL;
d14a1e28
RD
12848}
12849
12850
0085ce49
RD
12851SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12852 PyObject *resultobj = 0;
12853 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12854 wxString *result = 0 ;
12855 void *argp1 = 0 ;
12856 int res1 = 0 ;
12857 PyObject *swig_obj[1] ;
12858
12859 if (!args) SWIG_fail;
12860 swig_obj[0] = args;
12861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12862 if (!SWIG_IsOK(res1)) {
12863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12864 }
12865 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12866 result = (wxString *)& ((arg1)->facename);
12867 {
12868#if wxUSE_UNICODE
12869 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12870#else
12871 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12872#endif
12873 }
12874 return resultobj;
12875fail:
12876 return NULL;
d14a1e28
RD
12877}
12878
12879
0085ce49
RD
12880SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12881 PyObject *resultobj = 0;
12882 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12883 wxFontEncoding arg2 ;
12884 void *argp1 = 0 ;
12885 int res1 = 0 ;
12886 int val2 ;
12887 int ecode2 = 0 ;
12888 PyObject *swig_obj[2] ;
12889
12890 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
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_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12894 }
12895 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12896 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12897 if (!SWIG_IsOK(ecode2)) {
12898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12899 }
12900 arg2 = static_cast< wxFontEncoding >(val2);
12901 if (arg1) (arg1)->encoding = arg2;
12902
12903 resultobj = SWIG_Py_Void();
12904 return resultobj;
12905fail:
12906 return NULL;
d14a1e28
RD
12907}
12908
12909
0085ce49
RD
12910SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12911 PyObject *resultobj = 0;
12912 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12913 wxFontEncoding result;
12914 void *argp1 = 0 ;
12915 int res1 = 0 ;
12916 PyObject *swig_obj[1] ;
12917
12918 if (!args) SWIG_fail;
12919 swig_obj[0] = args;
12920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12921 if (!SWIG_IsOK(res1)) {
12922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12923 }
12924 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12925 result = (wxFontEncoding) ((arg1)->encoding);
12926 resultobj = SWIG_From_int(static_cast< int >(result));
12927 return resultobj;
12928fail:
12929 return NULL;
d14a1e28
RD
12930}
12931
12932
0085ce49
RD
12933SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12934 PyObject *resultobj = 0;
12935 wxNativeEncodingInfo *result = 0 ;
12936
12937 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12938 {
12939 PyThreadState* __tstate = wxPyBeginAllowThreads();
12940 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 }
12944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12945 return resultobj;
12946fail:
12947 return NULL;
d14a1e28
RD
12948}
12949
12950
0085ce49
RD
12951SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12952 PyObject *resultobj = 0;
12953 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12954 void *argp1 = 0 ;
12955 int res1 = 0 ;
12956 PyObject *swig_obj[1] ;
12957
12958 if (!args) SWIG_fail;
12959 swig_obj[0] = args;
12960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12961 if (!SWIG_IsOK(res1)) {
12962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12963 }
12964 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12965 {
12966 PyThreadState* __tstate = wxPyBeginAllowThreads();
12967 delete arg1;
d14a1e28 12968
0085ce49
RD
12969 wxPyEndAllowThreads(__tstate);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 }
12972 resultobj = SWIG_Py_Void();
12973 return resultobj;
12974fail:
12975 return NULL;
12976}
12977
12978
12979SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12980 PyObject *resultobj = 0;
12981 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12982 wxString *arg2 = 0 ;
12983 bool result;
12984 void *argp1 = 0 ;
12985 int res1 = 0 ;
12986 bool temp2 = false ;
12987 PyObject * obj0 = 0 ;
12988 PyObject * obj1 = 0 ;
12989 char * kwnames[] = {
12990 (char *) "self",(char *) "s", NULL
12991 };
12992
12993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12995 if (!SWIG_IsOK(res1)) {
12996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12997 }
12998 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12999 {
13000 arg2 = wxString_in_helper(obj1);
13001 if (arg2 == NULL) SWIG_fail;
13002 temp2 = true;
13003 }
13004 {
13005 PyThreadState* __tstate = wxPyBeginAllowThreads();
13006 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13007 wxPyEndAllowThreads(__tstate);
13008 if (PyErr_Occurred()) SWIG_fail;
13009 }
13010 {
13011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13012 }
13013 {
13014 if (temp2)
13015 delete arg2;
13016 }
13017 return resultobj;
13018fail:
13019 {
13020 if (temp2)
13021 delete arg2;
13022 }
13023 return NULL;
d14a1e28
RD
13024}
13025
13026
0085ce49
RD
13027SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13028 PyObject *resultobj = 0;
13029 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13030 wxString result;
13031 void *argp1 = 0 ;
13032 int res1 = 0 ;
13033 PyObject *swig_obj[1] ;
13034
13035 if (!args) SWIG_fail;
13036 swig_obj[0] = args;
13037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13038 if (!SWIG_IsOK(res1)) {
13039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13040 }
13041 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13042 {
13043 PyThreadState* __tstate = wxPyBeginAllowThreads();
13044 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13045 wxPyEndAllowThreads(__tstate);
13046 if (PyErr_Occurred()) SWIG_fail;
13047 }
13048 {
13049#if wxUSE_UNICODE
13050 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13051#else
13052 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13053#endif
13054 }
13055 return resultobj;
13056fail:
13057 return NULL;
d14a1e28
RD
13058}
13059
13060
0085ce49
RD
13061SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13062 PyObject *obj;
13063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13064 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13065 return SWIG_Py_Void();
d14a1e28
RD
13066}
13067
0085ce49
RD
13068SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13069 return SWIG_Python_InitShadowInstance(args);
13070}
d14a1e28 13071
0085ce49
RD
13072SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13073 PyObject *resultobj = 0;
13074 wxFontEncoding arg1 ;
13075 wxNativeEncodingInfo *result = 0 ;
13076 int val1 ;
13077 int ecode1 = 0 ;
13078 PyObject * obj0 = 0 ;
13079 char * kwnames[] = {
13080 (char *) "encoding", NULL
13081 };
13082
13083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13084 ecode1 = SWIG_AsVal_int(obj0, &val1);
13085 if (!SWIG_IsOK(ecode1)) {
13086 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13087 }
13088 arg1 = static_cast< wxFontEncoding >(val1);
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13092 wxPyEndAllowThreads(__tstate);
13093 if (PyErr_Occurred()) SWIG_fail;
13094 }
13095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13096 return resultobj;
13097fail:
13098 return NULL;
13099}
13100
13101
13102SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13103 PyObject *resultobj = 0;
13104 wxNativeEncodingInfo *arg1 = 0 ;
13105 bool result;
13106 void *argp1 = 0 ;
13107 int res1 = 0 ;
13108 PyObject * obj0 = 0 ;
13109 char * kwnames[] = {
13110 (char *) "info", NULL
13111 };
13112
13113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13114 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13115 if (!SWIG_IsOK(res1)) {
13116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13117 }
13118 if (!argp1) {
13119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13120 }
13121 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13122 {
13123 PyThreadState* __tstate = wxPyBeginAllowThreads();
13124 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 {
13129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13130 }
13131 return resultobj;
13132fail:
13133 return NULL;
d14a1e28
RD
13134}
13135
13136
0085ce49
RD
13137SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13138 PyObject *resultobj = 0;
13139 wxFontMapper *result = 0 ;
13140
13141 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13142 {
13143 PyThreadState* __tstate = wxPyBeginAllowThreads();
13144 result = (wxFontMapper *)new wxFontMapper();
13145 wxPyEndAllowThreads(__tstate);
13146 if (PyErr_Occurred()) SWIG_fail;
13147 }
13148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13149 return resultobj;
13150fail:
13151 return NULL;
d14a1e28
RD
13152}
13153
13154
0085ce49
RD
13155SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13156 PyObject *resultobj = 0;
13157 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13158 void *argp1 = 0 ;
13159 int res1 = 0 ;
13160 PyObject *swig_obj[1] ;
13161
13162 if (!args) SWIG_fail;
13163 swig_obj[0] = args;
13164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13165 if (!SWIG_IsOK(res1)) {
13166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13167 }
13168 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13169 {
13170 PyThreadState* __tstate = wxPyBeginAllowThreads();
13171 delete arg1;
d14a1e28 13172
0085ce49
RD
13173 wxPyEndAllowThreads(__tstate);
13174 if (PyErr_Occurred()) SWIG_fail;
13175 }
13176 resultobj = SWIG_Py_Void();
13177 return resultobj;
13178fail:
13179 return NULL;
d14a1e28
RD
13180}
13181
13182
0085ce49
RD
13183SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13184 PyObject *resultobj = 0;
13185 wxFontMapper *result = 0 ;
13186
13187 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13188 {
13189 PyThreadState* __tstate = wxPyBeginAllowThreads();
13190 result = (wxFontMapper *)wxFontMapper::Get();
13191 wxPyEndAllowThreads(__tstate);
13192 if (PyErr_Occurred()) SWIG_fail;
13193 }
13194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13195 return resultobj;
13196fail:
13197 return NULL;
13198}
13199
13200
13201SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13202 PyObject *resultobj = 0;
13203 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13204 wxFontMapper *result = 0 ;
13205 void *argp1 = 0 ;
13206 int res1 = 0 ;
13207 PyObject * obj0 = 0 ;
13208 char * kwnames[] = {
13209 (char *) "mapper", NULL
13210 };
13211
13212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13214 if (!SWIG_IsOK(res1)) {
13215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13216 }
13217 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13218 {
13219 PyThreadState* __tstate = wxPyBeginAllowThreads();
13220 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13221 wxPyEndAllowThreads(__tstate);
13222 if (PyErr_Occurred()) SWIG_fail;
13223 }
13224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13225 return resultobj;
13226fail:
13227 return NULL;
13228}
13229
13230
13231SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13232 PyObject *resultobj = 0;
13233 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13234 wxString *arg2 = 0 ;
13235 bool arg3 = (bool) true ;
13236 wxFontEncoding result;
13237 void *argp1 = 0 ;
13238 int res1 = 0 ;
13239 bool temp2 = false ;
13240 bool val3 ;
13241 int ecode3 = 0 ;
13242 PyObject * obj0 = 0 ;
13243 PyObject * obj1 = 0 ;
13244 PyObject * obj2 = 0 ;
13245 char * kwnames[] = {
13246 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13247 };
13248
13249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13251 if (!SWIG_IsOK(res1)) {
13252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13253 }
13254 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13255 {
13256 arg2 = wxString_in_helper(obj1);
13257 if (arg2 == NULL) SWIG_fail;
13258 temp2 = true;
13259 }
13260 if (obj2) {
13261 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13262 if (!SWIG_IsOK(ecode3)) {
13263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13264 }
13265 arg3 = static_cast< bool >(val3);
13266 }
13267 {
13268 PyThreadState* __tstate = wxPyBeginAllowThreads();
13269 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13270 wxPyEndAllowThreads(__tstate);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 resultobj = SWIG_From_int(static_cast< int >(result));
13274 {
13275 if (temp2)
13276 delete arg2;
13277 }
13278 return resultobj;
13279fail:
13280 {
13281 if (temp2)
13282 delete arg2;
13283 }
13284 return NULL;
e6ffcedd
RD
13285}
13286
13287
0085ce49
RD
13288SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13289 PyObject *resultobj = 0;
13290 size_t result;
13291
13292 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13300 return resultobj;
13301fail:
13302 return NULL;
13303}
13304
13305
13306SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13307 PyObject *resultobj = 0;
13308 size_t arg1 ;
13309 wxFontEncoding result;
13310 size_t val1 ;
13311 int ecode1 = 0 ;
13312 PyObject * obj0 = 0 ;
13313 char * kwnames[] = {
13314 (char *) "n", NULL
13315 };
13316
13317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13318 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13319 if (!SWIG_IsOK(ecode1)) {
13320 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13321 }
13322 arg1 = static_cast< size_t >(val1);
13323 {
13324 PyThreadState* __tstate = wxPyBeginAllowThreads();
13325 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13326 wxPyEndAllowThreads(__tstate);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 resultobj = SWIG_From_int(static_cast< int >(result));
13330 return resultobj;
13331fail:
13332 return NULL;
13333}
13334
13335
13336SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13337 PyObject *resultobj = 0;
13338 wxFontEncoding arg1 ;
13339 wxString result;
13340 int val1 ;
13341 int ecode1 = 0 ;
13342 PyObject * obj0 = 0 ;
13343 char * kwnames[] = {
13344 (char *) "encoding", NULL
13345 };
13346
13347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13348 ecode1 = SWIG_AsVal_int(obj0, &val1);
13349 if (!SWIG_IsOK(ecode1)) {
13350 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13351 }
13352 arg1 = static_cast< wxFontEncoding >(val1);
13353 {
13354 PyThreadState* __tstate = wxPyBeginAllowThreads();
13355 result = wxFontMapper::GetEncodingName(arg1);
13356 wxPyEndAllowThreads(__tstate);
13357 if (PyErr_Occurred()) SWIG_fail;
13358 }
13359 {
13360#if wxUSE_UNICODE
13361 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13362#else
13363 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13364#endif
13365 }
13366 return resultobj;
13367fail:
13368 return NULL;
d14a1e28
RD
13369}
13370
13371
0085ce49
RD
13372SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13373 PyObject *resultobj = 0;
13374 wxFontEncoding arg1 ;
13375 wxString result;
13376 int val1 ;
13377 int ecode1 = 0 ;
13378 PyObject * obj0 = 0 ;
13379 char * kwnames[] = {
13380 (char *) "encoding", NULL
13381 };
13382
13383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13384 ecode1 = SWIG_AsVal_int(obj0, &val1);
13385 if (!SWIG_IsOK(ecode1)) {
13386 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13387 }
13388 arg1 = static_cast< wxFontEncoding >(val1);
13389 {
13390 PyThreadState* __tstate = wxPyBeginAllowThreads();
13391 result = wxFontMapper::GetEncodingDescription(arg1);
13392 wxPyEndAllowThreads(__tstate);
13393 if (PyErr_Occurred()) SWIG_fail;
13394 }
13395 {
13396#if wxUSE_UNICODE
13397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13398#else
13399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13400#endif
13401 }
13402 return resultobj;
13403fail:
13404 return NULL;
d14a1e28
RD
13405}
13406
13407
0085ce49
RD
13408SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13409 PyObject *resultobj = 0;
13410 wxString *arg1 = 0 ;
13411 wxFontEncoding result;
13412 bool temp1 = false ;
13413 PyObject * obj0 = 0 ;
13414 char * kwnames[] = {
13415 (char *) "name", NULL
13416 };
13417
13418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13419 {
13420 arg1 = wxString_in_helper(obj0);
13421 if (arg1 == NULL) SWIG_fail;
13422 temp1 = true;
13423 }
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 resultobj = SWIG_From_int(static_cast< int >(result));
13431 {
13432 if (temp1)
13433 delete arg1;
13434 }
13435 return resultobj;
13436fail:
13437 {
13438 if (temp1)
13439 delete arg1;
13440 }
13441 return NULL;
d14a1e28
RD
13442}
13443
13444
0085ce49
RD
13445SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13446 PyObject *resultobj = 0;
13447 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13448 wxString *arg2 = 0 ;
13449 void *argp1 = 0 ;
13450 int res1 = 0 ;
13451 bool temp2 = false ;
13452 PyObject * obj0 = 0 ;
13453 PyObject * obj1 = 0 ;
13454 char * kwnames[] = {
13455 (char *) "self",(char *) "prefix", NULL
13456 };
13457
13458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13460 if (!SWIG_IsOK(res1)) {
13461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13462 }
13463 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13464 {
13465 arg2 = wxString_in_helper(obj1);
13466 if (arg2 == NULL) SWIG_fail;
13467 temp2 = true;
13468 }
13469 {
13470 PyThreadState* __tstate = wxPyBeginAllowThreads();
13471 (arg1)->SetConfigPath((wxString const &)*arg2);
13472 wxPyEndAllowThreads(__tstate);
13473 if (PyErr_Occurred()) SWIG_fail;
13474 }
13475 resultobj = SWIG_Py_Void();
13476 {
13477 if (temp2)
13478 delete arg2;
13479 }
13480 return resultobj;
13481fail:
13482 {
13483 if (temp2)
13484 delete arg2;
13485 }
13486 return NULL;
d14a1e28
RD
13487}
13488
13489
0085ce49
RD
13490SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13491 PyObject *resultobj = 0;
13492 wxString result;
13493
13494 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13495 {
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
13497 result = wxFontMapper::GetDefaultConfigPath();
13498 wxPyEndAllowThreads(__tstate);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 }
13501 {
13502#if wxUSE_UNICODE
13503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13504#else
13505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13506#endif
13507 }
13508 return resultobj;
13509fail:
13510 return NULL;
13511}
13512
13513
13514SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13515 PyObject *resultobj = 0;
13516 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13517 wxFontEncoding arg2 ;
13518 wxString const &arg3_defvalue = wxPyEmptyString ;
13519 wxString *arg3 = (wxString *) &arg3_defvalue ;
13520 bool arg4 = (bool) true ;
13521 PyObject *result = 0 ;
13522 void *argp1 = 0 ;
13523 int res1 = 0 ;
13524 int val2 ;
13525 int ecode2 = 0 ;
13526 bool temp3 = false ;
13527 bool val4 ;
13528 int ecode4 = 0 ;
13529 PyObject * obj0 = 0 ;
13530 PyObject * obj1 = 0 ;
13531 PyObject * obj2 = 0 ;
13532 PyObject * obj3 = 0 ;
13533 char * kwnames[] = {
13534 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13535 };
13536
13537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13539 if (!SWIG_IsOK(res1)) {
13540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13541 }
13542 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13543 ecode2 = SWIG_AsVal_int(obj1, &val2);
13544 if (!SWIG_IsOK(ecode2)) {
13545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13546 }
13547 arg2 = static_cast< wxFontEncoding >(val2);
13548 if (obj2) {
093d3ff1 13549 {
0085ce49
RD
13550 arg3 = wxString_in_helper(obj2);
13551 if (arg3 == NULL) SWIG_fail;
13552 temp3 = true;
093d3ff1 13553 }
0085ce49
RD
13554 }
13555 if (obj3) {
13556 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13557 if (!SWIG_IsOK(ecode4)) {
13558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13559 }
13560 arg4 = static_cast< bool >(val4);
13561 }
13562 {
13563 PyThreadState* __tstate = wxPyBeginAllowThreads();
13564 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 resultobj = result;
13569 {
13570 if (temp3)
13571 delete arg3;
13572 }
13573 return resultobj;
13574fail:
13575 {
13576 if (temp3)
13577 delete arg3;
13578 }
13579 return NULL;
13580}
13581
13582
13583SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13584 PyObject *resultobj = 0;
13585 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13586 wxFontEncoding arg2 ;
13587 wxString const &arg3_defvalue = wxPyEmptyString ;
13588 wxString *arg3 = (wxString *) &arg3_defvalue ;
13589 bool result;
13590 void *argp1 = 0 ;
13591 int res1 = 0 ;
13592 int val2 ;
13593 int ecode2 = 0 ;
13594 bool temp3 = false ;
13595 PyObject * obj0 = 0 ;
13596 PyObject * obj1 = 0 ;
13597 PyObject * obj2 = 0 ;
13598 char * kwnames[] = {
13599 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13600 };
13601
13602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13604 if (!SWIG_IsOK(res1)) {
13605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13606 }
13607 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13608 ecode2 = SWIG_AsVal_int(obj1, &val2);
13609 if (!SWIG_IsOK(ecode2)) {
13610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13611 }
13612 arg2 = static_cast< wxFontEncoding >(val2);
13613 if (obj2) {
d14a1e28 13614 {
0085ce49
RD
13615 arg3 = wxString_in_helper(obj2);
13616 if (arg3 == NULL) SWIG_fail;
13617 temp3 = true;
d14a1e28 13618 }
0085ce49
RD
13619 }
13620 {
13621 PyThreadState* __tstate = wxPyBeginAllowThreads();
13622 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13623 wxPyEndAllowThreads(__tstate);
13624 if (PyErr_Occurred()) SWIG_fail;
13625 }
13626 {
13627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13628 }
13629 {
13630 if (temp3)
13631 delete arg3;
13632 }
13633 return resultobj;
13634fail:
13635 {
13636 if (temp3)
13637 delete arg3;
13638 }
13639 return NULL;
13640}
13641
13642
13643SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13644 PyObject *resultobj = 0;
13645 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13646 wxWindow *arg2 = (wxWindow *) 0 ;
13647 void *argp1 = 0 ;
13648 int res1 = 0 ;
13649 void *argp2 = 0 ;
13650 int res2 = 0 ;
13651 PyObject * obj0 = 0 ;
13652 PyObject * obj1 = 0 ;
13653 char * kwnames[] = {
13654 (char *) "self",(char *) "parent", NULL
13655 };
13656
13657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13659 if (!SWIG_IsOK(res1)) {
13660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13661 }
13662 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13663 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13664 if (!SWIG_IsOK(res2)) {
13665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13666 }
13667 arg2 = reinterpret_cast< wxWindow * >(argp2);
13668 {
13669 PyThreadState* __tstate = wxPyBeginAllowThreads();
13670 (arg1)->SetDialogParent(arg2);
13671 wxPyEndAllowThreads(__tstate);
13672 if (PyErr_Occurred()) SWIG_fail;
13673 }
13674 resultobj = SWIG_Py_Void();
13675 return resultobj;
13676fail:
13677 return NULL;
13678}
13679
13680
13681SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13682 PyObject *resultobj = 0;
13683 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13684 wxString *arg2 = 0 ;
13685 void *argp1 = 0 ;
13686 int res1 = 0 ;
13687 bool temp2 = false ;
13688 PyObject * obj0 = 0 ;
13689 PyObject * obj1 = 0 ;
13690 char * kwnames[] = {
13691 (char *) "self",(char *) "title", NULL
13692 };
13693
13694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13696 if (!SWIG_IsOK(res1)) {
13697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13698 }
13699 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13700 {
13701 arg2 = wxString_in_helper(obj1);
13702 if (arg2 == NULL) SWIG_fail;
13703 temp2 = true;
13704 }
13705 {
13706 PyThreadState* __tstate = wxPyBeginAllowThreads();
13707 (arg1)->SetDialogTitle((wxString const &)*arg2);
13708 wxPyEndAllowThreads(__tstate);
13709 if (PyErr_Occurred()) SWIG_fail;
13710 }
13711 resultobj = SWIG_Py_Void();
13712 {
13713 if (temp2)
13714 delete arg2;
13715 }
13716 return resultobj;
13717fail:
13718 {
13719 if (temp2)
13720 delete arg2;
13721 }
13722 return NULL;
13723}
13724
13725
13726SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13727 PyObject *obj;
13728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13729 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13730 return SWIG_Py_Void();
13731}
13732
13733SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13734 return SWIG_Python_InitShadowInstance(args);
13735}
13736
13737SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13738 PyObject *resultobj = 0;
13739 int arg1 ;
13740 int arg2 ;
13741 int arg3 ;
13742 int arg4 ;
13743 bool arg5 = (bool) false ;
13744 wxString const &arg6_defvalue = wxPyEmptyString ;
13745 wxString *arg6 = (wxString *) &arg6_defvalue ;
13746 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13747 wxFont *result = 0 ;
13748 int val1 ;
13749 int ecode1 = 0 ;
13750 int val2 ;
13751 int ecode2 = 0 ;
13752 int val3 ;
13753 int ecode3 = 0 ;
13754 int val4 ;
13755 int ecode4 = 0 ;
13756 bool val5 ;
13757 int ecode5 = 0 ;
13758 bool temp6 = false ;
13759 int val7 ;
13760 int ecode7 = 0 ;
13761 PyObject * obj0 = 0 ;
13762 PyObject * obj1 = 0 ;
13763 PyObject * obj2 = 0 ;
13764 PyObject * obj3 = 0 ;
13765 PyObject * obj4 = 0 ;
13766 PyObject * obj5 = 0 ;
13767 PyObject * obj6 = 0 ;
13768 char * kwnames[] = {
13769 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13770 };
13771
13772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13773 ecode1 = SWIG_AsVal_int(obj0, &val1);
13774 if (!SWIG_IsOK(ecode1)) {
13775 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13776 }
13777 arg1 = static_cast< int >(val1);
13778 ecode2 = SWIG_AsVal_int(obj1, &val2);
13779 if (!SWIG_IsOK(ecode2)) {
13780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13781 }
13782 arg2 = static_cast< int >(val2);
13783 ecode3 = SWIG_AsVal_int(obj2, &val3);
13784 if (!SWIG_IsOK(ecode3)) {
13785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13786 }
13787 arg3 = static_cast< int >(val3);
13788 ecode4 = SWIG_AsVal_int(obj3, &val4);
13789 if (!SWIG_IsOK(ecode4)) {
13790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13791 }
13792 arg4 = static_cast< int >(val4);
13793 if (obj4) {
13794 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13795 if (!SWIG_IsOK(ecode5)) {
13796 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13797 }
13798 arg5 = static_cast< bool >(val5);
13799 }
13800 if (obj5) {
093d3ff1 13801 {
0085ce49
RD
13802 arg6 = wxString_in_helper(obj5);
13803 if (arg6 == NULL) SWIG_fail;
13804 temp6 = true;
093d3ff1 13805 }
0085ce49
RD
13806 }
13807 if (obj6) {
13808 ecode7 = SWIG_AsVal_int(obj6, &val7);
13809 if (!SWIG_IsOK(ecode7)) {
13810 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13811 }
13812 arg7 = static_cast< wxFontEncoding >(val7);
13813 }
13814 {
13815 if (!wxPyCheckForApp()) SWIG_fail;
13816 PyThreadState* __tstate = wxPyBeginAllowThreads();
13817 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13818 wxPyEndAllowThreads(__tstate);
13819 if (PyErr_Occurred()) SWIG_fail;
13820 }
13821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13822 {
13823 if (temp6)
13824 delete arg6;
13825 }
13826 return resultobj;
13827fail:
13828 {
13829 if (temp6)
13830 delete arg6;
13831 }
13832 return NULL;
d14a1e28
RD
13833}
13834
13835
0085ce49
RD
13836SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13837 PyObject *resultobj = 0;
13838 wxFont *arg1 = (wxFont *) 0 ;
13839 void *argp1 = 0 ;
13840 int res1 = 0 ;
13841 PyObject *swig_obj[1] ;
13842
13843 if (!args) SWIG_fail;
13844 swig_obj[0] = args;
13845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13846 if (!SWIG_IsOK(res1)) {
13847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13848 }
13849 arg1 = reinterpret_cast< wxFont * >(argp1);
13850 {
13851 PyThreadState* __tstate = wxPyBeginAllowThreads();
13852 delete arg1;
d14a1e28 13853
0085ce49
RD
13854 wxPyEndAllowThreads(__tstate);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 resultobj = SWIG_Py_Void();
13858 return resultobj;
13859fail:
13860 return NULL;
13861}
13862
13863
13864SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13865 PyObject *resultobj = 0;
13866 wxNativeFontInfo *arg1 = 0 ;
13867 wxFont *result = 0 ;
13868 void *argp1 = 0 ;
13869 int res1 = 0 ;
13870 PyObject * obj0 = 0 ;
13871 char * kwnames[] = {
13872 (char *) "info", NULL
13873 };
13874
13875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13876 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13877 if (!SWIG_IsOK(res1)) {
13878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13879 }
13880 if (!argp1) {
13881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13882 }
13883 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13884 {
13885 if (!wxPyCheckForApp()) SWIG_fail;
13886 PyThreadState* __tstate = wxPyBeginAllowThreads();
13887 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13888 wxPyEndAllowThreads(__tstate);
13889 if (PyErr_Occurred()) SWIG_fail;
13890 }
13891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13892 return resultobj;
13893fail:
13894 return NULL;
d14a1e28
RD
13895}
13896
13897
0085ce49
RD
13898SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13899 PyObject *resultobj = 0;
13900 wxString *arg1 = 0 ;
13901 wxFont *result = 0 ;
13902 bool temp1 = false ;
13903 PyObject * obj0 = 0 ;
13904 char * kwnames[] = {
13905 (char *) "info", NULL
13906 };
13907
13908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13909 {
13910 arg1 = wxString_in_helper(obj0);
13911 if (arg1 == NULL) SWIG_fail;
13912 temp1 = true;
13913 }
13914 {
13915 if (!wxPyCheckForApp()) SWIG_fail;
13916 PyThreadState* __tstate = wxPyBeginAllowThreads();
13917 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13918 wxPyEndAllowThreads(__tstate);
13919 if (PyErr_Occurred()) SWIG_fail;
13920 }
13921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13922 {
13923 if (temp1)
13924 delete arg1;
13925 }
13926 return resultobj;
13927fail:
13928 {
13929 if (temp1)
13930 delete arg1;
13931 }
13932 return NULL;
13933}
13934
13935
13936SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13937 PyObject *resultobj = 0;
13938 int arg1 ;
13939 wxFontFamily arg2 ;
13940 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13941 wxString const &arg4_defvalue = wxPyEmptyString ;
13942 wxString *arg4 = (wxString *) &arg4_defvalue ;
13943 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13944 wxFont *result = 0 ;
13945 int val1 ;
13946 int ecode1 = 0 ;
13947 int val2 ;
13948 int ecode2 = 0 ;
13949 int val3 ;
13950 int ecode3 = 0 ;
13951 bool temp4 = false ;
13952 int val5 ;
13953 int ecode5 = 0 ;
13954 PyObject * obj0 = 0 ;
13955 PyObject * obj1 = 0 ;
13956 PyObject * obj2 = 0 ;
13957 PyObject * obj3 = 0 ;
13958 PyObject * obj4 = 0 ;
13959 char * kwnames[] = {
13960 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13961 };
13962
13963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13964 ecode1 = SWIG_AsVal_int(obj0, &val1);
13965 if (!SWIG_IsOK(ecode1)) {
13966 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13967 }
13968 arg1 = static_cast< int >(val1);
13969 ecode2 = SWIG_AsVal_int(obj1, &val2);
13970 if (!SWIG_IsOK(ecode2)) {
13971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13972 }
13973 arg2 = static_cast< wxFontFamily >(val2);
13974 if (obj2) {
13975 ecode3 = SWIG_AsVal_int(obj2, &val3);
13976 if (!SWIG_IsOK(ecode3)) {
13977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13978 }
13979 arg3 = static_cast< int >(val3);
13980 }
13981 if (obj3) {
093d3ff1 13982 {
0085ce49
RD
13983 arg4 = wxString_in_helper(obj3);
13984 if (arg4 == NULL) SWIG_fail;
13985 temp4 = true;
093d3ff1 13986 }
0085ce49
RD
13987 }
13988 if (obj4) {
13989 ecode5 = SWIG_AsVal_int(obj4, &val5);
13990 if (!SWIG_IsOK(ecode5)) {
13991 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13992 }
13993 arg5 = static_cast< wxFontEncoding >(val5);
13994 }
13995 {
13996 if (!wxPyCheckForApp()) SWIG_fail;
13997 PyThreadState* __tstate = wxPyBeginAllowThreads();
13998 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13999 wxPyEndAllowThreads(__tstate);
14000 if (PyErr_Occurred()) SWIG_fail;
14001 }
14002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14003 {
14004 if (temp4)
14005 delete arg4;
14006 }
14007 return resultobj;
14008fail:
14009 {
14010 if (temp4)
14011 delete arg4;
14012 }
14013 return NULL;
14014}
14015
14016
14017SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14018 PyObject *resultobj = 0;
14019 wxSize *arg1 = 0 ;
14020 int arg2 ;
14021 int arg3 ;
14022 int arg4 ;
14023 bool arg5 = (bool) false ;
14024 wxString const &arg6_defvalue = wxEmptyString ;
14025 wxString *arg6 = (wxString *) &arg6_defvalue ;
14026 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14027 wxFont *result = 0 ;
14028 wxSize temp1 ;
14029 int val2 ;
14030 int ecode2 = 0 ;
14031 int val3 ;
14032 int ecode3 = 0 ;
14033 int val4 ;
14034 int ecode4 = 0 ;
14035 bool val5 ;
14036 int ecode5 = 0 ;
14037 bool temp6 = false ;
14038 int val7 ;
14039 int ecode7 = 0 ;
14040 PyObject * obj0 = 0 ;
14041 PyObject * obj1 = 0 ;
14042 PyObject * obj2 = 0 ;
14043 PyObject * obj3 = 0 ;
14044 PyObject * obj4 = 0 ;
14045 PyObject * obj5 = 0 ;
14046 PyObject * obj6 = 0 ;
14047 char * kwnames[] = {
14048 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14049 };
14050
14051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14052 {
14053 arg1 = &temp1;
14054 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14055 }
14056 ecode2 = SWIG_AsVal_int(obj1, &val2);
14057 if (!SWIG_IsOK(ecode2)) {
14058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14059 }
14060 arg2 = static_cast< int >(val2);
14061 ecode3 = SWIG_AsVal_int(obj2, &val3);
14062 if (!SWIG_IsOK(ecode3)) {
14063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14064 }
14065 arg3 = static_cast< int >(val3);
14066 ecode4 = SWIG_AsVal_int(obj3, &val4);
14067 if (!SWIG_IsOK(ecode4)) {
14068 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14069 }
14070 arg4 = static_cast< int >(val4);
14071 if (obj4) {
14072 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14073 if (!SWIG_IsOK(ecode5)) {
14074 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14075 }
14076 arg5 = static_cast< bool >(val5);
14077 }
14078 if (obj5) {
d14a1e28 14079 {
0085ce49
RD
14080 arg6 = wxString_in_helper(obj5);
14081 if (arg6 == NULL) SWIG_fail;
14082 temp6 = true;
d14a1e28 14083 }
0085ce49
RD
14084 }
14085 if (obj6) {
14086 ecode7 = SWIG_AsVal_int(obj6, &val7);
14087 if (!SWIG_IsOK(ecode7)) {
14088 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14089 }
14090 arg7 = static_cast< wxFontEncoding >(val7);
14091 }
14092 {
14093 if (!wxPyCheckForApp()) SWIG_fail;
14094 PyThreadState* __tstate = wxPyBeginAllowThreads();
14095 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14096 wxPyEndAllowThreads(__tstate);
14097 if (PyErr_Occurred()) SWIG_fail;
14098 }
14099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14100 {
14101 if (temp6)
14102 delete arg6;
14103 }
14104 return resultobj;
14105fail:
14106 {
14107 if (temp6)
14108 delete arg6;
14109 }
14110 return NULL;
14111}
14112
14113
14114SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14115 PyObject *resultobj = 0;
14116 wxSize *arg1 = 0 ;
14117 wxFontFamily arg2 ;
14118 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14119 wxString const &arg4_defvalue = wxEmptyString ;
14120 wxString *arg4 = (wxString *) &arg4_defvalue ;
14121 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14122 wxFont *result = 0 ;
14123 wxSize temp1 ;
14124 int val2 ;
14125 int ecode2 = 0 ;
14126 int val3 ;
14127 int ecode3 = 0 ;
14128 bool temp4 = false ;
14129 int val5 ;
14130 int ecode5 = 0 ;
14131 PyObject * obj0 = 0 ;
14132 PyObject * obj1 = 0 ;
14133 PyObject * obj2 = 0 ;
14134 PyObject * obj3 = 0 ;
14135 PyObject * obj4 = 0 ;
14136 char * kwnames[] = {
14137 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14138 };
14139
14140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14141 {
14142 arg1 = &temp1;
14143 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14144 }
14145 ecode2 = SWIG_AsVal_int(obj1, &val2);
14146 if (!SWIG_IsOK(ecode2)) {
14147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14148 }
14149 arg2 = static_cast< wxFontFamily >(val2);
14150 if (obj2) {
14151 ecode3 = SWIG_AsVal_int(obj2, &val3);
14152 if (!SWIG_IsOK(ecode3)) {
14153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14154 }
14155 arg3 = static_cast< int >(val3);
14156 }
14157 if (obj3) {
093d3ff1 14158 {
0085ce49
RD
14159 arg4 = wxString_in_helper(obj3);
14160 if (arg4 == NULL) SWIG_fail;
14161 temp4 = true;
093d3ff1 14162 }
0085ce49
RD
14163 }
14164 if (obj4) {
14165 ecode5 = SWIG_AsVal_int(obj4, &val5);
14166 if (!SWIG_IsOK(ecode5)) {
14167 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14168 }
14169 arg5 = static_cast< wxFontEncoding >(val5);
14170 }
14171 {
14172 if (!wxPyCheckForApp()) SWIG_fail;
14173 PyThreadState* __tstate = wxPyBeginAllowThreads();
14174 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14175 wxPyEndAllowThreads(__tstate);
14176 if (PyErr_Occurred()) SWIG_fail;
14177 }
14178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14179 {
14180 if (temp4)
14181 delete arg4;
14182 }
14183 return resultobj;
14184fail:
14185 {
14186 if (temp4)
14187 delete arg4;
14188 }
14189 return NULL;
d14a1e28
RD
14190}
14191
14192
b39fe951 14193SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
14194 PyObject *resultobj = 0;
14195 wxFont *arg1 = (wxFont *) 0 ;
14196 bool result;
14197 void *argp1 = 0 ;
14198 int res1 = 0 ;
14199 PyObject *swig_obj[1] ;
14200
14201 if (!args) SWIG_fail;
14202 swig_obj[0] = args;
14203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14204 if (!SWIG_IsOK(res1)) {
b39fe951 14205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
0085ce49
RD
14206 }
14207 arg1 = reinterpret_cast< wxFont * >(argp1);
14208 {
14209 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14210 result = (bool)((wxFont const *)arg1)->IsOk();
0085ce49
RD
14211 wxPyEndAllowThreads(__tstate);
14212 if (PyErr_Occurred()) SWIG_fail;
14213 }
14214 {
14215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14216 }
14217 return resultobj;
14218fail:
14219 return NULL;
14220}
14221
14222
14223SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14224 PyObject *resultobj = 0;
14225 wxFont *arg1 = (wxFont *) 0 ;
14226 wxFont *arg2 = (wxFont *) 0 ;
14227 bool result;
14228 void *argp1 = 0 ;
14229 int res1 = 0 ;
14230 void *argp2 = 0 ;
14231 int res2 = 0 ;
14232 PyObject * obj0 = 0 ;
14233 PyObject * obj1 = 0 ;
14234 char * kwnames[] = {
14235 (char *) "self",(char *) "other", NULL
14236 };
14237
14238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14240 if (!SWIG_IsOK(res1)) {
14241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14242 }
14243 arg1 = reinterpret_cast< wxFont * >(argp1);
14244 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14245 if (!SWIG_IsOK(res2)) {
14246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14247 }
14248 arg2 = reinterpret_cast< wxFont * >(argp2);
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14252 wxPyEndAllowThreads(__tstate);
14253 if (PyErr_Occurred()) SWIG_fail;
14254 }
14255 {
14256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14257 }
14258 return resultobj;
14259fail:
14260 return NULL;
14261}
14262
14263
14264SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14265 PyObject *resultobj = 0;
14266 wxFont *arg1 = (wxFont *) 0 ;
14267 wxFont *arg2 = (wxFont *) 0 ;
14268 bool result;
14269 void *argp1 = 0 ;
14270 int res1 = 0 ;
14271 void *argp2 = 0 ;
14272 int res2 = 0 ;
14273 PyObject * obj0 = 0 ;
14274 PyObject * obj1 = 0 ;
14275 char * kwnames[] = {
14276 (char *) "self",(char *) "other", NULL
14277 };
14278
14279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14281 if (!SWIG_IsOK(res1)) {
14282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14283 }
14284 arg1 = reinterpret_cast< wxFont * >(argp1);
14285 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14286 if (!SWIG_IsOK(res2)) {
14287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14288 }
14289 arg2 = reinterpret_cast< wxFont * >(argp2);
14290 {
14291 PyThreadState* __tstate = wxPyBeginAllowThreads();
14292 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 {
14297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14298 }
14299 return resultobj;
14300fail:
14301 return NULL;
d14a1e28
RD
14302}
14303
14304
0085ce49
RD
14305SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14306 PyObject *resultobj = 0;
14307 wxFont *arg1 = (wxFont *) 0 ;
14308 int result;
14309 void *argp1 = 0 ;
14310 int res1 = 0 ;
14311 PyObject *swig_obj[1] ;
14312
14313 if (!args) SWIG_fail;
14314 swig_obj[0] = args;
14315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14316 if (!SWIG_IsOK(res1)) {
14317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14318 }
14319 arg1 = reinterpret_cast< wxFont * >(argp1);
14320 {
14321 PyThreadState* __tstate = wxPyBeginAllowThreads();
14322 result = (int)((wxFont const *)arg1)->GetPointSize();
14323 wxPyEndAllowThreads(__tstate);
14324 if (PyErr_Occurred()) SWIG_fail;
14325 }
14326 resultobj = SWIG_From_int(static_cast< int >(result));
14327 return resultobj;
14328fail:
14329 return NULL;
d14a1e28
RD
14330}
14331
14332
0085ce49
RD
14333SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14334 PyObject *resultobj = 0;
14335 wxFont *arg1 = (wxFont *) 0 ;
14336 wxSize result;
14337 void *argp1 = 0 ;
14338 int res1 = 0 ;
14339 PyObject *swig_obj[1] ;
14340
14341 if (!args) SWIG_fail;
14342 swig_obj[0] = args;
14343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14344 if (!SWIG_IsOK(res1)) {
14345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14346 }
14347 arg1 = reinterpret_cast< wxFont * >(argp1);
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 result = ((wxFont const *)arg1)->GetPixelSize();
14351 wxPyEndAllowThreads(__tstate);
14352 if (PyErr_Occurred()) SWIG_fail;
14353 }
14354 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14355 return resultobj;
14356fail:
14357 return NULL;
d14a1e28
RD
14358}
14359
14360
0085ce49
RD
14361SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14362 PyObject *resultobj = 0;
14363 wxFont *arg1 = (wxFont *) 0 ;
14364 bool result;
14365 void *argp1 = 0 ;
14366 int res1 = 0 ;
14367 PyObject *swig_obj[1] ;
14368
14369 if (!args) SWIG_fail;
14370 swig_obj[0] = args;
14371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14372 if (!SWIG_IsOK(res1)) {
14373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14374 }
14375 arg1 = reinterpret_cast< wxFont * >(argp1);
14376 {
14377 PyThreadState* __tstate = wxPyBeginAllowThreads();
14378 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14379 wxPyEndAllowThreads(__tstate);
14380 if (PyErr_Occurred()) SWIG_fail;
14381 }
14382 {
14383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14384 }
14385 return resultobj;
14386fail:
14387 return NULL;
d14a1e28
RD
14388}
14389
14390
0085ce49
RD
14391SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14392 PyObject *resultobj = 0;
14393 wxFont *arg1 = (wxFont *) 0 ;
14394 int result;
14395 void *argp1 = 0 ;
14396 int res1 = 0 ;
14397 PyObject *swig_obj[1] ;
14398
14399 if (!args) SWIG_fail;
14400 swig_obj[0] = args;
14401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14402 if (!SWIG_IsOK(res1)) {
14403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14404 }
14405 arg1 = reinterpret_cast< wxFont * >(argp1);
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 result = (int)((wxFont const *)arg1)->GetFamily();
14409 wxPyEndAllowThreads(__tstate);
14410 if (PyErr_Occurred()) SWIG_fail;
14411 }
14412 resultobj = SWIG_From_int(static_cast< int >(result));
14413 return resultobj;
14414fail:
14415 return NULL;
d14a1e28
RD
14416}
14417
14418
0085ce49
RD
14419SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14420 PyObject *resultobj = 0;
14421 wxFont *arg1 = (wxFont *) 0 ;
14422 int result;
14423 void *argp1 = 0 ;
14424 int res1 = 0 ;
14425 PyObject *swig_obj[1] ;
14426
14427 if (!args) SWIG_fail;
14428 swig_obj[0] = args;
14429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14430 if (!SWIG_IsOK(res1)) {
14431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14432 }
14433 arg1 = reinterpret_cast< wxFont * >(argp1);
14434 {
14435 PyThreadState* __tstate = wxPyBeginAllowThreads();
14436 result = (int)((wxFont const *)arg1)->GetStyle();
14437 wxPyEndAllowThreads(__tstate);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 resultobj = SWIG_From_int(static_cast< int >(result));
14441 return resultobj;
14442fail:
14443 return NULL;
d14a1e28
RD
14444}
14445
14446
0085ce49
RD
14447SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14448 PyObject *resultobj = 0;
14449 wxFont *arg1 = (wxFont *) 0 ;
14450 int result;
14451 void *argp1 = 0 ;
14452 int res1 = 0 ;
14453 PyObject *swig_obj[1] ;
14454
14455 if (!args) SWIG_fail;
14456 swig_obj[0] = args;
14457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14458 if (!SWIG_IsOK(res1)) {
14459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14460 }
14461 arg1 = reinterpret_cast< wxFont * >(argp1);
14462 {
14463 PyThreadState* __tstate = wxPyBeginAllowThreads();
14464 result = (int)((wxFont const *)arg1)->GetWeight();
14465 wxPyEndAllowThreads(__tstate);
14466 if (PyErr_Occurred()) SWIG_fail;
14467 }
14468 resultobj = SWIG_From_int(static_cast< int >(result));
14469 return resultobj;
14470fail:
14471 return NULL;
d14a1e28
RD
14472}
14473
14474
0085ce49
RD
14475SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14476 PyObject *resultobj = 0;
14477 wxFont *arg1 = (wxFont *) 0 ;
14478 bool result;
14479 void *argp1 = 0 ;
14480 int res1 = 0 ;
14481 PyObject *swig_obj[1] ;
14482
14483 if (!args) SWIG_fail;
14484 swig_obj[0] = args;
14485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14486 if (!SWIG_IsOK(res1)) {
14487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14488 }
14489 arg1 = reinterpret_cast< wxFont * >(argp1);
14490 {
14491 PyThreadState* __tstate = wxPyBeginAllowThreads();
14492 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14493 wxPyEndAllowThreads(__tstate);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 }
14496 {
14497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14498 }
14499 return resultobj;
14500fail:
14501 return NULL;
d14a1e28
RD
14502}
14503
14504
0085ce49
RD
14505SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14506 PyObject *resultobj = 0;
14507 wxFont *arg1 = (wxFont *) 0 ;
14508 wxString result;
14509 void *argp1 = 0 ;
14510 int res1 = 0 ;
14511 PyObject *swig_obj[1] ;
14512
14513 if (!args) SWIG_fail;
14514 swig_obj[0] = args;
14515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14516 if (!SWIG_IsOK(res1)) {
14517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14518 }
14519 arg1 = reinterpret_cast< wxFont * >(argp1);
14520 {
14521 PyThreadState* __tstate = wxPyBeginAllowThreads();
14522 result = ((wxFont const *)arg1)->GetFaceName();
14523 wxPyEndAllowThreads(__tstate);
14524 if (PyErr_Occurred()) SWIG_fail;
14525 }
14526 {
14527#if wxUSE_UNICODE
14528 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14529#else
14530 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14531#endif
14532 }
14533 return resultobj;
14534fail:
14535 return NULL;
d14a1e28
RD
14536}
14537
14538
0085ce49
RD
14539SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14540 PyObject *resultobj = 0;
14541 wxFont *arg1 = (wxFont *) 0 ;
14542 wxFontEncoding result;
14543 void *argp1 = 0 ;
14544 int res1 = 0 ;
14545 PyObject *swig_obj[1] ;
14546
14547 if (!args) SWIG_fail;
14548 swig_obj[0] = args;
14549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14550 if (!SWIG_IsOK(res1)) {
14551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14552 }
14553 arg1 = reinterpret_cast< wxFont * >(argp1);
14554 {
14555 PyThreadState* __tstate = wxPyBeginAllowThreads();
14556 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14557 wxPyEndAllowThreads(__tstate);
14558 if (PyErr_Occurred()) SWIG_fail;
14559 }
14560 resultobj = SWIG_From_int(static_cast< int >(result));
14561 return resultobj;
14562fail:
14563 return NULL;
d14a1e28
RD
14564}
14565
14566
0085ce49
RD
14567SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14568 PyObject *resultobj = 0;
14569 wxFont *arg1 = (wxFont *) 0 ;
14570 wxNativeFontInfo *result = 0 ;
14571 void *argp1 = 0 ;
14572 int res1 = 0 ;
14573 PyObject *swig_obj[1] ;
14574
14575 if (!args) SWIG_fail;
14576 swig_obj[0] = args;
14577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14578 if (!SWIG_IsOK(res1)) {
14579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14580 }
14581 arg1 = reinterpret_cast< wxFont * >(argp1);
14582 {
14583 PyThreadState* __tstate = wxPyBeginAllowThreads();
14584 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14585 wxPyEndAllowThreads(__tstate);
14586 if (PyErr_Occurred()) SWIG_fail;
14587 }
14588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14589 return resultobj;
14590fail:
14591 return NULL;
d14a1e28
RD
14592}
14593
14594
0085ce49
RD
14595SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14596 PyObject *resultobj = 0;
14597 wxFont *arg1 = (wxFont *) 0 ;
14598 bool result;
14599 void *argp1 = 0 ;
14600 int res1 = 0 ;
14601 PyObject *swig_obj[1] ;
14602
14603 if (!args) SWIG_fail;
14604 swig_obj[0] = args;
14605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14606 if (!SWIG_IsOK(res1)) {
14607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14608 }
14609 arg1 = reinterpret_cast< wxFont * >(argp1);
14610 {
14611 PyThreadState* __tstate = wxPyBeginAllowThreads();
14612 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14613 wxPyEndAllowThreads(__tstate);
14614 if (PyErr_Occurred()) SWIG_fail;
14615 }
14616 {
14617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14618 }
14619 return resultobj;
14620fail:
14621 return NULL;
d14a1e28
RD
14622}
14623
14624
0085ce49
RD
14625SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14626 PyObject *resultobj = 0;
14627 wxFont *arg1 = (wxFont *) 0 ;
14628 wxString result;
14629 void *argp1 = 0 ;
14630 int res1 = 0 ;
14631 PyObject *swig_obj[1] ;
14632
14633 if (!args) SWIG_fail;
14634 swig_obj[0] = args;
14635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14636 if (!SWIG_IsOK(res1)) {
14637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14638 }
14639 arg1 = reinterpret_cast< wxFont * >(argp1);
14640 {
14641 PyThreadState* __tstate = wxPyBeginAllowThreads();
14642 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14643 wxPyEndAllowThreads(__tstate);
14644 if (PyErr_Occurred()) SWIG_fail;
14645 }
14646 {
14647#if wxUSE_UNICODE
14648 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14649#else
14650 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14651#endif
14652 }
14653 return resultobj;
14654fail:
14655 return NULL;
d14a1e28
RD
14656}
14657
14658
0085ce49
RD
14659SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14660 PyObject *resultobj = 0;
14661 wxFont *arg1 = (wxFont *) 0 ;
14662 wxString result;
14663 void *argp1 = 0 ;
14664 int res1 = 0 ;
14665 PyObject *swig_obj[1] ;
14666
14667 if (!args) SWIG_fail;
14668 swig_obj[0] = args;
14669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14670 if (!SWIG_IsOK(res1)) {
14671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14672 }
14673 arg1 = reinterpret_cast< wxFont * >(argp1);
14674 {
14675 PyThreadState* __tstate = wxPyBeginAllowThreads();
14676 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14677 wxPyEndAllowThreads(__tstate);
14678 if (PyErr_Occurred()) SWIG_fail;
14679 }
14680 {
14681#if wxUSE_UNICODE
14682 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14683#else
14684 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14685#endif
14686 }
14687 return resultobj;
14688fail:
14689 return NULL;
14690}
14691
14692
14693SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14694 PyObject *resultobj = 0;
14695 wxFont *arg1 = (wxFont *) 0 ;
14696 int arg2 ;
14697 void *argp1 = 0 ;
14698 int res1 = 0 ;
14699 int val2 ;
14700 int ecode2 = 0 ;
14701 PyObject * obj0 = 0 ;
14702 PyObject * obj1 = 0 ;
14703 char * kwnames[] = {
14704 (char *) "self",(char *) "pointSize", NULL
14705 };
14706
14707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14709 if (!SWIG_IsOK(res1)) {
14710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14711 }
14712 arg1 = reinterpret_cast< wxFont * >(argp1);
14713 ecode2 = SWIG_AsVal_int(obj1, &val2);
14714 if (!SWIG_IsOK(ecode2)) {
14715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14716 }
14717 arg2 = static_cast< int >(val2);
14718 {
14719 PyThreadState* __tstate = wxPyBeginAllowThreads();
14720 (arg1)->SetPointSize(arg2);
14721 wxPyEndAllowThreads(__tstate);
14722 if (PyErr_Occurred()) SWIG_fail;
14723 }
14724 resultobj = SWIG_Py_Void();
14725 return resultobj;
14726fail:
14727 return NULL;
14728}
14729
14730
14731SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14732 PyObject *resultobj = 0;
14733 wxFont *arg1 = (wxFont *) 0 ;
14734 wxSize *arg2 = 0 ;
14735 void *argp1 = 0 ;
14736 int res1 = 0 ;
14737 wxSize temp2 ;
14738 PyObject * obj0 = 0 ;
14739 PyObject * obj1 = 0 ;
14740 char * kwnames[] = {
14741 (char *) "self",(char *) "pixelSize", NULL
14742 };
14743
14744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14746 if (!SWIG_IsOK(res1)) {
14747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14748 }
14749 arg1 = reinterpret_cast< wxFont * >(argp1);
14750 {
14751 arg2 = &temp2;
14752 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14753 }
14754 {
14755 PyThreadState* __tstate = wxPyBeginAllowThreads();
14756 (arg1)->SetPixelSize((wxSize const &)*arg2);
14757 wxPyEndAllowThreads(__tstate);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 }
14760 resultobj = SWIG_Py_Void();
14761 return resultobj;
14762fail:
14763 return NULL;
14764}
14765
14766
14767SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14768 PyObject *resultobj = 0;
14769 wxFont *arg1 = (wxFont *) 0 ;
14770 int arg2 ;
14771 void *argp1 = 0 ;
14772 int res1 = 0 ;
14773 int val2 ;
14774 int ecode2 = 0 ;
14775 PyObject * obj0 = 0 ;
14776 PyObject * obj1 = 0 ;
14777 char * kwnames[] = {
14778 (char *) "self",(char *) "family", NULL
14779 };
14780
14781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14783 if (!SWIG_IsOK(res1)) {
14784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14785 }
14786 arg1 = reinterpret_cast< wxFont * >(argp1);
14787 ecode2 = SWIG_AsVal_int(obj1, &val2);
14788 if (!SWIG_IsOK(ecode2)) {
14789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14790 }
14791 arg2 = static_cast< int >(val2);
14792 {
14793 PyThreadState* __tstate = wxPyBeginAllowThreads();
14794 (arg1)->SetFamily(arg2);
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 resultobj = SWIG_Py_Void();
14799 return resultobj;
14800fail:
14801 return NULL;
14802}
14803
14804
14805SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14806 PyObject *resultobj = 0;
14807 wxFont *arg1 = (wxFont *) 0 ;
14808 int arg2 ;
14809 void *argp1 = 0 ;
14810 int res1 = 0 ;
14811 int val2 ;
14812 int ecode2 = 0 ;
14813 PyObject * obj0 = 0 ;
14814 PyObject * obj1 = 0 ;
14815 char * kwnames[] = {
14816 (char *) "self",(char *) "style", NULL
14817 };
14818
14819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14821 if (!SWIG_IsOK(res1)) {
14822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14823 }
14824 arg1 = reinterpret_cast< wxFont * >(argp1);
14825 ecode2 = SWIG_AsVal_int(obj1, &val2);
14826 if (!SWIG_IsOK(ecode2)) {
14827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14828 }
14829 arg2 = static_cast< int >(val2);
14830 {
14831 PyThreadState* __tstate = wxPyBeginAllowThreads();
14832 (arg1)->SetStyle(arg2);
14833 wxPyEndAllowThreads(__tstate);
14834 if (PyErr_Occurred()) SWIG_fail;
14835 }
14836 resultobj = SWIG_Py_Void();
14837 return resultobj;
14838fail:
14839 return NULL;
14840}
14841
14842
14843SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14844 PyObject *resultobj = 0;
14845 wxFont *arg1 = (wxFont *) 0 ;
14846 int arg2 ;
14847 void *argp1 = 0 ;
14848 int res1 = 0 ;
14849 int val2 ;
14850 int ecode2 = 0 ;
14851 PyObject * obj0 = 0 ;
14852 PyObject * obj1 = 0 ;
14853 char * kwnames[] = {
14854 (char *) "self",(char *) "weight", NULL
14855 };
14856
14857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14859 if (!SWIG_IsOK(res1)) {
14860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14861 }
14862 arg1 = reinterpret_cast< wxFont * >(argp1);
14863 ecode2 = SWIG_AsVal_int(obj1, &val2);
14864 if (!SWIG_IsOK(ecode2)) {
14865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14866 }
14867 arg2 = static_cast< int >(val2);
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
14870 (arg1)->SetWeight(arg2);
14871 wxPyEndAllowThreads(__tstate);
14872 if (PyErr_Occurred()) SWIG_fail;
14873 }
14874 resultobj = SWIG_Py_Void();
14875 return resultobj;
14876fail:
14877 return NULL;
14878}
14879
14880
14881SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14882 PyObject *resultobj = 0;
14883 wxFont *arg1 = (wxFont *) 0 ;
14884 wxString *arg2 = 0 ;
704eda0c 14885 bool result;
0085ce49
RD
14886 void *argp1 = 0 ;
14887 int res1 = 0 ;
14888 bool temp2 = false ;
14889 PyObject * obj0 = 0 ;
14890 PyObject * obj1 = 0 ;
14891 char * kwnames[] = {
14892 (char *) "self",(char *) "faceName", NULL
14893 };
14894
14895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14897 if (!SWIG_IsOK(res1)) {
14898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14899 }
14900 arg1 = reinterpret_cast< wxFont * >(argp1);
14901 {
14902 arg2 = wxString_in_helper(obj1);
14903 if (arg2 == NULL) SWIG_fail;
14904 temp2 = true;
14905 }
14906 {
14907 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14908 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
0085ce49
RD
14909 wxPyEndAllowThreads(__tstate);
14910 if (PyErr_Occurred()) SWIG_fail;
14911 }
704eda0c
RD
14912 {
14913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14914 }
0085ce49
RD
14915 {
14916 if (temp2)
14917 delete arg2;
14918 }
14919 return resultobj;
14920fail:
14921 {
14922 if (temp2)
14923 delete arg2;
14924 }
14925 return NULL;
14926}
14927
14928
14929SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14930 PyObject *resultobj = 0;
14931 wxFont *arg1 = (wxFont *) 0 ;
14932 bool arg2 ;
14933 void *argp1 = 0 ;
14934 int res1 = 0 ;
14935 bool val2 ;
14936 int ecode2 = 0 ;
14937 PyObject * obj0 = 0 ;
14938 PyObject * obj1 = 0 ;
14939 char * kwnames[] = {
14940 (char *) "self",(char *) "underlined", NULL
14941 };
14942
14943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14945 if (!SWIG_IsOK(res1)) {
14946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14947 }
14948 arg1 = reinterpret_cast< wxFont * >(argp1);
14949 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14950 if (!SWIG_IsOK(ecode2)) {
14951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14952 }
14953 arg2 = static_cast< bool >(val2);
14954 {
14955 PyThreadState* __tstate = wxPyBeginAllowThreads();
14956 (arg1)->SetUnderlined(arg2);
14957 wxPyEndAllowThreads(__tstate);
14958 if (PyErr_Occurred()) SWIG_fail;
14959 }
14960 resultobj = SWIG_Py_Void();
14961 return resultobj;
14962fail:
14963 return NULL;
14964}
14965
14966
14967SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14968 PyObject *resultobj = 0;
14969 wxFont *arg1 = (wxFont *) 0 ;
14970 wxFontEncoding arg2 ;
14971 void *argp1 = 0 ;
14972 int res1 = 0 ;
14973 int val2 ;
14974 int ecode2 = 0 ;
14975 PyObject * obj0 = 0 ;
14976 PyObject * obj1 = 0 ;
14977 char * kwnames[] = {
14978 (char *) "self",(char *) "encoding", NULL
14979 };
14980
14981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14983 if (!SWIG_IsOK(res1)) {
14984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14985 }
14986 arg1 = reinterpret_cast< wxFont * >(argp1);
14987 ecode2 = SWIG_AsVal_int(obj1, &val2);
14988 if (!SWIG_IsOK(ecode2)) {
14989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14990 }
14991 arg2 = static_cast< wxFontEncoding >(val2);
14992 {
14993 PyThreadState* __tstate = wxPyBeginAllowThreads();
14994 (arg1)->SetEncoding(arg2);
14995 wxPyEndAllowThreads(__tstate);
14996 if (PyErr_Occurred()) SWIG_fail;
14997 }
14998 resultobj = SWIG_Py_Void();
14999 return resultobj;
15000fail:
15001 return NULL;
15002}
15003
15004
15005SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15006 PyObject *resultobj = 0;
15007 wxFont *arg1 = (wxFont *) 0 ;
15008 wxNativeFontInfo *arg2 = 0 ;
15009 void *argp1 = 0 ;
15010 int res1 = 0 ;
15011 void *argp2 = 0 ;
15012 int res2 = 0 ;
15013 PyObject * obj0 = 0 ;
15014 PyObject * obj1 = 0 ;
15015 char * kwnames[] = {
15016 (char *) "self",(char *) "info", NULL
15017 };
15018
15019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15021 if (!SWIG_IsOK(res1)) {
15022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15023 }
15024 arg1 = reinterpret_cast< wxFont * >(argp1);
15025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15026 if (!SWIG_IsOK(res2)) {
15027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15028 }
15029 if (!argp2) {
15030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15031 }
15032 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15033 {
15034 PyThreadState* __tstate = wxPyBeginAllowThreads();
15035 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15036 wxPyEndAllowThreads(__tstate);
15037 if (PyErr_Occurred()) SWIG_fail;
15038 }
15039 resultobj = SWIG_Py_Void();
15040 return resultobj;
15041fail:
15042 return NULL;
15043}
15044
15045
15046SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15047 PyObject *resultobj = 0;
15048 wxFont *arg1 = (wxFont *) 0 ;
15049 wxString *arg2 = 0 ;
704eda0c 15050 bool result;
0085ce49
RD
15051 void *argp1 = 0 ;
15052 int res1 = 0 ;
15053 bool temp2 = false ;
15054 PyObject * obj0 = 0 ;
15055 PyObject * obj1 = 0 ;
15056 char * kwnames[] = {
15057 (char *) "self",(char *) "info", NULL
15058 };
15059
15060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15062 if (!SWIG_IsOK(res1)) {
15063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15064 }
15065 arg1 = reinterpret_cast< wxFont * >(argp1);
15066 {
15067 arg2 = wxString_in_helper(obj1);
15068 if (arg2 == NULL) SWIG_fail;
15069 temp2 = true;
15070 }
15071 {
15072 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15073 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
0085ce49
RD
15074 wxPyEndAllowThreads(__tstate);
15075 if (PyErr_Occurred()) SWIG_fail;
15076 }
704eda0c
RD
15077 {
15078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15079 }
0085ce49
RD
15080 {
15081 if (temp2)
15082 delete arg2;
15083 }
15084 return resultobj;
15085fail:
15086 {
15087 if (temp2)
15088 delete arg2;
15089 }
15090 return NULL;
d14a1e28
RD
15091}
15092
15093
0085ce49
RD
15094SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15095 PyObject *resultobj = 0;
15096 wxFont *arg1 = (wxFont *) 0 ;
15097 wxString *arg2 = 0 ;
704eda0c 15098 bool result;
0085ce49
RD
15099 void *argp1 = 0 ;
15100 int res1 = 0 ;
15101 bool temp2 = false ;
15102 PyObject * obj0 = 0 ;
15103 PyObject * obj1 = 0 ;
15104 char * kwnames[] = {
15105 (char *) "self",(char *) "info", NULL
15106 };
15107
15108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15110 if (!SWIG_IsOK(res1)) {
15111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15112 }
15113 arg1 = reinterpret_cast< wxFont * >(argp1);
15114 {
15115 arg2 = wxString_in_helper(obj1);
15116 if (arg2 == NULL) SWIG_fail;
15117 temp2 = true;
15118 }
15119 {
15120 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15121 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
0085ce49
RD
15122 wxPyEndAllowThreads(__tstate);
15123 if (PyErr_Occurred()) SWIG_fail;
15124 }
704eda0c
RD
15125 {
15126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15127 }
0085ce49
RD
15128 {
15129 if (temp2)
15130 delete arg2;
15131 }
15132 return resultobj;
15133fail:
15134 {
15135 if (temp2)
15136 delete arg2;
15137 }
15138 return NULL;
d14a1e28
RD
15139}
15140
15141
0085ce49
RD
15142SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15143 PyObject *resultobj = 0;
15144 wxFont *arg1 = (wxFont *) 0 ;
15145 wxString result;
15146 void *argp1 = 0 ;
15147 int res1 = 0 ;
15148 PyObject *swig_obj[1] ;
15149
15150 if (!args) SWIG_fail;
15151 swig_obj[0] = args;
15152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15153 if (!SWIG_IsOK(res1)) {
15154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15155 }
15156 arg1 = reinterpret_cast< wxFont * >(argp1);
15157 {
15158 PyThreadState* __tstate = wxPyBeginAllowThreads();
15159 result = ((wxFont const *)arg1)->GetFamilyString();
15160 wxPyEndAllowThreads(__tstate);
15161 if (PyErr_Occurred()) SWIG_fail;
15162 }
15163 {
15164#if wxUSE_UNICODE
15165 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15166#else
15167 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15168#endif
15169 }
15170 return resultobj;
15171fail:
15172 return NULL;
d14a1e28
RD
15173}
15174
15175
0085ce49
RD
15176SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15177 PyObject *resultobj = 0;
15178 wxFont *arg1 = (wxFont *) 0 ;
15179 wxString result;
15180 void *argp1 = 0 ;
15181 int res1 = 0 ;
15182 PyObject *swig_obj[1] ;
15183
15184 if (!args) SWIG_fail;
15185 swig_obj[0] = args;
15186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15187 if (!SWIG_IsOK(res1)) {
15188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15189 }
15190 arg1 = reinterpret_cast< wxFont * >(argp1);
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
15193 result = ((wxFont const *)arg1)->GetStyleString();
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 {
15198#if wxUSE_UNICODE
15199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15200#else
15201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15202#endif
15203 }
15204 return resultobj;
15205fail:
15206 return NULL;
d14a1e28
RD
15207}
15208
15209
0085ce49
RD
15210SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15211 PyObject *resultobj = 0;
15212 wxFont *arg1 = (wxFont *) 0 ;
15213 wxString result;
15214 void *argp1 = 0 ;
15215 int res1 = 0 ;
15216 PyObject *swig_obj[1] ;
15217
15218 if (!args) SWIG_fail;
15219 swig_obj[0] = args;
15220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15221 if (!SWIG_IsOK(res1)) {
15222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15223 }
15224 arg1 = reinterpret_cast< wxFont * >(argp1);
15225 {
15226 PyThreadState* __tstate = wxPyBeginAllowThreads();
15227 result = ((wxFont const *)arg1)->GetWeightString();
15228 wxPyEndAllowThreads(__tstate);
15229 if (PyErr_Occurred()) SWIG_fail;
15230 }
15231 {
d14a1e28 15232#if wxUSE_UNICODE
0085ce49 15233 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 15234#else
0085ce49 15235 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 15236#endif
0085ce49
RD
15237 }
15238 return resultobj;
15239fail:
15240 return NULL;
15241}
15242
15243
15244SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15245 PyObject *resultobj = 0;
15246 wxFont *arg1 = (wxFont *) 0 ;
15247 bool arg2 = (bool) true ;
15248 void *argp1 = 0 ;
15249 int res1 = 0 ;
15250 bool val2 ;
15251 int ecode2 = 0 ;
15252 PyObject * obj0 = 0 ;
15253 PyObject * obj1 = 0 ;
15254 char * kwnames[] = {
15255 (char *) "self",(char *) "no", NULL
15256 };
15257
15258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15260 if (!SWIG_IsOK(res1)) {
15261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15262 }
15263 arg1 = reinterpret_cast< wxFont * >(argp1);
15264 if (obj1) {
15265 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15266 if (!SWIG_IsOK(ecode2)) {
15267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15268 }
15269 arg2 = static_cast< bool >(val2);
15270 }
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
15273 (arg1)->SetNoAntiAliasing(arg2);
15274 wxPyEndAllowThreads(__tstate);
15275 if (PyErr_Occurred()) SWIG_fail;
15276 }
15277 resultobj = SWIG_Py_Void();
15278 return resultobj;
15279fail:
15280 return NULL;
d14a1e28
RD
15281}
15282
15283
0085ce49
RD
15284SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15285 PyObject *resultobj = 0;
15286 wxFont *arg1 = (wxFont *) 0 ;
15287 bool result;
15288 void *argp1 = 0 ;
15289 int res1 = 0 ;
15290 PyObject *swig_obj[1] ;
15291
15292 if (!args) SWIG_fail;
15293 swig_obj[0] = args;
15294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15295 if (!SWIG_IsOK(res1)) {
15296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15297 }
15298 arg1 = reinterpret_cast< wxFont * >(argp1);
15299 {
15300 PyThreadState* __tstate = wxPyBeginAllowThreads();
15301 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15302 wxPyEndAllowThreads(__tstate);
15303 if (PyErr_Occurred()) SWIG_fail;
15304 }
15305 {
15306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15307 }
15308 return resultobj;
15309fail:
15310 return NULL;
d14a1e28
RD
15311}
15312
15313
0085ce49
RD
15314SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15315 PyObject *resultobj = 0;
15316 wxFontEncoding result;
15317
15318 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15319 {
15320 if (!wxPyCheckForApp()) SWIG_fail;
15321 PyThreadState* __tstate = wxPyBeginAllowThreads();
15322 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15323 wxPyEndAllowThreads(__tstate);
15324 if (PyErr_Occurred()) SWIG_fail;
15325 }
15326 resultobj = SWIG_From_int(static_cast< int >(result));
15327 return resultobj;
15328fail:
15329 return NULL;
d14a1e28
RD
15330}
15331
15332
0085ce49
RD
15333SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15334 PyObject *resultobj = 0;
15335 wxFontEncoding arg1 ;
15336 int val1 ;
15337 int ecode1 = 0 ;
15338 PyObject * obj0 = 0 ;
15339 char * kwnames[] = {
15340 (char *) "encoding", NULL
15341 };
15342
15343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15344 ecode1 = SWIG_AsVal_int(obj0, &val1);
15345 if (!SWIG_IsOK(ecode1)) {
15346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15347 }
15348 arg1 = static_cast< wxFontEncoding >(val1);
15349 {
15350 if (!wxPyCheckForApp()) SWIG_fail;
15351 PyThreadState* __tstate = wxPyBeginAllowThreads();
15352 wxFont::SetDefaultEncoding(arg1);
15353 wxPyEndAllowThreads(__tstate);
15354 if (PyErr_Occurred()) SWIG_fail;
15355 }
15356 resultobj = SWIG_Py_Void();
15357 return resultobj;
15358fail:
15359 return NULL;
d14a1e28
RD
15360}
15361
15362
0085ce49
RD
15363SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15364 PyObject *obj;
15365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15366 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15367 return SWIG_Py_Void();
d14a1e28
RD
15368}
15369
0085ce49
RD
15370SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15371 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15372}
15373
0085ce49
RD
15374SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15375 PyObject *resultobj = 0;
15376 wxPyFontEnumerator *result = 0 ;
15377
15378 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15379 {
15380 if (!wxPyCheckForApp()) SWIG_fail;
15381 PyThreadState* __tstate = wxPyBeginAllowThreads();
15382 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15383 wxPyEndAllowThreads(__tstate);
15384 if (PyErr_Occurred()) SWIG_fail;
15385 }
15386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15387 return resultobj;
15388fail:
15389 return NULL;
d14a1e28
RD
15390}
15391
15392
0085ce49
RD
15393SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15394 PyObject *resultobj = 0;
15395 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15396 void *argp1 = 0 ;
15397 int res1 = 0 ;
15398 PyObject *swig_obj[1] ;
15399
15400 if (!args) SWIG_fail;
15401 swig_obj[0] = args;
15402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15403 if (!SWIG_IsOK(res1)) {
15404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15405 }
15406 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15407 {
15408 PyThreadState* __tstate = wxPyBeginAllowThreads();
15409 delete arg1;
d14a1e28 15410
0085ce49
RD
15411 wxPyEndAllowThreads(__tstate);
15412 if (PyErr_Occurred()) SWIG_fail;
15413 }
15414 resultobj = SWIG_Py_Void();
15415 return resultobj;
15416fail:
15417 return NULL;
15418}
15419
15420
15421SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15422 PyObject *resultobj = 0;
15423 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15424 PyObject *arg2 = (PyObject *) 0 ;
15425 PyObject *arg3 = (PyObject *) 0 ;
15426 bool arg4 ;
15427 void *argp1 = 0 ;
15428 int res1 = 0 ;
15429 bool val4 ;
15430 int ecode4 = 0 ;
15431 PyObject * obj0 = 0 ;
15432 PyObject * obj1 = 0 ;
15433 PyObject * obj2 = 0 ;
15434 PyObject * obj3 = 0 ;
15435 char * kwnames[] = {
15436 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15437 };
15438
15439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15441 if (!SWIG_IsOK(res1)) {
15442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15443 }
15444 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15445 arg2 = obj1;
15446 arg3 = obj2;
15447 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15448 if (!SWIG_IsOK(ecode4)) {
15449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15450 }
15451 arg4 = static_cast< bool >(val4);
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_Py_Void();
15459 return resultobj;
15460fail:
15461 return NULL;
15462}
15463
15464
15465SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15466 PyObject *resultobj = 0;
15467 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15468 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15469 bool arg3 = (bool) false ;
15470 bool result;
15471 void *argp1 = 0 ;
15472 int res1 = 0 ;
15473 int val2 ;
15474 int ecode2 = 0 ;
15475 bool val3 ;
15476 int ecode3 = 0 ;
15477 PyObject * obj0 = 0 ;
15478 PyObject * obj1 = 0 ;
15479 PyObject * obj2 = 0 ;
15480 char * kwnames[] = {
15481 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15482 };
15483
15484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15486 if (!SWIG_IsOK(res1)) {
15487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15488 }
15489 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15490 if (obj1) {
15491 ecode2 = SWIG_AsVal_int(obj1, &val2);
15492 if (!SWIG_IsOK(ecode2)) {
15493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15494 }
15495 arg2 = static_cast< wxFontEncoding >(val2);
15496 }
15497 if (obj2) {
15498 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15499 if (!SWIG_IsOK(ecode3)) {
15500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15501 }
15502 arg3 = static_cast< bool >(val3);
15503 }
15504 {
15505 PyThreadState* __tstate = wxPyBeginAllowThreads();
15506 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15507 wxPyEndAllowThreads(__tstate);
15508 if (PyErr_Occurred()) SWIG_fail;
15509 }
15510 {
15511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15512 }
15513 return resultobj;
15514fail:
15515 return NULL;
15516}
15517
15518
15519SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15520 PyObject *resultobj = 0;
15521 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15522 wxString const &arg2_defvalue = wxPyEmptyString ;
15523 wxString *arg2 = (wxString *) &arg2_defvalue ;
15524 bool result;
15525 void *argp1 = 0 ;
15526 int res1 = 0 ;
15527 bool temp2 = false ;
15528 PyObject * obj0 = 0 ;
15529 PyObject * obj1 = 0 ;
15530 char * kwnames[] = {
15531 (char *) "self",(char *) "facename", NULL
15532 };
15533
15534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15536 if (!SWIG_IsOK(res1)) {
15537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15538 }
15539 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15540 if (obj1) {
d14a1e28 15541 {
0085ce49
RD
15542 arg2 = wxString_in_helper(obj1);
15543 if (arg2 == NULL) SWIG_fail;
15544 temp2 = true;
d14a1e28 15545 }
0085ce49
RD
15546 }
15547 {
15548 PyThreadState* __tstate = wxPyBeginAllowThreads();
15549 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15550 wxPyEndAllowThreads(__tstate);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 }
15553 {
15554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15555 }
15556 {
15557 if (temp2)
15558 delete arg2;
15559 }
15560 return resultobj;
15561fail:
15562 {
15563 if (temp2)
15564 delete arg2;
15565 }
15566 return NULL;
d14a1e28
RD
15567}
15568
15569
0085ce49
RD
15570SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15571 PyObject *resultobj = 0;
0085ce49 15572 PyObject *result = 0 ;
0085ce49 15573
704eda0c 15574 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
0085ce49
RD
15575 {
15576 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15577 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
0085ce49
RD
15578 wxPyEndAllowThreads(__tstate);
15579 if (PyErr_Occurred()) SWIG_fail;
15580 }
15581 resultobj = result;
15582 return resultobj;
15583fail:
15584 return NULL;
d14a1e28
RD
15585}
15586
15587
0085ce49
RD
15588SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15589 PyObject *resultobj = 0;
0085ce49 15590 PyObject *result = 0 ;
0085ce49 15591
704eda0c 15592 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
0085ce49
RD
15593 {
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15595 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
0085ce49
RD
15596 wxPyEndAllowThreads(__tstate);
15597 if (PyErr_Occurred()) SWIG_fail;
15598 }
15599 resultobj = result;
15600 return resultobj;
15601fail:
15602 return NULL;
d14a1e28
RD
15603}
15604
15605
704eda0c
RD
15606SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15607 PyObject *resultobj = 0;
15608 wxString *arg1 = 0 ;
15609 bool result;
15610 bool temp1 = false ;
15611 PyObject * obj0 = 0 ;
15612 char * kwnames[] = {
15613 (char *) "str", NULL
15614 };
15615
15616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15617 {
15618 arg1 = wxString_in_helper(obj0);
15619 if (arg1 == NULL) SWIG_fail;
15620 temp1 = true;
15621 }
15622 {
15623 PyThreadState* __tstate = wxPyBeginAllowThreads();
15624 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15625 wxPyEndAllowThreads(__tstate);
15626 if (PyErr_Occurred()) SWIG_fail;
15627 }
15628 {
15629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15630 }
15631 {
15632 if (temp1)
15633 delete arg1;
15634 }
15635 return resultobj;
15636fail:
15637 {
15638 if (temp1)
15639 delete arg1;
15640 }
15641 return NULL;
15642}
15643
15644
0085ce49
RD
15645SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15646 PyObject *obj;
15647 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15648 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15649 return SWIG_Py_Void();
d14a1e28
RD
15650}
15651
0085ce49
RD
15652SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15653 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15654}
15655
0085ce49
RD
15656SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15657 PyObject *resultobj = 0;
15658 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15659 int arg2 ;
15660 void *argp1 = 0 ;
15661 int res1 = 0 ;
15662 int val2 ;
15663 int ecode2 = 0 ;
15664 PyObject *swig_obj[2] ;
15665
15666 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15668 if (!SWIG_IsOK(res1)) {
15669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15670 }
15671 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15672 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15673 if (!SWIG_IsOK(ecode2)) {
15674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15675 }
15676 arg2 = static_cast< int >(val2);
15677 if (arg1) (arg1)->Language = arg2;
15678
15679 resultobj = SWIG_Py_Void();
15680 return resultobj;
15681fail:
15682 return NULL;
d14a1e28
RD
15683}
15684
15685
0085ce49
RD
15686SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15687 PyObject *resultobj = 0;
15688 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15689 int result;
15690 void *argp1 = 0 ;
15691 int res1 = 0 ;
15692 PyObject *swig_obj[1] ;
15693
15694 if (!args) SWIG_fail;
15695 swig_obj[0] = args;
15696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15697 if (!SWIG_IsOK(res1)) {
15698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15699 }
15700 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15701 result = (int) ((arg1)->Language);
15702 resultobj = SWIG_From_int(static_cast< int >(result));
15703 return resultobj;
15704fail:
15705 return NULL;
15706}
15707
15708
15709SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15710 PyObject *resultobj = 0;
15711 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15712 wxString *arg2 = (wxString *) 0 ;
15713 void *argp1 = 0 ;
15714 int res1 = 0 ;
15715 bool temp2 = false ;
15716 PyObject *swig_obj[2] ;
15717
15718 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15720 if (!SWIG_IsOK(res1)) {
15721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15722 }
15723 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15724 {
15725 arg2 = wxString_in_helper(swig_obj[1]);
15726 if (arg2 == NULL) SWIG_fail;
15727 temp2 = true;
15728 }
15729 if (arg1) (arg1)->CanonicalName = *arg2;
15730
15731 resultobj = SWIG_Py_Void();
15732 {
15733 if (temp2)
15734 delete arg2;
15735 }
15736 return resultobj;
15737fail:
15738 {
15739 if (temp2)
15740 delete arg2;
15741 }
15742 return NULL;
d14a1e28
RD
15743}
15744
15745
0085ce49
RD
15746SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15747 PyObject *resultobj = 0;
15748 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15749 wxString *result = 0 ;
15750 void *argp1 = 0 ;
15751 int res1 = 0 ;
15752 PyObject *swig_obj[1] ;
15753
15754 if (!args) SWIG_fail;
15755 swig_obj[0] = args;
15756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15757 if (!SWIG_IsOK(res1)) {
15758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15759 }
15760 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15761 result = (wxString *)& ((arg1)->CanonicalName);
15762 {
093d3ff1 15763#if wxUSE_UNICODE
0085ce49 15764 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
093d3ff1 15765#else
0085ce49 15766 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
093d3ff1 15767#endif
0085ce49
RD
15768 }
15769 return resultobj;
15770fail:
15771 return NULL;
d14a1e28
RD
15772}
15773
15774
0085ce49
RD
15775SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15776 PyObject *resultobj = 0;
15777 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15778 wxString *arg2 = (wxString *) 0 ;
15779 void *argp1 = 0 ;
15780 int res1 = 0 ;
15781 bool temp2 = false ;
15782 PyObject *swig_obj[2] ;
15783
15784 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15786 if (!SWIG_IsOK(res1)) {
15787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15788 }
15789 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15790 {
15791 arg2 = wxString_in_helper(swig_obj[1]);
15792 if (arg2 == NULL) SWIG_fail;
15793 temp2 = true;
15794 }
15795 if (arg1) (arg1)->Description = *arg2;
15796
15797 resultobj = SWIG_Py_Void();
15798 {
15799 if (temp2)
15800 delete arg2;
15801 }
15802 return resultobj;
15803fail:
15804 {
15805 if (temp2)
15806 delete arg2;
15807 }
15808 return NULL;
d14a1e28
RD
15809}
15810
15811
0085ce49
RD
15812SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15813 PyObject *resultobj = 0;
15814 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15815 wxString *result = 0 ;
15816 void *argp1 = 0 ;
15817 int res1 = 0 ;
15818 PyObject *swig_obj[1] ;
15819
15820 if (!args) SWIG_fail;
15821 swig_obj[0] = args;
15822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15823 if (!SWIG_IsOK(res1)) {
15824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15825 }
15826 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15827 result = (wxString *)& ((arg1)->Description);
15828 {
d14a1e28 15829#if wxUSE_UNICODE
0085ce49 15830 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 15831#else
0085ce49 15832 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 15833#endif
0085ce49
RD
15834 }
15835 return resultobj;
15836fail:
15837 return NULL;
15838}
15839
15840
15841SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15842 PyObject *obj;
15843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15844 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15845 return SWIG_Py_Void();
15846}
15847
15848SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15849 PyObject *resultobj = 0;
15850 int arg1 = (int) -1 ;
15851 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15852 wxLocale *result = 0 ;
15853 int val1 ;
15854 int ecode1 = 0 ;
15855 int val2 ;
15856 int ecode2 = 0 ;
15857 PyObject * obj0 = 0 ;
15858 PyObject * obj1 = 0 ;
15859 char * kwnames[] = {
15860 (char *) "language",(char *) "flags", NULL
15861 };
15862
15863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15864 if (obj0) {
15865 ecode1 = SWIG_AsVal_int(obj0, &val1);
15866 if (!SWIG_IsOK(ecode1)) {
15867 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15868 }
15869 arg1 = static_cast< int >(val1);
15870 }
15871 if (obj1) {
15872 ecode2 = SWIG_AsVal_int(obj1, &val2);
15873 if (!SWIG_IsOK(ecode2)) {
15874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15875 }
15876 arg2 = static_cast< int >(val2);
15877 }
15878 {
15879 PyThreadState* __tstate = wxPyBeginAllowThreads();
15880 result = (wxLocale *)new_wxLocale(arg1,arg2);
15881 wxPyEndAllowThreads(__tstate);
15882 if (PyErr_Occurred()) SWIG_fail;
15883 }
15884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15885 return resultobj;
15886fail:
15887 return NULL;
d14a1e28
RD
15888}
15889
15890
0085ce49
RD
15891SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15892 PyObject *resultobj = 0;
15893 wxLocale *arg1 = (wxLocale *) 0 ;
15894 void *argp1 = 0 ;
15895 int res1 = 0 ;
15896 PyObject *swig_obj[1] ;
15897
15898 if (!args) SWIG_fail;
15899 swig_obj[0] = args;
15900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15901 if (!SWIG_IsOK(res1)) {
15902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15903 }
15904 arg1 = reinterpret_cast< wxLocale * >(argp1);
15905 {
15906 PyThreadState* __tstate = wxPyBeginAllowThreads();
15907 delete arg1;
d14a1e28 15908
0085ce49
RD
15909 wxPyEndAllowThreads(__tstate);
15910 if (PyErr_Occurred()) SWIG_fail;
15911 }
15912 resultobj = SWIG_Py_Void();
15913 return resultobj;
15914fail:
15915 return NULL;
15916}
15917
15918
15919SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15920 PyObject *resultobj = 0;
15921 wxLocale *arg1 = (wxLocale *) 0 ;
15922 wxString *arg2 = 0 ;
15923 wxString const &arg3_defvalue = wxPyEmptyString ;
15924 wxString *arg3 = (wxString *) &arg3_defvalue ;
15925 wxString const &arg4_defvalue = wxPyEmptyString ;
15926 wxString *arg4 = (wxString *) &arg4_defvalue ;
15927 bool arg5 = (bool) true ;
15928 bool arg6 = (bool) false ;
15929 bool result;
15930 void *argp1 = 0 ;
15931 int res1 = 0 ;
15932 bool temp2 = false ;
15933 bool temp3 = false ;
15934 bool temp4 = false ;
15935 bool val5 ;
15936 int ecode5 = 0 ;
15937 bool val6 ;
15938 int ecode6 = 0 ;
15939 PyObject * obj0 = 0 ;
15940 PyObject * obj1 = 0 ;
15941 PyObject * obj2 = 0 ;
15942 PyObject * obj3 = 0 ;
15943 PyObject * obj4 = 0 ;
15944 PyObject * obj5 = 0 ;
15945 char * kwnames[] = {
15946 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15947 };
15948
15949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15951 if (!SWIG_IsOK(res1)) {
15952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15953 }
15954 arg1 = reinterpret_cast< wxLocale * >(argp1);
15955 {
15956 arg2 = wxString_in_helper(obj1);
15957 if (arg2 == NULL) SWIG_fail;
15958 temp2 = true;
15959 }
15960 if (obj2) {
d14a1e28 15961 {
0085ce49
RD
15962 arg3 = wxString_in_helper(obj2);
15963 if (arg3 == NULL) SWIG_fail;
15964 temp3 = true;
d14a1e28 15965 }
0085ce49
RD
15966 }
15967 if (obj3) {
093d3ff1 15968 {
0085ce49
RD
15969 arg4 = wxString_in_helper(obj3);
15970 if (arg4 == NULL) SWIG_fail;
15971 temp4 = true;
093d3ff1 15972 }
0085ce49
RD
15973 }
15974 if (obj4) {
15975 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15976 if (!SWIG_IsOK(ecode5)) {
15977 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15978 }
15979 arg5 = static_cast< bool >(val5);
15980 }
15981 if (obj5) {
15982 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15983 if (!SWIG_IsOK(ecode6)) {
15984 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15985 }
15986 arg6 = static_cast< bool >(val6);
15987 }
15988 {
15989 PyThreadState* __tstate = wxPyBeginAllowThreads();
15990 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15991 wxPyEndAllowThreads(__tstate);
15992 if (PyErr_Occurred()) SWIG_fail;
15993 }
15994 {
15995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15996 }
15997 {
15998 if (temp2)
15999 delete arg2;
16000 }
16001 {
16002 if (temp3)
16003 delete arg3;
16004 }
16005 {
16006 if (temp4)
16007 delete arg4;
16008 }
16009 return resultobj;
16010fail:
16011 {
16012 if (temp2)
16013 delete arg2;
16014 }
16015 {
16016 if (temp3)
16017 delete arg3;
16018 }
16019 {
16020 if (temp4)
16021 delete arg4;
16022 }
16023 return NULL;
16024}
16025
16026
16027SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16028 PyObject *resultobj = 0;
16029 wxLocale *arg1 = (wxLocale *) 0 ;
16030 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16031 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16032 bool result;
16033 void *argp1 = 0 ;
16034 int res1 = 0 ;
16035 int val2 ;
16036 int ecode2 = 0 ;
16037 int val3 ;
16038 int ecode3 = 0 ;
16039 PyObject * obj0 = 0 ;
16040 PyObject * obj1 = 0 ;
16041 PyObject * obj2 = 0 ;
16042 char * kwnames[] = {
16043 (char *) "self",(char *) "language",(char *) "flags", NULL
16044 };
16045
16046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16048 if (!SWIG_IsOK(res1)) {
16049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16050 }
16051 arg1 = reinterpret_cast< wxLocale * >(argp1);
16052 if (obj1) {
16053 ecode2 = SWIG_AsVal_int(obj1, &val2);
16054 if (!SWIG_IsOK(ecode2)) {
16055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16056 }
16057 arg2 = static_cast< int >(val2);
16058 }
16059 if (obj2) {
16060 ecode3 = SWIG_AsVal_int(obj2, &val3);
16061 if (!SWIG_IsOK(ecode3)) {
16062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16063 }
16064 arg3 = static_cast< int >(val3);
16065 }
16066 {
16067 PyThreadState* __tstate = wxPyBeginAllowThreads();
16068 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16069 wxPyEndAllowThreads(__tstate);
16070 if (PyErr_Occurred()) SWIG_fail;
16071 }
16072 {
16073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16074 }
16075 return resultobj;
16076fail:
16077 return NULL;
093d3ff1
RD
16078}
16079
16080
0085ce49
RD
16081SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16082 PyObject *resultobj = 0;
16083 int result;
16084
16085 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16086 {
16087 PyThreadState* __tstate = wxPyBeginAllowThreads();
16088 result = (int)wxLocale::GetSystemLanguage();
16089 wxPyEndAllowThreads(__tstate);
16090 if (PyErr_Occurred()) SWIG_fail;
16091 }
16092 resultobj = SWIG_From_int(static_cast< int >(result));
16093 return resultobj;
16094fail:
16095 return NULL;
d14a1e28
RD
16096}
16097
16098
0085ce49
RD
16099SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16100 PyObject *resultobj = 0;
16101 wxFontEncoding result;
16102
16103 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16104 {
16105 PyThreadState* __tstate = wxPyBeginAllowThreads();
16106 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 resultobj = SWIG_From_int(static_cast< int >(result));
16111 return resultobj;
16112fail:
16113 return NULL;
d14a1e28
RD
16114}
16115
16116
0085ce49
RD
16117SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16118 PyObject *resultobj = 0;
16119 wxString result;
16120
16121 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16122 {
16123 PyThreadState* __tstate = wxPyBeginAllowThreads();
16124 result = wxLocale::GetSystemEncodingName();
16125 wxPyEndAllowThreads(__tstate);
16126 if (PyErr_Occurred()) SWIG_fail;
16127 }
16128 {
d14a1e28 16129#if wxUSE_UNICODE
0085ce49 16130 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 16131#else
0085ce49 16132 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 16133#endif
0085ce49
RD
16134 }
16135 return resultobj;
16136fail:
16137 return NULL;
d14a1e28
RD
16138}
16139
16140
0085ce49
RD
16141SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16142 PyObject *resultobj = 0;
16143 wxLocale *arg1 = (wxLocale *) 0 ;
16144 bool result;
16145 void *argp1 = 0 ;
16146 int res1 = 0 ;
16147 PyObject *swig_obj[1] ;
16148
16149 if (!args) SWIG_fail;
16150 swig_obj[0] = args;
16151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16152 if (!SWIG_IsOK(res1)) {
16153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16154 }
16155 arg1 = reinterpret_cast< wxLocale * >(argp1);
16156 {
16157 PyThreadState* __tstate = wxPyBeginAllowThreads();
16158 result = (bool)((wxLocale const *)arg1)->IsOk();
16159 wxPyEndAllowThreads(__tstate);
16160 if (PyErr_Occurred()) SWIG_fail;
16161 }
16162 {
16163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16164 }
16165 return resultobj;
16166fail:
16167 return NULL;
093d3ff1 16168}
0085ce49
RD
16169
16170
16171SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16172 PyObject *resultobj = 0;
16173 wxLocale *arg1 = (wxLocale *) 0 ;
16174 wxString result;
16175 void *argp1 = 0 ;
16176 int res1 = 0 ;
16177 PyObject *swig_obj[1] ;
16178
16179 if (!args) SWIG_fail;
16180 swig_obj[0] = args;
16181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16182 if (!SWIG_IsOK(res1)) {
16183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16184 }
16185 arg1 = reinterpret_cast< wxLocale * >(argp1);
16186 {
16187 PyThreadState* __tstate = wxPyBeginAllowThreads();
16188 result = ((wxLocale const *)arg1)->GetLocale();
16189 wxPyEndAllowThreads(__tstate);
16190 if (PyErr_Occurred()) SWIG_fail;
16191 }
16192 {
16193#if wxUSE_UNICODE
16194 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16195#else
16196 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16197#endif
16198 }
16199 return resultobj;
16200fail:
16201 return NULL;
d14a1e28
RD
16202}
16203
16204
0085ce49
RD
16205SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16206 PyObject *resultobj = 0;
16207 wxLocale *arg1 = (wxLocale *) 0 ;
16208 int result;
16209 void *argp1 = 0 ;
16210 int res1 = 0 ;
16211 PyObject *swig_obj[1] ;
16212
16213 if (!args) SWIG_fail;
16214 swig_obj[0] = args;
16215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16216 if (!SWIG_IsOK(res1)) {
16217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16218 }
16219 arg1 = reinterpret_cast< wxLocale * >(argp1);
16220 {
16221 PyThreadState* __tstate = wxPyBeginAllowThreads();
16222 result = (int)((wxLocale const *)arg1)->GetLanguage();
16223 wxPyEndAllowThreads(__tstate);
16224 if (PyErr_Occurred()) SWIG_fail;
16225 }
16226 resultobj = SWIG_From_int(static_cast< int >(result));
16227 return resultobj;
16228fail:
16229 return NULL;
d14a1e28
RD
16230}
16231
16232
0085ce49
RD
16233SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16234 PyObject *resultobj = 0;
16235 wxLocale *arg1 = (wxLocale *) 0 ;
16236 wxString result;
16237 void *argp1 = 0 ;
16238 int res1 = 0 ;
16239 PyObject *swig_obj[1] ;
16240
16241 if (!args) SWIG_fail;
16242 swig_obj[0] = args;
16243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16244 if (!SWIG_IsOK(res1)) {
16245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16246 }
16247 arg1 = reinterpret_cast< wxLocale * >(argp1);
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 result = ((wxLocale const *)arg1)->GetSysName();
16251 wxPyEndAllowThreads(__tstate);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 }
16254 {
16255#if wxUSE_UNICODE
16256 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16257#else
16258 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16259#endif
16260 }
16261 return resultobj;
16262fail:
16263 return NULL;
d14a1e28
RD
16264}
16265
16266
0085ce49
RD
16267SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16268 PyObject *resultobj = 0;
16269 wxLocale *arg1 = (wxLocale *) 0 ;
16270 wxString result;
16271 void *argp1 = 0 ;
16272 int res1 = 0 ;
16273 PyObject *swig_obj[1] ;
16274
16275 if (!args) SWIG_fail;
16276 swig_obj[0] = args;
16277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16278 if (!SWIG_IsOK(res1)) {
16279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16280 }
16281 arg1 = reinterpret_cast< wxLocale * >(argp1);
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = ((wxLocale const *)arg1)->GetCanonicalName();
16285 wxPyEndAllowThreads(__tstate);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
16288 {
16289#if wxUSE_UNICODE
16290 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16291#else
16292 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16293#endif
16294 }
16295 return resultobj;
16296fail:
16297 return NULL;
d14a1e28
RD
16298}
16299
16300
0085ce49
RD
16301SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16302 PyObject *resultobj = 0;
16303 wxString *arg1 = 0 ;
16304 bool temp1 = false ;
16305 PyObject * obj0 = 0 ;
16306 char * kwnames[] = {
16307 (char *) "prefix", NULL
16308 };
16309
16310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16311 {
16312 arg1 = wxString_in_helper(obj0);
16313 if (arg1 == NULL) SWIG_fail;
16314 temp1 = true;
16315 }
16316 {
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16319 wxPyEndAllowThreads(__tstate);
16320 if (PyErr_Occurred()) SWIG_fail;
16321 }
16322 resultobj = SWIG_Py_Void();
16323 {
16324 if (temp1)
16325 delete arg1;
16326 }
16327 return resultobj;
16328fail:
16329 {
16330 if (temp1)
16331 delete arg1;
16332 }
16333 return NULL;
16334}
16335
16336
16337SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16338 PyObject *resultobj = 0;
16339 wxLocale *arg1 = (wxLocale *) 0 ;
16340 wxString *arg2 = 0 ;
16341 bool result;
16342 void *argp1 = 0 ;
16343 int res1 = 0 ;
16344 bool temp2 = false ;
16345 PyObject * obj0 = 0 ;
16346 PyObject * obj1 = 0 ;
16347 char * kwnames[] = {
16348 (char *) "self",(char *) "szDomain", NULL
16349 };
16350
16351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16353 if (!SWIG_IsOK(res1)) {
16354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16355 }
16356 arg1 = reinterpret_cast< wxLocale * >(argp1);
16357 {
16358 arg2 = wxString_in_helper(obj1);
16359 if (arg2 == NULL) SWIG_fail;
16360 temp2 = true;
16361 }
16362 {
16363 PyThreadState* __tstate = wxPyBeginAllowThreads();
16364 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16365 wxPyEndAllowThreads(__tstate);
16366 if (PyErr_Occurred()) SWIG_fail;
16367 }
16368 {
16369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16370 }
16371 {
16372 if (temp2)
16373 delete arg2;
16374 }
16375 return resultobj;
16376fail:
16377 {
16378 if (temp2)
16379 delete arg2;
16380 }
16381 return NULL;
16382}
16383
16384
33d6fd3b
RD
16385SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16386 PyObject *resultobj = 0;
16387 int arg1 ;
16388 bool result;
16389 int val1 ;
16390 int ecode1 = 0 ;
16391 PyObject * obj0 = 0 ;
16392 char * kwnames[] = {
16393 (char *) "lang", NULL
16394 };
16395
16396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16397 ecode1 = SWIG_AsVal_int(obj0, &val1);
16398 if (!SWIG_IsOK(ecode1)) {
16399 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16400 }
16401 arg1 = static_cast< int >(val1);
16402 {
16403 PyThreadState* __tstate = wxPyBeginAllowThreads();
16404 result = (bool)wxLocale::IsAvailable(arg1);
16405 wxPyEndAllowThreads(__tstate);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 }
16408 {
16409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16410 }
16411 return resultobj;
16412fail:
16413 return NULL;
16414}
16415
16416
0085ce49
RD
16417SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16418 PyObject *resultobj = 0;
16419 wxLocale *arg1 = (wxLocale *) 0 ;
16420 wxString *arg2 = 0 ;
16421 bool result;
16422 void *argp1 = 0 ;
16423 int res1 = 0 ;
16424 bool temp2 = false ;
16425 PyObject * obj0 = 0 ;
16426 PyObject * obj1 = 0 ;
16427 char * kwnames[] = {
16428 (char *) "self",(char *) "szDomain", NULL
16429 };
16430
16431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16433 if (!SWIG_IsOK(res1)) {
16434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16435 }
16436 arg1 = reinterpret_cast< wxLocale * >(argp1);
16437 {
16438 arg2 = wxString_in_helper(obj1);
16439 if (arg2 == NULL) SWIG_fail;
16440 temp2 = true;
16441 }
16442 {
16443 PyThreadState* __tstate = wxPyBeginAllowThreads();
16444 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16445 wxPyEndAllowThreads(__tstate);
16446 if (PyErr_Occurred()) SWIG_fail;
16447 }
16448 {
16449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16450 }
16451 {
16452 if (temp2)
16453 delete arg2;
16454 }
16455 return resultobj;
16456fail:
16457 {
16458 if (temp2)
16459 delete arg2;
16460 }
16461 return NULL;
d14a1e28
RD
16462}
16463
16464
0085ce49
RD
16465SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16466 PyObject *resultobj = 0;
16467 int arg1 ;
16468 wxLanguageInfo *result = 0 ;
16469 int val1 ;
16470 int ecode1 = 0 ;
16471 PyObject * obj0 = 0 ;
16472 char * kwnames[] = {
16473 (char *) "lang", NULL
16474 };
16475
16476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16477 ecode1 = SWIG_AsVal_int(obj0, &val1);
16478 if (!SWIG_IsOK(ecode1)) {
16479 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16480 }
16481 arg1 = static_cast< int >(val1);
16482 {
16483 PyThreadState* __tstate = wxPyBeginAllowThreads();
16484 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16485 wxPyEndAllowThreads(__tstate);
16486 if (PyErr_Occurred()) SWIG_fail;
16487 }
16488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16489 return resultobj;
16490fail:
16491 return NULL;
16492}
16493
16494
16495SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16496 PyObject *resultobj = 0;
16497 int arg1 ;
16498 wxString result;
16499 int val1 ;
16500 int ecode1 = 0 ;
16501 PyObject * obj0 = 0 ;
16502 char * kwnames[] = {
16503 (char *) "lang", NULL
16504 };
16505
16506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16507 ecode1 = SWIG_AsVal_int(obj0, &val1);
16508 if (!SWIG_IsOK(ecode1)) {
16509 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16510 }
16511 arg1 = static_cast< int >(val1);
16512 {
16513 PyThreadState* __tstate = wxPyBeginAllowThreads();
16514 result = wxLocale::GetLanguageName(arg1);
16515 wxPyEndAllowThreads(__tstate);
16516 if (PyErr_Occurred()) SWIG_fail;
16517 }
16518 {
16519#if wxUSE_UNICODE
16520 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16521#else
16522 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16523#endif
16524 }
16525 return resultobj;
16526fail:
16527 return NULL;
d14a1e28
RD
16528}
16529
16530
0085ce49
RD
16531SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16532 PyObject *resultobj = 0;
16533 wxString *arg1 = 0 ;
16534 wxLanguageInfo *result = 0 ;
16535 bool temp1 = false ;
16536 PyObject * obj0 = 0 ;
16537 char * kwnames[] = {
16538 (char *) "locale", NULL
16539 };
16540
16541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16542 {
16543 arg1 = wxString_in_helper(obj0);
16544 if (arg1 == NULL) SWIG_fail;
16545 temp1 = true;
16546 }
16547 {
16548 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16549 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16550 wxPyEndAllowThreads(__tstate);
16551 if (PyErr_Occurred()) SWIG_fail;
16552 }
16553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16554 {
16555 if (temp1)
16556 delete arg1;
16557 }
16558 return resultobj;
16559fail:
16560 {
16561 if (temp1)
16562 delete arg1;
16563 }
16564 return NULL;
16565}
16566
16567
16568SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16569 PyObject *resultobj = 0;
16570 wxLanguageInfo *arg1 = 0 ;
16571 void *argp1 = 0 ;
16572 int res1 = 0 ;
16573 PyObject * obj0 = 0 ;
16574 char * kwnames[] = {
16575 (char *) "info", NULL
16576 };
16577
16578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16579 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16580 if (!SWIG_IsOK(res1)) {
16581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16582 }
16583 if (!argp1) {
16584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16585 }
16586 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16587 {
16588 PyThreadState* __tstate = wxPyBeginAllowThreads();
16589 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16590 wxPyEndAllowThreads(__tstate);
16591 if (PyErr_Occurred()) SWIG_fail;
16592 }
16593 resultobj = SWIG_Py_Void();
16594 return resultobj;
16595fail:
16596 return NULL;
16597}
16598
16599
16600SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16601 PyObject *resultobj = 0;
16602 wxLocale *arg1 = (wxLocale *) 0 ;
16603 wxString *arg2 = 0 ;
16604 wxString const &arg3_defvalue = wxPyEmptyString ;
16605 wxString *arg3 = (wxString *) &arg3_defvalue ;
16606 wxString result;
16607 void *argp1 = 0 ;
16608 int res1 = 0 ;
16609 bool temp2 = false ;
16610 bool temp3 = false ;
16611 PyObject * obj0 = 0 ;
16612 PyObject * obj1 = 0 ;
16613 PyObject * obj2 = 0 ;
16614 char * kwnames[] = {
16615 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16616 };
16617
16618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16620 if (!SWIG_IsOK(res1)) {
16621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16622 }
16623 arg1 = reinterpret_cast< wxLocale * >(argp1);
16624 {
16625 arg2 = wxString_in_helper(obj1);
16626 if (arg2 == NULL) SWIG_fail;
16627 temp2 = true;
16628 }
16629 if (obj2) {
16630 {
16631 arg3 = wxString_in_helper(obj2);
16632 if (arg3 == NULL) SWIG_fail;
16633 temp3 = true;
16634 }
16635 }
16636 {
16637 PyThreadState* __tstate = wxPyBeginAllowThreads();
16638 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16639 wxPyEndAllowThreads(__tstate);
16640 if (PyErr_Occurred()) SWIG_fail;
16641 }
16642 {
16643#if wxUSE_UNICODE
16644 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16645#else
16646 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16647#endif
16648 }
16649 {
16650 if (temp2)
16651 delete arg2;
16652 }
16653 {
16654 if (temp3)
16655 delete arg3;
16656 }
16657 return resultobj;
16658fail:
16659 {
16660 if (temp2)
16661 delete arg2;
16662 }
16663 {
16664 if (temp3)
16665 delete arg3;
16666 }
16667 return NULL;
16668}
16669
16670
16671SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16672 PyObject *resultobj = 0;
16673 wxLocale *arg1 = (wxLocale *) 0 ;
16674 wxString *result = 0 ;
16675 void *argp1 = 0 ;
16676 int res1 = 0 ;
16677 PyObject *swig_obj[1] ;
16678
16679 if (!args) SWIG_fail;
16680 swig_obj[0] = args;
16681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16682 if (!SWIG_IsOK(res1)) {
16683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16684 }
16685 arg1 = reinterpret_cast< wxLocale * >(argp1);
16686 {
16687 PyThreadState* __tstate = wxPyBeginAllowThreads();
16688 {
16689 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16690 result = (wxString *) &_result_ref;
16691 }
16692 wxPyEndAllowThreads(__tstate);
16693 if (PyErr_Occurred()) SWIG_fail;
16694 }
16695 {
16696#if wxUSE_UNICODE
16697 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16698#else
16699 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16700#endif
16701 }
16702 return resultobj;
16703fail:
16704 return NULL;
16705}
16706
16707
16708SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16709 PyObject *obj;
16710 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16711 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16712 return SWIG_Py_Void();
16713}
16714
16715SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16716 return SWIG_Python_InitShadowInstance(args);
16717}
16718
16719SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16720 PyObject *resultobj = 0;
16721 int arg1 = (int) -1 ;
16722 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16723 wxPyLocale *result = 0 ;
16724 int val1 ;
16725 int ecode1 = 0 ;
16726 int val2 ;
16727 int ecode2 = 0 ;
16728 PyObject * obj0 = 0 ;
16729 PyObject * obj1 = 0 ;
16730 char * kwnames[] = {
16731 (char *) "language",(char *) "flags", NULL
16732 };
16733
16734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16735 if (obj0) {
16736 ecode1 = SWIG_AsVal_int(obj0, &val1);
16737 if (!SWIG_IsOK(ecode1)) {
16738 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16739 }
16740 arg1 = static_cast< int >(val1);
16741 }
16742 if (obj1) {
16743 ecode2 = SWIG_AsVal_int(obj1, &val2);
16744 if (!SWIG_IsOK(ecode2)) {
16745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16746 }
16747 arg2 = static_cast< int >(val2);
16748 }
16749 {
16750 PyThreadState* __tstate = wxPyBeginAllowThreads();
16751 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16752 wxPyEndAllowThreads(__tstate);
16753 if (PyErr_Occurred()) SWIG_fail;
16754 }
16755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16756 return resultobj;
16757fail:
16758 return NULL;
16759}
16760
16761
16762SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16763 PyObject *resultobj = 0;
16764 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16765 void *argp1 = 0 ;
16766 int res1 = 0 ;
16767 PyObject *swig_obj[1] ;
16768
16769 if (!args) SWIG_fail;
16770 swig_obj[0] = args;
16771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16772 if (!SWIG_IsOK(res1)) {
16773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16774 }
16775 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16776 {
16777 PyThreadState* __tstate = wxPyBeginAllowThreads();
16778 delete arg1;
16779
0085ce49
RD
16780 wxPyEndAllowThreads(__tstate);
16781 if (PyErr_Occurred()) SWIG_fail;
16782 }
fc46b7f3 16783 resultobj = SWIG_Py_Void();
0085ce49
RD
16784 return resultobj;
16785fail:
0085ce49 16786 return NULL;
d14a1e28
RD
16787}
16788
16789
fc46b7f3 16790SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16791 PyObject *resultobj = 0;
fc46b7f3
RD
16792 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16793 PyObject *arg2 = (PyObject *) 0 ;
16794 PyObject *arg3 = (PyObject *) 0 ;
0085ce49
RD
16795 void *argp1 = 0 ;
16796 int res1 = 0 ;
16797 PyObject * obj0 = 0 ;
fc46b7f3
RD
16798 PyObject * obj1 = 0 ;
16799 PyObject * obj2 = 0 ;
0085ce49 16800 char * kwnames[] = {
fc46b7f3 16801 (char *) "self",(char *) "self",(char *) "_class", NULL
0085ce49
RD
16802 };
16803
fc46b7f3
RD
16804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16806 if (!SWIG_IsOK(res1)) {
fc46b7f3 16807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
0085ce49 16808 }
fc46b7f3
RD
16809 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16810 arg2 = obj1;
16811 arg3 = obj2;
0085ce49
RD
16812 {
16813 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16814 (arg1)->_setCallbackInfo(arg2,arg3);
0085ce49
RD
16815 wxPyEndAllowThreads(__tstate);
16816 if (PyErr_Occurred()) SWIG_fail;
16817 }
16818 resultobj = SWIG_Py_Void();
16819 return resultobj;
16820fail:
16821 return NULL;
16822}
16823
16824
fc46b7f3 16825SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16826 PyObject *resultobj = 0;
fc46b7f3
RD
16827 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16828 wxChar *arg2 = (wxChar *) 0 ;
16829 wxChar *arg3 = (wxChar *) NULL ;
16830 wxChar *result = 0 ;
0085ce49
RD
16831 void *argp1 = 0 ;
16832 int res1 = 0 ;
fc46b7f3
RD
16833 void *argp2 = 0 ;
16834 int res2 = 0 ;
16835 void *argp3 = 0 ;
16836 int res3 = 0 ;
0085ce49
RD
16837 PyObject * obj0 = 0 ;
16838 PyObject * obj1 = 0 ;
16839 PyObject * obj2 = 0 ;
16840 char * kwnames[] = {
16841 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16842 };
16843
fc46b7f3
RD
16844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16846 if (!SWIG_IsOK(res1)) {
fc46b7f3 16847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
0085ce49 16848 }
fc46b7f3
RD
16849 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16850 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16851 if (!SWIG_IsOK(res2)) {
16852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
0085ce49 16853 }
fc46b7f3 16854 arg2 = reinterpret_cast< wxChar * >(argp2);
0085ce49 16855 if (obj2) {
fc46b7f3
RD
16856 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16857 if (!SWIG_IsOK(res3)) {
16858 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
b6294124 16859 }
fc46b7f3 16860 arg3 = reinterpret_cast< wxChar * >(argp3);
0085ce49
RD
16861 }
16862 {
16863 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16864 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
0085ce49
RD
16865 wxPyEndAllowThreads(__tstate);
16866 if (PyErr_Occurred()) SWIG_fail;
16867 }
fc46b7f3 16868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16869 return resultobj;
16870fail:
0085ce49 16871 return NULL;
b6294124
RD
16872}
16873
16874
fc46b7f3 16875SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16876 PyObject *resultobj = 0;
fc46b7f3
RD
16877 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16878 wxChar *arg2 = (wxChar *) 0 ;
16879 wxChar *arg3 = (wxChar *) 0 ;
16880 size_t arg4 ;
16881 wxChar *arg5 = (wxChar *) NULL ;
16882 wxChar *result = 0 ;
0085ce49
RD
16883 void *argp1 = 0 ;
16884 int res1 = 0 ;
fc46b7f3
RD
16885 void *argp2 = 0 ;
16886 int res2 = 0 ;
16887 void *argp3 = 0 ;
16888 int res3 = 0 ;
16889 size_t val4 ;
16890 int ecode4 = 0 ;
16891 void *argp5 = 0 ;
16892 int res5 = 0 ;
16893 PyObject * obj0 = 0 ;
16894 PyObject * obj1 = 0 ;
16895 PyObject * obj2 = 0 ;
16896 PyObject * obj3 = 0 ;
16897 PyObject * obj4 = 0 ;
16898 char * kwnames[] = {
16899 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16900 };
0085ce49 16901
fc46b7f3
RD
16902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16904 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16906 }
16907 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16908 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16909 if (!SWIG_IsOK(res2)) {
16910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16911 }
16912 arg2 = reinterpret_cast< wxChar * >(argp2);
16913 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16914 if (!SWIG_IsOK(res3)) {
16915 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16916 }
16917 arg3 = reinterpret_cast< wxChar * >(argp3);
16918 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16919 if (!SWIG_IsOK(ecode4)) {
16920 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16921 }
16922 arg4 = static_cast< size_t >(val4);
16923 if (obj4) {
16924 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16925 if (!SWIG_IsOK(res5)) {
16926 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16927 }
16928 arg5 = reinterpret_cast< wxChar * >(argp5);
0085ce49 16929 }
0085ce49
RD
16930 {
16931 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16932 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
0085ce49
RD
16933 wxPyEndAllowThreads(__tstate);
16934 if (PyErr_Occurred()) SWIG_fail;
16935 }
fc46b7f3 16936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16937 return resultobj;
16938fail:
16939 return NULL;
d14a1e28
RD
16940}
16941
16942
fc46b7f3 16943SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16944 PyObject *obj;
16945 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16946 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
0085ce49 16947 return SWIG_Py_Void();
d14a1e28
RD
16948}
16949
fc46b7f3 16950SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16951 return SWIG_Python_InitShadowInstance(args);
16952}
d14a1e28 16953
0085ce49
RD
16954SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16955 PyObject *resultobj = 0;
16956 wxLocale *result = 0 ;
16957
16958 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16959 {
16960 PyThreadState* __tstate = wxPyBeginAllowThreads();
16961 result = (wxLocale *)wxGetLocale();
16962 wxPyEndAllowThreads(__tstate);
16963 if (PyErr_Occurred()) SWIG_fail;
16964 }
16965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16966 return resultobj;
16967fail:
16968 return NULL;
d14a1e28
RD
16969}
16970
16971
0085ce49
RD
16972SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16973 PyObject *resultobj = 0;
16974 wxString *arg1 = 0 ;
16975 wxString result;
16976 bool temp1 = false ;
16977
16978 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16979 {
16980 arg1 = wxString_in_helper(swig_obj[0]);
16981 if (arg1 == NULL) SWIG_fail;
16982 temp1 = true;
16983 }
16984 {
16985 PyThreadState* __tstate = wxPyBeginAllowThreads();
16986 result = wxGetTranslation((wxString const &)*arg1);
16987 wxPyEndAllowThreads(__tstate);
16988 if (PyErr_Occurred()) SWIG_fail;
16989 }
16990 {
093d3ff1 16991#if wxUSE_UNICODE
0085ce49 16992 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16993#else
0085ce49 16994 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16995#endif
0085ce49
RD
16996 }
16997 {
16998 if (temp1)
16999 delete arg1;
17000 }
17001 return resultobj;
17002fail:
17003 {
17004 if (temp1)
17005 delete arg1;
17006 }
17007 return NULL;
b6294124
RD
17008}
17009
17010
0085ce49 17011SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17012 PyObject *resultobj = 0;
17013 wxString *arg1 = 0 ;
17014 wxString *arg2 = 0 ;
17015 wxString result;
17016 bool temp1 = false ;
17017 bool temp2 = false ;
17018
17019 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17020 {
17021 arg1 = wxString_in_helper(swig_obj[0]);
17022 if (arg1 == NULL) SWIG_fail;
17023 temp1 = true;
17024 }
17025 {
17026 arg2 = wxString_in_helper(swig_obj[1]);
17027 if (arg2 == NULL) SWIG_fail;
17028 temp2 = true;
17029 }
17030 {
17031 PyThreadState* __tstate = wxPyBeginAllowThreads();
17032 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17033 wxPyEndAllowThreads(__tstate);
17034 if (PyErr_Occurred()) SWIG_fail;
17035 }
17036 {
17037#if wxUSE_UNICODE
17038 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17039#else
17040 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17041#endif
17042 }
17043 {
17044 if (temp1)
17045 delete arg1;
17046 }
17047 {
17048 if (temp2)
17049 delete arg2;
17050 }
17051 return resultobj;
17052fail:
17053 {
17054 if (temp1)
17055 delete arg1;
17056 }
17057 {
17058 if (temp2)
17059 delete arg2;
17060 }
17061 return NULL;
17062}
17063
17064
17065SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
17066 PyObject *resultobj = 0;
17067 wxString *arg1 = 0 ;
17068 wxString *arg2 = 0 ;
17069 size_t arg3 ;
17070 wxString result;
17071 bool temp1 = false ;
17072 bool temp2 = false ;
17073 size_t val3 ;
17074 int ecode3 = 0 ;
17075
17076 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17077 {
17078 arg1 = wxString_in_helper(swig_obj[0]);
17079 if (arg1 == NULL) SWIG_fail;
17080 temp1 = true;
17081 }
17082 {
17083 arg2 = wxString_in_helper(swig_obj[1]);
17084 if (arg2 == NULL) SWIG_fail;
17085 temp2 = true;
17086 }
17087 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17088 if (!SWIG_IsOK(ecode3)) {
17089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17090 }
17091 arg3 = static_cast< size_t >(val3);
17092 {
17093 PyThreadState* __tstate = wxPyBeginAllowThreads();
17094 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17095 wxPyEndAllowThreads(__tstate);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 {
17099#if wxUSE_UNICODE
17100 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17101#else
17102 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17103#endif
17104 }
17105 {
17106 if (temp1)
17107 delete arg1;
17108 }
17109 {
17110 if (temp2)
17111 delete arg2;
17112 }
17113 return resultobj;
17114fail:
17115 {
17116 if (temp1)
17117 delete arg1;
17118 }
17119 {
17120 if (temp2)
17121 delete arg2;
17122 }
17123 return NULL;
d14a1e28
RD
17124}
17125
17126
fc46b7f3
RD
17127SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17128 PyObject *resultobj = 0;
17129 wxString *arg1 = 0 ;
17130 wxString *arg2 = 0 ;
17131 size_t arg3 ;
17132 wxString *arg4 = 0 ;
17133 wxString result;
17134 bool temp1 = false ;
17135 bool temp2 = false ;
17136 size_t val3 ;
17137 int ecode3 = 0 ;
17138 bool temp4 = false ;
17139
17140 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17141 {
17142 arg1 = wxString_in_helper(swig_obj[0]);
17143 if (arg1 == NULL) SWIG_fail;
17144 temp1 = true;
17145 }
17146 {
17147 arg2 = wxString_in_helper(swig_obj[1]);
17148 if (arg2 == NULL) SWIG_fail;
17149 temp2 = true;
17150 }
17151 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17152 if (!SWIG_IsOK(ecode3)) {
17153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17154 }
17155 arg3 = static_cast< size_t >(val3);
17156 {
17157 arg4 = wxString_in_helper(swig_obj[3]);
17158 if (arg4 == NULL) SWIG_fail;
17159 temp4 = true;
17160 }
17161 {
17162 PyThreadState* __tstate = wxPyBeginAllowThreads();
17163 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17164 wxPyEndAllowThreads(__tstate);
17165 if (PyErr_Occurred()) SWIG_fail;
17166 }
17167 {
17168#if wxUSE_UNICODE
17169 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17170#else
17171 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17172#endif
17173 }
17174 {
17175 if (temp1)
17176 delete arg1;
17177 }
17178 {
17179 if (temp2)
17180 delete arg2;
17181 }
17182 {
17183 if (temp4)
17184 delete arg4;
17185 }
17186 return resultobj;
17187fail:
17188 {
17189 if (temp1)
17190 delete arg1;
17191 }
17192 {
17193 if (temp2)
17194 delete arg2;
17195 }
17196 {
17197 if (temp4)
17198 delete arg4;
17199 }
17200 return NULL;
17201}
17202
17203
0085ce49
RD
17204SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17205 int argc;
fc46b7f3 17206 PyObject *argv[5];
0085ce49 17207
fc46b7f3 17208 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
0085ce49
RD
17209 --argc;
17210 if (argc == 1) {
17211 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17212 }
fc46b7f3 17213 if (argc == 2) {
0085ce49
RD
17214 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17215 }
fc46b7f3
RD
17216 if (argc == 3) {
17217 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17218 }
17219 if (argc == 4) {
17220 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17221 }
0085ce49
RD
17222
17223fail:
17224 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17225 return NULL;
d14a1e28
RD
17226}
17227
17228
0085ce49
RD
17229SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17230 PyObject *resultobj = 0;
17231 wxEncodingConverter *result = 0 ;
17232
17233 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17234 {
17235 PyThreadState* __tstate = wxPyBeginAllowThreads();
17236 result = (wxEncodingConverter *)new wxEncodingConverter();
17237 wxPyEndAllowThreads(__tstate);
17238 if (PyErr_Occurred()) SWIG_fail;
17239 }
17240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17241 return resultobj;
17242fail:
17243 return NULL;
d14a1e28
RD
17244}
17245
17246
0085ce49
RD
17247SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17248 PyObject *resultobj = 0;
17249 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17250 void *argp1 = 0 ;
17251 int res1 = 0 ;
17252 PyObject *swig_obj[1] ;
17253
17254 if (!args) SWIG_fail;
17255 swig_obj[0] = args;
17256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17257 if (!SWIG_IsOK(res1)) {
17258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17259 }
17260 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17261 {
17262 PyThreadState* __tstate = wxPyBeginAllowThreads();
17263 delete arg1;
d14a1e28 17264
0085ce49
RD
17265 wxPyEndAllowThreads(__tstate);
17266 if (PyErr_Occurred()) SWIG_fail;
17267 }
17268 resultobj = SWIG_Py_Void();
17269 return resultobj;
17270fail:
17271 return NULL;
17272}
17273
17274
17275SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17276 PyObject *resultobj = 0;
17277 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17278 wxFontEncoding arg2 ;
17279 wxFontEncoding arg3 ;
17280 int arg4 = (int) wxCONVERT_STRICT ;
17281 bool result;
17282 void *argp1 = 0 ;
17283 int res1 = 0 ;
17284 int val2 ;
17285 int ecode2 = 0 ;
17286 int val3 ;
17287 int ecode3 = 0 ;
17288 int val4 ;
17289 int ecode4 = 0 ;
17290 PyObject * obj0 = 0 ;
17291 PyObject * obj1 = 0 ;
17292 PyObject * obj2 = 0 ;
17293 PyObject * obj3 = 0 ;
17294 char * kwnames[] = {
17295 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17296 };
17297
17298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17300 if (!SWIG_IsOK(res1)) {
17301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17302 }
17303 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17304 ecode2 = SWIG_AsVal_int(obj1, &val2);
17305 if (!SWIG_IsOK(ecode2)) {
17306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17307 }
17308 arg2 = static_cast< wxFontEncoding >(val2);
17309 ecode3 = SWIG_AsVal_int(obj2, &val3);
17310 if (!SWIG_IsOK(ecode3)) {
17311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17312 }
17313 arg3 = static_cast< wxFontEncoding >(val3);
17314 if (obj3) {
17315 ecode4 = SWIG_AsVal_int(obj3, &val4);
17316 if (!SWIG_IsOK(ecode4)) {
17317 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17318 }
17319 arg4 = static_cast< int >(val4);
17320 }
17321 {
17322 PyThreadState* __tstate = wxPyBeginAllowThreads();
17323 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17324 wxPyEndAllowThreads(__tstate);
17325 if (PyErr_Occurred()) SWIG_fail;
17326 }
17327 {
17328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17329 }
17330 return resultobj;
17331fail:
17332 return NULL;
17333}
17334
17335
17336SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17337 PyObject *resultobj = 0;
17338 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17339 wxString *arg2 = 0 ;
17340 wxString result;
17341 void *argp1 = 0 ;
17342 int res1 = 0 ;
17343 bool temp2 = false ;
17344 PyObject * obj0 = 0 ;
17345 PyObject * obj1 = 0 ;
17346 char * kwnames[] = {
17347 (char *) "self",(char *) "input", NULL
17348 };
17349
17350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17352 if (!SWIG_IsOK(res1)) {
17353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17354 }
17355 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17356 {
17357 arg2 = wxString_in_helper(obj1);
17358 if (arg2 == NULL) SWIG_fail;
17359 temp2 = true;
17360 }
17361 {
17362 PyThreadState* __tstate = wxPyBeginAllowThreads();
17363 result = (arg1)->Convert((wxString const &)*arg2);
17364 wxPyEndAllowThreads(__tstate);
17365 if (PyErr_Occurred()) SWIG_fail;
17366 }
17367 {
17368#if wxUSE_UNICODE
17369 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17370#else
17371 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17372#endif
17373 }
17374 {
17375 if (temp2)
17376 delete arg2;
17377 }
17378 return resultobj;
17379fail:
17380 {
17381 if (temp2)
17382 delete arg2;
17383 }
17384 return NULL;
17385}
17386
17387
17388SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17389 PyObject *resultobj = 0;
17390 wxFontEncoding arg1 ;
17391 int arg2 = (int) wxPLATFORM_CURRENT ;
17392 wxFontEncodingArray result;
17393 int val1 ;
17394 int ecode1 = 0 ;
17395 int val2 ;
17396 int ecode2 = 0 ;
17397 PyObject * obj0 = 0 ;
17398 PyObject * obj1 = 0 ;
17399 char * kwnames[] = {
17400 (char *) "enc",(char *) "platform", NULL
17401 };
17402
17403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17404 ecode1 = SWIG_AsVal_int(obj0, &val1);
17405 if (!SWIG_IsOK(ecode1)) {
17406 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17407 }
17408 arg1 = static_cast< wxFontEncoding >(val1);
17409 if (obj1) {
17410 ecode2 = SWIG_AsVal_int(obj1, &val2);
17411 if (!SWIG_IsOK(ecode2)) {
17412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17413 }
17414 arg2 = static_cast< int >(val2);
17415 }
17416 {
17417 PyThreadState* __tstate = wxPyBeginAllowThreads();
17418 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17419 wxPyEndAllowThreads(__tstate);
17420 if (PyErr_Occurred()) SWIG_fail;
17421 }
17422 {
17423 resultobj = PyList_New(0);
17424 for (size_t i=0; i < (&result)->GetCount(); i++) {
17425 PyObject* number = PyInt_FromLong((&result)->Item(i));
17426 PyList_Append(resultobj, number);
17427 Py_DECREF(number);
093d3ff1 17428 }
0085ce49
RD
17429 }
17430 return resultobj;
17431fail:
17432 return NULL;
d14a1e28
RD
17433}
17434
17435
0085ce49
RD
17436SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17437 PyObject *resultobj = 0;
17438 wxFontEncoding arg1 ;
17439 wxFontEncodingArray result;
17440 int val1 ;
17441 int ecode1 = 0 ;
17442 PyObject * obj0 = 0 ;
17443 char * kwnames[] = {
17444 (char *) "enc", NULL
17445 };
17446
17447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17448 ecode1 = SWIG_AsVal_int(obj0, &val1);
17449 if (!SWIG_IsOK(ecode1)) {
17450 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17451 }
17452 arg1 = static_cast< wxFontEncoding >(val1);
17453 {
17454 PyThreadState* __tstate = wxPyBeginAllowThreads();
17455 result = wxEncodingConverter::GetAllEquivalents(arg1);
17456 wxPyEndAllowThreads(__tstate);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 }
17459 {
17460 resultobj = PyList_New(0);
17461 for (size_t i=0; i < (&result)->GetCount(); i++) {
17462 PyObject* number = PyInt_FromLong((&result)->Item(i));
17463 PyList_Append(resultobj, number);
17464 Py_DECREF(number);
093d3ff1 17465 }
0085ce49
RD
17466 }
17467 return resultobj;
17468fail:
17469 return NULL;
17470}
17471
17472
17473SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17474 PyObject *resultobj = 0;
17475 wxFontEncoding arg1 ;
17476 wxFontEncoding arg2 ;
17477 bool result;
17478 int val1 ;
17479 int ecode1 = 0 ;
17480 int val2 ;
17481 int ecode2 = 0 ;
17482 PyObject * obj0 = 0 ;
17483 PyObject * obj1 = 0 ;
17484 char * kwnames[] = {
17485 (char *) "encIn",(char *) "encOut", NULL
17486 };
17487
17488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17489 ecode1 = SWIG_AsVal_int(obj0, &val1);
17490 if (!SWIG_IsOK(ecode1)) {
17491 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17492 }
17493 arg1 = static_cast< wxFontEncoding >(val1);
17494 ecode2 = SWIG_AsVal_int(obj1, &val2);
17495 if (!SWIG_IsOK(ecode2)) {
17496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17497 }
17498 arg2 = static_cast< wxFontEncoding >(val2);
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 {
17506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17507 }
17508 return resultobj;
17509fail:
17510 return NULL;
d14a1e28
RD
17511}
17512
17513
0085ce49
RD
17514SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17515 PyObject *obj;
17516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17517 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17518 return SWIG_Py_Void();
d14a1e28
RD
17519}
17520
0085ce49
RD
17521SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17522 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
17523}
17524
0085ce49
RD
17525SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17526 PyObject *resultobj = 0;
17527 wxDC *arg1 = (wxDC *) 0 ;
17528 void *argp1 = 0 ;
17529 int res1 = 0 ;
17530 PyObject *swig_obj[1] ;
17531
17532 if (!args) SWIG_fail;
17533 swig_obj[0] = args;
17534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17535 if (!SWIG_IsOK(res1)) {
17536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17537 }
17538 arg1 = reinterpret_cast< wxDC * >(argp1);
17539 {
17540 PyThreadState* __tstate = wxPyBeginAllowThreads();
17541 delete arg1;
d14a1e28 17542
0085ce49
RD
17543 wxPyEndAllowThreads(__tstate);
17544 if (PyErr_Occurred()) SWIG_fail;
17545 }
17546 resultobj = SWIG_Py_Void();
17547 return resultobj;
17548fail:
17549 return NULL;
17550}
17551
17552
17553SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17554 PyObject *resultobj = 0;
17555 wxDC *arg1 = (wxDC *) 0 ;
17556 int arg2 ;
17557 int arg3 ;
17558 wxColour *arg4 = 0 ;
17559 int arg5 = (int) wxFLOOD_SURFACE ;
17560 bool result;
17561 void *argp1 = 0 ;
17562 int res1 = 0 ;
17563 int val2 ;
17564 int ecode2 = 0 ;
17565 int val3 ;
17566 int ecode3 = 0 ;
17567 wxColour temp4 ;
17568 int val5 ;
17569 int ecode5 = 0 ;
17570 PyObject * obj0 = 0 ;
17571 PyObject * obj1 = 0 ;
17572 PyObject * obj2 = 0 ;
17573 PyObject * obj3 = 0 ;
17574 PyObject * obj4 = 0 ;
17575 char * kwnames[] = {
17576 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17577 };
17578
17579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17581 if (!SWIG_IsOK(res1)) {
17582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17583 }
17584 arg1 = reinterpret_cast< wxDC * >(argp1);
17585 ecode2 = SWIG_AsVal_int(obj1, &val2);
17586 if (!SWIG_IsOK(ecode2)) {
17587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17588 }
17589 arg2 = static_cast< int >(val2);
17590 ecode3 = SWIG_AsVal_int(obj2, &val3);
17591 if (!SWIG_IsOK(ecode3)) {
17592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17593 }
17594 arg3 = static_cast< int >(val3);
17595 {
17596 arg4 = &temp4;
17597 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17598 }
17599 if (obj4) {
17600 ecode5 = SWIG_AsVal_int(obj4, &val5);
17601 if (!SWIG_IsOK(ecode5)) {
17602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17603 }
17604 arg5 = static_cast< int >(val5);
17605 }
17606 {
17607 PyThreadState* __tstate = wxPyBeginAllowThreads();
17608 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17609 wxPyEndAllowThreads(__tstate);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 {
17613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17614 }
17615 return resultobj;
17616fail:
17617 return NULL;
17618}
17619
17620
17621SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17622 PyObject *resultobj = 0;
17623 wxDC *arg1 = (wxDC *) 0 ;
17624 wxPoint *arg2 = 0 ;
17625 wxColour *arg3 = 0 ;
17626 int arg4 = (int) wxFLOOD_SURFACE ;
17627 bool result;
17628 void *argp1 = 0 ;
17629 int res1 = 0 ;
17630 wxPoint temp2 ;
17631 wxColour temp3 ;
17632 int val4 ;
17633 int ecode4 = 0 ;
17634 PyObject * obj0 = 0 ;
17635 PyObject * obj1 = 0 ;
17636 PyObject * obj2 = 0 ;
17637 PyObject * obj3 = 0 ;
17638 char * kwnames[] = {
17639 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17640 };
17641
17642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17644 if (!SWIG_IsOK(res1)) {
17645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17646 }
17647 arg1 = reinterpret_cast< wxDC * >(argp1);
17648 {
17649 arg2 = &temp2;
17650 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17651 }
17652 {
17653 arg3 = &temp3;
17654 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17655 }
17656 if (obj3) {
17657 ecode4 = SWIG_AsVal_int(obj3, &val4);
17658 if (!SWIG_IsOK(ecode4)) {
17659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17660 }
17661 arg4 = static_cast< int >(val4);
17662 }
17663 {
17664 PyThreadState* __tstate = wxPyBeginAllowThreads();
17665 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17666 wxPyEndAllowThreads(__tstate);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 {
17670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17671 }
17672 return resultobj;
17673fail:
17674 return NULL;
17675}
17676
17677
17678SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17679 PyObject *resultobj = 0;
17680 wxDC *arg1 = (wxDC *) 0 ;
17681 wxRect *arg2 = 0 ;
17682 wxColour *arg3 = 0 ;
17683 wxColour *arg4 = 0 ;
17684 wxPoint *arg5 = 0 ;
17685 void *argp1 = 0 ;
17686 int res1 = 0 ;
17687 wxRect temp2 ;
17688 wxColour temp3 ;
17689 wxColour temp4 ;
17690 wxPoint temp5 ;
17691 PyObject * obj0 = 0 ;
17692 PyObject * obj1 = 0 ;
17693 PyObject * obj2 = 0 ;
17694 PyObject * obj3 = 0 ;
17695 PyObject * obj4 = 0 ;
17696 char * kwnames[] = {
17697 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17698 };
17699
17700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17702 if (!SWIG_IsOK(res1)) {
17703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17704 }
17705 arg1 = reinterpret_cast< wxDC * >(argp1);
17706 {
17707 arg2 = &temp2;
17708 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17709 }
17710 {
17711 arg3 = &temp3;
17712 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17713 }
17714 {
17715 arg4 = &temp4;
17716 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17717 }
17718 {
17719 arg5 = &temp5;
17720 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17721 }
17722 {
17723 PyThreadState* __tstate = wxPyBeginAllowThreads();
17724 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 resultobj = SWIG_Py_Void();
17729 return resultobj;
17730fail:
17731 return NULL;
17732}
17733
17734
17735SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj = 0;
17737 wxDC *arg1 = (wxDC *) 0 ;
17738 wxRect *arg2 = 0 ;
17739 wxColour *arg3 = 0 ;
17740 wxColour *arg4 = 0 ;
17741 wxDirection arg5 = (wxDirection) wxEAST ;
17742 void *argp1 = 0 ;
17743 int res1 = 0 ;
17744 wxRect temp2 ;
17745 wxColour temp3 ;
17746 wxColour temp4 ;
17747 int val5 ;
17748 int ecode5 = 0 ;
17749 PyObject * obj0 = 0 ;
17750 PyObject * obj1 = 0 ;
17751 PyObject * obj2 = 0 ;
17752 PyObject * obj3 = 0 ;
17753 PyObject * obj4 = 0 ;
17754 char * kwnames[] = {
17755 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17756 };
17757
17758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17760 if (!SWIG_IsOK(res1)) {
17761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17762 }
17763 arg1 = reinterpret_cast< wxDC * >(argp1);
17764 {
17765 arg2 = &temp2;
17766 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17767 }
17768 {
17769 arg3 = &temp3;
17770 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17771 }
17772 {
17773 arg4 = &temp4;
17774 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17775 }
17776 if (obj4) {
17777 ecode5 = SWIG_AsVal_int(obj4, &val5);
17778 if (!SWIG_IsOK(ecode5)) {
17779 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17780 }
17781 arg5 = static_cast< wxDirection >(val5);
17782 }
17783 {
17784 PyThreadState* __tstate = wxPyBeginAllowThreads();
17785 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17786 wxPyEndAllowThreads(__tstate);
17787 if (PyErr_Occurred()) SWIG_fail;
17788 }
17789 resultobj = SWIG_Py_Void();
17790 return resultobj;
17791fail:
17792 return NULL;
17793}
17794
17795
17796SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17797 PyObject *resultobj = 0;
17798 wxDC *arg1 = (wxDC *) 0 ;
17799 int arg2 ;
17800 int arg3 ;
17801 wxColour result;
17802 void *argp1 = 0 ;
17803 int res1 = 0 ;
17804 int val2 ;
17805 int ecode2 = 0 ;
17806 int val3 ;
17807 int ecode3 = 0 ;
17808 PyObject * obj0 = 0 ;
17809 PyObject * obj1 = 0 ;
17810 PyObject * obj2 = 0 ;
17811 char * kwnames[] = {
17812 (char *) "self",(char *) "x",(char *) "y", NULL
17813 };
17814
17815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17817 if (!SWIG_IsOK(res1)) {
17818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17819 }
17820 arg1 = reinterpret_cast< wxDC * >(argp1);
17821 ecode2 = SWIG_AsVal_int(obj1, &val2);
17822 if (!SWIG_IsOK(ecode2)) {
17823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17824 }
17825 arg2 = static_cast< int >(val2);
17826 ecode3 = SWIG_AsVal_int(obj2, &val3);
17827 if (!SWIG_IsOK(ecode3)) {
17828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17829 }
17830 arg3 = static_cast< int >(val3);
17831 {
17832 PyThreadState* __tstate = wxPyBeginAllowThreads();
17833 result = wxDC_GetPixel(arg1,arg2,arg3);
17834 wxPyEndAllowThreads(__tstate);
17835 if (PyErr_Occurred()) SWIG_fail;
17836 }
17837 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17838 return resultobj;
17839fail:
17840 return NULL;
17841}
17842
17843
17844SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17845 PyObject *resultobj = 0;
17846 wxDC *arg1 = (wxDC *) 0 ;
17847 wxPoint *arg2 = 0 ;
17848 wxColour result;
17849 void *argp1 = 0 ;
17850 int res1 = 0 ;
17851 wxPoint temp2 ;
17852 PyObject * obj0 = 0 ;
17853 PyObject * obj1 = 0 ;
17854 char * kwnames[] = {
17855 (char *) "self",(char *) "pt", NULL
17856 };
17857
17858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17860 if (!SWIG_IsOK(res1)) {
17861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17862 }
17863 arg1 = reinterpret_cast< wxDC * >(argp1);
17864 {
17865 arg2 = &temp2;
17866 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17867 }
17868 {
17869 PyThreadState* __tstate = wxPyBeginAllowThreads();
17870 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17871 wxPyEndAllowThreads(__tstate);
17872 if (PyErr_Occurred()) SWIG_fail;
17873 }
17874 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17875 return resultobj;
17876fail:
17877 return NULL;
17878}
17879
17880
17881SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17882 PyObject *resultobj = 0;
17883 wxDC *arg1 = (wxDC *) 0 ;
17884 int arg2 ;
17885 int arg3 ;
17886 int arg4 ;
17887 int arg5 ;
17888 void *argp1 = 0 ;
17889 int res1 = 0 ;
17890 int val2 ;
17891 int ecode2 = 0 ;
17892 int val3 ;
17893 int ecode3 = 0 ;
17894 int val4 ;
17895 int ecode4 = 0 ;
17896 int val5 ;
17897 int ecode5 = 0 ;
17898 PyObject * obj0 = 0 ;
17899 PyObject * obj1 = 0 ;
17900 PyObject * obj2 = 0 ;
17901 PyObject * obj3 = 0 ;
17902 PyObject * obj4 = 0 ;
17903 char * kwnames[] = {
17904 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17905 };
17906
17907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17909 if (!SWIG_IsOK(res1)) {
17910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17911 }
17912 arg1 = reinterpret_cast< wxDC * >(argp1);
17913 ecode2 = SWIG_AsVal_int(obj1, &val2);
17914 if (!SWIG_IsOK(ecode2)) {
17915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17916 }
17917 arg2 = static_cast< int >(val2);
17918 ecode3 = SWIG_AsVal_int(obj2, &val3);
17919 if (!SWIG_IsOK(ecode3)) {
17920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17921 }
17922 arg3 = static_cast< int >(val3);
17923 ecode4 = SWIG_AsVal_int(obj3, &val4);
17924 if (!SWIG_IsOK(ecode4)) {
17925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17926 }
17927 arg4 = static_cast< int >(val4);
17928 ecode5 = SWIG_AsVal_int(obj4, &val5);
17929 if (!SWIG_IsOK(ecode5)) {
17930 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17931 }
17932 arg5 = static_cast< int >(val5);
17933 {
17934 PyThreadState* __tstate = wxPyBeginAllowThreads();
17935 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17936 wxPyEndAllowThreads(__tstate);
17937 if (PyErr_Occurred()) SWIG_fail;
17938 }
17939 resultobj = SWIG_Py_Void();
17940 return resultobj;
17941fail:
17942 return NULL;
17943}
17944
17945
17946SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17947 PyObject *resultobj = 0;
17948 wxDC *arg1 = (wxDC *) 0 ;
17949 wxPoint *arg2 = 0 ;
17950 wxPoint *arg3 = 0 ;
17951 void *argp1 = 0 ;
17952 int res1 = 0 ;
17953 wxPoint temp2 ;
17954 wxPoint temp3 ;
17955 PyObject * obj0 = 0 ;
17956 PyObject * obj1 = 0 ;
17957 PyObject * obj2 = 0 ;
17958 char * kwnames[] = {
17959 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17960 };
17961
17962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17964 if (!SWIG_IsOK(res1)) {
17965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17966 }
17967 arg1 = reinterpret_cast< wxDC * >(argp1);
17968 {
17969 arg2 = &temp2;
17970 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17971 }
17972 {
17973 arg3 = &temp3;
17974 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17975 }
17976 {
17977 PyThreadState* __tstate = wxPyBeginAllowThreads();
17978 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17979 wxPyEndAllowThreads(__tstate);
17980 if (PyErr_Occurred()) SWIG_fail;
17981 }
17982 resultobj = SWIG_Py_Void();
17983 return resultobj;
17984fail:
17985 return NULL;
17986}
17987
17988
17989SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17990 PyObject *resultobj = 0;
17991 wxDC *arg1 = (wxDC *) 0 ;
17992 int arg2 ;
17993 int arg3 ;
17994 void *argp1 = 0 ;
17995 int res1 = 0 ;
17996 int val2 ;
17997 int ecode2 = 0 ;
17998 int val3 ;
17999 int ecode3 = 0 ;
18000 PyObject * obj0 = 0 ;
18001 PyObject * obj1 = 0 ;
18002 PyObject * obj2 = 0 ;
18003 char * kwnames[] = {
18004 (char *) "self",(char *) "x",(char *) "y", NULL
18005 };
18006
18007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18009 if (!SWIG_IsOK(res1)) {
18010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18011 }
18012 arg1 = reinterpret_cast< wxDC * >(argp1);
18013 ecode2 = SWIG_AsVal_int(obj1, &val2);
18014 if (!SWIG_IsOK(ecode2)) {
18015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18016 }
18017 arg2 = static_cast< int >(val2);
18018 ecode3 = SWIG_AsVal_int(obj2, &val3);
18019 if (!SWIG_IsOK(ecode3)) {
18020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18021 }
18022 arg3 = static_cast< int >(val3);
18023 {
18024 PyThreadState* __tstate = wxPyBeginAllowThreads();
18025 (arg1)->CrossHair(arg2,arg3);
18026 wxPyEndAllowThreads(__tstate);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 }
18029 resultobj = SWIG_Py_Void();
18030 return resultobj;
18031fail:
18032 return NULL;
18033}
18034
18035
18036SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18037 PyObject *resultobj = 0;
18038 wxDC *arg1 = (wxDC *) 0 ;
18039 wxPoint *arg2 = 0 ;
18040 void *argp1 = 0 ;
18041 int res1 = 0 ;
18042 wxPoint temp2 ;
18043 PyObject * obj0 = 0 ;
18044 PyObject * obj1 = 0 ;
18045 char * kwnames[] = {
18046 (char *) "self",(char *) "pt", NULL
18047 };
18048
18049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18051 if (!SWIG_IsOK(res1)) {
18052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18053 }
18054 arg1 = reinterpret_cast< wxDC * >(argp1);
18055 {
18056 arg2 = &temp2;
18057 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18058 }
18059 {
18060 PyThreadState* __tstate = wxPyBeginAllowThreads();
18061 (arg1)->CrossHair((wxPoint const &)*arg2);
18062 wxPyEndAllowThreads(__tstate);
18063 if (PyErr_Occurred()) SWIG_fail;
18064 }
18065 resultobj = SWIG_Py_Void();
18066 return resultobj;
18067fail:
18068 return NULL;
18069}
18070
18071
18072SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18073 PyObject *resultobj = 0;
18074 wxDC *arg1 = (wxDC *) 0 ;
18075 int arg2 ;
18076 int arg3 ;
18077 int arg4 ;
18078 int arg5 ;
18079 int arg6 ;
18080 int arg7 ;
18081 void *argp1 = 0 ;
18082 int res1 = 0 ;
18083 int val2 ;
18084 int ecode2 = 0 ;
18085 int val3 ;
18086 int ecode3 = 0 ;
18087 int val4 ;
18088 int ecode4 = 0 ;
18089 int val5 ;
18090 int ecode5 = 0 ;
18091 int val6 ;
18092 int ecode6 = 0 ;
18093 int val7 ;
18094 int ecode7 = 0 ;
18095 PyObject * obj0 = 0 ;
18096 PyObject * obj1 = 0 ;
18097 PyObject * obj2 = 0 ;
18098 PyObject * obj3 = 0 ;
18099 PyObject * obj4 = 0 ;
18100 PyObject * obj5 = 0 ;
18101 PyObject * obj6 = 0 ;
18102 char * kwnames[] = {
18103 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18104 };
18105
18106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18108 if (!SWIG_IsOK(res1)) {
18109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18110 }
18111 arg1 = reinterpret_cast< wxDC * >(argp1);
18112 ecode2 = SWIG_AsVal_int(obj1, &val2);
18113 if (!SWIG_IsOK(ecode2)) {
18114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18115 }
18116 arg2 = static_cast< int >(val2);
18117 ecode3 = SWIG_AsVal_int(obj2, &val3);
18118 if (!SWIG_IsOK(ecode3)) {
18119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18120 }
18121 arg3 = static_cast< int >(val3);
18122 ecode4 = SWIG_AsVal_int(obj3, &val4);
18123 if (!SWIG_IsOK(ecode4)) {
18124 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18125 }
18126 arg4 = static_cast< int >(val4);
18127 ecode5 = SWIG_AsVal_int(obj4, &val5);
18128 if (!SWIG_IsOK(ecode5)) {
18129 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18130 }
18131 arg5 = static_cast< int >(val5);
18132 ecode6 = SWIG_AsVal_int(obj5, &val6);
18133 if (!SWIG_IsOK(ecode6)) {
18134 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18135 }
18136 arg6 = static_cast< int >(val6);
18137 ecode7 = SWIG_AsVal_int(obj6, &val7);
18138 if (!SWIG_IsOK(ecode7)) {
18139 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18140 }
18141 arg7 = static_cast< int >(val7);
18142 {
18143 PyThreadState* __tstate = wxPyBeginAllowThreads();
18144 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18145 wxPyEndAllowThreads(__tstate);
18146 if (PyErr_Occurred()) SWIG_fail;
18147 }
18148 resultobj = SWIG_Py_Void();
18149 return resultobj;
18150fail:
18151 return NULL;
18152}
18153
18154
18155SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18156 PyObject *resultobj = 0;
18157 wxDC *arg1 = (wxDC *) 0 ;
18158 wxPoint *arg2 = 0 ;
18159 wxPoint *arg3 = 0 ;
18160 wxPoint *arg4 = 0 ;
18161 void *argp1 = 0 ;
18162 int res1 = 0 ;
18163 wxPoint temp2 ;
18164 wxPoint temp3 ;
18165 wxPoint temp4 ;
18166 PyObject * obj0 = 0 ;
18167 PyObject * obj1 = 0 ;
18168 PyObject * obj2 = 0 ;
18169 PyObject * obj3 = 0 ;
18170 char * kwnames[] = {
18171 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18172 };
18173
18174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18176 if (!SWIG_IsOK(res1)) {
18177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18178 }
18179 arg1 = reinterpret_cast< wxDC * >(argp1);
18180 {
18181 arg2 = &temp2;
18182 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18183 }
18184 {
18185 arg3 = &temp3;
18186 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18187 }
18188 {
18189 arg4 = &temp4;
18190 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18191 }
18192 {
18193 PyThreadState* __tstate = wxPyBeginAllowThreads();
18194 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18195 wxPyEndAllowThreads(__tstate);
18196 if (PyErr_Occurred()) SWIG_fail;
18197 }
18198 resultobj = SWIG_Py_Void();
18199 return resultobj;
18200fail:
18201 return NULL;
18202}
18203
18204
18205SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18206 PyObject *resultobj = 0;
18207 wxDC *arg1 = (wxDC *) 0 ;
18208 int arg2 ;
18209 int arg3 ;
18210 int arg4 ;
18211 int arg5 ;
18212 void *argp1 = 0 ;
18213 int res1 = 0 ;
18214 int val2 ;
18215 int ecode2 = 0 ;
18216 int val3 ;
18217 int ecode3 = 0 ;
18218 int val4 ;
18219 int ecode4 = 0 ;
18220 int val5 ;
18221 int ecode5 = 0 ;
18222 PyObject * obj0 = 0 ;
18223 PyObject * obj1 = 0 ;
18224 PyObject * obj2 = 0 ;
18225 PyObject * obj3 = 0 ;
18226 PyObject * obj4 = 0 ;
18227 char * kwnames[] = {
18228 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18229 };
18230
18231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18233 if (!SWIG_IsOK(res1)) {
18234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18235 }
18236 arg1 = reinterpret_cast< wxDC * >(argp1);
18237 ecode2 = SWIG_AsVal_int(obj1, &val2);
18238 if (!SWIG_IsOK(ecode2)) {
18239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18240 }
18241 arg2 = static_cast< int >(val2);
18242 ecode3 = SWIG_AsVal_int(obj2, &val3);
18243 if (!SWIG_IsOK(ecode3)) {
18244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18245 }
18246 arg3 = static_cast< int >(val3);
18247 ecode4 = SWIG_AsVal_int(obj3, &val4);
18248 if (!SWIG_IsOK(ecode4)) {
18249 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18250 }
18251 arg4 = static_cast< int >(val4);
18252 ecode5 = SWIG_AsVal_int(obj4, &val5);
18253 if (!SWIG_IsOK(ecode5)) {
18254 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18255 }
18256 arg5 = static_cast< int >(val5);
18257 {
18258 PyThreadState* __tstate = wxPyBeginAllowThreads();
18259 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18260 wxPyEndAllowThreads(__tstate);
18261 if (PyErr_Occurred()) SWIG_fail;
18262 }
18263 resultobj = SWIG_Py_Void();
18264 return resultobj;
18265fail:
18266 return NULL;
18267}
18268
18269
18270SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18271 PyObject *resultobj = 0;
18272 wxDC *arg1 = (wxDC *) 0 ;
18273 wxRect *arg2 = 0 ;
18274 void *argp1 = 0 ;
18275 int res1 = 0 ;
18276 wxRect temp2 ;
18277 PyObject * obj0 = 0 ;
18278 PyObject * obj1 = 0 ;
18279 char * kwnames[] = {
18280 (char *) "self",(char *) "rect", NULL
18281 };
18282
18283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18285 if (!SWIG_IsOK(res1)) {
18286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18287 }
18288 arg1 = reinterpret_cast< wxDC * >(argp1);
18289 {
18290 arg2 = &temp2;
18291 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18292 }
18293 {
18294 PyThreadState* __tstate = wxPyBeginAllowThreads();
18295 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18296 wxPyEndAllowThreads(__tstate);
18297 if (PyErr_Occurred()) SWIG_fail;
18298 }
18299 resultobj = SWIG_Py_Void();
18300 return resultobj;
18301fail:
18302 return NULL;
18303}
18304
18305
18306SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18307 PyObject *resultobj = 0;
18308 wxDC *arg1 = (wxDC *) 0 ;
18309 int arg2 ;
18310 int arg3 ;
18311 int arg4 ;
18312 int arg5 ;
18313 double arg6 ;
18314 double arg7 ;
18315 void *argp1 = 0 ;
18316 int res1 = 0 ;
18317 int val2 ;
18318 int ecode2 = 0 ;
18319 int val3 ;
18320 int ecode3 = 0 ;
18321 int val4 ;
18322 int ecode4 = 0 ;
18323 int val5 ;
18324 int ecode5 = 0 ;
18325 double val6 ;
18326 int ecode6 = 0 ;
18327 double val7 ;
18328 int ecode7 = 0 ;
18329 PyObject * obj0 = 0 ;
18330 PyObject * obj1 = 0 ;
18331 PyObject * obj2 = 0 ;
18332 PyObject * obj3 = 0 ;
18333 PyObject * obj4 = 0 ;
18334 PyObject * obj5 = 0 ;
18335 PyObject * obj6 = 0 ;
18336 char * kwnames[] = {
18337 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18338 };
18339
18340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18342 if (!SWIG_IsOK(res1)) {
18343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18344 }
18345 arg1 = reinterpret_cast< wxDC * >(argp1);
18346 ecode2 = SWIG_AsVal_int(obj1, &val2);
18347 if (!SWIG_IsOK(ecode2)) {
18348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18349 }
18350 arg2 = static_cast< int >(val2);
18351 ecode3 = SWIG_AsVal_int(obj2, &val3);
18352 if (!SWIG_IsOK(ecode3)) {
18353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18354 }
18355 arg3 = static_cast< int >(val3);
18356 ecode4 = SWIG_AsVal_int(obj3, &val4);
18357 if (!SWIG_IsOK(ecode4)) {
18358 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18359 }
18360 arg4 = static_cast< int >(val4);
18361 ecode5 = SWIG_AsVal_int(obj4, &val5);
18362 if (!SWIG_IsOK(ecode5)) {
18363 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18364 }
18365 arg5 = static_cast< int >(val5);
18366 ecode6 = SWIG_AsVal_double(obj5, &val6);
18367 if (!SWIG_IsOK(ecode6)) {
18368 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18369 }
18370 arg6 = static_cast< double >(val6);
18371 ecode7 = SWIG_AsVal_double(obj6, &val7);
18372 if (!SWIG_IsOK(ecode7)) {
18373 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18374 }
18375 arg7 = static_cast< double >(val7);
18376 {
18377 PyThreadState* __tstate = wxPyBeginAllowThreads();
18378 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18379 wxPyEndAllowThreads(__tstate);
18380 if (PyErr_Occurred()) SWIG_fail;
18381 }
18382 resultobj = SWIG_Py_Void();
18383 return resultobj;
18384fail:
18385 return NULL;
18386}
18387
18388
18389SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18390 PyObject *resultobj = 0;
18391 wxDC *arg1 = (wxDC *) 0 ;
18392 wxPoint *arg2 = 0 ;
18393 wxSize *arg3 = 0 ;
18394 double arg4 ;
18395 double arg5 ;
18396 void *argp1 = 0 ;
18397 int res1 = 0 ;
18398 wxPoint temp2 ;
18399 wxSize temp3 ;
18400 double val4 ;
18401 int ecode4 = 0 ;
18402 double 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 *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18411 };
18412
18413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",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_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18417 }
18418 arg1 = reinterpret_cast< wxDC * >(argp1);
18419 {
18420 arg2 = &temp2;
18421 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18422 }
18423 {
18424 arg3 = &temp3;
18425 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18426 }
18427 ecode4 = SWIG_AsVal_double(obj3, &val4);
18428 if (!SWIG_IsOK(ecode4)) {
18429 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18430 }
18431 arg4 = static_cast< double >(val4);
18432 ecode5 = SWIG_AsVal_double(obj4, &val5);
18433 if (!SWIG_IsOK(ecode5)) {
18434 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18435 }
18436 arg5 = static_cast< double >(val5);
18437 {
18438 PyThreadState* __tstate = wxPyBeginAllowThreads();
18439 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18440 wxPyEndAllowThreads(__tstate);
18441 if (PyErr_Occurred()) SWIG_fail;
18442 }
18443 resultobj = SWIG_Py_Void();
18444 return resultobj;
18445fail:
18446 return NULL;
18447}
18448
18449
18450SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18451 PyObject *resultobj = 0;
18452 wxDC *arg1 = (wxDC *) 0 ;
18453 int arg2 ;
18454 int arg3 ;
18455 void *argp1 = 0 ;
18456 int res1 = 0 ;
18457 int val2 ;
18458 int ecode2 = 0 ;
18459 int val3 ;
18460 int ecode3 = 0 ;
18461 PyObject * obj0 = 0 ;
18462 PyObject * obj1 = 0 ;
18463 PyObject * obj2 = 0 ;
18464 char * kwnames[] = {
18465 (char *) "self",(char *) "x",(char *) "y", NULL
18466 };
18467
18468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18470 if (!SWIG_IsOK(res1)) {
18471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18472 }
18473 arg1 = reinterpret_cast< wxDC * >(argp1);
18474 ecode2 = SWIG_AsVal_int(obj1, &val2);
18475 if (!SWIG_IsOK(ecode2)) {
18476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18477 }
18478 arg2 = static_cast< int >(val2);
18479 ecode3 = SWIG_AsVal_int(obj2, &val3);
18480 if (!SWIG_IsOK(ecode3)) {
18481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18482 }
18483 arg3 = static_cast< int >(val3);
18484 {
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 (arg1)->DrawPoint(arg2,arg3);
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_Py_Void();
18491 return resultobj;
18492fail:
18493 return NULL;
18494}
18495
18496
18497SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18498 PyObject *resultobj = 0;
18499 wxDC *arg1 = (wxDC *) 0 ;
18500 wxPoint *arg2 = 0 ;
18501 void *argp1 = 0 ;
18502 int res1 = 0 ;
18503 wxPoint temp2 ;
18504 PyObject * obj0 = 0 ;
18505 PyObject * obj1 = 0 ;
18506 char * kwnames[] = {
18507 (char *) "self",(char *) "pt", NULL
18508 };
18509
18510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18512 if (!SWIG_IsOK(res1)) {
18513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18514 }
18515 arg1 = reinterpret_cast< wxDC * >(argp1);
18516 {
18517 arg2 = &temp2;
18518 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18519 }
18520 {
18521 PyThreadState* __tstate = wxPyBeginAllowThreads();
18522 (arg1)->DrawPoint((wxPoint const &)*arg2);
18523 wxPyEndAllowThreads(__tstate);
18524 if (PyErr_Occurred()) SWIG_fail;
18525 }
18526 resultobj = SWIG_Py_Void();
18527 return resultobj;
18528fail:
18529 return NULL;
18530}
18531
18532
18533SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18534 PyObject *resultobj = 0;
18535 wxDC *arg1 = (wxDC *) 0 ;
18536 int arg2 ;
18537 int arg3 ;
18538 int arg4 ;
18539 int arg5 ;
18540 void *argp1 = 0 ;
18541 int res1 = 0 ;
18542 int val2 ;
18543 int ecode2 = 0 ;
18544 int val3 ;
18545 int ecode3 = 0 ;
18546 int val4 ;
18547 int ecode4 = 0 ;
18548 int val5 ;
18549 int ecode5 = 0 ;
18550 PyObject * obj0 = 0 ;
18551 PyObject * obj1 = 0 ;
18552 PyObject * obj2 = 0 ;
18553 PyObject * obj3 = 0 ;
18554 PyObject * obj4 = 0 ;
18555 char * kwnames[] = {
18556 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18557 };
18558
18559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18561 if (!SWIG_IsOK(res1)) {
18562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18563 }
18564 arg1 = reinterpret_cast< wxDC * >(argp1);
18565 ecode2 = SWIG_AsVal_int(obj1, &val2);
18566 if (!SWIG_IsOK(ecode2)) {
18567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18568 }
18569 arg2 = static_cast< int >(val2);
18570 ecode3 = SWIG_AsVal_int(obj2, &val3);
18571 if (!SWIG_IsOK(ecode3)) {
18572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18573 }
18574 arg3 = static_cast< int >(val3);
18575 ecode4 = SWIG_AsVal_int(obj3, &val4);
18576 if (!SWIG_IsOK(ecode4)) {
18577 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18578 }
18579 arg4 = static_cast< int >(val4);
18580 ecode5 = SWIG_AsVal_int(obj4, &val5);
18581 if (!SWIG_IsOK(ecode5)) {
18582 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18583 }
18584 arg5 = static_cast< int >(val5);
18585 {
18586 PyThreadState* __tstate = wxPyBeginAllowThreads();
18587 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18588 wxPyEndAllowThreads(__tstate);
18589 if (PyErr_Occurred()) SWIG_fail;
18590 }
18591 resultobj = SWIG_Py_Void();
18592 return resultobj;
18593fail:
18594 return NULL;
18595}
18596
18597
18598SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18599 PyObject *resultobj = 0;
18600 wxDC *arg1 = (wxDC *) 0 ;
18601 wxRect *arg2 = 0 ;
18602 void *argp1 = 0 ;
18603 int res1 = 0 ;
18604 wxRect temp2 ;
18605 PyObject * obj0 = 0 ;
18606 PyObject * obj1 = 0 ;
18607 char * kwnames[] = {
18608 (char *) "self",(char *) "rect", NULL
18609 };
18610
18611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18613 if (!SWIG_IsOK(res1)) {
18614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18615 }
18616 arg1 = reinterpret_cast< wxDC * >(argp1);
18617 {
18618 arg2 = &temp2;
18619 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18620 }
18621 {
18622 PyThreadState* __tstate = wxPyBeginAllowThreads();
18623 (arg1)->DrawRectangle((wxRect const &)*arg2);
18624 wxPyEndAllowThreads(__tstate);
18625 if (PyErr_Occurred()) SWIG_fail;
18626 }
18627 resultobj = SWIG_Py_Void();
18628 return resultobj;
18629fail:
18630 return NULL;
18631}
18632
18633
18634SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18635 PyObject *resultobj = 0;
18636 wxDC *arg1 = (wxDC *) 0 ;
18637 wxPoint *arg2 = 0 ;
18638 wxSize *arg3 = 0 ;
18639 void *argp1 = 0 ;
18640 int res1 = 0 ;
18641 wxPoint temp2 ;
18642 wxSize temp3 ;
18643 PyObject * obj0 = 0 ;
18644 PyObject * obj1 = 0 ;
18645 PyObject * obj2 = 0 ;
18646 char * kwnames[] = {
18647 (char *) "self",(char *) "pt",(char *) "sz", NULL
18648 };
18649
18650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18652 if (!SWIG_IsOK(res1)) {
18653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18654 }
18655 arg1 = reinterpret_cast< wxDC * >(argp1);
18656 {
18657 arg2 = &temp2;
18658 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18659 }
18660 {
18661 arg3 = &temp3;
18662 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18663 }
18664 {
18665 PyThreadState* __tstate = wxPyBeginAllowThreads();
18666 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18667 wxPyEndAllowThreads(__tstate);
18668 if (PyErr_Occurred()) SWIG_fail;
18669 }
18670 resultobj = SWIG_Py_Void();
18671 return resultobj;
18672fail:
18673 return NULL;
18674}
18675
18676
18677SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18678 PyObject *resultobj = 0;
18679 wxDC *arg1 = (wxDC *) 0 ;
18680 int arg2 ;
18681 int arg3 ;
18682 int arg4 ;
18683 int arg5 ;
18684 double arg6 ;
18685 void *argp1 = 0 ;
18686 int res1 = 0 ;
18687 int val2 ;
18688 int ecode2 = 0 ;
18689 int val3 ;
18690 int ecode3 = 0 ;
18691 int val4 ;
18692 int ecode4 = 0 ;
18693 int val5 ;
18694 int ecode5 = 0 ;
18695 double val6 ;
18696 int ecode6 = 0 ;
18697 PyObject * obj0 = 0 ;
18698 PyObject * obj1 = 0 ;
18699 PyObject * obj2 = 0 ;
18700 PyObject * obj3 = 0 ;
18701 PyObject * obj4 = 0 ;
18702 PyObject * obj5 = 0 ;
18703 char * kwnames[] = {
18704 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18705 };
18706
18707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18709 if (!SWIG_IsOK(res1)) {
18710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18711 }
18712 arg1 = reinterpret_cast< wxDC * >(argp1);
18713 ecode2 = SWIG_AsVal_int(obj1, &val2);
18714 if (!SWIG_IsOK(ecode2)) {
18715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18716 }
18717 arg2 = static_cast< int >(val2);
18718 ecode3 = SWIG_AsVal_int(obj2, &val3);
18719 if (!SWIG_IsOK(ecode3)) {
18720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18721 }
18722 arg3 = static_cast< int >(val3);
18723 ecode4 = SWIG_AsVal_int(obj3, &val4);
18724 if (!SWIG_IsOK(ecode4)) {
18725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18726 }
18727 arg4 = static_cast< int >(val4);
18728 ecode5 = SWIG_AsVal_int(obj4, &val5);
18729 if (!SWIG_IsOK(ecode5)) {
18730 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18731 }
18732 arg5 = static_cast< int >(val5);
18733 ecode6 = SWIG_AsVal_double(obj5, &val6);
18734 if (!SWIG_IsOK(ecode6)) {
18735 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18736 }
18737 arg6 = static_cast< double >(val6);
18738 {
18739 PyThreadState* __tstate = wxPyBeginAllowThreads();
18740 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18741 wxPyEndAllowThreads(__tstate);
18742 if (PyErr_Occurred()) SWIG_fail;
18743 }
18744 resultobj = SWIG_Py_Void();
18745 return resultobj;
18746fail:
18747 return NULL;
18748}
18749
18750
18751SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18752 PyObject *resultobj = 0;
18753 wxDC *arg1 = (wxDC *) 0 ;
18754 wxRect *arg2 = 0 ;
18755 double arg3 ;
18756 void *argp1 = 0 ;
18757 int res1 = 0 ;
18758 wxRect temp2 ;
18759 double val3 ;
18760 int ecode3 = 0 ;
18761 PyObject * obj0 = 0 ;
18762 PyObject * obj1 = 0 ;
18763 PyObject * obj2 = 0 ;
18764 char * kwnames[] = {
18765 (char *) "self",(char *) "r",(char *) "radius", NULL
18766 };
18767
18768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18770 if (!SWIG_IsOK(res1)) {
18771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18772 }
18773 arg1 = reinterpret_cast< wxDC * >(argp1);
18774 {
18775 arg2 = &temp2;
18776 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18777 }
18778 ecode3 = SWIG_AsVal_double(obj2, &val3);
18779 if (!SWIG_IsOK(ecode3)) {
18780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18781 }
18782 arg3 = static_cast< double >(val3);
18783 {
18784 PyThreadState* __tstate = wxPyBeginAllowThreads();
18785 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18786 wxPyEndAllowThreads(__tstate);
18787 if (PyErr_Occurred()) SWIG_fail;
18788 }
18789 resultobj = SWIG_Py_Void();
18790 return resultobj;
18791fail:
18792 return NULL;
18793}
18794
18795
18796SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18797 PyObject *resultobj = 0;
18798 wxDC *arg1 = (wxDC *) 0 ;
18799 wxPoint *arg2 = 0 ;
18800 wxSize *arg3 = 0 ;
18801 double arg4 ;
18802 void *argp1 = 0 ;
18803 int res1 = 0 ;
18804 wxPoint temp2 ;
18805 wxSize temp3 ;
18806 double val4 ;
18807 int ecode4 = 0 ;
18808 PyObject * obj0 = 0 ;
18809 PyObject * obj1 = 0 ;
18810 PyObject * obj2 = 0 ;
18811 PyObject * obj3 = 0 ;
18812 char * kwnames[] = {
18813 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18814 };
18815
18816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18818 if (!SWIG_IsOK(res1)) {
18819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18820 }
18821 arg1 = reinterpret_cast< wxDC * >(argp1);
18822 {
18823 arg2 = &temp2;
18824 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18825 }
18826 {
18827 arg3 = &temp3;
18828 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18829 }
18830 ecode4 = SWIG_AsVal_double(obj3, &val4);
18831 if (!SWIG_IsOK(ecode4)) {
18832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18833 }
18834 arg4 = static_cast< double >(val4);
18835 {
18836 PyThreadState* __tstate = wxPyBeginAllowThreads();
18837 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18838 wxPyEndAllowThreads(__tstate);
18839 if (PyErr_Occurred()) SWIG_fail;
18840 }
18841 resultobj = SWIG_Py_Void();
18842 return resultobj;
18843fail:
18844 return NULL;
18845}
18846
18847
18848SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18849 PyObject *resultobj = 0;
18850 wxDC *arg1 = (wxDC *) 0 ;
18851 int arg2 ;
18852 int arg3 ;
18853 int arg4 ;
18854 void *argp1 = 0 ;
18855 int res1 = 0 ;
18856 int val2 ;
18857 int ecode2 = 0 ;
18858 int val3 ;
18859 int ecode3 = 0 ;
18860 int val4 ;
18861 int ecode4 = 0 ;
18862 PyObject * obj0 = 0 ;
18863 PyObject * obj1 = 0 ;
18864 PyObject * obj2 = 0 ;
18865 PyObject * obj3 = 0 ;
18866 char * kwnames[] = {
18867 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18868 };
18869
18870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18872 if (!SWIG_IsOK(res1)) {
18873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18874 }
18875 arg1 = reinterpret_cast< wxDC * >(argp1);
18876 ecode2 = SWIG_AsVal_int(obj1, &val2);
18877 if (!SWIG_IsOK(ecode2)) {
18878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18879 }
18880 arg2 = static_cast< int >(val2);
18881 ecode3 = SWIG_AsVal_int(obj2, &val3);
18882 if (!SWIG_IsOK(ecode3)) {
18883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18884 }
18885 arg3 = static_cast< int >(val3);
18886 ecode4 = SWIG_AsVal_int(obj3, &val4);
18887 if (!SWIG_IsOK(ecode4)) {
18888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18889 }
18890 arg4 = static_cast< int >(val4);
18891 {
18892 PyThreadState* __tstate = wxPyBeginAllowThreads();
18893 (arg1)->DrawCircle(arg2,arg3,arg4);
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_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18905 PyObject *resultobj = 0;
18906 wxDC *arg1 = (wxDC *) 0 ;
18907 wxPoint *arg2 = 0 ;
18908 int arg3 ;
18909 void *argp1 = 0 ;
18910 int res1 = 0 ;
18911 wxPoint temp2 ;
18912 int val3 ;
18913 int ecode3 = 0 ;
18914 PyObject * obj0 = 0 ;
18915 PyObject * obj1 = 0 ;
18916 PyObject * obj2 = 0 ;
18917 char * kwnames[] = {
18918 (char *) "self",(char *) "pt",(char *) "radius", NULL
18919 };
18920
18921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18923 if (!SWIG_IsOK(res1)) {
18924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18925 }
18926 arg1 = reinterpret_cast< wxDC * >(argp1);
18927 {
18928 arg2 = &temp2;
18929 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18930 }
18931 ecode3 = SWIG_AsVal_int(obj2, &val3);
18932 if (!SWIG_IsOK(ecode3)) {
18933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18934 }
18935 arg3 = static_cast< int >(val3);
18936 {
18937 PyThreadState* __tstate = wxPyBeginAllowThreads();
18938 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18939 wxPyEndAllowThreads(__tstate);
18940 if (PyErr_Occurred()) SWIG_fail;
18941 }
18942 resultobj = SWIG_Py_Void();
18943 return resultobj;
18944fail:
18945 return NULL;
18946}
18947
18948
18949SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18950 PyObject *resultobj = 0;
18951 wxDC *arg1 = (wxDC *) 0 ;
18952 int arg2 ;
18953 int arg3 ;
18954 int arg4 ;
18955 int arg5 ;
18956 void *argp1 = 0 ;
18957 int res1 = 0 ;
18958 int val2 ;
18959 int ecode2 = 0 ;
18960 int val3 ;
18961 int ecode3 = 0 ;
18962 int val4 ;
18963 int ecode4 = 0 ;
18964 int val5 ;
18965 int ecode5 = 0 ;
18966 PyObject * obj0 = 0 ;
18967 PyObject * obj1 = 0 ;
18968 PyObject * obj2 = 0 ;
18969 PyObject * obj3 = 0 ;
18970 PyObject * obj4 = 0 ;
18971 char * kwnames[] = {
18972 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18973 };
18974
18975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18977 if (!SWIG_IsOK(res1)) {
18978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18979 }
18980 arg1 = reinterpret_cast< wxDC * >(argp1);
18981 ecode2 = SWIG_AsVal_int(obj1, &val2);
18982 if (!SWIG_IsOK(ecode2)) {
18983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18984 }
18985 arg2 = static_cast< int >(val2);
18986 ecode3 = SWIG_AsVal_int(obj2, &val3);
18987 if (!SWIG_IsOK(ecode3)) {
18988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18989 }
18990 arg3 = static_cast< int >(val3);
18991 ecode4 = SWIG_AsVal_int(obj3, &val4);
18992 if (!SWIG_IsOK(ecode4)) {
18993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18994 }
18995 arg4 = static_cast< int >(val4);
18996 ecode5 = SWIG_AsVal_int(obj4, &val5);
18997 if (!SWIG_IsOK(ecode5)) {
18998 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18999 }
19000 arg5 = static_cast< int >(val5);
19001 {
19002 PyThreadState* __tstate = wxPyBeginAllowThreads();
19003 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19004 wxPyEndAllowThreads(__tstate);
19005 if (PyErr_Occurred()) SWIG_fail;
19006 }
19007 resultobj = SWIG_Py_Void();
19008 return resultobj;
19009fail:
19010 return NULL;
19011}
19012
19013
19014SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19015 PyObject *resultobj = 0;
19016 wxDC *arg1 = (wxDC *) 0 ;
19017 wxRect *arg2 = 0 ;
19018 void *argp1 = 0 ;
19019 int res1 = 0 ;
19020 wxRect temp2 ;
19021 PyObject * obj0 = 0 ;
19022 PyObject * obj1 = 0 ;
19023 char * kwnames[] = {
19024 (char *) "self",(char *) "rect", NULL
19025 };
19026
19027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19029 if (!SWIG_IsOK(res1)) {
19030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19031 }
19032 arg1 = reinterpret_cast< wxDC * >(argp1);
19033 {
19034 arg2 = &temp2;
19035 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19036 }
19037 {
19038 PyThreadState* __tstate = wxPyBeginAllowThreads();
19039 (arg1)->DrawEllipse((wxRect const &)*arg2);
19040 wxPyEndAllowThreads(__tstate);
19041 if (PyErr_Occurred()) SWIG_fail;
19042 }
19043 resultobj = SWIG_Py_Void();
19044 return resultobj;
19045fail:
19046 return NULL;
19047}
19048
19049
19050SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19051 PyObject *resultobj = 0;
19052 wxDC *arg1 = (wxDC *) 0 ;
19053 wxPoint *arg2 = 0 ;
19054 wxSize *arg3 = 0 ;
19055 void *argp1 = 0 ;
19056 int res1 = 0 ;
19057 wxPoint temp2 ;
19058 wxSize temp3 ;
19059 PyObject * obj0 = 0 ;
19060 PyObject * obj1 = 0 ;
19061 PyObject * obj2 = 0 ;
19062 char * kwnames[] = {
19063 (char *) "self",(char *) "pt",(char *) "sz", NULL
19064 };
19065
19066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19068 if (!SWIG_IsOK(res1)) {
19069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19070 }
19071 arg1 = reinterpret_cast< wxDC * >(argp1);
19072 {
19073 arg2 = &temp2;
19074 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19075 }
19076 {
19077 arg3 = &temp3;
19078 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19079 }
19080 {
19081 PyThreadState* __tstate = wxPyBeginAllowThreads();
19082 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19083 wxPyEndAllowThreads(__tstate);
19084 if (PyErr_Occurred()) SWIG_fail;
19085 }
19086 resultobj = SWIG_Py_Void();
19087 return resultobj;
19088fail:
19089 return NULL;
19090}
19091
19092
19093SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19094 PyObject *resultobj = 0;
19095 wxDC *arg1 = (wxDC *) 0 ;
19096 wxIcon *arg2 = 0 ;
19097 int arg3 ;
19098 int arg4 ;
19099 void *argp1 = 0 ;
19100 int res1 = 0 ;
19101 void *argp2 = 0 ;
19102 int res2 = 0 ;
19103 int val3 ;
19104 int ecode3 = 0 ;
19105 int val4 ;
19106 int ecode4 = 0 ;
19107 PyObject * obj0 = 0 ;
19108 PyObject * obj1 = 0 ;
19109 PyObject * obj2 = 0 ;
19110 PyObject * obj3 = 0 ;
19111 char * kwnames[] = {
19112 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19113 };
19114
19115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19117 if (!SWIG_IsOK(res1)) {
19118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19119 }
19120 arg1 = reinterpret_cast< wxDC * >(argp1);
19121 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19122 if (!SWIG_IsOK(res2)) {
19123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19124 }
19125 if (!argp2) {
19126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19127 }
19128 arg2 = reinterpret_cast< wxIcon * >(argp2);
19129 ecode3 = SWIG_AsVal_int(obj2, &val3);
19130 if (!SWIG_IsOK(ecode3)) {
19131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19132 }
19133 arg3 = static_cast< int >(val3);
19134 ecode4 = SWIG_AsVal_int(obj3, &val4);
19135 if (!SWIG_IsOK(ecode4)) {
19136 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19137 }
19138 arg4 = static_cast< int >(val4);
19139 {
19140 PyThreadState* __tstate = wxPyBeginAllowThreads();
19141 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19142 wxPyEndAllowThreads(__tstate);
19143 if (PyErr_Occurred()) SWIG_fail;
19144 }
19145 resultobj = SWIG_Py_Void();
19146 return resultobj;
19147fail:
19148 return NULL;
19149}
19150
19151
19152SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19153 PyObject *resultobj = 0;
19154 wxDC *arg1 = (wxDC *) 0 ;
19155 wxIcon *arg2 = 0 ;
19156 wxPoint *arg3 = 0 ;
19157 void *argp1 = 0 ;
19158 int res1 = 0 ;
19159 void *argp2 = 0 ;
19160 int res2 = 0 ;
19161 wxPoint temp3 ;
19162 PyObject * obj0 = 0 ;
19163 PyObject * obj1 = 0 ;
19164 PyObject * obj2 = 0 ;
19165 char * kwnames[] = {
19166 (char *) "self",(char *) "icon",(char *) "pt", NULL
19167 };
19168
19169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19171 if (!SWIG_IsOK(res1)) {
19172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19173 }
19174 arg1 = reinterpret_cast< wxDC * >(argp1);
19175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19176 if (!SWIG_IsOK(res2)) {
19177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19178 }
19179 if (!argp2) {
19180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19181 }
19182 arg2 = reinterpret_cast< wxIcon * >(argp2);
19183 {
19184 arg3 = &temp3;
19185 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19186 }
19187 {
19188 PyThreadState* __tstate = wxPyBeginAllowThreads();
19189 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19190 wxPyEndAllowThreads(__tstate);
19191 if (PyErr_Occurred()) SWIG_fail;
19192 }
19193 resultobj = SWIG_Py_Void();
19194 return resultobj;
19195fail:
19196 return NULL;
19197}
19198
19199
19200SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19201 PyObject *resultobj = 0;
19202 wxDC *arg1 = (wxDC *) 0 ;
19203 wxBitmap *arg2 = 0 ;
19204 int arg3 ;
19205 int arg4 ;
19206 bool arg5 = (bool) false ;
19207 void *argp1 = 0 ;
19208 int res1 = 0 ;
19209 void *argp2 = 0 ;
19210 int res2 = 0 ;
19211 int val3 ;
19212 int ecode3 = 0 ;
19213 int val4 ;
19214 int ecode4 = 0 ;
19215 bool val5 ;
19216 int ecode5 = 0 ;
19217 PyObject * obj0 = 0 ;
19218 PyObject * obj1 = 0 ;
19219 PyObject * obj2 = 0 ;
19220 PyObject * obj3 = 0 ;
19221 PyObject * obj4 = 0 ;
19222 char * kwnames[] = {
19223 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19224 };
19225
19226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19228 if (!SWIG_IsOK(res1)) {
19229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19230 }
19231 arg1 = reinterpret_cast< wxDC * >(argp1);
19232 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19233 if (!SWIG_IsOK(res2)) {
19234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19235 }
19236 if (!argp2) {
19237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19238 }
19239 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19240 ecode3 = SWIG_AsVal_int(obj2, &val3);
19241 if (!SWIG_IsOK(ecode3)) {
19242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19243 }
19244 arg3 = static_cast< int >(val3);
19245 ecode4 = SWIG_AsVal_int(obj3, &val4);
19246 if (!SWIG_IsOK(ecode4)) {
19247 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19248 }
19249 arg4 = static_cast< int >(val4);
19250 if (obj4) {
19251 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19252 if (!SWIG_IsOK(ecode5)) {
19253 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19254 }
19255 arg5 = static_cast< bool >(val5);
19256 }
19257 {
19258 PyThreadState* __tstate = wxPyBeginAllowThreads();
19259 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19260 wxPyEndAllowThreads(__tstate);
19261 if (PyErr_Occurred()) SWIG_fail;
19262 }
19263 resultobj = SWIG_Py_Void();
19264 return resultobj;
19265fail:
19266 return NULL;
19267}
19268
19269
19270SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19271 PyObject *resultobj = 0;
19272 wxDC *arg1 = (wxDC *) 0 ;
19273 wxBitmap *arg2 = 0 ;
19274 wxPoint *arg3 = 0 ;
19275 bool arg4 = (bool) false ;
19276 void *argp1 = 0 ;
19277 int res1 = 0 ;
19278 void *argp2 = 0 ;
19279 int res2 = 0 ;
19280 wxPoint temp3 ;
19281 bool val4 ;
19282 int ecode4 = 0 ;
19283 PyObject * obj0 = 0 ;
19284 PyObject * obj1 = 0 ;
19285 PyObject * obj2 = 0 ;
19286 PyObject * obj3 = 0 ;
19287 char * kwnames[] = {
19288 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19289 };
19290
19291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19293 if (!SWIG_IsOK(res1)) {
19294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19295 }
19296 arg1 = reinterpret_cast< wxDC * >(argp1);
19297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19298 if (!SWIG_IsOK(res2)) {
19299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19300 }
19301 if (!argp2) {
19302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19303 }
19304 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19305 {
19306 arg3 = &temp3;
19307 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19308 }
19309 if (obj3) {
19310 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19311 if (!SWIG_IsOK(ecode4)) {
19312 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19313 }
19314 arg4 = static_cast< bool >(val4);
19315 }
19316 {
19317 PyThreadState* __tstate = wxPyBeginAllowThreads();
19318 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19319 wxPyEndAllowThreads(__tstate);
19320 if (PyErr_Occurred()) SWIG_fail;
19321 }
19322 resultobj = SWIG_Py_Void();
19323 return resultobj;
19324fail:
19325 return NULL;
19326}
19327
19328
19329SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19330 PyObject *resultobj = 0;
19331 wxDC *arg1 = (wxDC *) 0 ;
19332 wxString *arg2 = 0 ;
19333 int arg3 ;
19334 int arg4 ;
19335 void *argp1 = 0 ;
19336 int res1 = 0 ;
19337 bool temp2 = false ;
19338 int val3 ;
19339 int ecode3 = 0 ;
19340 int val4 ;
19341 int ecode4 = 0 ;
19342 PyObject * obj0 = 0 ;
19343 PyObject * obj1 = 0 ;
19344 PyObject * obj2 = 0 ;
19345 PyObject * obj3 = 0 ;
19346 char * kwnames[] = {
19347 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19348 };
19349
19350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19352 if (!SWIG_IsOK(res1)) {
19353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19354 }
19355 arg1 = reinterpret_cast< wxDC * >(argp1);
19356 {
19357 arg2 = wxString_in_helper(obj1);
19358 if (arg2 == NULL) SWIG_fail;
19359 temp2 = true;
19360 }
19361 ecode3 = SWIG_AsVal_int(obj2, &val3);
19362 if (!SWIG_IsOK(ecode3)) {
19363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19364 }
19365 arg3 = static_cast< int >(val3);
19366 ecode4 = SWIG_AsVal_int(obj3, &val4);
19367 if (!SWIG_IsOK(ecode4)) {
19368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19369 }
19370 arg4 = static_cast< int >(val4);
19371 {
19372 PyThreadState* __tstate = wxPyBeginAllowThreads();
19373 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19374 wxPyEndAllowThreads(__tstate);
19375 if (PyErr_Occurred()) SWIG_fail;
19376 }
19377 resultobj = SWIG_Py_Void();
19378 {
19379 if (temp2)
19380 delete arg2;
19381 }
19382 return resultobj;
19383fail:
19384 {
19385 if (temp2)
19386 delete arg2;
19387 }
19388 return NULL;
19389}
19390
19391
19392SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19393 PyObject *resultobj = 0;
19394 wxDC *arg1 = (wxDC *) 0 ;
19395 wxString *arg2 = 0 ;
19396 wxPoint *arg3 = 0 ;
19397 void *argp1 = 0 ;
19398 int res1 = 0 ;
19399 bool temp2 = false ;
19400 wxPoint temp3 ;
19401 PyObject * obj0 = 0 ;
19402 PyObject * obj1 = 0 ;
19403 PyObject * obj2 = 0 ;
19404 char * kwnames[] = {
19405 (char *) "self",(char *) "text",(char *) "pt", NULL
19406 };
19407
19408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19410 if (!SWIG_IsOK(res1)) {
19411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19412 }
19413 arg1 = reinterpret_cast< wxDC * >(argp1);
19414 {
19415 arg2 = wxString_in_helper(obj1);
19416 if (arg2 == NULL) SWIG_fail;
19417 temp2 = true;
19418 }
19419 {
19420 arg3 = &temp3;
19421 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19422 }
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 resultobj = SWIG_Py_Void();
19430 {
19431 if (temp2)
19432 delete arg2;
19433 }
19434 return resultobj;
19435fail:
19436 {
19437 if (temp2)
19438 delete arg2;
19439 }
19440 return NULL;
19441}
19442
19443
19444SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19445 PyObject *resultobj = 0;
19446 wxDC *arg1 = (wxDC *) 0 ;
19447 wxString *arg2 = 0 ;
19448 int arg3 ;
19449 int arg4 ;
19450 double arg5 ;
19451 void *argp1 = 0 ;
19452 int res1 = 0 ;
19453 bool temp2 = false ;
19454 int val3 ;
19455 int ecode3 = 0 ;
19456 int val4 ;
19457 int ecode4 = 0 ;
19458 double val5 ;
19459 int ecode5 = 0 ;
19460 PyObject * obj0 = 0 ;
19461 PyObject * obj1 = 0 ;
19462 PyObject * obj2 = 0 ;
19463 PyObject * obj3 = 0 ;
19464 PyObject * obj4 = 0 ;
19465 char * kwnames[] = {
19466 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19467 };
19468
19469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19471 if (!SWIG_IsOK(res1)) {
19472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19473 }
19474 arg1 = reinterpret_cast< wxDC * >(argp1);
19475 {
19476 arg2 = wxString_in_helper(obj1);
19477 if (arg2 == NULL) SWIG_fail;
19478 temp2 = true;
19479 }
19480 ecode3 = SWIG_AsVal_int(obj2, &val3);
19481 if (!SWIG_IsOK(ecode3)) {
19482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19483 }
19484 arg3 = static_cast< int >(val3);
19485 ecode4 = SWIG_AsVal_int(obj3, &val4);
19486 if (!SWIG_IsOK(ecode4)) {
19487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19488 }
19489 arg4 = static_cast< int >(val4);
19490 ecode5 = SWIG_AsVal_double(obj4, &val5);
19491 if (!SWIG_IsOK(ecode5)) {
19492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19493 }
19494 arg5 = static_cast< double >(val5);
19495 {
19496 PyThreadState* __tstate = wxPyBeginAllowThreads();
19497 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19498 wxPyEndAllowThreads(__tstate);
19499 if (PyErr_Occurred()) SWIG_fail;
19500 }
19501 resultobj = SWIG_Py_Void();
19502 {
19503 if (temp2)
19504 delete arg2;
19505 }
19506 return resultobj;
19507fail:
19508 {
19509 if (temp2)
19510 delete arg2;
19511 }
19512 return NULL;
19513}
19514
19515
19516SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19517 PyObject *resultobj = 0;
19518 wxDC *arg1 = (wxDC *) 0 ;
19519 wxString *arg2 = 0 ;
19520 wxPoint *arg3 = 0 ;
19521 double arg4 ;
19522 void *argp1 = 0 ;
19523 int res1 = 0 ;
19524 bool temp2 = false ;
19525 wxPoint temp3 ;
19526 double val4 ;
19527 int ecode4 = 0 ;
19528 PyObject * obj0 = 0 ;
19529 PyObject * obj1 = 0 ;
19530 PyObject * obj2 = 0 ;
19531 PyObject * obj3 = 0 ;
19532 char * kwnames[] = {
19533 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19534 };
19535
19536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19538 if (!SWIG_IsOK(res1)) {
19539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19540 }
19541 arg1 = reinterpret_cast< wxDC * >(argp1);
19542 {
19543 arg2 = wxString_in_helper(obj1);
19544 if (arg2 == NULL) SWIG_fail;
19545 temp2 = true;
19546 }
19547 {
19548 arg3 = &temp3;
19549 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19550 }
19551 ecode4 = SWIG_AsVal_double(obj3, &val4);
19552 if (!SWIG_IsOK(ecode4)) {
19553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19554 }
19555 arg4 = static_cast< double >(val4);
19556 {
19557 PyThreadState* __tstate = wxPyBeginAllowThreads();
19558 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19559 wxPyEndAllowThreads(__tstate);
19560 if (PyErr_Occurred()) SWIG_fail;
19561 }
19562 resultobj = SWIG_Py_Void();
19563 {
19564 if (temp2)
19565 delete arg2;
19566 }
19567 return resultobj;
19568fail:
19569 {
19570 if (temp2)
19571 delete arg2;
19572 }
19573 return NULL;
19574}
19575
19576
19577SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19578 PyObject *resultobj = 0;
19579 wxDC *arg1 = (wxDC *) 0 ;
19580 int arg2 ;
19581 int arg3 ;
19582 int arg4 ;
19583 int arg5 ;
19584 wxDC *arg6 = (wxDC *) 0 ;
19585 int arg7 ;
19586 int arg8 ;
19587 int arg9 = (int) wxCOPY ;
19588 bool arg10 = (bool) false ;
19589 int arg11 = (int) -1 ;
19590 int arg12 = (int) -1 ;
19591 bool result;
19592 void *argp1 = 0 ;
19593 int res1 = 0 ;
19594 int val2 ;
19595 int ecode2 = 0 ;
19596 int val3 ;
19597 int ecode3 = 0 ;
19598 int val4 ;
19599 int ecode4 = 0 ;
19600 int val5 ;
19601 int ecode5 = 0 ;
19602 void *argp6 = 0 ;
19603 int res6 = 0 ;
19604 int val7 ;
19605 int ecode7 = 0 ;
19606 int val8 ;
19607 int ecode8 = 0 ;
19608 int val9 ;
19609 int ecode9 = 0 ;
19610 bool val10 ;
19611 int ecode10 = 0 ;
19612 int val11 ;
19613 int ecode11 = 0 ;
19614 int val12 ;
19615 int ecode12 = 0 ;
19616 PyObject * obj0 = 0 ;
19617 PyObject * obj1 = 0 ;
19618 PyObject * obj2 = 0 ;
19619 PyObject * obj3 = 0 ;
19620 PyObject * obj4 = 0 ;
19621 PyObject * obj5 = 0 ;
19622 PyObject * obj6 = 0 ;
19623 PyObject * obj7 = 0 ;
19624 PyObject * obj8 = 0 ;
19625 PyObject * obj9 = 0 ;
19626 PyObject * obj10 = 0 ;
19627 PyObject * obj11 = 0 ;
19628 char * kwnames[] = {
19629 (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
19630 };
19631
19632 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;
19633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19634 if (!SWIG_IsOK(res1)) {
19635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19636 }
19637 arg1 = reinterpret_cast< wxDC * >(argp1);
19638 ecode2 = SWIG_AsVal_int(obj1, &val2);
19639 if (!SWIG_IsOK(ecode2)) {
19640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19641 }
19642 arg2 = static_cast< int >(val2);
19643 ecode3 = SWIG_AsVal_int(obj2, &val3);
19644 if (!SWIG_IsOK(ecode3)) {
19645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19646 }
19647 arg3 = static_cast< int >(val3);
19648 ecode4 = SWIG_AsVal_int(obj3, &val4);
19649 if (!SWIG_IsOK(ecode4)) {
19650 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19651 }
19652 arg4 = static_cast< int >(val4);
19653 ecode5 = SWIG_AsVal_int(obj4, &val5);
19654 if (!SWIG_IsOK(ecode5)) {
19655 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19656 }
19657 arg5 = static_cast< int >(val5);
19658 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19659 if (!SWIG_IsOK(res6)) {
19660 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19661 }
19662 arg6 = reinterpret_cast< wxDC * >(argp6);
19663 ecode7 = SWIG_AsVal_int(obj6, &val7);
19664 if (!SWIG_IsOK(ecode7)) {
19665 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19666 }
19667 arg7 = static_cast< int >(val7);
19668 ecode8 = SWIG_AsVal_int(obj7, &val8);
19669 if (!SWIG_IsOK(ecode8)) {
19670 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19671 }
19672 arg8 = static_cast< int >(val8);
19673 if (obj8) {
19674 ecode9 = SWIG_AsVal_int(obj8, &val9);
19675 if (!SWIG_IsOK(ecode9)) {
19676 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19677 }
19678 arg9 = static_cast< int >(val9);
19679 }
19680 if (obj9) {
19681 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19682 if (!SWIG_IsOK(ecode10)) {
19683 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19684 }
19685 arg10 = static_cast< bool >(val10);
19686 }
19687 if (obj10) {
19688 ecode11 = SWIG_AsVal_int(obj10, &val11);
19689 if (!SWIG_IsOK(ecode11)) {
19690 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19691 }
19692 arg11 = static_cast< int >(val11);
19693 }
19694 if (obj11) {
19695 ecode12 = SWIG_AsVal_int(obj11, &val12);
19696 if (!SWIG_IsOK(ecode12)) {
19697 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19698 }
19699 arg12 = static_cast< int >(val12);
19700 }
19701 {
19702 PyThreadState* __tstate = wxPyBeginAllowThreads();
19703 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19704 wxPyEndAllowThreads(__tstate);
19705 if (PyErr_Occurred()) SWIG_fail;
19706 }
19707 {
19708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19709 }
19710 return resultobj;
19711fail:
19712 return NULL;
19713}
19714
19715
19716SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19717 PyObject *resultobj = 0;
19718 wxDC *arg1 = (wxDC *) 0 ;
19719 wxPoint *arg2 = 0 ;
19720 wxSize *arg3 = 0 ;
19721 wxDC *arg4 = (wxDC *) 0 ;
19722 wxPoint *arg5 = 0 ;
19723 int arg6 = (int) wxCOPY ;
19724 bool arg7 = (bool) false ;
19725 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19726 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19727 bool result;
19728 void *argp1 = 0 ;
19729 int res1 = 0 ;
19730 wxPoint temp2 ;
19731 wxSize temp3 ;
19732 void *argp4 = 0 ;
19733 int res4 = 0 ;
19734 wxPoint temp5 ;
19735 int val6 ;
19736 int ecode6 = 0 ;
19737 bool val7 ;
19738 int ecode7 = 0 ;
19739 wxPoint temp8 ;
19740 PyObject * obj0 = 0 ;
19741 PyObject * obj1 = 0 ;
19742 PyObject * obj2 = 0 ;
19743 PyObject * obj3 = 0 ;
19744 PyObject * obj4 = 0 ;
19745 PyObject * obj5 = 0 ;
19746 PyObject * obj6 = 0 ;
19747 PyObject * obj7 = 0 ;
19748 char * kwnames[] = {
19749 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19750 };
19751
19752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19754 if (!SWIG_IsOK(res1)) {
19755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19756 }
19757 arg1 = reinterpret_cast< wxDC * >(argp1);
19758 {
19759 arg2 = &temp2;
19760 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19761 }
19762 {
19763 arg3 = &temp3;
19764 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19765 }
19766 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19767 if (!SWIG_IsOK(res4)) {
19768 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19769 }
19770 arg4 = reinterpret_cast< wxDC * >(argp4);
19771 {
19772 arg5 = &temp5;
19773 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19774 }
19775 if (obj5) {
19776 ecode6 = SWIG_AsVal_int(obj5, &val6);
19777 if (!SWIG_IsOK(ecode6)) {
19778 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19779 }
19780 arg6 = static_cast< int >(val6);
19781 }
19782 if (obj6) {
19783 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19784 if (!SWIG_IsOK(ecode7)) {
19785 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19786 }
19787 arg7 = static_cast< bool >(val7);
19788 }
19789 if (obj7) {
093d3ff1 19790 {
0085ce49
RD
19791 arg8 = &temp8;
19792 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 19793 }
0085ce49
RD
19794 }
19795 {
19796 PyThreadState* __tstate = wxPyBeginAllowThreads();
19797 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19798 wxPyEndAllowThreads(__tstate);
19799 if (PyErr_Occurred()) SWIG_fail;
19800 }
19801 {
19802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19803 }
19804 return resultobj;
19805fail:
19806 return NULL;
19807}
19808
19809
8f514ab4
RD
19810SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19811 PyObject *resultobj = 0;
19812 wxDC *arg1 = (wxDC *) 0 ;
19813 wxRect *arg2 = (wxRect *) NULL ;
19814 SwigValueWrapper<wxBitmap > result;
19815 void *argp1 = 0 ;
19816 int res1 = 0 ;
19817 void *argp2 = 0 ;
19818 int res2 = 0 ;
19819 PyObject * obj0 = 0 ;
19820 PyObject * obj1 = 0 ;
19821 char * kwnames[] = {
19822 (char *) "self",(char *) "subrect", NULL
19823 };
19824
19825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19827 if (!SWIG_IsOK(res1)) {
19828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19829 }
19830 arg1 = reinterpret_cast< wxDC * >(argp1);
19831 if (obj1) {
19832 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19833 if (!SWIG_IsOK(res2)) {
19834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19835 }
19836 arg2 = reinterpret_cast< wxRect * >(argp2);
19837 }
19838 {
19839 PyThreadState* __tstate = wxPyBeginAllowThreads();
19840 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19841 wxPyEndAllowThreads(__tstate);
19842 if (PyErr_Occurred()) SWIG_fail;
19843 }
19844 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19845 return resultobj;
19846fail:
19847 return NULL;
19848}
19849
19850
0085ce49
RD
19851SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19852 PyObject *resultobj = 0;
19853 wxDC *arg1 = (wxDC *) 0 ;
19854 int arg2 ;
19855 int arg3 ;
19856 int arg4 ;
19857 int arg5 ;
19858 void *argp1 = 0 ;
19859 int res1 = 0 ;
19860 int val2 ;
19861 int ecode2 = 0 ;
19862 int val3 ;
19863 int ecode3 = 0 ;
19864 int val4 ;
19865 int ecode4 = 0 ;
19866 int val5 ;
19867 int ecode5 = 0 ;
19868 PyObject * obj0 = 0 ;
19869 PyObject * obj1 = 0 ;
19870 PyObject * obj2 = 0 ;
19871 PyObject * obj3 = 0 ;
19872 PyObject * obj4 = 0 ;
19873 char * kwnames[] = {
19874 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19875 };
19876
19877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19879 if (!SWIG_IsOK(res1)) {
19880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19881 }
19882 arg1 = reinterpret_cast< wxDC * >(argp1);
19883 ecode2 = SWIG_AsVal_int(obj1, &val2);
19884 if (!SWIG_IsOK(ecode2)) {
19885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19886 }
19887 arg2 = static_cast< int >(val2);
19888 ecode3 = SWIG_AsVal_int(obj2, &val3);
19889 if (!SWIG_IsOK(ecode3)) {
19890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19891 }
19892 arg3 = static_cast< int >(val3);
19893 ecode4 = SWIG_AsVal_int(obj3, &val4);
19894 if (!SWIG_IsOK(ecode4)) {
19895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19896 }
19897 arg4 = static_cast< int >(val4);
19898 ecode5 = SWIG_AsVal_int(obj4, &val5);
19899 if (!SWIG_IsOK(ecode5)) {
19900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19901 }
19902 arg5 = static_cast< int >(val5);
19903 {
19904 PyThreadState* __tstate = wxPyBeginAllowThreads();
19905 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19906 wxPyEndAllowThreads(__tstate);
19907 if (PyErr_Occurred()) SWIG_fail;
19908 }
19909 resultobj = SWIG_Py_Void();
19910 return resultobj;
19911fail:
19912 return NULL;
19913}
19914
19915
19916SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19917 PyObject *resultobj = 0;
19918 wxDC *arg1 = (wxDC *) 0 ;
19919 wxPoint *arg2 = 0 ;
19920 wxSize *arg3 = 0 ;
19921 void *argp1 = 0 ;
19922 int res1 = 0 ;
19923 wxPoint temp2 ;
19924 wxSize temp3 ;
19925 PyObject * obj0 = 0 ;
19926 PyObject * obj1 = 0 ;
19927 PyObject * obj2 = 0 ;
19928 char * kwnames[] = {
19929 (char *) "self",(char *) "pt",(char *) "sz", NULL
19930 };
19931
19932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19934 if (!SWIG_IsOK(res1)) {
19935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19936 }
19937 arg1 = reinterpret_cast< wxDC * >(argp1);
19938 {
19939 arg2 = &temp2;
19940 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19941 }
19942 {
19943 arg3 = &temp3;
19944 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19945 }
19946 {
19947 PyThreadState* __tstate = wxPyBeginAllowThreads();
19948 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19949 wxPyEndAllowThreads(__tstate);
19950 if (PyErr_Occurred()) SWIG_fail;
19951 }
19952 resultobj = SWIG_Py_Void();
19953 return resultobj;
19954fail:
19955 return NULL;
19956}
19957
19958
19959SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19960 PyObject *resultobj = 0;
19961 wxDC *arg1 = (wxDC *) 0 ;
19962 wxRegion *arg2 = 0 ;
19963 void *argp1 = 0 ;
19964 int res1 = 0 ;
19965 void *argp2 = 0 ;
19966 int res2 = 0 ;
19967 PyObject * obj0 = 0 ;
19968 PyObject * obj1 = 0 ;
19969 char * kwnames[] = {
19970 (char *) "self",(char *) "region", NULL
19971 };
19972
19973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19975 if (!SWIG_IsOK(res1)) {
19976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19977 }
19978 arg1 = reinterpret_cast< wxDC * >(argp1);
19979 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19980 if (!SWIG_IsOK(res2)) {
19981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19982 }
19983 if (!argp2) {
19984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19985 }
19986 arg2 = reinterpret_cast< wxRegion * >(argp2);
19987 {
19988 PyThreadState* __tstate = wxPyBeginAllowThreads();
19989 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19990 wxPyEndAllowThreads(__tstate);
19991 if (PyErr_Occurred()) SWIG_fail;
19992 }
19993 resultobj = SWIG_Py_Void();
19994 return resultobj;
19995fail:
19996 return NULL;
19997}
19998
19999
20000SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20001 PyObject *resultobj = 0;
20002 wxDC *arg1 = (wxDC *) 0 ;
20003 wxRect *arg2 = 0 ;
20004 void *argp1 = 0 ;
20005 int res1 = 0 ;
20006 wxRect temp2 ;
20007 PyObject * obj0 = 0 ;
20008 PyObject * obj1 = 0 ;
20009 char * kwnames[] = {
20010 (char *) "self",(char *) "rect", NULL
20011 };
20012
20013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20015 if (!SWIG_IsOK(res1)) {
20016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20017 }
20018 arg1 = reinterpret_cast< wxDC * >(argp1);
20019 {
20020 arg2 = &temp2;
20021 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20022 }
20023 {
20024 PyThreadState* __tstate = wxPyBeginAllowThreads();
20025 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20026 wxPyEndAllowThreads(__tstate);
20027 if (PyErr_Occurred()) SWIG_fail;
20028 }
20029 resultobj = SWIG_Py_Void();
20030 return resultobj;
20031fail:
20032 return NULL;
20033}
20034
20035
20036SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20037 PyObject *resultobj = 0;
20038 wxDC *arg1 = (wxDC *) 0 ;
20039 int arg2 ;
20040 wxPoint *arg3 = (wxPoint *) 0 ;
20041 int arg4 = (int) 0 ;
20042 int arg5 = (int) 0 ;
20043 void *argp1 = 0 ;
20044 int res1 = 0 ;
20045 int val4 ;
20046 int ecode4 = 0 ;
20047 int val5 ;
20048 int ecode5 = 0 ;
20049 PyObject * obj0 = 0 ;
20050 PyObject * obj1 = 0 ;
20051 PyObject * obj2 = 0 ;
20052 PyObject * obj3 = 0 ;
20053 char * kwnames[] = {
20054 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20055 };
20056
20057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20059 if (!SWIG_IsOK(res1)) {
20060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20061 }
20062 arg1 = reinterpret_cast< wxDC * >(argp1);
20063 {
20064 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20065 if (arg3 == NULL) SWIG_fail;
20066 }
20067 if (obj2) {
20068 ecode4 = SWIG_AsVal_int(obj2, &val4);
20069 if (!SWIG_IsOK(ecode4)) {
20070 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20071 }
20072 arg4 = static_cast< int >(val4);
20073 }
20074 if (obj3) {
20075 ecode5 = SWIG_AsVal_int(obj3, &val5);
20076 if (!SWIG_IsOK(ecode5)) {
20077 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20078 }
20079 arg5 = static_cast< int >(val5);
20080 }
20081 {
20082 PyThreadState* __tstate = wxPyBeginAllowThreads();
20083 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20084 wxPyEndAllowThreads(__tstate);
20085 if (PyErr_Occurred()) SWIG_fail;
20086 }
20087 resultobj = SWIG_Py_Void();
20088 {
20089 if (arg3) delete [] arg3;
20090 }
20091 return resultobj;
20092fail:
20093 {
20094 if (arg3) delete [] arg3;
20095 }
20096 return NULL;
20097}
20098
20099
20100SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20101 PyObject *resultobj = 0;
20102 wxDC *arg1 = (wxDC *) 0 ;
20103 int arg2 ;
20104 wxPoint *arg3 = (wxPoint *) 0 ;
20105 int arg4 = (int) 0 ;
20106 int arg5 = (int) 0 ;
20107 int arg6 = (int) wxODDEVEN_RULE ;
20108 void *argp1 = 0 ;
20109 int res1 = 0 ;
20110 int val4 ;
20111 int ecode4 = 0 ;
20112 int val5 ;
20113 int ecode5 = 0 ;
20114 int val6 ;
20115 int ecode6 = 0 ;
20116 PyObject * obj0 = 0 ;
20117 PyObject * obj1 = 0 ;
20118 PyObject * obj2 = 0 ;
20119 PyObject * obj3 = 0 ;
20120 PyObject * obj4 = 0 ;
20121 char * kwnames[] = {
20122 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20123 };
20124
20125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20127 if (!SWIG_IsOK(res1)) {
20128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20129 }
20130 arg1 = reinterpret_cast< wxDC * >(argp1);
20131 {
20132 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20133 if (arg3 == NULL) SWIG_fail;
20134 }
20135 if (obj2) {
20136 ecode4 = SWIG_AsVal_int(obj2, &val4);
20137 if (!SWIG_IsOK(ecode4)) {
20138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20139 }
20140 arg4 = static_cast< int >(val4);
20141 }
20142 if (obj3) {
20143 ecode5 = SWIG_AsVal_int(obj3, &val5);
20144 if (!SWIG_IsOK(ecode5)) {
20145 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20146 }
20147 arg5 = static_cast< int >(val5);
20148 }
20149 if (obj4) {
20150 ecode6 = SWIG_AsVal_int(obj4, &val6);
20151 if (!SWIG_IsOK(ecode6)) {
20152 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20153 }
20154 arg6 = static_cast< int >(val6);
20155 }
20156 {
20157 PyThreadState* __tstate = wxPyBeginAllowThreads();
20158 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20159 wxPyEndAllowThreads(__tstate);
20160 if (PyErr_Occurred()) SWIG_fail;
20161 }
20162 resultobj = SWIG_Py_Void();
20163 {
20164 if (arg3) delete [] arg3;
20165 }
20166 return resultobj;
20167fail:
20168 {
20169 if (arg3) delete [] arg3;
20170 }
20171 return NULL;
20172}
20173
20174
20175SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20176 PyObject *resultobj = 0;
20177 wxDC *arg1 = (wxDC *) 0 ;
20178 wxString *arg2 = 0 ;
20179 wxRect *arg3 = 0 ;
20180 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20181 int arg5 = (int) -1 ;
20182 void *argp1 = 0 ;
20183 int res1 = 0 ;
20184 bool temp2 = false ;
20185 wxRect temp3 ;
20186 int val4 ;
20187 int ecode4 = 0 ;
20188 int val5 ;
20189 int ecode5 = 0 ;
20190 PyObject * obj0 = 0 ;
20191 PyObject * obj1 = 0 ;
20192 PyObject * obj2 = 0 ;
20193 PyObject * obj3 = 0 ;
20194 PyObject * obj4 = 0 ;
20195 char * kwnames[] = {
20196 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20197 };
20198
20199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20201 if (!SWIG_IsOK(res1)) {
20202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20203 }
20204 arg1 = reinterpret_cast< wxDC * >(argp1);
20205 {
20206 arg2 = wxString_in_helper(obj1);
20207 if (arg2 == NULL) SWIG_fail;
20208 temp2 = true;
20209 }
20210 {
20211 arg3 = &temp3;
20212 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20213 }
20214 if (obj3) {
20215 ecode4 = SWIG_AsVal_int(obj3, &val4);
20216 if (!SWIG_IsOK(ecode4)) {
20217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20218 }
20219 arg4 = static_cast< int >(val4);
20220 }
20221 if (obj4) {
20222 ecode5 = SWIG_AsVal_int(obj4, &val5);
20223 if (!SWIG_IsOK(ecode5)) {
20224 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20225 }
20226 arg5 = static_cast< int >(val5);
20227 }
20228 {
20229 PyThreadState* __tstate = wxPyBeginAllowThreads();
20230 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20231 wxPyEndAllowThreads(__tstate);
20232 if (PyErr_Occurred()) SWIG_fail;
20233 }
20234 resultobj = SWIG_Py_Void();
20235 {
20236 if (temp2)
20237 delete arg2;
20238 }
20239 return resultobj;
20240fail:
20241 {
20242 if (temp2)
20243 delete arg2;
20244 }
20245 return NULL;
20246}
20247
20248
20249SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20250 PyObject *resultobj = 0;
20251 wxDC *arg1 = (wxDC *) 0 ;
20252 wxString *arg2 = 0 ;
20253 wxBitmap *arg3 = 0 ;
20254 wxRect *arg4 = 0 ;
20255 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20256 int arg6 = (int) -1 ;
20257 wxRect result;
20258 void *argp1 = 0 ;
20259 int res1 = 0 ;
20260 bool temp2 = false ;
20261 void *argp3 = 0 ;
20262 int res3 = 0 ;
20263 wxRect temp4 ;
20264 int val5 ;
20265 int ecode5 = 0 ;
20266 int val6 ;
20267 int ecode6 = 0 ;
20268 PyObject * obj0 = 0 ;
20269 PyObject * obj1 = 0 ;
20270 PyObject * obj2 = 0 ;
20271 PyObject * obj3 = 0 ;
20272 PyObject * obj4 = 0 ;
20273 PyObject * obj5 = 0 ;
20274 char * kwnames[] = {
20275 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20276 };
20277
20278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20280 if (!SWIG_IsOK(res1)) {
20281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20282 }
20283 arg1 = reinterpret_cast< wxDC * >(argp1);
20284 {
20285 arg2 = wxString_in_helper(obj1);
20286 if (arg2 == NULL) SWIG_fail;
20287 temp2 = true;
20288 }
20289 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20290 if (!SWIG_IsOK(res3)) {
20291 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20292 }
20293 if (!argp3) {
20294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20295 }
20296 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20297 {
20298 arg4 = &temp4;
20299 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20300 }
20301 if (obj4) {
20302 ecode5 = SWIG_AsVal_int(obj4, &val5);
20303 if (!SWIG_IsOK(ecode5)) {
20304 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20305 }
20306 arg5 = static_cast< int >(val5);
20307 }
20308 if (obj5) {
20309 ecode6 = SWIG_AsVal_int(obj5, &val6);
20310 if (!SWIG_IsOK(ecode6)) {
20311 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20312 }
20313 arg6 = static_cast< int >(val6);
20314 }
20315 {
20316 PyThreadState* __tstate = wxPyBeginAllowThreads();
20317 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20318 wxPyEndAllowThreads(__tstate);
20319 if (PyErr_Occurred()) SWIG_fail;
20320 }
20321 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20322 {
20323 if (temp2)
20324 delete arg2;
20325 }
20326 return resultobj;
20327fail:
20328 {
20329 if (temp2)
20330 delete arg2;
20331 }
20332 return NULL;
20333}
20334
20335
20336SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20337 PyObject *resultobj = 0;
20338 wxDC *arg1 = (wxDC *) 0 ;
20339 int arg2 ;
20340 wxPoint *arg3 = (wxPoint *) 0 ;
20341 void *argp1 = 0 ;
20342 int res1 = 0 ;
20343 PyObject * obj0 = 0 ;
20344 PyObject * obj1 = 0 ;
20345 char * kwnames[] = {
20346 (char *) "self",(char *) "points", NULL
20347 };
20348
20349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20351 if (!SWIG_IsOK(res1)) {
20352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20353 }
20354 arg1 = reinterpret_cast< wxDC * >(argp1);
20355 {
20356 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20357 if (arg3 == NULL) SWIG_fail;
20358 }
20359 {
20360 PyThreadState* __tstate = wxPyBeginAllowThreads();
20361 (arg1)->DrawSpline(arg2,arg3);
20362 wxPyEndAllowThreads(__tstate);
20363 if (PyErr_Occurred()) SWIG_fail;
20364 }
20365 resultobj = SWIG_Py_Void();
20366 {
20367 if (arg3) delete [] arg3;
20368 }
20369 return resultobj;
20370fail:
20371 {
20372 if (arg3) delete [] arg3;
20373 }
20374 return NULL;
20375}
20376
20377
20378SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20379 PyObject *resultobj = 0;
20380 wxDC *arg1 = (wxDC *) 0 ;
20381 void *argp1 = 0 ;
20382 int res1 = 0 ;
20383 PyObject *swig_obj[1] ;
20384
20385 if (!args) SWIG_fail;
20386 swig_obj[0] = args;
20387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20388 if (!SWIG_IsOK(res1)) {
20389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20390 }
20391 arg1 = reinterpret_cast< wxDC * >(argp1);
20392 {
20393 PyThreadState* __tstate = wxPyBeginAllowThreads();
20394 (arg1)->Clear();
20395 wxPyEndAllowThreads(__tstate);
20396 if (PyErr_Occurred()) SWIG_fail;
20397 }
20398 resultobj = SWIG_Py_Void();
20399 return resultobj;
20400fail:
20401 return NULL;
20402}
20403
20404
20405SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20406 PyObject *resultobj = 0;
20407 wxDC *arg1 = (wxDC *) 0 ;
20408 wxString *arg2 = 0 ;
20409 bool result;
20410 void *argp1 = 0 ;
20411 int res1 = 0 ;
20412 bool temp2 = false ;
20413 PyObject * obj0 = 0 ;
20414 PyObject * obj1 = 0 ;
20415 char * kwnames[] = {
20416 (char *) "self",(char *) "message", NULL
20417 };
20418
20419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20421 if (!SWIG_IsOK(res1)) {
20422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20423 }
20424 arg1 = reinterpret_cast< wxDC * >(argp1);
20425 {
20426 arg2 = wxString_in_helper(obj1);
20427 if (arg2 == NULL) SWIG_fail;
20428 temp2 = true;
20429 }
20430 {
20431 PyThreadState* __tstate = wxPyBeginAllowThreads();
20432 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20433 wxPyEndAllowThreads(__tstate);
20434 if (PyErr_Occurred()) SWIG_fail;
20435 }
20436 {
20437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20438 }
20439 {
20440 if (temp2)
20441 delete arg2;
20442 }
20443 return resultobj;
20444fail:
20445 {
20446 if (temp2)
20447 delete arg2;
20448 }
20449 return NULL;
20450}
20451
20452
20453SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20454 PyObject *resultobj = 0;
20455 wxDC *arg1 = (wxDC *) 0 ;
20456 void *argp1 = 0 ;
20457 int res1 = 0 ;
20458 PyObject *swig_obj[1] ;
20459
20460 if (!args) SWIG_fail;
20461 swig_obj[0] = args;
20462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20463 if (!SWIG_IsOK(res1)) {
20464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20465 }
20466 arg1 = reinterpret_cast< wxDC * >(argp1);
20467 {
20468 PyThreadState* __tstate = wxPyBeginAllowThreads();
20469 (arg1)->EndDoc();
20470 wxPyEndAllowThreads(__tstate);
20471 if (PyErr_Occurred()) SWIG_fail;
20472 }
20473 resultobj = SWIG_Py_Void();
20474 return resultobj;
20475fail:
20476 return NULL;
20477}
20478
20479
20480SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20481 PyObject *resultobj = 0;
20482 wxDC *arg1 = (wxDC *) 0 ;
20483 void *argp1 = 0 ;
20484 int res1 = 0 ;
20485 PyObject *swig_obj[1] ;
20486
20487 if (!args) SWIG_fail;
20488 swig_obj[0] = args;
20489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20490 if (!SWIG_IsOK(res1)) {
20491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20492 }
20493 arg1 = reinterpret_cast< wxDC * >(argp1);
20494 {
20495 PyThreadState* __tstate = wxPyBeginAllowThreads();
20496 (arg1)->StartPage();
20497 wxPyEndAllowThreads(__tstate);
20498 if (PyErr_Occurred()) SWIG_fail;
20499 }
20500 resultobj = SWIG_Py_Void();
20501 return resultobj;
20502fail:
20503 return NULL;
20504}
20505
20506
20507SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20508 PyObject *resultobj = 0;
20509 wxDC *arg1 = (wxDC *) 0 ;
20510 void *argp1 = 0 ;
20511 int res1 = 0 ;
20512 PyObject *swig_obj[1] ;
20513
20514 if (!args) SWIG_fail;
20515 swig_obj[0] = args;
20516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20517 if (!SWIG_IsOK(res1)) {
20518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20519 }
20520 arg1 = reinterpret_cast< wxDC * >(argp1);
20521 {
20522 PyThreadState* __tstate = wxPyBeginAllowThreads();
20523 (arg1)->EndPage();
20524 wxPyEndAllowThreads(__tstate);
20525 if (PyErr_Occurred()) SWIG_fail;
20526 }
20527 resultobj = SWIG_Py_Void();
20528 return resultobj;
20529fail:
20530 return NULL;
20531}
20532
20533
20534SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20535 PyObject *resultobj = 0;
20536 wxDC *arg1 = (wxDC *) 0 ;
20537 wxFont *arg2 = 0 ;
20538 void *argp1 = 0 ;
20539 int res1 = 0 ;
20540 void *argp2 = 0 ;
20541 int res2 = 0 ;
20542 PyObject * obj0 = 0 ;
20543 PyObject * obj1 = 0 ;
20544 char * kwnames[] = {
20545 (char *) "self",(char *) "font", NULL
20546 };
20547
20548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20550 if (!SWIG_IsOK(res1)) {
20551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20552 }
20553 arg1 = reinterpret_cast< wxDC * >(argp1);
20554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20555 if (!SWIG_IsOK(res2)) {
20556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20557 }
20558 if (!argp2) {
20559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20560 }
20561 arg2 = reinterpret_cast< wxFont * >(argp2);
20562 {
20563 PyThreadState* __tstate = wxPyBeginAllowThreads();
20564 (arg1)->SetFont((wxFont const &)*arg2);
20565 wxPyEndAllowThreads(__tstate);
20566 if (PyErr_Occurred()) SWIG_fail;
20567 }
20568 resultobj = SWIG_Py_Void();
20569 return resultobj;
20570fail:
20571 return NULL;
20572}
20573
20574
20575SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20576 PyObject *resultobj = 0;
20577 wxDC *arg1 = (wxDC *) 0 ;
20578 wxPen *arg2 = 0 ;
20579 void *argp1 = 0 ;
20580 int res1 = 0 ;
20581 void *argp2 = 0 ;
20582 int res2 = 0 ;
20583 PyObject * obj0 = 0 ;
20584 PyObject * obj1 = 0 ;
20585 char * kwnames[] = {
20586 (char *) "self",(char *) "pen", NULL
20587 };
20588
20589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20591 if (!SWIG_IsOK(res1)) {
20592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20593 }
20594 arg1 = reinterpret_cast< wxDC * >(argp1);
20595 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20596 if (!SWIG_IsOK(res2)) {
20597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20598 }
20599 if (!argp2) {
20600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20601 }
20602 arg2 = reinterpret_cast< wxPen * >(argp2);
20603 {
20604 PyThreadState* __tstate = wxPyBeginAllowThreads();
20605 (arg1)->SetPen((wxPen const &)*arg2);
20606 wxPyEndAllowThreads(__tstate);
20607 if (PyErr_Occurred()) SWIG_fail;
20608 }
20609 resultobj = SWIG_Py_Void();
20610 return resultobj;
20611fail:
20612 return NULL;
20613}
20614
20615
20616SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20617 PyObject *resultobj = 0;
20618 wxDC *arg1 = (wxDC *) 0 ;
20619 wxBrush *arg2 = 0 ;
20620 void *argp1 = 0 ;
20621 int res1 = 0 ;
20622 void *argp2 = 0 ;
20623 int res2 = 0 ;
20624 PyObject * obj0 = 0 ;
20625 PyObject * obj1 = 0 ;
20626 char * kwnames[] = {
20627 (char *) "self",(char *) "brush", NULL
20628 };
20629
20630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20632 if (!SWIG_IsOK(res1)) {
20633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20634 }
20635 arg1 = reinterpret_cast< wxDC * >(argp1);
20636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20637 if (!SWIG_IsOK(res2)) {
20638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20639 }
20640 if (!argp2) {
20641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20642 }
20643 arg2 = reinterpret_cast< wxBrush * >(argp2);
20644 {
20645 PyThreadState* __tstate = wxPyBeginAllowThreads();
20646 (arg1)->SetBrush((wxBrush const &)*arg2);
20647 wxPyEndAllowThreads(__tstate);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 resultobj = SWIG_Py_Void();
20651 return resultobj;
20652fail:
20653 return NULL;
20654}
20655
20656
20657SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20658 PyObject *resultobj = 0;
20659 wxDC *arg1 = (wxDC *) 0 ;
20660 wxBrush *arg2 = 0 ;
20661 void *argp1 = 0 ;
20662 int res1 = 0 ;
20663 void *argp2 = 0 ;
20664 int res2 = 0 ;
20665 PyObject * obj0 = 0 ;
20666 PyObject * obj1 = 0 ;
20667 char * kwnames[] = {
20668 (char *) "self",(char *) "brush", NULL
20669 };
20670
20671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20673 if (!SWIG_IsOK(res1)) {
20674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20675 }
20676 arg1 = reinterpret_cast< wxDC * >(argp1);
20677 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20678 if (!SWIG_IsOK(res2)) {
20679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20680 }
20681 if (!argp2) {
20682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20683 }
20684 arg2 = reinterpret_cast< wxBrush * >(argp2);
20685 {
20686 PyThreadState* __tstate = wxPyBeginAllowThreads();
20687 (arg1)->SetBackground((wxBrush const &)*arg2);
20688 wxPyEndAllowThreads(__tstate);
20689 if (PyErr_Occurred()) SWIG_fail;
20690 }
20691 resultobj = SWIG_Py_Void();
20692 return resultobj;
20693fail:
20694 return NULL;
20695}
20696
20697
20698SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20699 PyObject *resultobj = 0;
20700 wxDC *arg1 = (wxDC *) 0 ;
20701 int arg2 ;
20702 void *argp1 = 0 ;
20703 int res1 = 0 ;
20704 int val2 ;
20705 int ecode2 = 0 ;
20706 PyObject * obj0 = 0 ;
20707 PyObject * obj1 = 0 ;
20708 char * kwnames[] = {
20709 (char *) "self",(char *) "mode", NULL
20710 };
20711
20712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20714 if (!SWIG_IsOK(res1)) {
20715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20716 }
20717 arg1 = reinterpret_cast< wxDC * >(argp1);
20718 ecode2 = SWIG_AsVal_int(obj1, &val2);
20719 if (!SWIG_IsOK(ecode2)) {
20720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20721 }
20722 arg2 = static_cast< int >(val2);
20723 {
20724 PyThreadState* __tstate = wxPyBeginAllowThreads();
20725 (arg1)->SetBackgroundMode(arg2);
20726 wxPyEndAllowThreads(__tstate);
20727 if (PyErr_Occurred()) SWIG_fail;
20728 }
20729 resultobj = SWIG_Py_Void();
20730 return resultobj;
20731fail:
20732 return NULL;
20733}
20734
20735
20736SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20737 PyObject *resultobj = 0;
20738 wxDC *arg1 = (wxDC *) 0 ;
20739 wxPalette *arg2 = 0 ;
20740 void *argp1 = 0 ;
20741 int res1 = 0 ;
20742 void *argp2 = 0 ;
20743 int res2 = 0 ;
20744 PyObject * obj0 = 0 ;
20745 PyObject * obj1 = 0 ;
20746 char * kwnames[] = {
20747 (char *) "self",(char *) "palette", NULL
20748 };
20749
20750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20752 if (!SWIG_IsOK(res1)) {
20753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20754 }
20755 arg1 = reinterpret_cast< wxDC * >(argp1);
20756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20757 if (!SWIG_IsOK(res2)) {
20758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20759 }
20760 if (!argp2) {
20761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20762 }
20763 arg2 = reinterpret_cast< wxPalette * >(argp2);
20764 {
20765 PyThreadState* __tstate = wxPyBeginAllowThreads();
20766 (arg1)->SetPalette((wxPalette const &)*arg2);
20767 wxPyEndAllowThreads(__tstate);
20768 if (PyErr_Occurred()) SWIG_fail;
20769 }
20770 resultobj = SWIG_Py_Void();
20771 return resultobj;
20772fail:
20773 return NULL;
20774}
20775
20776
20777SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20778 PyObject *resultobj = 0;
20779 wxDC *arg1 = (wxDC *) 0 ;
20780 void *argp1 = 0 ;
20781 int res1 = 0 ;
20782 PyObject *swig_obj[1] ;
20783
20784 if (!args) SWIG_fail;
20785 swig_obj[0] = args;
20786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20787 if (!SWIG_IsOK(res1)) {
20788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20789 }
20790 arg1 = reinterpret_cast< wxDC * >(argp1);
20791 {
20792 PyThreadState* __tstate = wxPyBeginAllowThreads();
20793 (arg1)->DestroyClippingRegion();
20794 wxPyEndAllowThreads(__tstate);
20795 if (PyErr_Occurred()) SWIG_fail;
20796 }
20797 resultobj = SWIG_Py_Void();
20798 return resultobj;
20799fail:
20800 return NULL;
20801}
20802
20803
20804SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20805 PyObject *resultobj = 0;
20806 wxDC *arg1 = (wxDC *) 0 ;
20807 int *arg2 = (int *) 0 ;
20808 int *arg3 = (int *) 0 ;
20809 int *arg4 = (int *) 0 ;
20810 int *arg5 = (int *) 0 ;
20811 void *argp1 = 0 ;
20812 int res1 = 0 ;
20813 int temp2 ;
20814 int res2 = SWIG_TMPOBJ ;
20815 int temp3 ;
20816 int res3 = SWIG_TMPOBJ ;
20817 int temp4 ;
20818 int res4 = SWIG_TMPOBJ ;
20819 int temp5 ;
20820 int res5 = SWIG_TMPOBJ ;
20821 PyObject *swig_obj[1] ;
20822
20823 arg2 = &temp2;
20824 arg3 = &temp3;
20825 arg4 = &temp4;
20826 arg5 = &temp5;
20827 if (!args) SWIG_fail;
20828 swig_obj[0] = args;
20829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20830 if (!SWIG_IsOK(res1)) {
20831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20832 }
20833 arg1 = reinterpret_cast< wxDC * >(argp1);
20834 {
20835 PyThreadState* __tstate = wxPyBeginAllowThreads();
20836 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20837 wxPyEndAllowThreads(__tstate);
20838 if (PyErr_Occurred()) SWIG_fail;
20839 }
20840 resultobj = SWIG_Py_Void();
20841 if (SWIG_IsTmpObj(res2)) {
20842 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20843 } else {
20844 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20845 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20846 }
20847 if (SWIG_IsTmpObj(res3)) {
20848 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20849 } else {
20850 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20851 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20852 }
20853 if (SWIG_IsTmpObj(res4)) {
20854 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20855 } else {
20856 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20857 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20858 }
20859 if (SWIG_IsTmpObj(res5)) {
20860 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20861 } else {
20862 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20863 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20864 }
20865 return resultobj;
20866fail:
20867 return NULL;
20868}
20869
20870
20871SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20872 PyObject *resultobj = 0;
20873 wxDC *arg1 = (wxDC *) 0 ;
20874 wxRect result;
20875 void *argp1 = 0 ;
20876 int res1 = 0 ;
20877 PyObject *swig_obj[1] ;
20878
20879 if (!args) SWIG_fail;
20880 swig_obj[0] = args;
20881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20882 if (!SWIG_IsOK(res1)) {
20883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20884 }
20885 arg1 = reinterpret_cast< wxDC * >(argp1);
20886 {
20887 PyThreadState* __tstate = wxPyBeginAllowThreads();
20888 result = wxDC_GetClippingRect(arg1);
20889 wxPyEndAllowThreads(__tstate);
20890 if (PyErr_Occurred()) SWIG_fail;
20891 }
20892 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20893 return resultobj;
20894fail:
20895 return NULL;
20896}
20897
20898
20899SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20900 PyObject *resultobj = 0;
20901 wxDC *arg1 = (wxDC *) 0 ;
20902 int result;
20903 void *argp1 = 0 ;
20904 int res1 = 0 ;
20905 PyObject *swig_obj[1] ;
20906
20907 if (!args) SWIG_fail;
20908 swig_obj[0] = args;
20909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20910 if (!SWIG_IsOK(res1)) {
20911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20912 }
20913 arg1 = reinterpret_cast< wxDC * >(argp1);
20914 {
20915 PyThreadState* __tstate = wxPyBeginAllowThreads();
20916 result = (int)((wxDC const *)arg1)->GetCharHeight();
20917 wxPyEndAllowThreads(__tstate);
20918 if (PyErr_Occurred()) SWIG_fail;
20919 }
20920 resultobj = SWIG_From_int(static_cast< int >(result));
20921 return resultobj;
20922fail:
20923 return NULL;
20924}
20925
20926
20927SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20928 PyObject *resultobj = 0;
20929 wxDC *arg1 = (wxDC *) 0 ;
20930 int result;
20931 void *argp1 = 0 ;
20932 int res1 = 0 ;
20933 PyObject *swig_obj[1] ;
20934
20935 if (!args) SWIG_fail;
20936 swig_obj[0] = args;
20937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20938 if (!SWIG_IsOK(res1)) {
20939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20940 }
20941 arg1 = reinterpret_cast< wxDC * >(argp1);
20942 {
20943 PyThreadState* __tstate = wxPyBeginAllowThreads();
20944 result = (int)((wxDC const *)arg1)->GetCharWidth();
20945 wxPyEndAllowThreads(__tstate);
20946 if (PyErr_Occurred()) SWIG_fail;
20947 }
20948 resultobj = SWIG_From_int(static_cast< int >(result));
20949 return resultobj;
20950fail:
20951 return NULL;
20952}
20953
20954
20955SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20956 PyObject *resultobj = 0;
20957 wxDC *arg1 = (wxDC *) 0 ;
20958 wxString *arg2 = 0 ;
20959 int *arg3 = (int *) 0 ;
20960 int *arg4 = (int *) 0 ;
20961 void *argp1 = 0 ;
20962 int res1 = 0 ;
20963 bool temp2 = false ;
20964 int temp3 ;
20965 int res3 = SWIG_TMPOBJ ;
20966 int temp4 ;
20967 int res4 = SWIG_TMPOBJ ;
20968 PyObject * obj0 = 0 ;
20969 PyObject * obj1 = 0 ;
20970 char * kwnames[] = {
20971 (char *) "self",(char *) "string", NULL
20972 };
20973
20974 arg3 = &temp3;
20975 arg4 = &temp4;
20976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20978 if (!SWIG_IsOK(res1)) {
20979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20980 }
20981 arg1 = reinterpret_cast< wxDC * >(argp1);
20982 {
20983 arg2 = wxString_in_helper(obj1);
20984 if (arg2 == NULL) SWIG_fail;
20985 temp2 = true;
20986 }
20987 {
20988 PyThreadState* __tstate = wxPyBeginAllowThreads();
20989 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20990 wxPyEndAllowThreads(__tstate);
20991 if (PyErr_Occurred()) SWIG_fail;
20992 }
20993 resultobj = SWIG_Py_Void();
20994 if (SWIG_IsTmpObj(res3)) {
20995 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20996 } else {
20997 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20998 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20999 }
21000 if (SWIG_IsTmpObj(res4)) {
21001 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21002 } else {
21003 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21004 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21005 }
21006 {
21007 if (temp2)
21008 delete arg2;
21009 }
21010 return resultobj;
21011fail:
21012 {
21013 if (temp2)
21014 delete arg2;
21015 }
21016 return NULL;
21017}
21018
21019
21020SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21021 PyObject *resultobj = 0;
21022 wxDC *arg1 = (wxDC *) 0 ;
21023 wxString *arg2 = 0 ;
21024 int *arg3 = (int *) 0 ;
21025 int *arg4 = (int *) 0 ;
21026 int *arg5 = (int *) 0 ;
21027 int *arg6 = (int *) 0 ;
21028 wxFont *arg7 = (wxFont *) NULL ;
21029 void *argp1 = 0 ;
21030 int res1 = 0 ;
21031 bool temp2 = false ;
21032 int temp3 ;
21033 int res3 = SWIG_TMPOBJ ;
21034 int temp4 ;
21035 int res4 = SWIG_TMPOBJ ;
21036 int temp5 ;
21037 int res5 = SWIG_TMPOBJ ;
21038 int temp6 ;
21039 int res6 = SWIG_TMPOBJ ;
21040 void *argp7 = 0 ;
21041 int res7 = 0 ;
21042 PyObject * obj0 = 0 ;
21043 PyObject * obj1 = 0 ;
21044 PyObject * obj2 = 0 ;
21045 char * kwnames[] = {
21046 (char *) "self",(char *) "string",(char *) "font", NULL
21047 };
21048
21049 arg3 = &temp3;
21050 arg4 = &temp4;
21051 arg5 = &temp5;
21052 arg6 = &temp6;
21053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21055 if (!SWIG_IsOK(res1)) {
21056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21057 }
21058 arg1 = reinterpret_cast< wxDC * >(argp1);
21059 {
21060 arg2 = wxString_in_helper(obj1);
21061 if (arg2 == NULL) SWIG_fail;
21062 temp2 = true;
21063 }
21064 if (obj2) {
21065 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21066 if (!SWIG_IsOK(res7)) {
21067 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21068 }
0085ce49
RD
21069 arg7 = reinterpret_cast< wxFont * >(argp7);
21070 }
21071 {
21072 PyThreadState* __tstate = wxPyBeginAllowThreads();
21073 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21074 wxPyEndAllowThreads(__tstate);
21075 if (PyErr_Occurred()) SWIG_fail;
21076 }
21077 resultobj = SWIG_Py_Void();
21078 if (SWIG_IsTmpObj(res3)) {
21079 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21080 } else {
21081 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21083 }
21084 if (SWIG_IsTmpObj(res4)) {
21085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21086 } else {
21087 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21089 }
21090 if (SWIG_IsTmpObj(res5)) {
21091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21092 } else {
21093 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21094 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21095 }
21096 if (SWIG_IsTmpObj(res6)) {
21097 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21098 } else {
21099 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21100 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21101 }
21102 {
21103 if (temp2)
21104 delete arg2;
21105 }
21106 return resultobj;
21107fail:
21108 {
21109 if (temp2)
21110 delete arg2;
21111 }
21112 return NULL;
21113}
21114
21115
21116SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21117 PyObject *resultobj = 0;
21118 wxDC *arg1 = (wxDC *) 0 ;
21119 wxString *arg2 = 0 ;
21120 int *arg3 = (int *) 0 ;
21121 int *arg4 = (int *) 0 ;
21122 int *arg5 = (int *) 0 ;
21123 wxFont *arg6 = (wxFont *) NULL ;
21124 void *argp1 = 0 ;
21125 int res1 = 0 ;
21126 bool temp2 = false ;
21127 int temp3 ;
21128 int res3 = SWIG_TMPOBJ ;
21129 int temp4 ;
21130 int res4 = SWIG_TMPOBJ ;
21131 int temp5 ;
21132 int res5 = SWIG_TMPOBJ ;
21133 void *argp6 = 0 ;
21134 int res6 = 0 ;
21135 PyObject * obj0 = 0 ;
21136 PyObject * obj1 = 0 ;
21137 PyObject * obj2 = 0 ;
21138 char * kwnames[] = {
21139 (char *) "self",(char *) "text",(char *) "font", NULL
21140 };
21141
21142 arg3 = &temp3;
21143 arg4 = &temp4;
21144 arg5 = &temp5;
21145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21147 if (!SWIG_IsOK(res1)) {
21148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21149 }
21150 arg1 = reinterpret_cast< wxDC * >(argp1);
21151 {
21152 arg2 = wxString_in_helper(obj1);
21153 if (arg2 == NULL) SWIG_fail;
21154 temp2 = true;
21155 }
21156 if (obj2) {
21157 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21158 if (!SWIG_IsOK(res6)) {
21159 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21160 }
0085ce49
RD
21161 arg6 = reinterpret_cast< wxFont * >(argp6);
21162 }
21163 {
21164 PyThreadState* __tstate = wxPyBeginAllowThreads();
21165 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21166 wxPyEndAllowThreads(__tstate);
21167 if (PyErr_Occurred()) SWIG_fail;
21168 }
21169 resultobj = SWIG_Py_Void();
21170 if (SWIG_IsTmpObj(res3)) {
21171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21172 } else {
21173 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21175 }
21176 if (SWIG_IsTmpObj(res4)) {
21177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21178 } else {
21179 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21181 }
21182 if (SWIG_IsTmpObj(res5)) {
21183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21184 } else {
21185 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21187 }
21188 {
21189 if (temp2)
21190 delete arg2;
21191 }
21192 return resultobj;
21193fail:
21194 {
21195 if (temp2)
21196 delete arg2;
21197 }
21198 return NULL;
21199}
21200
21201
21202SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21203 PyObject *resultobj = 0;
21204 wxDC *arg1 = (wxDC *) 0 ;
21205 wxString *arg2 = 0 ;
21206 wxArrayInt result;
21207 void *argp1 = 0 ;
21208 int res1 = 0 ;
21209 bool temp2 = false ;
21210 PyObject * obj0 = 0 ;
21211 PyObject * obj1 = 0 ;
21212 char * kwnames[] = {
21213 (char *) "self",(char *) "text", NULL
21214 };
21215
21216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21218 if (!SWIG_IsOK(res1)) {
21219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21220 }
21221 arg1 = reinterpret_cast< wxDC * >(argp1);
21222 {
21223 arg2 = wxString_in_helper(obj1);
21224 if (arg2 == NULL) SWIG_fail;
21225 temp2 = true;
21226 }
21227 {
21228 PyThreadState* __tstate = wxPyBeginAllowThreads();
21229 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21230 wxPyEndAllowThreads(__tstate);
21231 if (PyErr_Occurred()) SWIG_fail;
21232 }
21233 {
b39fe951 21234 resultobj = wxArrayInt2PyList_helper(result);
0085ce49
RD
21235 }
21236 {
21237 if (temp2)
21238 delete arg2;
21239 }
21240 return resultobj;
21241fail:
21242 {
21243 if (temp2)
21244 delete arg2;
21245 }
21246 return NULL;
21247}
21248
21249
21250SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21251 PyObject *resultobj = 0;
21252 wxDC *arg1 = (wxDC *) 0 ;
21253 wxSize result;
21254 void *argp1 = 0 ;
21255 int res1 = 0 ;
21256 PyObject *swig_obj[1] ;
21257
21258 if (!args) SWIG_fail;
21259 swig_obj[0] = args;
21260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21261 if (!SWIG_IsOK(res1)) {
21262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21263 }
21264 arg1 = reinterpret_cast< wxDC * >(argp1);
21265 {
21266 PyThreadState* __tstate = wxPyBeginAllowThreads();
21267 result = (arg1)->GetSize();
21268 wxPyEndAllowThreads(__tstate);
21269 if (PyErr_Occurred()) SWIG_fail;
21270 }
21271 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21272 return resultobj;
21273fail:
21274 return NULL;
21275}
21276
21277
21278SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21279 PyObject *resultobj = 0;
21280 wxDC *arg1 = (wxDC *) 0 ;
21281 int *arg2 = (int *) 0 ;
21282 int *arg3 = (int *) 0 ;
21283 void *argp1 = 0 ;
21284 int res1 = 0 ;
21285 int temp2 ;
21286 int res2 = SWIG_TMPOBJ ;
21287 int temp3 ;
21288 int res3 = SWIG_TMPOBJ ;
21289 PyObject *swig_obj[1] ;
21290
21291 arg2 = &temp2;
21292 arg3 = &temp3;
21293 if (!args) SWIG_fail;
21294 swig_obj[0] = args;
21295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21296 if (!SWIG_IsOK(res1)) {
21297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21298 }
21299 arg1 = reinterpret_cast< wxDC * >(argp1);
21300 {
21301 PyThreadState* __tstate = wxPyBeginAllowThreads();
21302 (arg1)->GetSize(arg2,arg3);
21303 wxPyEndAllowThreads(__tstate);
21304 if (PyErr_Occurred()) SWIG_fail;
21305 }
21306 resultobj = SWIG_Py_Void();
21307 if (SWIG_IsTmpObj(res2)) {
21308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21309 } else {
21310 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21311 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21312 }
21313 if (SWIG_IsTmpObj(res3)) {
21314 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21315 } else {
21316 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21317 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21318 }
21319 return resultobj;
21320fail:
21321 return NULL;
21322}
21323
21324
21325SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21326 PyObject *resultobj = 0;
21327 wxDC *arg1 = (wxDC *) 0 ;
21328 wxSize result;
21329 void *argp1 = 0 ;
21330 int res1 = 0 ;
21331 PyObject *swig_obj[1] ;
21332
21333 if (!args) SWIG_fail;
21334 swig_obj[0] = args;
21335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21336 if (!SWIG_IsOK(res1)) {
21337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21338 }
21339 arg1 = reinterpret_cast< wxDC * >(argp1);
21340 {
21341 PyThreadState* __tstate = wxPyBeginAllowThreads();
21342 result = ((wxDC const *)arg1)->GetSizeMM();
21343 wxPyEndAllowThreads(__tstate);
21344 if (PyErr_Occurred()) SWIG_fail;
21345 }
21346 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21347 return resultobj;
21348fail:
21349 return NULL;
21350}
21351
21352
21353SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21354 PyObject *resultobj = 0;
21355 wxDC *arg1 = (wxDC *) 0 ;
21356 int *arg2 = (int *) 0 ;
21357 int *arg3 = (int *) 0 ;
21358 void *argp1 = 0 ;
21359 int res1 = 0 ;
21360 int temp2 ;
21361 int res2 = SWIG_TMPOBJ ;
21362 int temp3 ;
21363 int res3 = SWIG_TMPOBJ ;
21364 PyObject *swig_obj[1] ;
21365
21366 arg2 = &temp2;
21367 arg3 = &temp3;
21368 if (!args) SWIG_fail;
21369 swig_obj[0] = args;
21370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21371 if (!SWIG_IsOK(res1)) {
21372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21373 }
21374 arg1 = reinterpret_cast< wxDC * >(argp1);
21375 {
21376 PyThreadState* __tstate = wxPyBeginAllowThreads();
21377 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21378 wxPyEndAllowThreads(__tstate);
21379 if (PyErr_Occurred()) SWIG_fail;
21380 }
21381 resultobj = SWIG_Py_Void();
21382 if (SWIG_IsTmpObj(res2)) {
21383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21384 } else {
21385 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21386 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21387 }
21388 if (SWIG_IsTmpObj(res3)) {
21389 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21390 } else {
21391 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21392 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21393 }
21394 return resultobj;
21395fail:
21396 return NULL;
21397}
21398
21399
21400SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21401 PyObject *resultobj = 0;
21402 wxDC *arg1 = (wxDC *) 0 ;
21403 int arg2 ;
21404 int result;
21405 void *argp1 = 0 ;
21406 int res1 = 0 ;
21407 int val2 ;
21408 int ecode2 = 0 ;
21409 PyObject * obj0 = 0 ;
21410 PyObject * obj1 = 0 ;
21411 char * kwnames[] = {
21412 (char *) "self",(char *) "x", NULL
21413 };
21414
21415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21417 if (!SWIG_IsOK(res1)) {
21418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21419 }
21420 arg1 = reinterpret_cast< wxDC * >(argp1);
21421 ecode2 = SWIG_AsVal_int(obj1, &val2);
21422 if (!SWIG_IsOK(ecode2)) {
21423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21424 }
21425 arg2 = static_cast< int >(val2);
21426 {
21427 PyThreadState* __tstate = wxPyBeginAllowThreads();
21428 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21429 wxPyEndAllowThreads(__tstate);
21430 if (PyErr_Occurred()) SWIG_fail;
21431 }
21432 resultobj = SWIG_From_int(static_cast< int >(result));
21433 return resultobj;
21434fail:
21435 return NULL;
21436}
21437
21438
21439SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21440 PyObject *resultobj = 0;
21441 wxDC *arg1 = (wxDC *) 0 ;
21442 int arg2 ;
21443 int result;
21444 void *argp1 = 0 ;
21445 int res1 = 0 ;
21446 int val2 ;
21447 int ecode2 = 0 ;
21448 PyObject * obj0 = 0 ;
21449 PyObject * obj1 = 0 ;
21450 char * kwnames[] = {
21451 (char *) "self",(char *) "y", NULL
21452 };
21453
21454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21456 if (!SWIG_IsOK(res1)) {
21457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21458 }
21459 arg1 = reinterpret_cast< wxDC * >(argp1);
21460 ecode2 = SWIG_AsVal_int(obj1, &val2);
21461 if (!SWIG_IsOK(ecode2)) {
21462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21463 }
21464 arg2 = static_cast< int >(val2);
21465 {
21466 PyThreadState* __tstate = wxPyBeginAllowThreads();
21467 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 resultobj = SWIG_From_int(static_cast< int >(result));
21472 return resultobj;
21473fail:
21474 return NULL;
21475}
21476
21477
21478SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21479 PyObject *resultobj = 0;
21480 wxDC *arg1 = (wxDC *) 0 ;
21481 int arg2 ;
21482 int result;
21483 void *argp1 = 0 ;
21484 int res1 = 0 ;
21485 int val2 ;
21486 int ecode2 = 0 ;
21487 PyObject * obj0 = 0 ;
21488 PyObject * obj1 = 0 ;
21489 char * kwnames[] = {
21490 (char *) "self",(char *) "x", NULL
21491 };
21492
21493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21495 if (!SWIG_IsOK(res1)) {
21496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21497 }
21498 arg1 = reinterpret_cast< wxDC * >(argp1);
21499 ecode2 = SWIG_AsVal_int(obj1, &val2);
21500 if (!SWIG_IsOK(ecode2)) {
21501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21502 }
21503 arg2 = static_cast< int >(val2);
21504 {
21505 PyThreadState* __tstate = wxPyBeginAllowThreads();
21506 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21507 wxPyEndAllowThreads(__tstate);
21508 if (PyErr_Occurred()) SWIG_fail;
21509 }
21510 resultobj = SWIG_From_int(static_cast< int >(result));
21511 return resultobj;
21512fail:
21513 return NULL;
21514}
21515
21516
21517SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21518 PyObject *resultobj = 0;
21519 wxDC *arg1 = (wxDC *) 0 ;
21520 int arg2 ;
21521 int result;
21522 void *argp1 = 0 ;
21523 int res1 = 0 ;
21524 int val2 ;
21525 int ecode2 = 0 ;
21526 PyObject * obj0 = 0 ;
21527 PyObject * obj1 = 0 ;
21528 char * kwnames[] = {
21529 (char *) "self",(char *) "y", NULL
21530 };
21531
21532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21534 if (!SWIG_IsOK(res1)) {
21535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21536 }
21537 arg1 = reinterpret_cast< wxDC * >(argp1);
21538 ecode2 = SWIG_AsVal_int(obj1, &val2);
21539 if (!SWIG_IsOK(ecode2)) {
21540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21541 }
21542 arg2 = static_cast< int >(val2);
21543 {
21544 PyThreadState* __tstate = wxPyBeginAllowThreads();
21545 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 resultobj = SWIG_From_int(static_cast< int >(result));
21550 return resultobj;
21551fail:
21552 return NULL;
21553}
21554
21555
21556SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21557 PyObject *resultobj = 0;
21558 wxDC *arg1 = (wxDC *) 0 ;
21559 int arg2 ;
21560 int result;
21561 void *argp1 = 0 ;
21562 int res1 = 0 ;
21563 int val2 ;
21564 int ecode2 = 0 ;
21565 PyObject * obj0 = 0 ;
21566 PyObject * obj1 = 0 ;
21567 char * kwnames[] = {
21568 (char *) "self",(char *) "x", NULL
21569 };
21570
21571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21573 if (!SWIG_IsOK(res1)) {
21574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21575 }
21576 arg1 = reinterpret_cast< wxDC * >(argp1);
21577 ecode2 = SWIG_AsVal_int(obj1, &val2);
21578 if (!SWIG_IsOK(ecode2)) {
21579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21580 }
21581 arg2 = static_cast< int >(val2);
21582 {
21583 PyThreadState* __tstate = wxPyBeginAllowThreads();
21584 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21585 wxPyEndAllowThreads(__tstate);
21586 if (PyErr_Occurred()) SWIG_fail;
21587 }
21588 resultobj = SWIG_From_int(static_cast< int >(result));
21589 return resultobj;
21590fail:
21591 return NULL;
21592}
21593
21594
21595SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21596 PyObject *resultobj = 0;
21597 wxDC *arg1 = (wxDC *) 0 ;
21598 int arg2 ;
21599 int result;
21600 void *argp1 = 0 ;
21601 int res1 = 0 ;
21602 int val2 ;
21603 int ecode2 = 0 ;
21604 PyObject * obj0 = 0 ;
21605 PyObject * obj1 = 0 ;
21606 char * kwnames[] = {
21607 (char *) "self",(char *) "y", NULL
21608 };
21609
21610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21612 if (!SWIG_IsOK(res1)) {
21613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21614 }
21615 arg1 = reinterpret_cast< wxDC * >(argp1);
21616 ecode2 = SWIG_AsVal_int(obj1, &val2);
21617 if (!SWIG_IsOK(ecode2)) {
21618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21619 }
21620 arg2 = static_cast< int >(val2);
21621 {
21622 PyThreadState* __tstate = wxPyBeginAllowThreads();
21623 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21624 wxPyEndAllowThreads(__tstate);
21625 if (PyErr_Occurred()) SWIG_fail;
21626 }
21627 resultobj = SWIG_From_int(static_cast< int >(result));
21628 return resultobj;
21629fail:
21630 return NULL;
21631}
21632
21633
21634SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21635 PyObject *resultobj = 0;
21636 wxDC *arg1 = (wxDC *) 0 ;
21637 int arg2 ;
21638 int result;
21639 void *argp1 = 0 ;
21640 int res1 = 0 ;
21641 int val2 ;
21642 int ecode2 = 0 ;
21643 PyObject * obj0 = 0 ;
21644 PyObject * obj1 = 0 ;
21645 char * kwnames[] = {
21646 (char *) "self",(char *) "x", NULL
21647 };
21648
21649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21651 if (!SWIG_IsOK(res1)) {
21652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21653 }
21654 arg1 = reinterpret_cast< wxDC * >(argp1);
21655 ecode2 = SWIG_AsVal_int(obj1, &val2);
21656 if (!SWIG_IsOK(ecode2)) {
21657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21658 }
21659 arg2 = static_cast< int >(val2);
21660 {
21661 PyThreadState* __tstate = wxPyBeginAllowThreads();
21662 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21663 wxPyEndAllowThreads(__tstate);
21664 if (PyErr_Occurred()) SWIG_fail;
21665 }
21666 resultobj = SWIG_From_int(static_cast< int >(result));
21667 return resultobj;
21668fail:
21669 return NULL;
21670}
21671
21672
21673SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21674 PyObject *resultobj = 0;
21675 wxDC *arg1 = (wxDC *) 0 ;
21676 int arg2 ;
21677 int result;
21678 void *argp1 = 0 ;
21679 int res1 = 0 ;
21680 int val2 ;
21681 int ecode2 = 0 ;
21682 PyObject * obj0 = 0 ;
21683 PyObject * obj1 = 0 ;
21684 char * kwnames[] = {
21685 (char *) "self",(char *) "y", NULL
21686 };
21687
21688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21690 if (!SWIG_IsOK(res1)) {
21691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21692 }
21693 arg1 = reinterpret_cast< wxDC * >(argp1);
21694 ecode2 = SWIG_AsVal_int(obj1, &val2);
21695 if (!SWIG_IsOK(ecode2)) {
21696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21697 }
21698 arg2 = static_cast< int >(val2);
21699 {
21700 PyThreadState* __tstate = wxPyBeginAllowThreads();
21701 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21702 wxPyEndAllowThreads(__tstate);
21703 if (PyErr_Occurred()) SWIG_fail;
21704 }
21705 resultobj = SWIG_From_int(static_cast< int >(result));
21706 return resultobj;
21707fail:
21708 return NULL;
21709}
21710
21711
21712SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21713 PyObject *resultobj = 0;
21714 wxDC *arg1 = (wxDC *) 0 ;
21715 bool result;
21716 void *argp1 = 0 ;
21717 int res1 = 0 ;
21718 PyObject *swig_obj[1] ;
21719
21720 if (!args) SWIG_fail;
21721 swig_obj[0] = args;
21722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21723 if (!SWIG_IsOK(res1)) {
21724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21725 }
21726 arg1 = reinterpret_cast< wxDC * >(argp1);
21727 {
21728 PyThreadState* __tstate = wxPyBeginAllowThreads();
21729 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21730 wxPyEndAllowThreads(__tstate);
21731 if (PyErr_Occurred()) SWIG_fail;
21732 }
21733 {
21734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21735 }
21736 return resultobj;
21737fail:
21738 return NULL;
21739}
21740
21741
21742SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21743 PyObject *resultobj = 0;
21744 wxDC *arg1 = (wxDC *) 0 ;
21745 bool result;
21746 void *argp1 = 0 ;
21747 int res1 = 0 ;
21748 PyObject *swig_obj[1] ;
21749
21750 if (!args) SWIG_fail;
21751 swig_obj[0] = args;
21752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21753 if (!SWIG_IsOK(res1)) {
21754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21755 }
21756 arg1 = reinterpret_cast< wxDC * >(argp1);
21757 {
21758 PyThreadState* __tstate = wxPyBeginAllowThreads();
21759 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21760 wxPyEndAllowThreads(__tstate);
21761 if (PyErr_Occurred()) SWIG_fail;
21762 }
21763 {
21764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21765 }
21766 return resultobj;
21767fail:
21768 return NULL;
21769}
21770
21771
21772SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21773 PyObject *resultobj = 0;
21774 wxDC *arg1 = (wxDC *) 0 ;
21775 int result;
21776 void *argp1 = 0 ;
21777 int res1 = 0 ;
21778 PyObject *swig_obj[1] ;
21779
21780 if (!args) SWIG_fail;
21781 swig_obj[0] = args;
21782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21783 if (!SWIG_IsOK(res1)) {
21784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21785 }
21786 arg1 = reinterpret_cast< wxDC * >(argp1);
21787 {
21788 PyThreadState* __tstate = wxPyBeginAllowThreads();
21789 result = (int)((wxDC const *)arg1)->GetDepth();
21790 wxPyEndAllowThreads(__tstate);
21791 if (PyErr_Occurred()) SWIG_fail;
21792 }
21793 resultobj = SWIG_From_int(static_cast< int >(result));
21794 return resultobj;
21795fail:
21796 return NULL;
21797}
21798
21799
21800SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21801 PyObject *resultobj = 0;
21802 wxDC *arg1 = (wxDC *) 0 ;
21803 wxSize result;
21804 void *argp1 = 0 ;
21805 int res1 = 0 ;
21806 PyObject *swig_obj[1] ;
21807
21808 if (!args) SWIG_fail;
21809 swig_obj[0] = args;
21810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21811 if (!SWIG_IsOK(res1)) {
21812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21813 }
21814 arg1 = reinterpret_cast< wxDC * >(argp1);
21815 {
21816 PyThreadState* __tstate = wxPyBeginAllowThreads();
21817 result = ((wxDC const *)arg1)->GetPPI();
21818 wxPyEndAllowThreads(__tstate);
21819 if (PyErr_Occurred()) SWIG_fail;
21820 }
21821 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21822 return resultobj;
21823fail:
21824 return NULL;
21825}
21826
21827
b39fe951 21828SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
21829 PyObject *resultobj = 0;
21830 wxDC *arg1 = (wxDC *) 0 ;
21831 bool result;
21832 void *argp1 = 0 ;
21833 int res1 = 0 ;
21834 PyObject *swig_obj[1] ;
21835
21836 if (!args) SWIG_fail;
21837 swig_obj[0] = args;
21838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21839 if (!SWIG_IsOK(res1)) {
b39fe951 21840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
0085ce49
RD
21841 }
21842 arg1 = reinterpret_cast< wxDC * >(argp1);
21843 {
21844 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21845 result = (bool)((wxDC const *)arg1)->IsOk();
0085ce49
RD
21846 wxPyEndAllowThreads(__tstate);
21847 if (PyErr_Occurred()) SWIG_fail;
21848 }
21849 {
21850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21851 }
21852 return resultobj;
21853fail:
21854 return NULL;
21855}
21856
21857
21858SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21859 PyObject *resultobj = 0;
21860 wxDC *arg1 = (wxDC *) 0 ;
21861 int result;
21862 void *argp1 = 0 ;
21863 int res1 = 0 ;
21864 PyObject *swig_obj[1] ;
21865
21866 if (!args) SWIG_fail;
21867 swig_obj[0] = args;
21868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21869 if (!SWIG_IsOK(res1)) {
21870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21871 }
21872 arg1 = reinterpret_cast< wxDC * >(argp1);
21873 {
21874 PyThreadState* __tstate = wxPyBeginAllowThreads();
21875 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21876 wxPyEndAllowThreads(__tstate);
21877 if (PyErr_Occurred()) SWIG_fail;
21878 }
21879 resultobj = SWIG_From_int(static_cast< int >(result));
21880 return resultobj;
21881fail:
21882 return NULL;
21883}
21884
21885
21886SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21887 PyObject *resultobj = 0;
21888 wxDC *arg1 = (wxDC *) 0 ;
21889 wxBrush *result = 0 ;
21890 void *argp1 = 0 ;
21891 int res1 = 0 ;
21892 PyObject *swig_obj[1] ;
21893
21894 if (!args) SWIG_fail;
21895 swig_obj[0] = args;
21896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21897 if (!SWIG_IsOK(res1)) {
21898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21899 }
21900 arg1 = reinterpret_cast< wxDC * >(argp1);
21901 {
21902 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21903 {
0085ce49
RD
21904 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21905 result = (wxBrush *) &_result_ref;
093d3ff1 21906 }
0085ce49
RD
21907 wxPyEndAllowThreads(__tstate);
21908 if (PyErr_Occurred()) SWIG_fail;
21909 }
21910 {
21911 wxBrush* resultptr = new wxBrush(*result);
21912 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21913 }
21914 return resultobj;
21915fail:
21916 return NULL;
21917}
21918
21919
21920SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21921 PyObject *resultobj = 0;
21922 wxDC *arg1 = (wxDC *) 0 ;
21923 wxBrush *result = 0 ;
21924 void *argp1 = 0 ;
21925 int res1 = 0 ;
21926 PyObject *swig_obj[1] ;
21927
21928 if (!args) SWIG_fail;
21929 swig_obj[0] = args;
21930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21931 if (!SWIG_IsOK(res1)) {
21932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21933 }
21934 arg1 = reinterpret_cast< wxDC * >(argp1);
21935 {
21936 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21937 {
0085ce49
RD
21938 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21939 result = (wxBrush *) &_result_ref;
093d3ff1 21940 }
0085ce49
RD
21941 wxPyEndAllowThreads(__tstate);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 }
21944 {
21945 wxBrush* resultptr = new wxBrush(*result);
21946 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21947 }
21948 return resultobj;
21949fail:
21950 return NULL;
21951}
21952
21953
21954SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21955 PyObject *resultobj = 0;
21956 wxDC *arg1 = (wxDC *) 0 ;
21957 wxFont *result = 0 ;
21958 void *argp1 = 0 ;
21959 int res1 = 0 ;
21960 PyObject *swig_obj[1] ;
21961
21962 if (!args) SWIG_fail;
21963 swig_obj[0] = args;
21964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21965 if (!SWIG_IsOK(res1)) {
21966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21967 }
21968 arg1 = reinterpret_cast< wxDC * >(argp1);
21969 {
21970 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21971 {
0085ce49
RD
21972 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21973 result = (wxFont *) &_result_ref;
093d3ff1 21974 }
0085ce49
RD
21975 wxPyEndAllowThreads(__tstate);
21976 if (PyErr_Occurred()) SWIG_fail;
21977 }
21978 {
21979 wxFont* resultptr = new wxFont(*result);
21980 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21981 }
21982 return resultobj;
21983fail:
21984 return NULL;
21985}
21986
21987
21988SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21989 PyObject *resultobj = 0;
21990 wxDC *arg1 = (wxDC *) 0 ;
21991 wxPen *result = 0 ;
21992 void *argp1 = 0 ;
21993 int res1 = 0 ;
21994 PyObject *swig_obj[1] ;
21995
21996 if (!args) SWIG_fail;
21997 swig_obj[0] = args;
21998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21999 if (!SWIG_IsOK(res1)) {
22000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22001 }
22002 arg1 = reinterpret_cast< wxDC * >(argp1);
22003 {
22004 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22005 {
0085ce49
RD
22006 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22007 result = (wxPen *) &_result_ref;
093d3ff1 22008 }
0085ce49
RD
22009 wxPyEndAllowThreads(__tstate);
22010 if (PyErr_Occurred()) SWIG_fail;
22011 }
22012 {
22013 wxPen* resultptr = new wxPen(*result);
22014 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22015 }
22016 return resultobj;
22017fail:
22018 return NULL;
22019}
22020
22021
22022SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22023 PyObject *resultobj = 0;
22024 wxDC *arg1 = (wxDC *) 0 ;
22025 wxColour *result = 0 ;
22026 void *argp1 = 0 ;
22027 int res1 = 0 ;
22028 PyObject *swig_obj[1] ;
22029
22030 if (!args) SWIG_fail;
22031 swig_obj[0] = args;
22032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22033 if (!SWIG_IsOK(res1)) {
22034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22035 }
22036 arg1 = reinterpret_cast< wxDC * >(argp1);
22037 {
22038 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22039 {
0085ce49
RD
22040 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22041 result = (wxColour *) &_result_ref;
093d3ff1 22042 }
0085ce49
RD
22043 wxPyEndAllowThreads(__tstate);
22044 if (PyErr_Occurred()) SWIG_fail;
22045 }
22046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22047 return resultobj;
22048fail:
22049 return NULL;
22050}
22051
22052
22053SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22054 PyObject *resultobj = 0;
22055 wxDC *arg1 = (wxDC *) 0 ;
22056 wxColour *result = 0 ;
22057 void *argp1 = 0 ;
22058 int res1 = 0 ;
22059 PyObject *swig_obj[1] ;
22060
22061 if (!args) SWIG_fail;
22062 swig_obj[0] = args;
22063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22064 if (!SWIG_IsOK(res1)) {
22065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22066 }
22067 arg1 = reinterpret_cast< wxDC * >(argp1);
22068 {
22069 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22070 {
0085ce49
RD
22071 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22072 result = (wxColour *) &_result_ref;
093d3ff1 22073 }
0085ce49
RD
22074 wxPyEndAllowThreads(__tstate);
22075 if (PyErr_Occurred()) SWIG_fail;
22076 }
22077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22078 return resultobj;
22079fail:
22080 return NULL;
22081}
22082
22083
22084SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22085 PyObject *resultobj = 0;
22086 wxDC *arg1 = (wxDC *) 0 ;
22087 wxColour *arg2 = 0 ;
22088 void *argp1 = 0 ;
22089 int res1 = 0 ;
22090 wxColour temp2 ;
22091 PyObject * obj0 = 0 ;
22092 PyObject * obj1 = 0 ;
22093 char * kwnames[] = {
22094 (char *) "self",(char *) "colour", NULL
22095 };
22096
22097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22099 if (!SWIG_IsOK(res1)) {
22100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22101 }
22102 arg1 = reinterpret_cast< wxDC * >(argp1);
22103 {
22104 arg2 = &temp2;
22105 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22106 }
22107 {
22108 PyThreadState* __tstate = wxPyBeginAllowThreads();
22109 (arg1)->SetTextForeground((wxColour const &)*arg2);
22110 wxPyEndAllowThreads(__tstate);
22111 if (PyErr_Occurred()) SWIG_fail;
22112 }
22113 resultobj = SWIG_Py_Void();
22114 return resultobj;
22115fail:
22116 return NULL;
22117}
22118
22119
22120SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22121 PyObject *resultobj = 0;
22122 wxDC *arg1 = (wxDC *) 0 ;
22123 wxColour *arg2 = 0 ;
22124 void *argp1 = 0 ;
22125 int res1 = 0 ;
22126 wxColour temp2 ;
22127 PyObject * obj0 = 0 ;
22128 PyObject * obj1 = 0 ;
22129 char * kwnames[] = {
22130 (char *) "self",(char *) "colour", NULL
22131 };
22132
22133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22135 if (!SWIG_IsOK(res1)) {
22136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22137 }
22138 arg1 = reinterpret_cast< wxDC * >(argp1);
22139 {
22140 arg2 = &temp2;
22141 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22142 }
22143 {
22144 PyThreadState* __tstate = wxPyBeginAllowThreads();
22145 (arg1)->SetTextBackground((wxColour const &)*arg2);
22146 wxPyEndAllowThreads(__tstate);
22147 if (PyErr_Occurred()) SWIG_fail;
22148 }
22149 resultobj = SWIG_Py_Void();
22150 return resultobj;
22151fail:
22152 return NULL;
22153}
22154
22155
22156SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22157 PyObject *resultobj = 0;
22158 wxDC *arg1 = (wxDC *) 0 ;
22159 int result;
22160 void *argp1 = 0 ;
22161 int res1 = 0 ;
22162 PyObject *swig_obj[1] ;
22163
22164 if (!args) SWIG_fail;
22165 swig_obj[0] = args;
22166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22167 if (!SWIG_IsOK(res1)) {
22168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22169 }
22170 arg1 = reinterpret_cast< wxDC * >(argp1);
22171 {
22172 PyThreadState* __tstate = wxPyBeginAllowThreads();
22173 result = (int)((wxDC const *)arg1)->GetMapMode();
22174 wxPyEndAllowThreads(__tstate);
22175 if (PyErr_Occurred()) SWIG_fail;
22176 }
22177 resultobj = SWIG_From_int(static_cast< int >(result));
22178 return resultobj;
22179fail:
22180 return NULL;
22181}
22182
22183
22184SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22185 PyObject *resultobj = 0;
22186 wxDC *arg1 = (wxDC *) 0 ;
22187 int arg2 ;
22188 void *argp1 = 0 ;
22189 int res1 = 0 ;
22190 int val2 ;
22191 int ecode2 = 0 ;
22192 PyObject * obj0 = 0 ;
22193 PyObject * obj1 = 0 ;
22194 char * kwnames[] = {
22195 (char *) "self",(char *) "mode", NULL
22196 };
22197
22198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22200 if (!SWIG_IsOK(res1)) {
22201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22202 }
22203 arg1 = reinterpret_cast< wxDC * >(argp1);
22204 ecode2 = SWIG_AsVal_int(obj1, &val2);
22205 if (!SWIG_IsOK(ecode2)) {
22206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22207 }
22208 arg2 = static_cast< int >(val2);
22209 {
22210 PyThreadState* __tstate = wxPyBeginAllowThreads();
22211 (arg1)->SetMapMode(arg2);
22212 wxPyEndAllowThreads(__tstate);
22213 if (PyErr_Occurred()) SWIG_fail;
22214 }
22215 resultobj = SWIG_Py_Void();
22216 return resultobj;
22217fail:
22218 return NULL;
22219}
22220
22221
22222SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22223 PyObject *resultobj = 0;
22224 wxDC *arg1 = (wxDC *) 0 ;
22225 double *arg2 = (double *) 0 ;
22226 double *arg3 = (double *) 0 ;
22227 void *argp1 = 0 ;
22228 int res1 = 0 ;
22229 double temp2 ;
22230 int res2 = SWIG_TMPOBJ ;
22231 double temp3 ;
22232 int res3 = SWIG_TMPOBJ ;
22233 PyObject *swig_obj[1] ;
22234
22235 arg2 = &temp2;
22236 arg3 = &temp3;
22237 if (!args) SWIG_fail;
22238 swig_obj[0] = args;
22239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22240 if (!SWIG_IsOK(res1)) {
22241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22242 }
22243 arg1 = reinterpret_cast< wxDC * >(argp1);
22244 {
22245 PyThreadState* __tstate = wxPyBeginAllowThreads();
22246 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22247 wxPyEndAllowThreads(__tstate);
22248 if (PyErr_Occurred()) SWIG_fail;
22249 }
22250 resultobj = SWIG_Py_Void();
22251 if (SWIG_IsTmpObj(res2)) {
22252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22253 } else {
22254 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22256 }
22257 if (SWIG_IsTmpObj(res3)) {
22258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22259 } else {
22260 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22262 }
22263 return resultobj;
22264fail:
22265 return NULL;
22266}
22267
22268
22269SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22270 PyObject *resultobj = 0;
22271 wxDC *arg1 = (wxDC *) 0 ;
22272 double arg2 ;
22273 double arg3 ;
22274 void *argp1 = 0 ;
22275 int res1 = 0 ;
22276 double val2 ;
22277 int ecode2 = 0 ;
22278 double val3 ;
22279 int ecode3 = 0 ;
22280 PyObject * obj0 = 0 ;
22281 PyObject * obj1 = 0 ;
22282 PyObject * obj2 = 0 ;
22283 char * kwnames[] = {
22284 (char *) "self",(char *) "x",(char *) "y", NULL
22285 };
22286
22287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22289 if (!SWIG_IsOK(res1)) {
22290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22291 }
22292 arg1 = reinterpret_cast< wxDC * >(argp1);
22293 ecode2 = SWIG_AsVal_double(obj1, &val2);
22294 if (!SWIG_IsOK(ecode2)) {
22295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22296 }
22297 arg2 = static_cast< double >(val2);
22298 ecode3 = SWIG_AsVal_double(obj2, &val3);
22299 if (!SWIG_IsOK(ecode3)) {
22300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22301 }
22302 arg3 = static_cast< double >(val3);
22303 {
22304 PyThreadState* __tstate = wxPyBeginAllowThreads();
22305 (arg1)->SetUserScale(arg2,arg3);
22306 wxPyEndAllowThreads(__tstate);
22307 if (PyErr_Occurred()) SWIG_fail;
22308 }
22309 resultobj = SWIG_Py_Void();
22310 return resultobj;
22311fail:
22312 return NULL;
22313}
22314
22315
22316SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22317 PyObject *resultobj = 0;
22318 wxDC *arg1 = (wxDC *) 0 ;
22319 double *arg2 = (double *) 0 ;
22320 double *arg3 = (double *) 0 ;
22321 void *argp1 = 0 ;
22322 int res1 = 0 ;
22323 double temp2 ;
22324 int res2 = SWIG_TMPOBJ ;
22325 double temp3 ;
22326 int res3 = SWIG_TMPOBJ ;
22327 PyObject *swig_obj[1] ;
22328
22329 arg2 = &temp2;
22330 arg3 = &temp3;
22331 if (!args) SWIG_fail;
22332 swig_obj[0] = args;
22333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22334 if (!SWIG_IsOK(res1)) {
22335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22336 }
22337 arg1 = reinterpret_cast< wxDC * >(argp1);
22338 {
22339 PyThreadState* __tstate = wxPyBeginAllowThreads();
22340 (arg1)->GetLogicalScale(arg2,arg3);
22341 wxPyEndAllowThreads(__tstate);
22342 if (PyErr_Occurred()) SWIG_fail;
22343 }
22344 resultobj = SWIG_Py_Void();
22345 if (SWIG_IsTmpObj(res2)) {
22346 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22347 } else {
22348 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22349 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22350 }
22351 if (SWIG_IsTmpObj(res3)) {
22352 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22353 } else {
22354 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22355 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22356 }
22357 return resultobj;
22358fail:
22359 return NULL;
22360}
22361
22362
22363SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22364 PyObject *resultobj = 0;
22365 wxDC *arg1 = (wxDC *) 0 ;
22366 double arg2 ;
22367 double arg3 ;
22368 void *argp1 = 0 ;
22369 int res1 = 0 ;
22370 double val2 ;
22371 int ecode2 = 0 ;
22372 double val3 ;
22373 int ecode3 = 0 ;
22374 PyObject * obj0 = 0 ;
22375 PyObject * obj1 = 0 ;
22376 PyObject * obj2 = 0 ;
22377 char * kwnames[] = {
22378 (char *) "self",(char *) "x",(char *) "y", NULL
22379 };
22380
22381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22383 if (!SWIG_IsOK(res1)) {
22384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22385 }
22386 arg1 = reinterpret_cast< wxDC * >(argp1);
22387 ecode2 = SWIG_AsVal_double(obj1, &val2);
22388 if (!SWIG_IsOK(ecode2)) {
22389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22390 }
22391 arg2 = static_cast< double >(val2);
22392 ecode3 = SWIG_AsVal_double(obj2, &val3);
22393 if (!SWIG_IsOK(ecode3)) {
22394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22395 }
22396 arg3 = static_cast< double >(val3);
22397 {
22398 PyThreadState* __tstate = wxPyBeginAllowThreads();
22399 (arg1)->SetLogicalScale(arg2,arg3);
22400 wxPyEndAllowThreads(__tstate);
22401 if (PyErr_Occurred()) SWIG_fail;
22402 }
22403 resultobj = SWIG_Py_Void();
22404 return resultobj;
22405fail:
22406 return NULL;
22407}
22408
22409
22410SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22411 PyObject *resultobj = 0;
22412 wxDC *arg1 = (wxDC *) 0 ;
22413 wxPoint result;
22414 void *argp1 = 0 ;
22415 int res1 = 0 ;
22416 PyObject *swig_obj[1] ;
22417
22418 if (!args) SWIG_fail;
22419 swig_obj[0] = args;
22420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22421 if (!SWIG_IsOK(res1)) {
22422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22423 }
22424 arg1 = reinterpret_cast< wxDC * >(argp1);
22425 {
22426 PyThreadState* __tstate = wxPyBeginAllowThreads();
22427 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22428 wxPyEndAllowThreads(__tstate);
22429 if (PyErr_Occurred()) SWIG_fail;
22430 }
22431 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22432 return resultobj;
22433fail:
22434 return NULL;
22435}
22436
22437
22438SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22439 PyObject *resultobj = 0;
22440 wxDC *arg1 = (wxDC *) 0 ;
22441 int *arg2 = (int *) 0 ;
22442 int *arg3 = (int *) 0 ;
22443 void *argp1 = 0 ;
22444 int res1 = 0 ;
22445 int temp2 ;
22446 int res2 = SWIG_TMPOBJ ;
22447 int temp3 ;
22448 int res3 = SWIG_TMPOBJ ;
22449 PyObject *swig_obj[1] ;
22450
22451 arg2 = &temp2;
22452 arg3 = &temp3;
22453 if (!args) SWIG_fail;
22454 swig_obj[0] = args;
22455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22456 if (!SWIG_IsOK(res1)) {
22457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22458 }
22459 arg1 = reinterpret_cast< wxDC * >(argp1);
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22463 wxPyEndAllowThreads(__tstate);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 resultobj = SWIG_Py_Void();
22467 if (SWIG_IsTmpObj(res2)) {
22468 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22469 } else {
22470 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22471 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22472 }
22473 if (SWIG_IsTmpObj(res3)) {
22474 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22475 } else {
22476 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22477 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22478 }
22479 return resultobj;
22480fail:
22481 return NULL;
22482}
22483
22484
22485SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22486 PyObject *resultobj = 0;
22487 wxDC *arg1 = (wxDC *) 0 ;
22488 int arg2 ;
22489 int arg3 ;
22490 void *argp1 = 0 ;
22491 int res1 = 0 ;
22492 int val2 ;
22493 int ecode2 = 0 ;
22494 int val3 ;
22495 int ecode3 = 0 ;
22496 PyObject * obj0 = 0 ;
22497 PyObject * obj1 = 0 ;
22498 PyObject * obj2 = 0 ;
22499 char * kwnames[] = {
22500 (char *) "self",(char *) "x",(char *) "y", NULL
22501 };
22502
22503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22505 if (!SWIG_IsOK(res1)) {
22506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22507 }
22508 arg1 = reinterpret_cast< wxDC * >(argp1);
22509 ecode2 = SWIG_AsVal_int(obj1, &val2);
22510 if (!SWIG_IsOK(ecode2)) {
22511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22512 }
22513 arg2 = static_cast< int >(val2);
22514 ecode3 = SWIG_AsVal_int(obj2, &val3);
22515 if (!SWIG_IsOK(ecode3)) {
22516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22517 }
22518 arg3 = static_cast< int >(val3);
22519 {
22520 PyThreadState* __tstate = wxPyBeginAllowThreads();
22521 (arg1)->SetLogicalOrigin(arg2,arg3);
22522 wxPyEndAllowThreads(__tstate);
22523 if (PyErr_Occurred()) SWIG_fail;
22524 }
22525 resultobj = SWIG_Py_Void();
22526 return resultobj;
22527fail:
22528 return NULL;
22529}
22530
22531
22532SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22533 PyObject *resultobj = 0;
22534 wxDC *arg1 = (wxDC *) 0 ;
22535 wxPoint *arg2 = 0 ;
22536 void *argp1 = 0 ;
22537 int res1 = 0 ;
22538 wxPoint temp2 ;
22539 PyObject * obj0 = 0 ;
22540 PyObject * obj1 = 0 ;
22541 char * kwnames[] = {
22542 (char *) "self",(char *) "point", NULL
22543 };
22544
22545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22547 if (!SWIG_IsOK(res1)) {
22548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22549 }
22550 arg1 = reinterpret_cast< wxDC * >(argp1);
22551 {
22552 arg2 = &temp2;
22553 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22554 }
22555 {
22556 PyThreadState* __tstate = wxPyBeginAllowThreads();
22557 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22558 wxPyEndAllowThreads(__tstate);
22559 if (PyErr_Occurred()) SWIG_fail;
22560 }
22561 resultobj = SWIG_Py_Void();
22562 return resultobj;
22563fail:
22564 return NULL;
22565}
22566
22567
22568SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22569 PyObject *resultobj = 0;
22570 wxDC *arg1 = (wxDC *) 0 ;
22571 wxPoint result;
22572 void *argp1 = 0 ;
22573 int res1 = 0 ;
22574 PyObject *swig_obj[1] ;
22575
22576 if (!args) SWIG_fail;
22577 swig_obj[0] = args;
22578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22579 if (!SWIG_IsOK(res1)) {
22580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22581 }
22582 arg1 = reinterpret_cast< wxDC * >(argp1);
22583 {
22584 PyThreadState* __tstate = wxPyBeginAllowThreads();
22585 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22586 wxPyEndAllowThreads(__tstate);
22587 if (PyErr_Occurred()) SWIG_fail;
22588 }
22589 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22590 return resultobj;
22591fail:
22592 return NULL;
22593}
22594
22595
22596SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22597 PyObject *resultobj = 0;
22598 wxDC *arg1 = (wxDC *) 0 ;
22599 int *arg2 = (int *) 0 ;
22600 int *arg3 = (int *) 0 ;
22601 void *argp1 = 0 ;
22602 int res1 = 0 ;
22603 int temp2 ;
22604 int res2 = SWIG_TMPOBJ ;
22605 int temp3 ;
22606 int res3 = SWIG_TMPOBJ ;
22607 PyObject *swig_obj[1] ;
22608
22609 arg2 = &temp2;
22610 arg3 = &temp3;
22611 if (!args) SWIG_fail;
22612 swig_obj[0] = args;
22613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22614 if (!SWIG_IsOK(res1)) {
22615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22616 }
22617 arg1 = reinterpret_cast< wxDC * >(argp1);
22618 {
22619 PyThreadState* __tstate = wxPyBeginAllowThreads();
22620 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22621 wxPyEndAllowThreads(__tstate);
22622 if (PyErr_Occurred()) SWIG_fail;
22623 }
22624 resultobj = SWIG_Py_Void();
22625 if (SWIG_IsTmpObj(res2)) {
22626 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22627 } else {
22628 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22630 }
22631 if (SWIG_IsTmpObj(res3)) {
22632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22633 } else {
22634 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22636 }
22637 return resultobj;
22638fail:
22639 return NULL;
22640}
22641
22642
22643SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22644 PyObject *resultobj = 0;
22645 wxDC *arg1 = (wxDC *) 0 ;
22646 int arg2 ;
22647 int arg3 ;
22648 void *argp1 = 0 ;
22649 int res1 = 0 ;
22650 int val2 ;
22651 int ecode2 = 0 ;
22652 int val3 ;
22653 int ecode3 = 0 ;
22654 PyObject * obj0 = 0 ;
22655 PyObject * obj1 = 0 ;
22656 PyObject * obj2 = 0 ;
22657 char * kwnames[] = {
22658 (char *) "self",(char *) "x",(char *) "y", NULL
22659 };
22660
22661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22663 if (!SWIG_IsOK(res1)) {
22664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22665 }
22666 arg1 = reinterpret_cast< wxDC * >(argp1);
22667 ecode2 = SWIG_AsVal_int(obj1, &val2);
22668 if (!SWIG_IsOK(ecode2)) {
22669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22670 }
22671 arg2 = static_cast< int >(val2);
22672 ecode3 = SWIG_AsVal_int(obj2, &val3);
22673 if (!SWIG_IsOK(ecode3)) {
22674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22675 }
22676 arg3 = static_cast< int >(val3);
22677 {
22678 PyThreadState* __tstate = wxPyBeginAllowThreads();
22679 (arg1)->SetDeviceOrigin(arg2,arg3);
22680 wxPyEndAllowThreads(__tstate);
22681 if (PyErr_Occurred()) SWIG_fail;
22682 }
22683 resultobj = SWIG_Py_Void();
22684 return resultobj;
22685fail:
22686 return NULL;
22687}
22688
22689
22690SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22691 PyObject *resultobj = 0;
22692 wxDC *arg1 = (wxDC *) 0 ;
22693 wxPoint *arg2 = 0 ;
22694 void *argp1 = 0 ;
22695 int res1 = 0 ;
22696 wxPoint temp2 ;
22697 PyObject * obj0 = 0 ;
22698 PyObject * obj1 = 0 ;
22699 char * kwnames[] = {
22700 (char *) "self",(char *) "point", NULL
22701 };
22702
22703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22705 if (!SWIG_IsOK(res1)) {
22706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22707 }
22708 arg1 = reinterpret_cast< wxDC * >(argp1);
22709 {
22710 arg2 = &temp2;
22711 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22712 }
22713 {
22714 PyThreadState* __tstate = wxPyBeginAllowThreads();
22715 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
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_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22727 PyObject *resultobj = 0;
22728 wxDC *arg1 = (wxDC *) 0 ;
22729 bool arg2 ;
22730 bool arg3 ;
22731 void *argp1 = 0 ;
22732 int res1 = 0 ;
22733 bool val2 ;
22734 int ecode2 = 0 ;
22735 bool val3 ;
22736 int ecode3 = 0 ;
22737 PyObject * obj0 = 0 ;
22738 PyObject * obj1 = 0 ;
22739 PyObject * obj2 = 0 ;
22740 char * kwnames[] = {
22741 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22742 };
22743
22744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22746 if (!SWIG_IsOK(res1)) {
22747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22748 }
22749 arg1 = reinterpret_cast< wxDC * >(argp1);
22750 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22751 if (!SWIG_IsOK(ecode2)) {
22752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22753 }
22754 arg2 = static_cast< bool >(val2);
22755 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22756 if (!SWIG_IsOK(ecode3)) {
22757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22758 }
22759 arg3 = static_cast< bool >(val3);
22760 {
22761 PyThreadState* __tstate = wxPyBeginAllowThreads();
22762 (arg1)->SetAxisOrientation(arg2,arg3);
22763 wxPyEndAllowThreads(__tstate);
22764 if (PyErr_Occurred()) SWIG_fail;
22765 }
22766 resultobj = SWIG_Py_Void();
22767 return resultobj;
22768fail:
22769 return NULL;
22770}
22771
22772
22773SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22774 PyObject *resultobj = 0;
22775 wxDC *arg1 = (wxDC *) 0 ;
22776 int result;
22777 void *argp1 = 0 ;
22778 int res1 = 0 ;
22779 PyObject *swig_obj[1] ;
22780
22781 if (!args) SWIG_fail;
22782 swig_obj[0] = args;
22783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22784 if (!SWIG_IsOK(res1)) {
22785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22786 }
22787 arg1 = reinterpret_cast< wxDC * >(argp1);
22788 {
22789 PyThreadState* __tstate = wxPyBeginAllowThreads();
22790 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22791 wxPyEndAllowThreads(__tstate);
22792 if (PyErr_Occurred()) SWIG_fail;
22793 }
22794 resultobj = SWIG_From_int(static_cast< int >(result));
22795 return resultobj;
22796fail:
22797 return NULL;
22798}
22799
22800
22801SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22802 PyObject *resultobj = 0;
22803 wxDC *arg1 = (wxDC *) 0 ;
22804 int arg2 ;
22805 void *argp1 = 0 ;
22806 int res1 = 0 ;
22807 int val2 ;
22808 int ecode2 = 0 ;
22809 PyObject * obj0 = 0 ;
22810 PyObject * obj1 = 0 ;
22811 char * kwnames[] = {
22812 (char *) "self",(char *) "function", NULL
22813 };
22814
22815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22817 if (!SWIG_IsOK(res1)) {
22818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22819 }
22820 arg1 = reinterpret_cast< wxDC * >(argp1);
22821 ecode2 = SWIG_AsVal_int(obj1, &val2);
22822 if (!SWIG_IsOK(ecode2)) {
22823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22824 }
22825 arg2 = static_cast< int >(val2);
22826 {
22827 PyThreadState* __tstate = wxPyBeginAllowThreads();
22828 (arg1)->SetLogicalFunction(arg2);
22829 wxPyEndAllowThreads(__tstate);
22830 if (PyErr_Occurred()) SWIG_fail;
22831 }
22832 resultobj = SWIG_Py_Void();
22833 return resultobj;
22834fail:
22835 return NULL;
22836}
22837
22838
22839SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22840 PyObject *resultobj = 0;
22841 wxDC *arg1 = (wxDC *) 0 ;
22842 void *argp1 = 0 ;
22843 int res1 = 0 ;
22844 PyObject *swig_obj[1] ;
22845
22846 if (!args) SWIG_fail;
22847 swig_obj[0] = args;
22848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22849 if (!SWIG_IsOK(res1)) {
22850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22851 }
22852 arg1 = reinterpret_cast< wxDC * >(argp1);
22853 {
22854 PyThreadState* __tstate = wxPyBeginAllowThreads();
22855 (arg1)->ComputeScaleAndOrigin();
22856 wxPyEndAllowThreads(__tstate);
22857 if (PyErr_Occurred()) SWIG_fail;
22858 }
22859 resultobj = SWIG_Py_Void();
22860 return resultobj;
22861fail:
22862 return NULL;
22863}
22864
22865
22866SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22867 PyObject *resultobj = 0;
22868 wxDC *arg1 = (wxDC *) 0 ;
22869 int arg2 ;
22870 int arg3 ;
22871 void *argp1 = 0 ;
22872 int res1 = 0 ;
22873 int val2 ;
22874 int ecode2 = 0 ;
22875 int val3 ;
22876 int ecode3 = 0 ;
22877 PyObject * obj0 = 0 ;
22878 PyObject * obj1 = 0 ;
22879 PyObject * obj2 = 0 ;
22880 char * kwnames[] = {
22881 (char *) "self",(char *) "x",(char *) "y", NULL
22882 };
22883
22884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22886 if (!SWIG_IsOK(res1)) {
22887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22888 }
22889 arg1 = reinterpret_cast< wxDC * >(argp1);
22890 ecode2 = SWIG_AsVal_int(obj1, &val2);
22891 if (!SWIG_IsOK(ecode2)) {
22892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22893 }
22894 arg2 = static_cast< int >(val2);
22895 ecode3 = SWIG_AsVal_int(obj2, &val3);
22896 if (!SWIG_IsOK(ecode3)) {
22897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22898 }
22899 arg3 = static_cast< int >(val3);
22900 {
22901 PyThreadState* __tstate = wxPyBeginAllowThreads();
22902 (arg1)->CalcBoundingBox(arg2,arg3);
22903 wxPyEndAllowThreads(__tstate);
22904 if (PyErr_Occurred()) SWIG_fail;
22905 }
22906 resultobj = SWIG_Py_Void();
22907 return resultobj;
22908fail:
22909 return NULL;
22910}
22911
22912
22913SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22914 PyObject *resultobj = 0;
22915 wxDC *arg1 = (wxDC *) 0 ;
22916 wxPoint *arg2 = 0 ;
22917 void *argp1 = 0 ;
22918 int res1 = 0 ;
22919 wxPoint temp2 ;
22920 PyObject * obj0 = 0 ;
22921 PyObject * obj1 = 0 ;
22922 char * kwnames[] = {
22923 (char *) "self",(char *) "point", NULL
22924 };
22925
22926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22928 if (!SWIG_IsOK(res1)) {
22929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22930 }
22931 arg1 = reinterpret_cast< wxDC * >(argp1);
22932 {
22933 arg2 = &temp2;
22934 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22935 }
22936 {
22937 PyThreadState* __tstate = wxPyBeginAllowThreads();
22938 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22939 wxPyEndAllowThreads(__tstate);
22940 if (PyErr_Occurred()) SWIG_fail;
22941 }
22942 resultobj = SWIG_Py_Void();
22943 return resultobj;
22944fail:
22945 return NULL;
22946}
22947
22948
22949SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22950 PyObject *resultobj = 0;
22951 wxDC *arg1 = (wxDC *) 0 ;
22952 void *argp1 = 0 ;
22953 int res1 = 0 ;
22954 PyObject *swig_obj[1] ;
22955
22956 if (!args) SWIG_fail;
22957 swig_obj[0] = args;
22958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22959 if (!SWIG_IsOK(res1)) {
22960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22961 }
22962 arg1 = reinterpret_cast< wxDC * >(argp1);
22963 {
22964 PyThreadState* __tstate = wxPyBeginAllowThreads();
22965 (arg1)->ResetBoundingBox();
22966 wxPyEndAllowThreads(__tstate);
22967 if (PyErr_Occurred()) SWIG_fail;
22968 }
22969 resultobj = SWIG_Py_Void();
22970 return resultobj;
22971fail:
22972 return NULL;
22973}
22974
22975
22976SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22977 PyObject *resultobj = 0;
22978 wxDC *arg1 = (wxDC *) 0 ;
22979 int result;
22980 void *argp1 = 0 ;
22981 int res1 = 0 ;
22982 PyObject *swig_obj[1] ;
22983
22984 if (!args) SWIG_fail;
22985 swig_obj[0] = args;
22986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22987 if (!SWIG_IsOK(res1)) {
22988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22989 }
22990 arg1 = reinterpret_cast< wxDC * >(argp1);
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
22993 result = (int)((wxDC const *)arg1)->MinX();
22994 wxPyEndAllowThreads(__tstate);
22995 if (PyErr_Occurred()) SWIG_fail;
22996 }
22997 resultobj = SWIG_From_int(static_cast< int >(result));
22998 return resultobj;
22999fail:
23000 return NULL;
23001}
23002
23003
23004SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23005 PyObject *resultobj = 0;
23006 wxDC *arg1 = (wxDC *) 0 ;
23007 int result;
23008 void *argp1 = 0 ;
23009 int res1 = 0 ;
23010 PyObject *swig_obj[1] ;
23011
23012 if (!args) SWIG_fail;
23013 swig_obj[0] = args;
23014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23015 if (!SWIG_IsOK(res1)) {
23016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23017 }
23018 arg1 = reinterpret_cast< wxDC * >(argp1);
23019 {
23020 PyThreadState* __tstate = wxPyBeginAllowThreads();
23021 result = (int)((wxDC const *)arg1)->MaxX();
23022 wxPyEndAllowThreads(__tstate);
23023 if (PyErr_Occurred()) SWIG_fail;
23024 }
23025 resultobj = SWIG_From_int(static_cast< int >(result));
23026 return resultobj;
23027fail:
23028 return NULL;
23029}
23030
23031
23032SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23033 PyObject *resultobj = 0;
23034 wxDC *arg1 = (wxDC *) 0 ;
23035 int result;
23036 void *argp1 = 0 ;
23037 int res1 = 0 ;
23038 PyObject *swig_obj[1] ;
23039
23040 if (!args) SWIG_fail;
23041 swig_obj[0] = args;
23042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23043 if (!SWIG_IsOK(res1)) {
23044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23045 }
23046 arg1 = reinterpret_cast< wxDC * >(argp1);
23047 {
23048 PyThreadState* __tstate = wxPyBeginAllowThreads();
23049 result = (int)((wxDC const *)arg1)->MinY();
23050 wxPyEndAllowThreads(__tstate);
23051 if (PyErr_Occurred()) SWIG_fail;
23052 }
23053 resultobj = SWIG_From_int(static_cast< int >(result));
23054 return resultobj;
23055fail:
23056 return NULL;
23057}
23058
23059
23060SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23061 PyObject *resultobj = 0;
23062 wxDC *arg1 = (wxDC *) 0 ;
23063 int result;
23064 void *argp1 = 0 ;
23065 int res1 = 0 ;
23066 PyObject *swig_obj[1] ;
23067
23068 if (!args) SWIG_fail;
23069 swig_obj[0] = args;
23070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23071 if (!SWIG_IsOK(res1)) {
23072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23073 }
23074 arg1 = reinterpret_cast< wxDC * >(argp1);
23075 {
23076 PyThreadState* __tstate = wxPyBeginAllowThreads();
23077 result = (int)((wxDC const *)arg1)->MaxY();
23078 wxPyEndAllowThreads(__tstate);
23079 if (PyErr_Occurred()) SWIG_fail;
23080 }
23081 resultobj = SWIG_From_int(static_cast< int >(result));
23082 return resultobj;
23083fail:
23084 return NULL;
23085}
23086
23087
23088SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23089 PyObject *resultobj = 0;
23090 wxDC *arg1 = (wxDC *) 0 ;
23091 int *arg2 = (int *) 0 ;
23092 int *arg3 = (int *) 0 ;
23093 int *arg4 = (int *) 0 ;
23094 int *arg5 = (int *) 0 ;
23095 void *argp1 = 0 ;
23096 int res1 = 0 ;
23097 int temp2 ;
23098 int res2 = SWIG_TMPOBJ ;
23099 int temp3 ;
23100 int res3 = SWIG_TMPOBJ ;
23101 int temp4 ;
23102 int res4 = SWIG_TMPOBJ ;
23103 int temp5 ;
23104 int res5 = SWIG_TMPOBJ ;
23105 PyObject *swig_obj[1] ;
23106
23107 arg2 = &temp2;
23108 arg3 = &temp3;
23109 arg4 = &temp4;
23110 arg5 = &temp5;
23111 if (!args) SWIG_fail;
23112 swig_obj[0] = args;
23113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23114 if (!SWIG_IsOK(res1)) {
23115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23116 }
23117 arg1 = reinterpret_cast< wxDC * >(argp1);
23118 {
23119 PyThreadState* __tstate = wxPyBeginAllowThreads();
23120 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23121 wxPyEndAllowThreads(__tstate);
23122 if (PyErr_Occurred()) SWIG_fail;
23123 }
23124 resultobj = SWIG_Py_Void();
23125 if (SWIG_IsTmpObj(res2)) {
23126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23127 } else {
23128 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23130 }
23131 if (SWIG_IsTmpObj(res3)) {
23132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23133 } else {
23134 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23136 }
23137 if (SWIG_IsTmpObj(res4)) {
23138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23139 } else {
23140 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23142 }
23143 if (SWIG_IsTmpObj(res5)) {
23144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23145 } else {
23146 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23148 }
23149 return resultobj;
23150fail:
23151 return NULL;
23152}
23153
23154
b39fe951
RD
23155SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23156 PyObject *resultobj = 0;
23157 wxDC *arg1 = (wxDC *) 0 ;
23158 wxLayoutDirection result;
23159 void *argp1 = 0 ;
23160 int res1 = 0 ;
23161 PyObject *swig_obj[1] ;
23162
23163 if (!args) SWIG_fail;
23164 swig_obj[0] = args;
23165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23166 if (!SWIG_IsOK(res1)) {
23167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23168 }
23169 arg1 = reinterpret_cast< wxDC * >(argp1);
23170 {
23171 PyThreadState* __tstate = wxPyBeginAllowThreads();
23172 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23173 wxPyEndAllowThreads(__tstate);
23174 if (PyErr_Occurred()) SWIG_fail;
23175 }
23176 resultobj = SWIG_From_int(static_cast< int >(result));
23177 return resultobj;
23178fail:
23179 return NULL;
23180}
23181
23182
23183SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23184 PyObject *resultobj = 0;
23185 wxDC *arg1 = (wxDC *) 0 ;
23186 wxLayoutDirection arg2 ;
23187 void *argp1 = 0 ;
23188 int res1 = 0 ;
23189 int val2 ;
23190 int ecode2 = 0 ;
23191 PyObject * obj0 = 0 ;
23192 PyObject * obj1 = 0 ;
23193 char * kwnames[] = {
23194 (char *) "self",(char *) "dir", NULL
23195 };
23196
23197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23199 if (!SWIG_IsOK(res1)) {
23200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23201 }
23202 arg1 = reinterpret_cast< wxDC * >(argp1);
23203 ecode2 = SWIG_AsVal_int(obj1, &val2);
23204 if (!SWIG_IsOK(ecode2)) {
23205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23206 }
23207 arg2 = static_cast< wxLayoutDirection >(val2);
23208 {
23209 PyThreadState* __tstate = wxPyBeginAllowThreads();
23210 (arg1)->SetLayoutDirection(arg2);
23211 wxPyEndAllowThreads(__tstate);
23212 if (PyErr_Occurred()) SWIG_fail;
23213 }
23214 resultobj = SWIG_Py_Void();
23215 return resultobj;
23216fail:
23217 return NULL;
23218}
23219
23220
0085ce49
RD
23221SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23222 PyObject *resultobj = 0;
23223 wxDC *arg1 = (wxDC *) 0 ;
23224 PyObject *arg2 = (PyObject *) 0 ;
23225 PyObject *arg3 = (PyObject *) 0 ;
23226 PyObject *arg4 = (PyObject *) 0 ;
23227 PyObject *result = 0 ;
23228 void *argp1 = 0 ;
23229 int res1 = 0 ;
23230 PyObject * obj0 = 0 ;
23231 PyObject * obj1 = 0 ;
23232 PyObject * obj2 = 0 ;
23233 PyObject * obj3 = 0 ;
23234 char * kwnames[] = {
23235 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23236 };
23237
23238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23240 if (!SWIG_IsOK(res1)) {
23241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23242 }
23243 arg1 = reinterpret_cast< wxDC * >(argp1);
23244 arg2 = obj1;
23245 arg3 = obj2;
23246 arg4 = obj3;
23247 {
23248 PyThreadState* __tstate = wxPyBeginAllowThreads();
23249 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 resultobj = result;
23254 return resultobj;
23255fail:
23256 return NULL;
23257}
23258
23259
23260SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23261 PyObject *resultobj = 0;
23262 wxDC *arg1 = (wxDC *) 0 ;
23263 PyObject *arg2 = (PyObject *) 0 ;
23264 PyObject *arg3 = (PyObject *) 0 ;
23265 PyObject *arg4 = (PyObject *) 0 ;
23266 PyObject *result = 0 ;
23267 void *argp1 = 0 ;
23268 int res1 = 0 ;
23269 PyObject * obj0 = 0 ;
23270 PyObject * obj1 = 0 ;
23271 PyObject * obj2 = 0 ;
23272 PyObject * obj3 = 0 ;
23273 char * kwnames[] = {
23274 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23275 };
23276
23277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23279 if (!SWIG_IsOK(res1)) {
23280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23281 }
23282 arg1 = reinterpret_cast< wxDC * >(argp1);
23283 arg2 = obj1;
23284 arg3 = obj2;
23285 arg4 = obj3;
23286 {
23287 PyThreadState* __tstate = wxPyBeginAllowThreads();
23288 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23289 wxPyEndAllowThreads(__tstate);
23290 if (PyErr_Occurred()) SWIG_fail;
23291 }
23292 resultobj = result;
23293 return resultobj;
23294fail:
23295 return NULL;
23296}
23297
23298
23299SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23300 PyObject *resultobj = 0;
23301 wxDC *arg1 = (wxDC *) 0 ;
23302 PyObject *arg2 = (PyObject *) 0 ;
23303 PyObject *arg3 = (PyObject *) 0 ;
23304 PyObject *arg4 = (PyObject *) 0 ;
23305 PyObject *result = 0 ;
23306 void *argp1 = 0 ;
23307 int res1 = 0 ;
23308 PyObject * obj0 = 0 ;
23309 PyObject * obj1 = 0 ;
23310 PyObject * obj2 = 0 ;
23311 PyObject * obj3 = 0 ;
23312 char * kwnames[] = {
23313 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23314 };
23315
23316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23318 if (!SWIG_IsOK(res1)) {
23319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23320 }
23321 arg1 = reinterpret_cast< wxDC * >(argp1);
23322 arg2 = obj1;
23323 arg3 = obj2;
23324 arg4 = obj3;
23325 {
23326 PyThreadState* __tstate = wxPyBeginAllowThreads();
23327 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23328 wxPyEndAllowThreads(__tstate);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 }
23331 resultobj = result;
23332 return resultobj;
23333fail:
23334 return NULL;
23335}
23336
23337
23338SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23339 PyObject *resultobj = 0;
23340 wxDC *arg1 = (wxDC *) 0 ;
23341 PyObject *arg2 = (PyObject *) 0 ;
23342 PyObject *arg3 = (PyObject *) 0 ;
23343 PyObject *arg4 = (PyObject *) 0 ;
23344 PyObject *result = 0 ;
23345 void *argp1 = 0 ;
23346 int res1 = 0 ;
23347 PyObject * obj0 = 0 ;
23348 PyObject * obj1 = 0 ;
23349 PyObject * obj2 = 0 ;
23350 PyObject * obj3 = 0 ;
23351 char * kwnames[] = {
23352 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23353 };
23354
23355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23357 if (!SWIG_IsOK(res1)) {
23358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23359 }
23360 arg1 = reinterpret_cast< wxDC * >(argp1);
23361 arg2 = obj1;
23362 arg3 = obj2;
23363 arg4 = obj3;
23364 {
23365 PyThreadState* __tstate = wxPyBeginAllowThreads();
23366 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23367 wxPyEndAllowThreads(__tstate);
23368 if (PyErr_Occurred()) SWIG_fail;
23369 }
23370 resultobj = result;
23371 return resultobj;
23372fail:
23373 return NULL;
23374}
23375
23376
23377SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23378 PyObject *resultobj = 0;
23379 wxDC *arg1 = (wxDC *) 0 ;
23380 PyObject *arg2 = (PyObject *) 0 ;
23381 PyObject *arg3 = (PyObject *) 0 ;
23382 PyObject *arg4 = (PyObject *) 0 ;
23383 PyObject *result = 0 ;
23384 void *argp1 = 0 ;
23385 int res1 = 0 ;
23386 PyObject * obj0 = 0 ;
23387 PyObject * obj1 = 0 ;
23388 PyObject * obj2 = 0 ;
23389 PyObject * obj3 = 0 ;
23390 char * kwnames[] = {
23391 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23392 };
23393
23394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23396 if (!SWIG_IsOK(res1)) {
23397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23398 }
23399 arg1 = reinterpret_cast< wxDC * >(argp1);
23400 arg2 = obj1;
23401 arg3 = obj2;
23402 arg4 = obj3;
23403 {
23404 PyThreadState* __tstate = wxPyBeginAllowThreads();
23405 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23406 wxPyEndAllowThreads(__tstate);
23407 if (PyErr_Occurred()) SWIG_fail;
23408 }
23409 resultobj = result;
23410 return resultobj;
23411fail:
23412 return NULL;
23413}
23414
23415
23416SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23417 PyObject *resultobj = 0;
23418 wxDC *arg1 = (wxDC *) 0 ;
23419 PyObject *arg2 = (PyObject *) 0 ;
23420 PyObject *arg3 = (PyObject *) 0 ;
23421 PyObject *arg4 = (PyObject *) 0 ;
23422 PyObject *arg5 = (PyObject *) 0 ;
23423 PyObject *result = 0 ;
23424 void *argp1 = 0 ;
23425 int res1 = 0 ;
23426 PyObject * obj0 = 0 ;
23427 PyObject * obj1 = 0 ;
23428 PyObject * obj2 = 0 ;
23429 PyObject * obj3 = 0 ;
23430 PyObject * obj4 = 0 ;
23431 char * kwnames[] = {
23432 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23433 };
23434
23435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23437 if (!SWIG_IsOK(res1)) {
23438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23439 }
23440 arg1 = reinterpret_cast< wxDC * >(argp1);
23441 arg2 = obj1;
23442 arg3 = obj2;
23443 arg4 = obj3;
23444 arg5 = obj4;
23445 {
23446 PyThreadState* __tstate = wxPyBeginAllowThreads();
23447 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23448 wxPyEndAllowThreads(__tstate);
23449 if (PyErr_Occurred()) SWIG_fail;
23450 }
23451 resultobj = result;
23452 return resultobj;
23453fail:
23454 return NULL;
23455}
23456
23457
23458SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23459 PyObject *obj;
23460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23461 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23462 return SWIG_Py_Void();
23463}
23464
70d7cb34
RD
23465SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23466 PyObject *resultobj = 0;
23467 wxDC *arg1 = 0 ;
23468 wxColour *arg2 = 0 ;
23469 wxDCTextColourChanger *result = 0 ;
23470 void *argp1 = 0 ;
23471 int res1 = 0 ;
23472 wxColour temp2 ;
23473 PyObject * obj0 = 0 ;
23474 PyObject * obj1 = 0 ;
23475 char * kwnames[] = {
23476 (char *) "dc",(char *) "col", NULL
23477 };
23478
23479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23480 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23481 if (!SWIG_IsOK(res1)) {
23482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23483 }
23484 if (!argp1) {
23485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23486 }
23487 arg1 = reinterpret_cast< wxDC * >(argp1);
23488 {
23489 arg2 = &temp2;
23490 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23491 }
23492 {
23493 PyThreadState* __tstate = wxPyBeginAllowThreads();
23494 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23495 wxPyEndAllowThreads(__tstate);
23496 if (PyErr_Occurred()) SWIG_fail;
23497 }
23498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23499 return resultobj;
23500fail:
23501 return NULL;
23502}
23503
23504
23505SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23506 PyObject *resultobj = 0;
23507 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23508 void *argp1 = 0 ;
23509 int res1 = 0 ;
23510 PyObject *swig_obj[1] ;
23511
23512 if (!args) SWIG_fail;
23513 swig_obj[0] = args;
23514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23515 if (!SWIG_IsOK(res1)) {
23516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23517 }
23518 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23519 {
23520 PyThreadState* __tstate = wxPyBeginAllowThreads();
23521 delete arg1;
23522
23523 wxPyEndAllowThreads(__tstate);
23524 if (PyErr_Occurred()) SWIG_fail;
23525 }
23526 resultobj = SWIG_Py_Void();
23527 return resultobj;
23528fail:
23529 return NULL;
23530}
23531
23532
23533SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23534 PyObject *obj;
23535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23536 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23537 return SWIG_Py_Void();
23538}
23539
23540SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23541 return SWIG_Python_InitShadowInstance(args);
23542}
23543
23544SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23545 PyObject *resultobj = 0;
23546 wxDC *arg1 = 0 ;
23547 wxPen *arg2 = 0 ;
23548 wxDCPenChanger *result = 0 ;
23549 void *argp1 = 0 ;
23550 int res1 = 0 ;
23551 void *argp2 = 0 ;
23552 int res2 = 0 ;
23553 PyObject * obj0 = 0 ;
23554 PyObject * obj1 = 0 ;
23555 char * kwnames[] = {
23556 (char *) "dc",(char *) "pen", NULL
23557 };
23558
23559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23560 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23561 if (!SWIG_IsOK(res1)) {
23562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23563 }
23564 if (!argp1) {
23565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23566 }
23567 arg1 = reinterpret_cast< wxDC * >(argp1);
23568 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23569 if (!SWIG_IsOK(res2)) {
23570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23571 }
23572 if (!argp2) {
23573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23574 }
23575 arg2 = reinterpret_cast< wxPen * >(argp2);
23576 {
23577 PyThreadState* __tstate = wxPyBeginAllowThreads();
23578 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23579 wxPyEndAllowThreads(__tstate);
23580 if (PyErr_Occurred()) SWIG_fail;
23581 }
23582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23583 return resultobj;
23584fail:
23585 return NULL;
23586}
23587
23588
23589SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23590 PyObject *resultobj = 0;
23591 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23592 void *argp1 = 0 ;
23593 int res1 = 0 ;
23594 PyObject *swig_obj[1] ;
23595
23596 if (!args) SWIG_fail;
23597 swig_obj[0] = args;
23598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23599 if (!SWIG_IsOK(res1)) {
23600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23601 }
23602 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23603 {
23604 PyThreadState* __tstate = wxPyBeginAllowThreads();
23605 delete arg1;
23606
23607 wxPyEndAllowThreads(__tstate);
23608 if (PyErr_Occurred()) SWIG_fail;
23609 }
23610 resultobj = SWIG_Py_Void();
23611 return resultobj;
23612fail:
23613 return NULL;
23614}
23615
23616
23617SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23618 PyObject *obj;
23619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23620 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23621 return SWIG_Py_Void();
23622}
23623
23624SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23625 return SWIG_Python_InitShadowInstance(args);
23626}
23627
23628SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23629 PyObject *resultobj = 0;
23630 wxDC *arg1 = 0 ;
23631 wxBrush *arg2 = 0 ;
23632 wxDCBrushChanger *result = 0 ;
23633 void *argp1 = 0 ;
23634 int res1 = 0 ;
23635 void *argp2 = 0 ;
23636 int res2 = 0 ;
23637 PyObject * obj0 = 0 ;
23638 PyObject * obj1 = 0 ;
23639 char * kwnames[] = {
23640 (char *) "dc",(char *) "brush", NULL
23641 };
23642
23643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23644 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23645 if (!SWIG_IsOK(res1)) {
23646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23647 }
23648 if (!argp1) {
23649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23650 }
23651 arg1 = reinterpret_cast< wxDC * >(argp1);
23652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23653 if (!SWIG_IsOK(res2)) {
23654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23655 }
23656 if (!argp2) {
23657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23658 }
23659 arg2 = reinterpret_cast< wxBrush * >(argp2);
23660 {
23661 PyThreadState* __tstate = wxPyBeginAllowThreads();
23662 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23663 wxPyEndAllowThreads(__tstate);
23664 if (PyErr_Occurred()) SWIG_fail;
23665 }
23666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23667 return resultobj;
23668fail:
23669 return NULL;
23670}
23671
23672
23673SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23674 PyObject *resultobj = 0;
23675 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23676 void *argp1 = 0 ;
23677 int res1 = 0 ;
23678 PyObject *swig_obj[1] ;
23679
23680 if (!args) SWIG_fail;
23681 swig_obj[0] = args;
23682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23683 if (!SWIG_IsOK(res1)) {
23684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23685 }
23686 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23687 {
23688 PyThreadState* __tstate = wxPyBeginAllowThreads();
23689 delete arg1;
23690
23691 wxPyEndAllowThreads(__tstate);
23692 if (PyErr_Occurred()) SWIG_fail;
23693 }
23694 resultobj = SWIG_Py_Void();
23695 return resultobj;
23696fail:
23697 return NULL;
23698}
23699
23700
23701SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23702 PyObject *obj;
23703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23704 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23705 return SWIG_Py_Void();
23706}
23707
23708SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23709 return SWIG_Python_InitShadowInstance(args);
23710}
23711
23712SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23713 PyObject *resultobj = 0;
23714 wxDC *arg1 = 0 ;
23715 wxRegion *arg2 = 0 ;
23716 wxDCClipper *result = 0 ;
23717 void *argp1 = 0 ;
23718 int res1 = 0 ;
23719 void *argp2 = 0 ;
23720 int res2 = 0 ;
23721
23722 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23724 if (!SWIG_IsOK(res1)) {
23725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23726 }
23727 if (!argp1) {
23728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23729 }
23730 arg1 = reinterpret_cast< wxDC * >(argp1);
23731 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23732 if (!SWIG_IsOK(res2)) {
23733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23734 }
23735 if (!argp2) {
23736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23737 }
23738 arg2 = reinterpret_cast< wxRegion * >(argp2);
23739 {
23740 PyThreadState* __tstate = wxPyBeginAllowThreads();
23741 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23742 wxPyEndAllowThreads(__tstate);
23743 if (PyErr_Occurred()) SWIG_fail;
23744 }
23745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23746 return resultobj;
23747fail:
23748 return NULL;
23749}
23750
23751
23752SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23753 PyObject *resultobj = 0;
23754 wxDC *arg1 = 0 ;
23755 wxRect *arg2 = 0 ;
23756 wxDCClipper *result = 0 ;
23757 void *argp1 = 0 ;
23758 int res1 = 0 ;
23759 wxRect temp2 ;
23760
23761 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23763 if (!SWIG_IsOK(res1)) {
23764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23765 }
23766 if (!argp1) {
23767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23768 }
23769 arg1 = reinterpret_cast< wxDC * >(argp1);
23770 {
23771 arg2 = &temp2;
23772 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23773 }
23774 {
23775 PyThreadState* __tstate = wxPyBeginAllowThreads();
23776 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23777 wxPyEndAllowThreads(__tstate);
23778 if (PyErr_Occurred()) SWIG_fail;
23779 }
23780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23781 return resultobj;
23782fail:
23783 return NULL;
23784}
23785
23786
23787SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23788 PyObject *resultobj = 0;
23789 wxDC *arg1 = 0 ;
23790 int arg2 ;
23791 int arg3 ;
23792 int arg4 ;
23793 int arg5 ;
23794 wxDCClipper *result = 0 ;
23795 void *argp1 = 0 ;
23796 int res1 = 0 ;
23797 int val2 ;
23798 int ecode2 = 0 ;
23799 int val3 ;
23800 int ecode3 = 0 ;
23801 int val4 ;
23802 int ecode4 = 0 ;
23803 int val5 ;
23804 int ecode5 = 0 ;
23805
23806 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23808 if (!SWIG_IsOK(res1)) {
23809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23810 }
23811 if (!argp1) {
23812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23813 }
23814 arg1 = reinterpret_cast< wxDC * >(argp1);
23815 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23816 if (!SWIG_IsOK(ecode2)) {
23817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23818 }
23819 arg2 = static_cast< int >(val2);
23820 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23821 if (!SWIG_IsOK(ecode3)) {
23822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23823 }
23824 arg3 = static_cast< int >(val3);
23825 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23826 if (!SWIG_IsOK(ecode4)) {
23827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23828 }
23829 arg4 = static_cast< int >(val4);
23830 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23831 if (!SWIG_IsOK(ecode5)) {
23832 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23833 }
23834 arg5 = static_cast< int >(val5);
23835 {
23836 PyThreadState* __tstate = wxPyBeginAllowThreads();
23837 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23838 wxPyEndAllowThreads(__tstate);
23839 if (PyErr_Occurred()) SWIG_fail;
23840 }
23841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23842 return resultobj;
23843fail:
23844 return NULL;
23845}
23846
23847
23848SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23849 int argc;
23850 PyObject *argv[6];
23851
23852 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23853 --argc;
23854 if (argc == 2) {
23855 int _v = 0;
23856 {
23857 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23858 _v = SWIG_CheckState(res);
23859 }
23860 if (!_v) goto check_1;
23861 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23862 }
23863check_1:
23864
23865 if (argc == 2) {
23866 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23867 }
23868 if (argc == 5) {
23869 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23870 }
23871
23872fail:
23873 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23874 return NULL;
23875}
23876
23877
23878SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23879 PyObject *resultobj = 0;
23880 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23881 void *argp1 = 0 ;
23882 int res1 = 0 ;
23883 PyObject *swig_obj[1] ;
23884
23885 if (!args) SWIG_fail;
23886 swig_obj[0] = args;
23887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23888 if (!SWIG_IsOK(res1)) {
23889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23890 }
23891 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23892 {
23893 PyThreadState* __tstate = wxPyBeginAllowThreads();
23894 delete arg1;
23895
23896 wxPyEndAllowThreads(__tstate);
23897 if (PyErr_Occurred()) SWIG_fail;
23898 }
23899 resultobj = SWIG_Py_Void();
23900 return resultobj;
23901fail:
23902 return NULL;
23903}
23904
23905
23906SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23907 PyObject *obj;
23908 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23909 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23910 return SWIG_Py_Void();
23911}
23912
23913SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23914 return SWIG_Python_InitShadowInstance(args);
23915}
23916
8e99bda9 23917SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 23918 PyObject *resultobj = 0;
8f514ab4 23919 wxBitmap &arg1_defvalue = wxNullBitmap ;
8e99bda9 23920 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
0085ce49 23921 wxMemoryDC *result = 0 ;
8e99bda9
RD
23922 void *argp1 = 0 ;
23923 int res1 = 0 ;
23924 PyObject * obj0 = 0 ;
23925 char * kwnames[] = {
23926 (char *) "bitmap", NULL
23927 };
0085ce49 23928
8e99bda9
RD
23929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23930 if (obj0) {
8f514ab4 23931 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
8e99bda9 23932 if (!SWIG_IsOK(res1)) {
8f514ab4 23933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
23934 }
23935 if (!argp1) {
8f514ab4 23936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
8e99bda9
RD
23937 }
23938 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23939 }
0085ce49
RD
23940 {
23941 if (!wxPyCheckForApp()) SWIG_fail;
23942 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 23943 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
0085ce49
RD
23944 wxPyEndAllowThreads(__tstate);
23945 if (PyErr_Occurred()) SWIG_fail;
23946 }
23947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23948 return resultobj;
23949fail:
23950 return NULL;
23951}
23952
23953
23954SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23955 PyObject *resultobj = 0;
23956 wxDC *arg1 = (wxDC *) 0 ;
23957 wxMemoryDC *result = 0 ;
23958 void *argp1 = 0 ;
23959 int res1 = 0 ;
23960 PyObject * obj0 = 0 ;
23961 char * kwnames[] = {
23962 (char *) "oldDC", NULL
23963 };
23964
23965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23967 if (!SWIG_IsOK(res1)) {
23968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23969 }
23970 arg1 = reinterpret_cast< wxDC * >(argp1);
23971 {
23972 if (!wxPyCheckForApp()) SWIG_fail;
23973 PyThreadState* __tstate = wxPyBeginAllowThreads();
23974 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23975 wxPyEndAllowThreads(__tstate);
23976 if (PyErr_Occurred()) SWIG_fail;
23977 }
23978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23979 return resultobj;
23980fail:
23981 return NULL;
23982}
23983
23984
23985SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23986 PyObject *resultobj = 0;
23987 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23988 wxBitmap *arg2 = 0 ;
23989 void *argp1 = 0 ;
23990 int res1 = 0 ;
23991 void *argp2 = 0 ;
23992 int res2 = 0 ;
23993 PyObject * obj0 = 0 ;
23994 PyObject * obj1 = 0 ;
23995 char * kwnames[] = {
23996 (char *) "self",(char *) "bitmap", NULL
23997 };
23998
23999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24001 if (!SWIG_IsOK(res1)) {
24002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24003 }
24004 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
8f514ab4
RD
24005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24006 if (!SWIG_IsOK(res2)) {
24007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24008 }
24009 if (!argp2) {
24010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24011 }
24012 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24013 {
24014 PyThreadState* __tstate = wxPyBeginAllowThreads();
24015 (arg1)->SelectObject(*arg2);
24016 wxPyEndAllowThreads(__tstate);
24017 if (PyErr_Occurred()) SWIG_fail;
24018 }
24019 resultobj = SWIG_Py_Void();
24020 return resultobj;
24021fail:
24022 return NULL;
24023}
24024
24025
24026SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24027 PyObject *resultobj = 0;
24028 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24029 wxBitmap *arg2 = 0 ;
24030 void *argp1 = 0 ;
24031 int res1 = 0 ;
24032 void *argp2 = 0 ;
24033 int res2 = 0 ;
24034 PyObject * obj0 = 0 ;
24035 PyObject * obj1 = 0 ;
24036 char * kwnames[] = {
24037 (char *) "self",(char *) "bmp", NULL
24038 };
24039
24040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24042 if (!SWIG_IsOK(res1)) {
24043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24044 }
24045 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
0085ce49
RD
24046 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24047 if (!SWIG_IsOK(res2)) {
8f514ab4 24048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
0085ce49
RD
24049 }
24050 if (!argp2) {
8f514ab4 24051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
0085ce49
RD
24052 }
24053 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
8f514ab4 24056 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
0085ce49
RD
24057 wxPyEndAllowThreads(__tstate);
24058 if (PyErr_Occurred()) SWIG_fail;
24059 }
24060 resultobj = SWIG_Py_Void();
24061 return resultobj;
24062fail:
24063 return NULL;
24064}
24065
24066
24067SWIGINTERN PyObject *MemoryDC_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_wxMemoryDC, SWIG_NewClientData(obj));
24071 return SWIG_Py_Void();
24072}
24073
24074SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24075 return SWIG_Python_InitShadowInstance(args);
24076}
24077
24f6c4e8
RD
24078SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24079 PyObject *resultobj = 0;
24080 wxScreenDC *result = 0 ;
24081
24082 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24083 {
24084 if (!wxPyCheckForApp()) SWIG_fail;
24085 PyThreadState* __tstate = wxPyBeginAllowThreads();
24086 result = (wxScreenDC *)new wxScreenDC();
24087 wxPyEndAllowThreads(__tstate);
24088 if (PyErr_Occurred()) SWIG_fail;
24089 }
24090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24091 return resultobj;
24092fail:
24093 return NULL;
24094}
24095
24096
24097SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24098 PyObject *resultobj = 0;
24099 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24100 wxWindow *arg2 = (wxWindow *) 0 ;
24101 bool result;
24102 void *argp1 = 0 ;
24103 int res1 = 0 ;
24104 void *argp2 = 0 ;
24105 int res2 = 0 ;
24106 PyObject * obj0 = 0 ;
24107 PyObject * obj1 = 0 ;
24108 char * kwnames[] = {
24109 (char *) "self",(char *) "window", NULL
24110 };
24111
24112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24114 if (!SWIG_IsOK(res1)) {
24115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24116 }
24117 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24118 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24119 if (!SWIG_IsOK(res2)) {
24120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24121 }
24122 arg2 = reinterpret_cast< wxWindow * >(argp2);
24123 {
24124 PyThreadState* __tstate = wxPyBeginAllowThreads();
24125 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24126 wxPyEndAllowThreads(__tstate);
24127 if (PyErr_Occurred()) SWIG_fail;
24128 }
24129 {
24130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24131 }
24132 return resultobj;
24133fail:
24134 return NULL;
24135}
24136
24137
24138SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24139 PyObject *resultobj = 0;
24140 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24141 wxRect *arg2 = (wxRect *) NULL ;
24142 bool result;
24143 void *argp1 = 0 ;
24144 int res1 = 0 ;
24145 void *argp2 = 0 ;
24146 int res2 = 0 ;
24147 PyObject * obj0 = 0 ;
24148 PyObject * obj1 = 0 ;
24149 char * kwnames[] = {
24150 (char *) "self",(char *) "rect", NULL
24151 };
24152
24153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24155 if (!SWIG_IsOK(res1)) {
24156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24157 }
24158 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24159 if (obj1) {
24160 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24161 if (!SWIG_IsOK(res2)) {
24162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24163 }
24164 arg2 = reinterpret_cast< wxRect * >(argp2);
24165 }
24166 {
24167 PyThreadState* __tstate = wxPyBeginAllowThreads();
24168 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24169 wxPyEndAllowThreads(__tstate);
24170 if (PyErr_Occurred()) SWIG_fail;
24171 }
24172 {
24173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24174 }
24175 return resultobj;
24176fail:
24177 return NULL;
24178}
24179
24180
24181SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24182 PyObject *resultobj = 0;
24183 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24184 bool result;
24185 void *argp1 = 0 ;
24186 int res1 = 0 ;
24187 PyObject *swig_obj[1] ;
24188
24189 if (!args) SWIG_fail;
24190 swig_obj[0] = args;
24191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24192 if (!SWIG_IsOK(res1)) {
24193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24194 }
24195 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24196 {
24197 PyThreadState* __tstate = wxPyBeginAllowThreads();
24198 result = (bool)(arg1)->EndDrawingOnTop();
24199 wxPyEndAllowThreads(__tstate);
24200 if (PyErr_Occurred()) SWIG_fail;
24201 }
24202 {
24203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24204 }
24205 return resultobj;
24206fail:
24207 return NULL;
24208}
24209
24210
24211SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24212 PyObject *obj;
24213 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24214 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24215 return SWIG_Py_Void();
24216}
24217
24218SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24219 return SWIG_Python_InitShadowInstance(args);
24220}
24221
24222SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24223 PyObject *resultobj = 0;
24224 wxWindow *arg1 = (wxWindow *) 0 ;
24225 wxWindowDC *result = 0 ;
24226 void *argp1 = 0 ;
24227 int res1 = 0 ;
24228 PyObject * obj0 = 0 ;
24229 char * kwnames[] = {
24230 (char *) "win", NULL
24231 };
24232
24233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24235 if (!SWIG_IsOK(res1)) {
24236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24237 }
24238 arg1 = reinterpret_cast< wxWindow * >(argp1);
24239 {
24240 if (!wxPyCheckForApp()) SWIG_fail;
24241 PyThreadState* __tstate = wxPyBeginAllowThreads();
24242 result = (wxWindowDC *)new wxWindowDC(arg1);
24243 wxPyEndAllowThreads(__tstate);
24244 if (PyErr_Occurred()) SWIG_fail;
24245 }
24246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24247 return resultobj;
24248fail:
24249 return NULL;
24250}
24251
24252
24253SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24254 PyObject *obj;
24255 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24256 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24257 return SWIG_Py_Void();
24258}
24259
24260SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24261 return SWIG_Python_InitShadowInstance(args);
24262}
24263
24264SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24265 PyObject *resultobj = 0;
24266 wxWindow *arg1 = (wxWindow *) 0 ;
24267 wxClientDC *result = 0 ;
24268 void *argp1 = 0 ;
24269 int res1 = 0 ;
24270 PyObject * obj0 = 0 ;
24271 char * kwnames[] = {
24272 (char *) "win", NULL
24273 };
24274
24275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24277 if (!SWIG_IsOK(res1)) {
24278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24279 }
24280 arg1 = reinterpret_cast< wxWindow * >(argp1);
24281 {
24282 if (!wxPyCheckForApp()) SWIG_fail;
24283 PyThreadState* __tstate = wxPyBeginAllowThreads();
24284 result = (wxClientDC *)new wxClientDC(arg1);
24285 wxPyEndAllowThreads(__tstate);
24286 if (PyErr_Occurred()) SWIG_fail;
24287 }
24288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24289 return resultobj;
24290fail:
24291 return NULL;
24292}
24293
24294
24295SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24296 PyObject *obj;
24297 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24298 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24299 return SWIG_Py_Void();
24300}
24301
24302SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24303 return SWIG_Python_InitShadowInstance(args);
24304}
24305
24306SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24307 PyObject *resultobj = 0;
24308 wxWindow *arg1 = (wxWindow *) 0 ;
24309 wxPaintDC *result = 0 ;
24310 void *argp1 = 0 ;
24311 int res1 = 0 ;
24312 PyObject * obj0 = 0 ;
24313 char * kwnames[] = {
24314 (char *) "win", NULL
24315 };
24316
24317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24319 if (!SWIG_IsOK(res1)) {
24320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24321 }
24322 arg1 = reinterpret_cast< wxWindow * >(argp1);
24323 {
24324 if (!wxPyCheckForApp()) SWIG_fail;
24325 PyThreadState* __tstate = wxPyBeginAllowThreads();
24326 result = (wxPaintDC *)new wxPaintDC(arg1);
24327 wxPyEndAllowThreads(__tstate);
24328 if (PyErr_Occurred()) SWIG_fail;
24329 }
24330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24331 return resultobj;
24332fail:
24333 return NULL;
24334}
24335
24336
24337SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24338 PyObject *obj;
24339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24340 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24341 return SWIG_Py_Void();
24342}
24343
24344SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24345 return SWIG_Python_InitShadowInstance(args);
24346}
24347
0085ce49
RD
24348SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24349 PyObject *resultobj = 0;
24350 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24351 wxBitmap &arg2_defvalue = wxNullBitmap ;
0085ce49
RD
24352 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24353 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24354 wxBufferedDC *result = 0 ;
24355 void *argp1 = 0 ;
24356 int res1 = 0 ;
24357 void *argp2 = 0 ;
24358 int res2 = 0 ;
24359 int val3 ;
24360 int ecode3 = 0 ;
24361
24362 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24364 if (!SWIG_IsOK(res1)) {
24365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24366 }
24367 arg1 = reinterpret_cast< wxDC * >(argp1);
24368 if (swig_obj[1]) {
b6df5cf9 24369 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
0085ce49 24370 if (!SWIG_IsOK(res2)) {
b6df5cf9 24371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24372 }
0085ce49 24373 if (!argp2) {
b6df5cf9 24374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24375 }
0085ce49
RD
24376 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24377 }
24378 if (swig_obj[2]) {
24379 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24380 if (!SWIG_IsOK(ecode3)) {
24381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24382 }
24383 arg3 = static_cast< int >(val3);
24384 }
24385 {
24386 if (!wxPyCheckForApp()) SWIG_fail;
24387 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24388 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
0085ce49
RD
24389 wxPyEndAllowThreads(__tstate);
24390 if (PyErr_Occurred()) SWIG_fail;
24391 }
24392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24393 return resultobj;
24394fail:
24395 return NULL;
24396}
24397
24398
24399SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24400 PyObject *resultobj = 0;
24401 wxDC *arg1 = (wxDC *) 0 ;
24402 wxSize *arg2 = 0 ;
24403 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24404 wxBufferedDC *result = 0 ;
24405 void *argp1 = 0 ;
24406 int res1 = 0 ;
24407 wxSize temp2 ;
24408 int val3 ;
24409 int ecode3 = 0 ;
24410
24411 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24413 if (!SWIG_IsOK(res1)) {
24414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24415 }
24416 arg1 = reinterpret_cast< wxDC * >(argp1);
24417 {
24418 arg2 = &temp2;
24419 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24420 }
24421 if (swig_obj[2]) {
24422 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24423 if (!SWIG_IsOK(ecode3)) {
24424 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24425 }
24426 arg3 = static_cast< int >(val3);
24427 }
24428 {
24429 if (!wxPyCheckForApp()) SWIG_fail;
24430 PyThreadState* __tstate = wxPyBeginAllowThreads();
24431 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24432 wxPyEndAllowThreads(__tstate);
24433 if (PyErr_Occurred()) SWIG_fail;
24434 }
24435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24436 return resultobj;
24437fail:
24438 return NULL;
24439}
24440
24441
24442SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24443 int argc;
8e99bda9 24444 PyObject *argv[4];
0085ce49 24445
8e99bda9 24446 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
0085ce49
RD
24447 --argc;
24448 if ((argc >= 1) && (argc <= 3)) {
24449 int _v = 0;
24450 if (argc > 1) {
24451 {
b6df5cf9
RD
24452 void *vptr = 0;
24453 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
0085ce49
RD
24454 _v = SWIG_CheckState(res);
24455 }
24456 if (!_v) goto check_1;
093d3ff1 24457 }
0085ce49
RD
24458 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24459 }
24460check_1:
24461
24462 if ((argc >= 2) && (argc <= 3)) {
24463 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24464 }
24465
24466fail:
24467 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24468 return NULL;
24469}
24470
24471
24472SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24473 PyObject *resultobj = 0;
24474 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24475 void *argp1 = 0 ;
24476 int res1 = 0 ;
24477 PyObject *swig_obj[1] ;
24478
24479 if (!args) SWIG_fail;
24480 swig_obj[0] = args;
24481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24482 if (!SWIG_IsOK(res1)) {
24483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24484 }
24485 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24486 {
24487 PyThreadState* __tstate = wxPyBeginAllowThreads();
24488 delete arg1;
24489
24490 wxPyEndAllowThreads(__tstate);
24491 if (PyErr_Occurred()) SWIG_fail;
24492 }
24493 resultobj = SWIG_Py_Void();
24494 return resultobj;
24495fail:
24496 return NULL;
24497}
24498
24499
24500SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24501 PyObject *resultobj = 0;
24502 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24503 void *argp1 = 0 ;
24504 int res1 = 0 ;
24505 PyObject *swig_obj[1] ;
24506
24507 if (!args) SWIG_fail;
24508 swig_obj[0] = args;
24509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24510 if (!SWIG_IsOK(res1)) {
24511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24512 }
24513 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24514 {
24515 PyThreadState* __tstate = wxPyBeginAllowThreads();
24516 (arg1)->UnMask();
24517 wxPyEndAllowThreads(__tstate);
24518 if (PyErr_Occurred()) SWIG_fail;
24519 }
24520 resultobj = SWIG_Py_Void();
24521 return resultobj;
24522fail:
24523 return NULL;
24524}
24525
24526
b6df5cf9
RD
24527SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24528 PyObject *resultobj = 0;
24529 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24530 int arg2 ;
24531 void *argp1 = 0 ;
24532 int res1 = 0 ;
24533 int val2 ;
24534 int ecode2 = 0 ;
24535 PyObject * obj0 = 0 ;
24536 PyObject * obj1 = 0 ;
24537 char * kwnames[] = {
24538 (char *) "self",(char *) "style", NULL
24539 };
24540
24541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24543 if (!SWIG_IsOK(res1)) {
24544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24545 }
24546 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24547 ecode2 = SWIG_AsVal_int(obj1, &val2);
24548 if (!SWIG_IsOK(ecode2)) {
24549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24550 }
24551 arg2 = static_cast< int >(val2);
24552 {
24553 PyThreadState* __tstate = wxPyBeginAllowThreads();
24554 (arg1)->SetStyle(arg2);
24555 wxPyEndAllowThreads(__tstate);
24556 if (PyErr_Occurred()) SWIG_fail;
24557 }
24558 resultobj = SWIG_Py_Void();
24559 return resultobj;
24560fail:
24561 return NULL;
24562}
24563
24564
24565SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24566 PyObject *resultobj = 0;
24567 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24568 int result;
24569 void *argp1 = 0 ;
24570 int res1 = 0 ;
24571 PyObject *swig_obj[1] ;
24572
24573 if (!args) SWIG_fail;
24574 swig_obj[0] = args;
24575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24576 if (!SWIG_IsOK(res1)) {
24577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24578 }
24579 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24580 {
24581 PyThreadState* __tstate = wxPyBeginAllowThreads();
24582 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24583 wxPyEndAllowThreads(__tstate);
24584 if (PyErr_Occurred()) SWIG_fail;
24585 }
24586 resultobj = SWIG_From_int(static_cast< int >(result));
24587 return resultobj;
24588fail:
24589 return NULL;
24590}
24591
24592
0085ce49
RD
24593SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24594 PyObject *obj;
24595 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24596 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24597 return SWIG_Py_Void();
24598}
24599
24600SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24601 return SWIG_Python_InitShadowInstance(args);
24602}
24603
24604SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24605 PyObject *resultobj = 0;
24606 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 24607 wxBitmap &arg2_defvalue = wxNullBitmap ;
0085ce49
RD
24608 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24609 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24610 wxBufferedPaintDC *result = 0 ;
24611 void *argp1 = 0 ;
24612 int res1 = 0 ;
24613 void *argp2 = 0 ;
24614 int res2 = 0 ;
24615 int val3 ;
24616 int ecode3 = 0 ;
24617 PyObject * obj0 = 0 ;
24618 PyObject * obj1 = 0 ;
24619 PyObject * obj2 = 0 ;
24620 char * kwnames[] = {
24621 (char *) "window",(char *) "buffer",(char *) "style", NULL
24622 };
24623
24624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24626 if (!SWIG_IsOK(res1)) {
24627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24628 }
24629 arg1 = reinterpret_cast< wxWindow * >(argp1);
24630 if (obj1) {
b6df5cf9 24631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
0085ce49 24632 if (!SWIG_IsOK(res2)) {
b6df5cf9 24633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24634 }
0085ce49 24635 if (!argp2) {
b6df5cf9 24636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24637 }
0085ce49
RD
24638 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24639 }
24640 if (obj2) {
24641 ecode3 = SWIG_AsVal_int(obj2, &val3);
24642 if (!SWIG_IsOK(ecode3)) {
24643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24644 }
24645 arg3 = static_cast< int >(val3);
24646 }
24647 {
24648 if (!wxPyCheckForApp()) SWIG_fail;
24649 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24650 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
0085ce49
RD
24651 wxPyEndAllowThreads(__tstate);
24652 if (PyErr_Occurred()) SWIG_fail;
24653 }
24654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24655 return resultobj;
24656fail:
24657 return NULL;
24658}
24659
24660
24661SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24662 PyObject *obj;
24663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24664 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24665 return SWIG_Py_Void();
24666}
24667
24668SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24669 return SWIG_Python_InitShadowInstance(args);
24670}
24671
24f6c4e8 24672SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
24673 PyObject *resultobj = 0;
24674 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24675 wxAutoBufferedPaintDC *result = 0 ;
0085ce49
RD
24676 void *argp1 = 0 ;
24677 int res1 = 0 ;
24678 PyObject * obj0 = 0 ;
24679 char * kwnames[] = {
24680 (char *) "win", NULL
24681 };
24682
24f6c4e8 24683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
24684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24685 if (!SWIG_IsOK(res1)) {
24f6c4e8 24686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
24687 }
24688 arg1 = reinterpret_cast< wxWindow * >(argp1);
24689 {
0085ce49 24690 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24691 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
0085ce49
RD
24692 wxPyEndAllowThreads(__tstate);
24693 if (PyErr_Occurred()) SWIG_fail;
24694 }
24f6c4e8 24695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
24696 return resultobj;
24697fail:
24698 return NULL;
24699}
24700
24701
24f6c4e8 24702SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
24703 PyObject *obj;
24704 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24705 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
0085ce49
RD
24706 return SWIG_Py_Void();
24707}
24708
24f6c4e8 24709SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
24710 return SWIG_Python_InitShadowInstance(args);
24711}
24712
8e99bda9
RD
24713SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24714 PyObject *resultobj = 0;
24715 wxWindow *arg1 = (wxWindow *) 0 ;
24716 wxDC *result = 0 ;
24717 void *argp1 = 0 ;
24718 int res1 = 0 ;
24719 PyObject * obj0 = 0 ;
24720 char * kwnames[] = {
24721 (char *) "window", NULL
24722 };
24723
24724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24726 if (!SWIG_IsOK(res1)) {
24727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24728 }
24729 arg1 = reinterpret_cast< wxWindow * >(argp1);
24730 {
24731 PyThreadState* __tstate = wxPyBeginAllowThreads();
24732 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24733 wxPyEndAllowThreads(__tstate);
24734 if (PyErr_Occurred()) SWIG_fail;
24735 }
24736 {
24737 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24738 }
24739 return resultobj;
24740fail:
24741 return NULL;
24742}
24743
24744
0085ce49
RD
24745SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24746 PyObject *resultobj = 0;
24747 wxDC *arg1 = 0 ;
24748 bool arg2 ;
24749 wxMirrorDC *result = 0 ;
24750 void *argp1 = 0 ;
24751 int res1 = 0 ;
24752 bool val2 ;
24753 int ecode2 = 0 ;
24754 PyObject * obj0 = 0 ;
24755 PyObject * obj1 = 0 ;
24756 char * kwnames[] = {
24757 (char *) "dc",(char *) "mirror", NULL
24758 };
24759
24760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24761 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24762 if (!SWIG_IsOK(res1)) {
24763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24764 }
24765 if (!argp1) {
24766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24767 }
24768 arg1 = reinterpret_cast< wxDC * >(argp1);
24769 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24770 if (!SWIG_IsOK(ecode2)) {
24771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24772 }
24773 arg2 = static_cast< bool >(val2);
24774 {
24775 if (!wxPyCheckForApp()) SWIG_fail;
24776 PyThreadState* __tstate = wxPyBeginAllowThreads();
24777 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24778 wxPyEndAllowThreads(__tstate);
24779 if (PyErr_Occurred()) SWIG_fail;
24780 }
24781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24782 return resultobj;
24783fail:
24784 return NULL;
24785}
24786
24787
24788SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24789 PyObject *obj;
24790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24791 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24792 return SWIG_Py_Void();
24793}
24794
24795SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24796 return SWIG_Python_InitShadowInstance(args);
24797}
24798
24799SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24800 PyObject *resultobj = 0;
24801 wxPrintData *arg1 = 0 ;
24802 wxPostScriptDC *result = 0 ;
24803 void *argp1 = 0 ;
24804 int res1 = 0 ;
24805 PyObject * obj0 = 0 ;
24806 char * kwnames[] = {
24807 (char *) "printData", NULL
24808 };
24809
24810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24811 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24812 if (!SWIG_IsOK(res1)) {
24813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24814 }
24815 if (!argp1) {
24816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24817 }
24818 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24819 {
24820 if (!wxPyCheckForApp()) SWIG_fail;
24821 PyThreadState* __tstate = wxPyBeginAllowThreads();
24822 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24823 wxPyEndAllowThreads(__tstate);
24824 if (PyErr_Occurred()) SWIG_fail;
24825 }
24826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24827 return resultobj;
24828fail:
24829 return NULL;
24830}
24831
24832
24833SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24834 PyObject *resultobj = 0;
24835 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24836 wxPrintData *result = 0 ;
24837 void *argp1 = 0 ;
24838 int res1 = 0 ;
24839 PyObject *swig_obj[1] ;
24840
24841 if (!args) SWIG_fail;
24842 swig_obj[0] = args;
24843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24844 if (!SWIG_IsOK(res1)) {
24845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24846 }
24847 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24848 {
24849 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24850 {
0085ce49
RD
24851 wxPrintData &_result_ref = (arg1)->GetPrintData();
24852 result = (wxPrintData *) &_result_ref;
e2950dbb 24853 }
0085ce49
RD
24854 wxPyEndAllowThreads(__tstate);
24855 if (PyErr_Occurred()) SWIG_fail;
24856 }
24857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24858 return resultobj;
24859fail:
24860 return NULL;
24861}
24862
24863
24864SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24865 PyObject *resultobj = 0;
24866 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24867 wxPrintData *arg2 = 0 ;
24868 void *argp1 = 0 ;
24869 int res1 = 0 ;
24870 void *argp2 = 0 ;
24871 int res2 = 0 ;
24872 PyObject * obj0 = 0 ;
24873 PyObject * obj1 = 0 ;
24874 char * kwnames[] = {
24875 (char *) "self",(char *) "data", NULL
24876 };
24877
24878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24880 if (!SWIG_IsOK(res1)) {
24881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24882 }
24883 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24885 if (!SWIG_IsOK(res2)) {
24886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24887 }
24888 if (!argp2) {
24889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24890 }
24891 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24892 {
24893 PyThreadState* __tstate = wxPyBeginAllowThreads();
24894 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24895 wxPyEndAllowThreads(__tstate);
24896 if (PyErr_Occurred()) SWIG_fail;
24897 }
24898 resultobj = SWIG_Py_Void();
24899 return resultobj;
24900fail:
24901 return NULL;
24902}
24903
24904
24905SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24906 PyObject *resultobj = 0;
24907 int arg1 ;
24908 int val1 ;
24909 int ecode1 = 0 ;
24910 PyObject * obj0 = 0 ;
24911 char * kwnames[] = {
24912 (char *) "ppi", NULL
24913 };
24914
24915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24916 ecode1 = SWIG_AsVal_int(obj0, &val1);
24917 if (!SWIG_IsOK(ecode1)) {
24918 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24919 }
24920 arg1 = static_cast< int >(val1);
24921 {
24922 PyThreadState* __tstate = wxPyBeginAllowThreads();
24923 wxPostScriptDC::SetResolution(arg1);
24924 wxPyEndAllowThreads(__tstate);
24925 if (PyErr_Occurred()) SWIG_fail;
24926 }
24927 resultobj = SWIG_Py_Void();
24928 return resultobj;
24929fail:
24930 return NULL;
24931}
24932
24933
24934SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24935 PyObject *resultobj = 0;
24936 int result;
24937
24938 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24939 {
24940 PyThreadState* __tstate = wxPyBeginAllowThreads();
24941 result = (int)wxPostScriptDC::GetResolution();
24942 wxPyEndAllowThreads(__tstate);
24943 if (PyErr_Occurred()) SWIG_fail;
24944 }
24945 resultobj = SWIG_From_int(static_cast< int >(result));
24946 return resultobj;
24947fail:
24948 return NULL;
24949}
24950
24951
24952SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24953 PyObject *obj;
24954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24955 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24956 return SWIG_Py_Void();
24957}
24958
24959SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24960 return SWIG_Python_InitShadowInstance(args);
24961}
24962
24963SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24964 PyObject *resultobj = 0;
24965 wxString const &arg1_defvalue = wxPyEmptyString ;
24966 wxString *arg1 = (wxString *) &arg1_defvalue ;
24967 wxMetaFile *result = 0 ;
24968 bool temp1 = false ;
24969 PyObject * obj0 = 0 ;
24970 char * kwnames[] = {
24971 (char *) "filename", NULL
24972 };
24973
24974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24975 if (obj0) {
093d3ff1 24976 {
0085ce49
RD
24977 arg1 = wxString_in_helper(obj0);
24978 if (arg1 == NULL) SWIG_fail;
24979 temp1 = true;
093d3ff1 24980 }
0085ce49
RD
24981 }
24982 {
24983 if (!wxPyCheckForApp()) SWIG_fail;
24984 PyThreadState* __tstate = wxPyBeginAllowThreads();
24985 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24986 wxPyEndAllowThreads(__tstate);
24987 if (PyErr_Occurred()) SWIG_fail;
24988 }
24989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24990 {
24991 if (temp1)
24992 delete arg1;
24993 }
24994 return resultobj;
24995fail:
24996 {
24997 if (temp1)
24998 delete arg1;
24999 }
25000 return NULL;
25001}
25002
25003
25004SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25005 PyObject *obj;
25006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25007 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25008 return SWIG_Py_Void();
25009}
25010
25011SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25012 return SWIG_Python_InitShadowInstance(args);
25013}
25014
25015SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25016 PyObject *resultobj = 0;
25017 wxString const &arg1_defvalue = wxPyEmptyString ;
25018 wxString *arg1 = (wxString *) &arg1_defvalue ;
25019 int arg2 = (int) 0 ;
25020 int arg3 = (int) 0 ;
25021 wxString const &arg4_defvalue = wxPyEmptyString ;
25022 wxString *arg4 = (wxString *) &arg4_defvalue ;
25023 wxMetaFileDC *result = 0 ;
25024 bool temp1 = false ;
25025 int val2 ;
25026 int ecode2 = 0 ;
25027 int val3 ;
25028 int ecode3 = 0 ;
25029 bool temp4 = false ;
25030 PyObject * obj0 = 0 ;
25031 PyObject * obj1 = 0 ;
25032 PyObject * obj2 = 0 ;
25033 PyObject * obj3 = 0 ;
25034 char * kwnames[] = {
25035 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25036 };
25037
25038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25039 if (obj0) {
093d3ff1 25040 {
0085ce49
RD
25041 arg1 = wxString_in_helper(obj0);
25042 if (arg1 == NULL) SWIG_fail;
25043 temp1 = true;
093d3ff1 25044 }
0085ce49
RD
25045 }
25046 if (obj1) {
25047 ecode2 = SWIG_AsVal_int(obj1, &val2);
25048 if (!SWIG_IsOK(ecode2)) {
25049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25050 }
25051 arg2 = static_cast< int >(val2);
25052 }
25053 if (obj2) {
25054 ecode3 = SWIG_AsVal_int(obj2, &val3);
25055 if (!SWIG_IsOK(ecode3)) {
25056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25057 }
25058 arg3 = static_cast< int >(val3);
25059 }
25060 if (obj3) {
093d3ff1 25061 {
0085ce49
RD
25062 arg4 = wxString_in_helper(obj3);
25063 if (arg4 == NULL) SWIG_fail;
25064 temp4 = true;
093d3ff1 25065 }
0085ce49
RD
25066 }
25067 {
25068 if (!wxPyCheckForApp()) SWIG_fail;
25069 PyThreadState* __tstate = wxPyBeginAllowThreads();
25070 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25071 wxPyEndAllowThreads(__tstate);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 }
25074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25075 {
25076 if (temp1)
25077 delete arg1;
25078 }
25079 {
25080 if (temp4)
25081 delete arg4;
25082 }
25083 return resultobj;
25084fail:
25085 {
25086 if (temp1)
25087 delete arg1;
25088 }
25089 {
25090 if (temp4)
25091 delete arg4;
25092 }
25093 return NULL;
25094}
25095
25096
25097SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25098 PyObject *obj;
25099 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25100 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25101 return SWIG_Py_Void();
25102}
25103
25104SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25105 return SWIG_Python_InitShadowInstance(args);
25106}
25107
25108SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25109 PyObject *resultobj = 0;
25110 wxPrintData *arg1 = 0 ;
25111 wxPrinterDC *result = 0 ;
25112 void *argp1 = 0 ;
25113 int res1 = 0 ;
25114 PyObject * obj0 = 0 ;
25115 char * kwnames[] = {
25116 (char *) "printData", NULL
25117 };
25118
25119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25120 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25121 if (!SWIG_IsOK(res1)) {
25122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25123 }
25124 if (!argp1) {
25125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25126 }
25127 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25128 {
25129 if (!wxPyCheckForApp()) SWIG_fail;
25130 PyThreadState* __tstate = wxPyBeginAllowThreads();
25131 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25132 wxPyEndAllowThreads(__tstate);
25133 if (PyErr_Occurred()) SWIG_fail;
25134 }
25135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25136 return resultobj;
25137fail:
25138 return NULL;
25139}
25140
25141
25142SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25143 PyObject *obj;
25144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25145 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25146 return SWIG_Py_Void();
25147}
25148
25149SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25150 return SWIG_Python_InitShadowInstance(args);
25151}
25152
70d7cb34
RD
25153SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25154 PyObject *resultobj = 0;
25155 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25156 wxGraphicsObject *result = 0 ;
25157 void *argp1 = 0 ;
25158 int res1 = 0 ;
25159 PyObject * obj0 = 0 ;
25160 char * kwnames[] = {
25161 (char *) "renderer", NULL
25162 };
25163
25164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25165 if (obj0) {
25166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25167 if (!SWIG_IsOK(res1)) {
25168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25169 }
25170 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25171 }
25172 {
25173 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25174 if (PyErr_Occurred()) SWIG_fail;
25175 }
25176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25177 return resultobj;
25178fail:
25179 return NULL;
25180}
25181
25182
25183SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25184 PyObject *resultobj = 0;
25185 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25186 void *argp1 = 0 ;
25187 int res1 = 0 ;
25188 PyObject *swig_obj[1] ;
25189
25190 if (!args) SWIG_fail;
25191 swig_obj[0] = args;
25192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25193 if (!SWIG_IsOK(res1)) {
25194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25195 }
25196 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25197 {
25198 delete arg1;
25199
25200 if (PyErr_Occurred()) SWIG_fail;
25201 }
25202 resultobj = SWIG_Py_Void();
25203 return resultobj;
25204fail:
25205 return NULL;
25206}
25207
25208
25209SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25210 PyObject *resultobj = 0;
25211 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25212 bool result;
25213 void *argp1 = 0 ;
25214 int res1 = 0 ;
25215 PyObject *swig_obj[1] ;
25216
25217 if (!args) SWIG_fail;
25218 swig_obj[0] = args;
25219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25220 if (!SWIG_IsOK(res1)) {
25221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25222 }
25223 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25224 {
25225 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25226 if (PyErr_Occurred()) SWIG_fail;
25227 }
25228 {
25229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25230 }
25231 return resultobj;
25232fail:
25233 return NULL;
25234}
25235
25236
25237SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25238 PyObject *resultobj = 0;
25239 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25240 wxGraphicsRenderer *result = 0 ;
25241 void *argp1 = 0 ;
25242 int res1 = 0 ;
25243 PyObject *swig_obj[1] ;
25244
25245 if (!args) SWIG_fail;
25246 swig_obj[0] = args;
25247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25248 if (!SWIG_IsOK(res1)) {
25249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25250 }
25251 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25252 {
25253 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25254 if (PyErr_Occurred()) SWIG_fail;
25255 }
25256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25257 return resultobj;
25258fail:
25259 return NULL;
25260}
25261
25262
25263SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25264 PyObject *obj;
25265 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25266 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25267 return SWIG_Py_Void();
25268}
25269
25270SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25271 return SWIG_Python_InitShadowInstance(args);
25272}
25273
25274SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25275 PyObject *resultobj = 0;
25276 wxGraphicsPen *result = 0 ;
25277
25278 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25279 {
25280 result = (wxGraphicsPen *)new wxGraphicsPen();
25281 if (PyErr_Occurred()) SWIG_fail;
25282 }
25283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25284 return resultobj;
25285fail:
25286 return NULL;
25287}
25288
25289
25290SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25291 PyObject *resultobj = 0;
25292 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25293 void *argp1 = 0 ;
25294 int res1 = 0 ;
25295 PyObject *swig_obj[1] ;
25296
25297 if (!args) SWIG_fail;
25298 swig_obj[0] = args;
25299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25300 if (!SWIG_IsOK(res1)) {
25301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25302 }
25303 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25304 {
25305 delete arg1;
25306
25307 if (PyErr_Occurred()) SWIG_fail;
25308 }
25309 resultobj = SWIG_Py_Void();
25310 return resultobj;
25311fail:
25312 return NULL;
25313}
25314
25315
25316SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25317 PyObject *obj;
25318 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25319 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25320 return SWIG_Py_Void();
25321}
25322
25323SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25324 return SWIG_Python_InitShadowInstance(args);
25325}
25326
25327SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25328 PyObject *resultobj = 0;
25329 wxGraphicsBrush *result = 0 ;
25330
25331 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25332 {
25333 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25334 if (PyErr_Occurred()) SWIG_fail;
25335 }
25336 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25337 return resultobj;
25338fail:
25339 return NULL;
25340}
25341
25342
25343SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25344 PyObject *resultobj = 0;
25345 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25346 void *argp1 = 0 ;
25347 int res1 = 0 ;
25348 PyObject *swig_obj[1] ;
25349
25350 if (!args) SWIG_fail;
25351 swig_obj[0] = args;
25352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25353 if (!SWIG_IsOK(res1)) {
25354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25355 }
25356 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25357 {
25358 delete arg1;
25359
25360 if (PyErr_Occurred()) SWIG_fail;
25361 }
25362 resultobj = SWIG_Py_Void();
25363 return resultobj;
25364fail:
25365 return NULL;
25366}
25367
25368
25369SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25370 PyObject *obj;
25371 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25372 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25373 return SWIG_Py_Void();
25374}
25375
25376SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25377 return SWIG_Python_InitShadowInstance(args);
25378}
25379
25380SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25381 PyObject *resultobj = 0;
25382 wxGraphicsFont *result = 0 ;
25383
25384 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25385 {
25386 result = (wxGraphicsFont *)new wxGraphicsFont();
25387 if (PyErr_Occurred()) SWIG_fail;
25388 }
25389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25390 return resultobj;
25391fail:
25392 return NULL;
25393}
25394
25395
25396SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25397 PyObject *resultobj = 0;
25398 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25399 void *argp1 = 0 ;
25400 int res1 = 0 ;
25401 PyObject *swig_obj[1] ;
25402
25403 if (!args) SWIG_fail;
25404 swig_obj[0] = args;
25405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25406 if (!SWIG_IsOK(res1)) {
25407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25408 }
25409 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25410 {
25411 delete arg1;
25412
25413 if (PyErr_Occurred()) SWIG_fail;
25414 }
25415 resultobj = SWIG_Py_Void();
25416 return resultobj;
25417fail:
25418 return NULL;
25419}
25420
25421
25422SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25423 PyObject *obj;
25424 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25425 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25426 return SWIG_Py_Void();
25427}
25428
25429SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25430 return SWIG_Python_InitShadowInstance(args);
25431}
25432
8f514ab4
RD
25433SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25434 PyObject *resultobj = 0;
25435 wxGraphicsMatrix *result = 0 ;
25436
25437 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25438 {
25439 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25440 if (PyErr_Occurred()) SWIG_fail;
25441 }
25442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25443 return resultobj;
25444fail:
25445 return NULL;
25446}
25447
25448
5c8c7dd3 25449SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25450 PyObject *resultobj = 0;
5c8c7dd3 25451 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
0085ce49
RD
25452 void *argp1 = 0 ;
25453 int res1 = 0 ;
25454 PyObject *swig_obj[1] ;
25455
25456 if (!args) SWIG_fail;
25457 swig_obj[0] = args;
5c8c7dd3 25458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
0085ce49 25459 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25461 }
5c8c7dd3 25462 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
0085ce49 25463 {
0085ce49
RD
25464 delete arg1;
25465
0085ce49
RD
25466 if (PyErr_Occurred()) SWIG_fail;
25467 }
25468 resultobj = SWIG_Py_Void();
25469 return resultobj;
25470fail:
25471 return NULL;
25472}
25473
25474
5c8c7dd3 25475SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25476 PyObject *resultobj = 0;
5c8c7dd3
RD
25477 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25478 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25479 void *argp1 = 0 ;
25480 int res1 = 0 ;
5c8c7dd3
RD
25481 void *argp2 = 0 ;
25482 int res2 = 0 ;
25483 PyObject * obj0 = 0 ;
25484 PyObject * obj1 = 0 ;
25485 char * kwnames[] = {
25486 (char *) "self",(char *) "t", NULL
25487 };
70d7cb34 25488
5c8c7dd3
RD
25489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25491 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25493 }
5c8c7dd3
RD
25494 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25495 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25496 if (!SWIG_IsOK(res2)) {
25497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25498 }
25499 if (!argp2) {
25500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25501 }
25502 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25503 {
5c8c7dd3 25504 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25505 if (PyErr_Occurred()) SWIG_fail;
25506 }
5c8c7dd3 25507 resultobj = SWIG_Py_Void();
70d7cb34
RD
25508 return resultobj;
25509fail:
25510 return NULL;
25511}
25512
25513
5c8c7dd3 25514SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 25515 PyObject *resultobj = 0;
5c8c7dd3
RD
25516 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25517 wxGraphicsMatrix *arg2 = 0 ;
0085ce49
RD
25518 void *argp1 = 0 ;
25519 int res1 = 0 ;
5c8c7dd3
RD
25520 void *argp2 = 0 ;
25521 int res2 = 0 ;
25522 PyObject * obj0 = 0 ;
25523 PyObject * obj1 = 0 ;
25524 char * kwnames[] = {
25525 (char *) "self",(char *) "t", NULL
25526 };
0085ce49 25527
5c8c7dd3
RD
25528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
25529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
0085ce49 25530 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25532 }
5c8c7dd3
RD
25533 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25534 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25535 if (!SWIG_IsOK(res2)) {
25536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25537 }
25538 if (!argp2) {
25539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25540 }
25541 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
0085ce49 25542 {
5c8c7dd3 25543 wxGraphicsMatrix_Copy(arg1,(wxGraphicsMatrix const &)*arg2);
0085ce49
RD
25544 if (PyErr_Occurred()) SWIG_fail;
25545 }
72ef6efb 25546 resultobj = SWIG_Py_Void();
0085ce49
RD
25547 return resultobj;
25548fail:
25549 return NULL;
25550}
25551
25552
5c8c7dd3 25553SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25554 PyObject *resultobj = 0;
5c8c7dd3
RD
25555 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25556 wxDouble arg2 = (wxDouble) 1.0 ;
25557 wxDouble arg3 = (wxDouble) 0.0 ;
25558 wxDouble arg4 = (wxDouble) 0.0 ;
25559 wxDouble arg5 = (wxDouble) 1.0 ;
25560 wxDouble arg6 = (wxDouble) 0.0 ;
25561 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25562 void *argp1 = 0 ;
25563 int res1 = 0 ;
5c8c7dd3
RD
25564 double val2 ;
25565 int ecode2 = 0 ;
25566 double val3 ;
25567 int ecode3 = 0 ;
25568 double val4 ;
25569 int ecode4 = 0 ;
25570 double val5 ;
25571 int ecode5 = 0 ;
25572 double val6 ;
25573 int ecode6 = 0 ;
25574 double val7 ;
25575 int ecode7 = 0 ;
25576 PyObject * obj0 = 0 ;
25577 PyObject * obj1 = 0 ;
25578 PyObject * obj2 = 0 ;
25579 PyObject * obj3 = 0 ;
25580 PyObject * obj4 = 0 ;
25581 PyObject * obj5 = 0 ;
25582 PyObject * obj6 = 0 ;
25583 char * kwnames[] = {
25584 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25585 };
70d7cb34 25586
5c8c7dd3
RD
25587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25589 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25591 }
5c8c7dd3
RD
25592 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25593 if (obj1) {
25594 ecode2 = SWIG_AsVal_double(obj1, &val2);
25595 if (!SWIG_IsOK(ecode2)) {
25596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25597 }
25598 arg2 = static_cast< wxDouble >(val2);
25599 }
25600 if (obj2) {
25601 ecode3 = SWIG_AsVal_double(obj2, &val3);
25602 if (!SWIG_IsOK(ecode3)) {
25603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25604 }
25605 arg3 = static_cast< wxDouble >(val3);
25606 }
25607 if (obj3) {
25608 ecode4 = SWIG_AsVal_double(obj3, &val4);
25609 if (!SWIG_IsOK(ecode4)) {
25610 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25611 }
25612 arg4 = static_cast< wxDouble >(val4);
25613 }
25614 if (obj4) {
25615 ecode5 = SWIG_AsVal_double(obj4, &val5);
25616 if (!SWIG_IsOK(ecode5)) {
25617 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25618 }
25619 arg5 = static_cast< wxDouble >(val5);
25620 }
25621 if (obj5) {
25622 ecode6 = SWIG_AsVal_double(obj5, &val6);
25623 if (!SWIG_IsOK(ecode6)) {
25624 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25625 }
25626 arg6 = static_cast< wxDouble >(val6);
25627 }
25628 if (obj6) {
25629 ecode7 = SWIG_AsVal_double(obj6, &val7);
25630 if (!SWIG_IsOK(ecode7)) {
25631 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25632 }
25633 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25634 }
25635 {
5c8c7dd3 25636 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25637 if (PyErr_Occurred()) SWIG_fail;
25638 }
25639 resultobj = SWIG_Py_Void();
25640 return resultobj;
25641fail:
25642 return NULL;
25643}
25644
25645
5c8c7dd3 25646SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25647 PyObject *resultobj = 0;
5c8c7dd3 25648 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
0085ce49
RD
25649 void *argp1 = 0 ;
25650 int res1 = 0 ;
5c8c7dd3 25651 PyObject *swig_obj[1] ;
0085ce49 25652
5c8c7dd3
RD
25653 if (!args) SWIG_fail;
25654 swig_obj[0] = args;
25655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
0085ce49 25656 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25658 }
5c8c7dd3 25659 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
0085ce49 25660 {
5c8c7dd3 25661 (arg1)->Invert();
0085ce49
RD
25662 if (PyErr_Occurred()) SWIG_fail;
25663 }
72ef6efb 25664 resultobj = SWIG_Py_Void();
0085ce49
RD
25665 return resultobj;
25666fail:
25667 return NULL;
25668}
25669
25670
5c8c7dd3 25671SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25672 PyObject *resultobj = 0;
5c8c7dd3
RD
25673 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25674 wxGraphicsMatrix *arg2 = 0 ;
25675 bool result;
70d7cb34
RD
25676 void *argp1 = 0 ;
25677 int res1 = 0 ;
5c8c7dd3
RD
25678 void *argp2 = 0 ;
25679 int res2 = 0 ;
25680 PyObject * obj0 = 0 ;
25681 PyObject * obj1 = 0 ;
25682 char * kwnames[] = {
25683 (char *) "self",(char *) "t", NULL
25684 };
70d7cb34 25685
5c8c7dd3
RD
25686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25688 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25690 }
5c8c7dd3
RD
25691 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25693 if (!SWIG_IsOK(res2)) {
25694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25695 }
25696 if (!argp2) {
25697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25698 }
5c8c7dd3 25699 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25700 {
5c8c7dd3 25701 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25702 if (PyErr_Occurred()) SWIG_fail;
25703 }
5c8c7dd3
RD
25704 {
25705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25706 }
70d7cb34
RD
25707 return resultobj;
25708fail:
25709 return NULL;
25710}
25711
25712
5c8c7dd3
RD
25713SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25714 PyObject *resultobj = 0;
25715 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25716 bool result;
25717 void *argp1 = 0 ;
25718 int res1 = 0 ;
25719 PyObject *swig_obj[1] ;
70d7cb34 25720
5c8c7dd3
RD
25721 if (!args) SWIG_fail;
25722 swig_obj[0] = args;
25723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25724 if (!SWIG_IsOK(res1)) {
25725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25726 }
5c8c7dd3
RD
25727 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25728 {
25729 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
25730 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 25731 }
5c8c7dd3
RD
25732 {
25733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25734 }
25735 return resultobj;
70d7cb34 25736fail:
70d7cb34
RD
25737 return NULL;
25738}
25739
25740
5c8c7dd3 25741SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 25742 PyObject *resultobj = 0;
5c8c7dd3 25743 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
25744 wxDouble arg2 ;
25745 wxDouble arg3 ;
0085ce49
RD
25746 void *argp1 = 0 ;
25747 int res1 = 0 ;
72ef6efb
RD
25748 double val2 ;
25749 int ecode2 = 0 ;
25750 double val3 ;
25751 int ecode3 = 0 ;
5c8c7dd3
RD
25752 PyObject * obj0 = 0 ;
25753 PyObject * obj1 = 0 ;
25754 PyObject * obj2 = 0 ;
25755 char * kwnames[] = {
25756 (char *) "self",(char *) "dx",(char *) "dy", NULL
25757 };
72ef6efb 25758
5c8c7dd3
RD
25759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25761 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25763 }
5c8c7dd3
RD
25764 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25765 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 25766 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
25768 }
25769 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 25770 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25771 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25773 }
25774 arg3 = static_cast< wxDouble >(val3);
72ef6efb 25775 {
5c8c7dd3 25776 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25777 if (PyErr_Occurred()) SWIG_fail;
25778 }
25779 resultobj = SWIG_Py_Void();
25780 return resultobj;
25781fail:
25782 return NULL;
25783}
25784
25785
5c8c7dd3 25786SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25787 PyObject *resultobj = 0;
5c8c7dd3
RD
25788 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25789 wxDouble arg2 ;
25790 wxDouble arg3 ;
70d7cb34
RD
25791 void *argp1 = 0 ;
25792 int res1 = 0 ;
5c8c7dd3
RD
25793 double val2 ;
25794 int ecode2 = 0 ;
25795 double val3 ;
25796 int ecode3 = 0 ;
25797 PyObject * obj0 = 0 ;
25798 PyObject * obj1 = 0 ;
25799 PyObject * obj2 = 0 ;
25800 char * kwnames[] = {
25801 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25802 };
70d7cb34 25803
5c8c7dd3
RD
25804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25806 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25808 }
5c8c7dd3
RD
25809 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25810 ecode2 = SWIG_AsVal_double(obj1, &val2);
25811 if (!SWIG_IsOK(ecode2)) {
25812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25813 }
25814 arg2 = static_cast< wxDouble >(val2);
25815 ecode3 = SWIG_AsVal_double(obj2, &val3);
25816 if (!SWIG_IsOK(ecode3)) {
25817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25818 }
25819 arg3 = static_cast< wxDouble >(val3);
70d7cb34 25820 {
5c8c7dd3 25821 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
25822 if (PyErr_Occurred()) SWIG_fail;
25823 }
25824 resultobj = SWIG_Py_Void();
25825 return resultobj;
25826fail:
25827 return NULL;
25828}
25829
25830
5c8c7dd3 25831SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25832 PyObject *resultobj = 0;
5c8c7dd3
RD
25833 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25834 wxDouble arg2 ;
70d7cb34
RD
25835 void *argp1 = 0 ;
25836 int res1 = 0 ;
5c8c7dd3
RD
25837 double val2 ;
25838 int ecode2 = 0 ;
70d7cb34
RD
25839 PyObject * obj0 = 0 ;
25840 PyObject * obj1 = 0 ;
25841 char * kwnames[] = {
5c8c7dd3 25842 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
25843 };
25844
5c8c7dd3
RD
25845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25847 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25849 }
5c8c7dd3
RD
25850 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25851 ecode2 = SWIG_AsVal_double(obj1, &val2);
25852 if (!SWIG_IsOK(ecode2)) {
25853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25854 }
25855 arg2 = static_cast< wxDouble >(val2);
70d7cb34 25856 {
5c8c7dd3 25857 (arg1)->Rotate(arg2);
70d7cb34
RD
25858 if (PyErr_Occurred()) SWIG_fail;
25859 }
25860 resultobj = SWIG_Py_Void();
25861 return resultobj;
25862fail:
25863 return NULL;
25864}
25865
25866
5c8c7dd3 25867SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 25868 PyObject *resultobj = 0;
5c8c7dd3
RD
25869 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25870 wxDouble *arg2 = (wxDouble *) 0 ;
25871 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
25872 void *argp1 = 0 ;
25873 int res1 = 0 ;
5c8c7dd3
RD
25874 wxDouble temp2 ;
25875 int res2 = 0 ;
25876 wxDouble temp3 ;
25877 int res3 = 0 ;
25878 PyObject * obj0 = 0 ;
25879 PyObject * obj1 = 0 ;
25880 PyObject * obj2 = 0 ;
25881 char * kwnames[] = {
25882 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25883 };
72ef6efb 25884
5c8c7dd3
RD
25885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25887 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
25888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25889 }
25890 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25891 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25892 double val;
25893 int ecode = SWIG_AsVal_double(obj1, &val);
25894 if (!SWIG_IsOK(ecode)) {
25895 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25896 }
25897 temp2 = static_cast< wxDouble >(val);
25898 arg2 = &temp2;
25899 res2 = SWIG_AddTmpMask(ecode);
25900 }
25901 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25902 double val;
25903 int ecode = SWIG_AsVal_double(obj2, &val);
25904 if (!SWIG_IsOK(ecode)) {
25905 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25906 }
25907 temp3 = static_cast< wxDouble >(val);
25908 arg3 = &temp3;
25909 res3 = SWIG_AddTmpMask(ecode);
25910 }
25911 {
25912 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
25913 if (PyErr_Occurred()) SWIG_fail;
72ef6efb
RD
25914 }
25915 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
25916 if (SWIG_IsTmpObj(res2)) {
25917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25918 } else {
25919 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25921 }
25922 if (SWIG_IsTmpObj(res3)) {
25923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25924 } else {
25925 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25927 }
72ef6efb
RD
25928 return resultobj;
25929fail:
25930 return NULL;
25931}
25932
25933
5c8c7dd3
RD
25934SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25935 PyObject *resultobj = 0;
25936 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25937 wxDouble *arg2 = (wxDouble *) 0 ;
25938 wxDouble *arg3 = (wxDouble *) 0 ;
25939 void *argp1 = 0 ;
25940 int res1 = 0 ;
25941 wxDouble temp2 ;
25942 int res2 = 0 ;
25943 wxDouble temp3 ;
25944 int res3 = 0 ;
25945 PyObject * obj0 = 0 ;
25946 PyObject * obj1 = 0 ;
25947 PyObject * obj2 = 0 ;
25948 char * kwnames[] = {
25949 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25950 };
25951
25952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25954 if (!SWIG_IsOK(res1)) {
25955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25956 }
25957 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25958 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25959 double val;
25960 int ecode = SWIG_AsVal_double(obj1, &val);
25961 if (!SWIG_IsOK(ecode)) {
25962 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
25963 }
25964 temp2 = static_cast< wxDouble >(val);
25965 arg2 = &temp2;
25966 res2 = SWIG_AddTmpMask(ecode);
25967 }
25968 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25969 double val;
25970 int ecode = SWIG_AsVal_double(obj2, &val);
25971 if (!SWIG_IsOK(ecode)) {
25972 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
25973 }
25974 temp3 = static_cast< wxDouble >(val);
25975 arg3 = &temp3;
25976 res3 = SWIG_AddTmpMask(ecode);
25977 }
25978 {
25979 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
25980 if (PyErr_Occurred()) SWIG_fail;
25981 }
25982 resultobj = SWIG_Py_Void();
25983 if (SWIG_IsTmpObj(res2)) {
25984 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25985 } else {
25986 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25987 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25988 }
25989 if (SWIG_IsTmpObj(res3)) {
25990 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25991 } else {
25992 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25993 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25994 }
25995 return resultobj;
25996fail:
25997 return NULL;
25998}
25999
26000
26001SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26002 PyObject *resultobj = 0;
26003 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26004 void *result = 0 ;
26005 void *argp1 = 0 ;
26006 int res1 = 0 ;
26007 PyObject *swig_obj[1] ;
26008
26009 if (!args) SWIG_fail;
26010 swig_obj[0] = args;
26011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26012 if (!SWIG_IsOK(res1)) {
26013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26014 }
26015 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26016 {
26017 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26018 if (PyErr_Occurred()) SWIG_fail;
26019 }
26020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26021 return resultobj;
26022fail:
26023 return NULL;
26024}
26025
26026
26027SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26028 PyObject *obj;
26029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26030 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26031 return SWIG_Py_Void();
26032}
26033
8f514ab4
RD
26034SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26035 return SWIG_Python_InitShadowInstance(args);
26036}
26037
26038SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26039 PyObject *resultobj = 0;
26040 wxGraphicsPath *result = 0 ;
26041
26042 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26043 {
26044 if (!wxPyCheckForApp()) SWIG_fail;
26045 PyThreadState* __tstate = wxPyBeginAllowThreads();
26046 result = (wxGraphicsPath *)new wxGraphicsPath();
26047 wxPyEndAllowThreads(__tstate);
26048 if (PyErr_Occurred()) SWIG_fail;
26049 }
26050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26051 return resultobj;
26052fail:
26053 return NULL;
26054}
26055
26056
5c8c7dd3 26057SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26058 PyObject *resultobj = 0;
26059 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26060 void *argp1 = 0 ;
26061 int res1 = 0 ;
26062 PyObject *swig_obj[1] ;
26063
26064 if (!args) SWIG_fail;
26065 swig_obj[0] = args;
5c8c7dd3 26066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26067 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26069 }
26070 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26071 {
5c8c7dd3
RD
26072 delete arg1;
26073
72ef6efb
RD
26074 if (PyErr_Occurred()) SWIG_fail;
26075 }
5c8c7dd3 26076 resultobj = SWIG_Py_Void();
70d7cb34
RD
26077 return resultobj;
26078fail:
26079 return NULL;
26080}
26081
26082
5c8c7dd3 26083SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26084 PyObject *resultobj = 0;
26085 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26086 wxDouble arg2 ;
26087 wxDouble arg3 ;
70d7cb34
RD
26088 void *argp1 = 0 ;
26089 int res1 = 0 ;
26090 double val2 ;
26091 int ecode2 = 0 ;
26092 double val3 ;
26093 int ecode3 = 0 ;
70d7cb34 26094
5c8c7dd3 26095 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26097 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26099 }
26100 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26101 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26102 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26104 }
26105 arg2 = static_cast< wxDouble >(val2);
26106 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26107 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26109 }
26110 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26111 {
5c8c7dd3 26112 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26113 if (PyErr_Occurred()) SWIG_fail;
26114 }
26115 resultobj = SWIG_Py_Void();
26116 return resultobj;
26117fail:
26118 return NULL;
26119}
26120
26121
5c8c7dd3 26122SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26123 PyObject *resultobj = 0;
26124 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26125 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26126 void *argp1 = 0 ;
26127 int res1 = 0 ;
26128 wxPoint2D temp2 ;
70d7cb34 26129
5c8c7dd3 26130 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26132 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26134 }
26135 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26136 {
26137 arg2 = &temp2;
26138 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26139 }
70d7cb34 26140 {
5c8c7dd3 26141 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26142 if (PyErr_Occurred()) SWIG_fail;
26143 }
26144 resultobj = SWIG_Py_Void();
26145 return resultobj;
26146fail:
26147 return NULL;
26148}
26149
26150
5c8c7dd3 26151SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26152 int argc;
5c8c7dd3 26153 PyObject *argv[4];
70d7cb34 26154
5c8c7dd3 26155 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26156 --argc;
5c8c7dd3
RD
26157 if (argc == 2) {
26158 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26159 }
5c8c7dd3
RD
26160 if (argc == 3) {
26161 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26162 }
26163
26164fail:
5c8c7dd3 26165 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26166 return NULL;
26167}
26168
26169
5c8c7dd3 26170SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26171 PyObject *resultobj = 0;
26172 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26173 wxDouble arg2 ;
26174 wxDouble arg3 ;
70d7cb34
RD
26175 void *argp1 = 0 ;
26176 int res1 = 0 ;
26177 double val2 ;
26178 int ecode2 = 0 ;
26179 double val3 ;
26180 int ecode3 = 0 ;
70d7cb34 26181
5c8c7dd3
RD
26182 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26184 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26186 }
26187 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26188 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26189 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26191 }
26192 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26193 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26194 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26195 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26196 }
26197 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26198 {
5c8c7dd3 26199 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26200 if (PyErr_Occurred()) SWIG_fail;
26201 }
26202 resultobj = SWIG_Py_Void();
26203 return resultobj;
26204fail:
26205 return NULL;
26206}
26207
26208
5c8c7dd3 26209SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26210 PyObject *resultobj = 0;
26211 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26212 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26213 void *argp1 = 0 ;
26214 int res1 = 0 ;
5c8c7dd3 26215 wxPoint2D temp2 ;
70d7cb34 26216
5c8c7dd3
RD
26217 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26219 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26221 }
26222 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26223 {
5c8c7dd3
RD
26224 arg2 = &temp2;
26225 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26226 }
26227 {
26228 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26229 if (PyErr_Occurred()) SWIG_fail;
26230 }
26231 resultobj = SWIG_Py_Void();
26232 return resultobj;
26233fail:
26234 return NULL;
26235}
26236
26237
5c8c7dd3
RD
26238SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26239 int argc;
26240 PyObject *argv[4];
70d7cb34 26241
5c8c7dd3
RD
26242 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26243 --argc;
26244 if (argc == 2) {
26245 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26246 }
5c8c7dd3
RD
26247 if (argc == 3) {
26248 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26249 }
5c8c7dd3 26250
70d7cb34 26251fail:
5c8c7dd3 26252 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26253 return NULL;
26254}
26255
26256
5c8c7dd3 26257SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26258 PyObject *resultobj = 0;
26259 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26260 wxDouble arg2 ;
26261 wxDouble arg3 ;
26262 wxDouble arg4 ;
26263 wxDouble arg5 ;
26264 wxDouble arg6 ;
5c8c7dd3 26265 wxDouble arg7 ;
70d7cb34
RD
26266 void *argp1 = 0 ;
26267 int res1 = 0 ;
26268 double val2 ;
26269 int ecode2 = 0 ;
26270 double val3 ;
26271 int ecode3 = 0 ;
26272 double val4 ;
26273 int ecode4 = 0 ;
26274 double val5 ;
26275 int ecode5 = 0 ;
26276 double val6 ;
26277 int ecode6 = 0 ;
5c8c7dd3
RD
26278 double val7 ;
26279 int ecode7 = 0 ;
70d7cb34 26280
5c8c7dd3
RD
26281 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26283 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26285 }
26286 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26287 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26288 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26290 }
26291 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26292 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26293 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26295 }
26296 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26297 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26298 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26299 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26300 }
26301 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26302 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26303 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26304 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26305 }
26306 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26307 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26308 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26309 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26310 }
26311 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26312 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26313 if (!SWIG_IsOK(ecode7)) {
26314 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26315 }
26316 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26317 {
5c8c7dd3 26318 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 resultobj = SWIG_Py_Void();
26322 return resultobj;
26323fail:
26324 return NULL;
26325}
26326
26327
5c8c7dd3 26328SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26329 PyObject *resultobj = 0;
26330 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26331 wxPoint2D *arg2 = 0 ;
26332 wxPoint2D *arg3 = 0 ;
26333 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26334 void *argp1 = 0 ;
26335 int res1 = 0 ;
5c8c7dd3
RD
26336 wxPoint2D temp2 ;
26337 wxPoint2D temp3 ;
26338 wxPoint2D temp4 ;
70d7cb34 26339
5c8c7dd3
RD
26340 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26342 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26344 }
26345 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26346 {
5c8c7dd3
RD
26347 arg2 = &temp2;
26348 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26349 }
5c8c7dd3
RD
26350 {
26351 arg3 = &temp3;
26352 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26353 }
70d7cb34 26354 {
5c8c7dd3
RD
26355 arg4 = &temp4;
26356 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26357 }
26358 {
26359 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26360 if (PyErr_Occurred()) SWIG_fail;
26361 }
26362 resultobj = SWIG_Py_Void();
26363 return resultobj;
26364fail:
26365 return NULL;
26366}
26367
26368
5c8c7dd3
RD
26369SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26370 int argc;
26371 PyObject *argv[8];
70d7cb34 26372
5c8c7dd3
RD
26373 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26374 --argc;
26375 if (argc == 4) {
26376 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26377 }
5c8c7dd3
RD
26378 if (argc == 7) {
26379 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26380 }
5c8c7dd3 26381
70d7cb34 26382fail:
5c8c7dd3 26383 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26384 return NULL;
26385}
26386
26387
5c8c7dd3 26388SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26389 PyObject *resultobj = 0;
26390 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26391 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26392 void *argp1 = 0 ;
26393 int res1 = 0 ;
5c8c7dd3
RD
26394 void *argp2 = 0 ;
26395 int res2 = 0 ;
70d7cb34
RD
26396 PyObject * obj0 = 0 ;
26397 PyObject * obj1 = 0 ;
26398 char * kwnames[] = {
5c8c7dd3 26399 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26400 };
26401
5c8c7dd3 26402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26404 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26406 }
26407 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26408 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26409 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26411 }
26412 if (!argp2) {
26413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26414 }
5c8c7dd3 26415 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26416 {
5c8c7dd3 26417 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26418 if (PyErr_Occurred()) SWIG_fail;
26419 }
26420 resultobj = SWIG_Py_Void();
26421 return resultobj;
26422fail:
26423 return NULL;
26424}
26425
26426
5c8c7dd3 26427SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26428 PyObject *resultobj = 0;
26429 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26430 void *argp1 = 0 ;
26431 int res1 = 0 ;
5c8c7dd3 26432 PyObject *swig_obj[1] ;
70d7cb34 26433
5c8c7dd3
RD
26434 if (!args) SWIG_fail;
26435 swig_obj[0] = args;
26436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26437 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26439 }
26440 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26441 {
5c8c7dd3 26442 (arg1)->CloseSubpath();
70d7cb34
RD
26443 if (PyErr_Occurred()) SWIG_fail;
26444 }
26445 resultobj = SWIG_Py_Void();
26446 return resultobj;
26447fail:
26448 return NULL;
26449}
26450
26451
5c8c7dd3 26452SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26453 PyObject *resultobj = 0;
26454 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26455 wxPoint2D result;
70d7cb34
RD
26456 void *argp1 = 0 ;
26457 int res1 = 0 ;
26458 PyObject *swig_obj[1] ;
26459
26460 if (!args) SWIG_fail;
26461 swig_obj[0] = args;
26462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26463 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26465 }
26466 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26467 {
5c8c7dd3 26468 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26469 if (PyErr_Occurred()) SWIG_fail;
26470 }
5c8c7dd3 26471 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26472 return resultobj;
26473fail:
26474 return NULL;
26475}
26476
26477
5c8c7dd3 26478SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26479 PyObject *resultobj = 0;
26480 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26481 wxDouble arg2 ;
26482 wxDouble arg3 ;
5c8c7dd3
RD
26483 wxDouble arg4 ;
26484 wxDouble arg5 ;
26485 wxDouble arg6 ;
26486 bool arg7 ;
70d7cb34
RD
26487 void *argp1 = 0 ;
26488 int res1 = 0 ;
26489 double val2 ;
26490 int ecode2 = 0 ;
26491 double val3 ;
26492 int ecode3 = 0 ;
5c8c7dd3 26493 double val4 ;
70d7cb34 26494 int ecode4 = 0 ;
5c8c7dd3
RD
26495 double val5 ;
26496 int ecode5 = 0 ;
26497 double val6 ;
26498 int ecode6 = 0 ;
26499 bool val7 ;
26500 int ecode7 = 0 ;
70d7cb34 26501
5c8c7dd3 26502 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26504 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26506 }
26507 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26508 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26509 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26511 }
26512 arg2 = static_cast< wxDouble >(val2);
26513 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26514 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26516 }
26517 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26518 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26519 if (!SWIG_IsOK(ecode4)) {
26520 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26521 }
26522 arg4 = static_cast< wxDouble >(val4);
26523 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26524 if (!SWIG_IsOK(ecode5)) {
26525 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26526 }
26527 arg5 = static_cast< wxDouble >(val5);
26528 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26529 if (!SWIG_IsOK(ecode6)) {
26530 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26531 }
26532 arg6 = static_cast< wxDouble >(val6);
26533 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26534 if (!SWIG_IsOK(ecode7)) {
26535 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26536 }
26537 arg7 = static_cast< bool >(val7);
70d7cb34 26538 {
5c8c7dd3 26539 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26540 if (PyErr_Occurred()) SWIG_fail;
26541 }
5c8c7dd3 26542 resultobj = SWIG_Py_Void();
70d7cb34
RD
26543 return resultobj;
26544fail:
26545 return NULL;
26546}
26547
26548
5c8c7dd3 26549SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26550 PyObject *resultobj = 0;
26551 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26552 wxPoint2D *arg2 = 0 ;
26553 wxDouble arg3 ;
26554 wxDouble arg4 ;
26555 wxDouble arg5 ;
26556 bool arg6 ;
70d7cb34
RD
26557 void *argp1 = 0 ;
26558 int res1 = 0 ;
5c8c7dd3
RD
26559 wxPoint2D temp2 ;
26560 double val3 ;
70d7cb34 26561 int ecode3 = 0 ;
5c8c7dd3
RD
26562 double val4 ;
26563 int ecode4 = 0 ;
26564 double val5 ;
26565 int ecode5 = 0 ;
26566 bool val6 ;
26567 int ecode6 = 0 ;
70d7cb34 26568
5c8c7dd3 26569 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26571 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26573 }
26574 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26575 {
5c8c7dd3
RD
26576 arg2 = &temp2;
26577 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26578 }
5c8c7dd3
RD
26579 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26580 if (!SWIG_IsOK(ecode3)) {
26581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26582 }
26583 arg3 = static_cast< wxDouble >(val3);
26584 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26585 if (!SWIG_IsOK(ecode4)) {
26586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26587 }
26588 arg4 = static_cast< wxDouble >(val4);
26589 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26590 if (!SWIG_IsOK(ecode5)) {
26591 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26592 }
26593 arg5 = static_cast< wxDouble >(val5);
26594 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26595 if (!SWIG_IsOK(ecode6)) {
26596 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26597 }
26598 arg6 = static_cast< bool >(val6);
70d7cb34 26599 {
5c8c7dd3
RD
26600 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26601 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26602 }
5c8c7dd3 26603 resultobj = SWIG_Py_Void();
70d7cb34
RD
26604 return resultobj;
26605fail:
26606 return NULL;
26607}
26608
26609
5c8c7dd3 26610SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26611 int argc;
5c8c7dd3 26612 PyObject *argv[8];
70d7cb34 26613
5c8c7dd3 26614 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26615 --argc;
5c8c7dd3
RD
26616 if (argc == 6) {
26617 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26618 }
5c8c7dd3
RD
26619 if (argc == 7) {
26620 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26621 }
26622
26623fail:
5c8c7dd3 26624 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26625 return NULL;
26626}
26627
26628
5c8c7dd3 26629SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26630 PyObject *resultobj = 0;
5c8c7dd3
RD
26631 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26632 wxDouble arg2 ;
26633 wxDouble arg3 ;
26634 wxDouble arg4 ;
26635 wxDouble arg5 ;
70d7cb34
RD
26636 void *argp1 = 0 ;
26637 int res1 = 0 ;
5c8c7dd3
RD
26638 double val2 ;
26639 int ecode2 = 0 ;
26640 double val3 ;
26641 int ecode3 = 0 ;
26642 double val4 ;
26643 int ecode4 = 0 ;
26644 double val5 ;
26645 int ecode5 = 0 ;
26646 PyObject * obj0 = 0 ;
26647 PyObject * obj1 = 0 ;
26648 PyObject * obj2 = 0 ;
26649 PyObject * obj3 = 0 ;
26650 PyObject * obj4 = 0 ;
26651 char * kwnames[] = {
26652 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26653 };
70d7cb34 26654
5c8c7dd3
RD
26655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26657 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26659 }
5c8c7dd3
RD
26660 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26661 ecode2 = SWIG_AsVal_double(obj1, &val2);
26662 if (!SWIG_IsOK(ecode2)) {
26663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26664 }
26665 arg2 = static_cast< wxDouble >(val2);
26666 ecode3 = SWIG_AsVal_double(obj2, &val3);
26667 if (!SWIG_IsOK(ecode3)) {
26668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26669 }
26670 arg3 = static_cast< wxDouble >(val3);
26671 ecode4 = SWIG_AsVal_double(obj3, &val4);
26672 if (!SWIG_IsOK(ecode4)) {
26673 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26674 }
26675 arg4 = static_cast< wxDouble >(val4);
26676 ecode5 = SWIG_AsVal_double(obj4, &val5);
26677 if (!SWIG_IsOK(ecode5)) {
26678 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26679 }
26680 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26681 {
5c8c7dd3 26682 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26683 if (PyErr_Occurred()) SWIG_fail;
26684 }
26685 resultobj = SWIG_Py_Void();
26686 return resultobj;
26687fail:
26688 return NULL;
26689}
26690
26691
5c8c7dd3 26692SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26693 PyObject *resultobj = 0;
5c8c7dd3
RD
26694 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26695 wxDouble arg2 ;
26696 wxDouble arg3 ;
26697 wxDouble arg4 ;
26698 wxDouble arg5 ;
70d7cb34
RD
26699 void *argp1 = 0 ;
26700 int res1 = 0 ;
5c8c7dd3
RD
26701 double val2 ;
26702 int ecode2 = 0 ;
26703 double val3 ;
26704 int ecode3 = 0 ;
26705 double val4 ;
26706 int ecode4 = 0 ;
26707 double val5 ;
26708 int ecode5 = 0 ;
70d7cb34
RD
26709 PyObject * obj0 = 0 ;
26710 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26711 PyObject * obj2 = 0 ;
26712 PyObject * obj3 = 0 ;
26713 PyObject * obj4 = 0 ;
70d7cb34 26714 char * kwnames[] = {
5c8c7dd3 26715 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
26716 };
26717
5c8c7dd3
RD
26718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26720 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26722 }
5c8c7dd3
RD
26723 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26724 ecode2 = SWIG_AsVal_double(obj1, &val2);
26725 if (!SWIG_IsOK(ecode2)) {
26726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26727 }
26728 arg2 = static_cast< wxDouble >(val2);
26729 ecode3 = SWIG_AsVal_double(obj2, &val3);
26730 if (!SWIG_IsOK(ecode3)) {
26731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26732 }
26733 arg3 = static_cast< wxDouble >(val3);
26734 ecode4 = SWIG_AsVal_double(obj3, &val4);
26735 if (!SWIG_IsOK(ecode4)) {
26736 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26737 }
26738 arg4 = static_cast< wxDouble >(val4);
26739 ecode5 = SWIG_AsVal_double(obj4, &val5);
26740 if (!SWIG_IsOK(ecode5)) {
26741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26742 }
26743 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26744 {
5c8c7dd3 26745 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
26746 if (PyErr_Occurred()) SWIG_fail;
26747 }
26748 resultobj = SWIG_Py_Void();
26749 return resultobj;
26750fail:
26751 return NULL;
26752}
26753
26754
5c8c7dd3 26755SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26756 PyObject *resultobj = 0;
5c8c7dd3
RD
26757 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26758 wxDouble arg2 ;
26759 wxDouble arg3 ;
26760 wxDouble arg4 ;
70d7cb34
RD
26761 void *argp1 = 0 ;
26762 int res1 = 0 ;
5c8c7dd3
RD
26763 double val2 ;
26764 int ecode2 = 0 ;
26765 double val3 ;
26766 int ecode3 = 0 ;
26767 double val4 ;
26768 int ecode4 = 0 ;
70d7cb34
RD
26769 PyObject * obj0 = 0 ;
26770 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26771 PyObject * obj2 = 0 ;
26772 PyObject * obj3 = 0 ;
70d7cb34 26773 char * kwnames[] = {
5c8c7dd3 26774 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
26775 };
26776
5c8c7dd3
RD
26777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26779 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26781 }
5c8c7dd3
RD
26782 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26783 ecode2 = SWIG_AsVal_double(obj1, &val2);
26784 if (!SWIG_IsOK(ecode2)) {
26785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26786 }
26787 arg2 = static_cast< wxDouble >(val2);
26788 ecode3 = SWIG_AsVal_double(obj2, &val3);
26789 if (!SWIG_IsOK(ecode3)) {
26790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26791 }
26792 arg3 = static_cast< wxDouble >(val3);
26793 ecode4 = SWIG_AsVal_double(obj3, &val4);
26794 if (!SWIG_IsOK(ecode4)) {
26795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26796 }
26797 arg4 = static_cast< wxDouble >(val4);
70d7cb34 26798 {
5c8c7dd3 26799 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
26800 if (PyErr_Occurred()) SWIG_fail;
26801 }
26802 resultobj = SWIG_Py_Void();
26803 return resultobj;
26804fail:
26805 return NULL;
26806}
26807
26808
5c8c7dd3 26809SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26810 PyObject *resultobj = 0;
5c8c7dd3
RD
26811 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26812 wxDouble arg2 ;
26813 wxDouble arg3 ;
26814 wxDouble arg4 ;
26815 wxDouble arg5 ;
26816 wxDouble arg6 ;
70d7cb34
RD
26817 void *argp1 = 0 ;
26818 int res1 = 0 ;
26819 double val2 ;
26820 int ecode2 = 0 ;
26821 double val3 ;
26822 int ecode3 = 0 ;
26823 double val4 ;
26824 int ecode4 = 0 ;
26825 double val5 ;
26826 int ecode5 = 0 ;
26827 double val6 ;
26828 int ecode6 = 0 ;
70d7cb34
RD
26829 PyObject * obj0 = 0 ;
26830 PyObject * obj1 = 0 ;
26831 PyObject * obj2 = 0 ;
26832 PyObject * obj3 = 0 ;
26833 PyObject * obj4 = 0 ;
26834 PyObject * obj5 = 0 ;
70d7cb34 26835 char * kwnames[] = {
5c8c7dd3 26836 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
26837 };
26838
5c8c7dd3
RD
26839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26841 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26843 }
5c8c7dd3
RD
26844 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26845 ecode2 = SWIG_AsVal_double(obj1, &val2);
26846 if (!SWIG_IsOK(ecode2)) {
26847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26848 }
26849 arg2 = static_cast< wxDouble >(val2);
26850 ecode3 = SWIG_AsVal_double(obj2, &val3);
26851 if (!SWIG_IsOK(ecode3)) {
26852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26853 }
26854 arg3 = static_cast< wxDouble >(val3);
26855 ecode4 = SWIG_AsVal_double(obj3, &val4);
26856 if (!SWIG_IsOK(ecode4)) {
26857 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26858 }
26859 arg4 = static_cast< wxDouble >(val4);
26860 ecode5 = SWIG_AsVal_double(obj4, &val5);
26861 if (!SWIG_IsOK(ecode5)) {
26862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26863 }
26864 arg5 = static_cast< wxDouble >(val5);
26865 ecode6 = SWIG_AsVal_double(obj5, &val6);
26866 if (!SWIG_IsOK(ecode6)) {
26867 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26868 }
26869 arg6 = static_cast< wxDouble >(val6);
70d7cb34 26870 {
5c8c7dd3 26871 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
26872 if (PyErr_Occurred()) SWIG_fail;
26873 }
26874 resultobj = SWIG_Py_Void();
26875 return resultobj;
26876fail:
26877 return NULL;
26878}
26879
26880
5c8c7dd3 26881SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26882 PyObject *resultobj = 0;
5c8c7dd3
RD
26883 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26884 wxDouble arg2 ;
26885 wxDouble arg3 ;
26886 wxDouble arg4 ;
26887 wxDouble arg5 ;
70d7cb34
RD
26888 void *argp1 = 0 ;
26889 int res1 = 0 ;
5c8c7dd3
RD
26890 double val2 ;
26891 int ecode2 = 0 ;
26892 double val3 ;
26893 int ecode3 = 0 ;
26894 double val4 ;
26895 int ecode4 = 0 ;
26896 double val5 ;
26897 int ecode5 = 0 ;
26898 PyObject * obj0 = 0 ;
26899 PyObject * obj1 = 0 ;
26900 PyObject * obj2 = 0 ;
26901 PyObject * obj3 = 0 ;
26902 PyObject * obj4 = 0 ;
26903 char * kwnames[] = {
26904 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26905 };
70d7cb34 26906
5c8c7dd3
RD
26907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26909 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26911 }
5c8c7dd3
RD
26912 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26913 ecode2 = SWIG_AsVal_double(obj1, &val2);
26914 if (!SWIG_IsOK(ecode2)) {
26915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26916 }
26917 arg2 = static_cast< wxDouble >(val2);
26918 ecode3 = SWIG_AsVal_double(obj2, &val3);
26919 if (!SWIG_IsOK(ecode3)) {
26920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26921 }
26922 arg3 = static_cast< wxDouble >(val3);
26923 ecode4 = SWIG_AsVal_double(obj3, &val4);
26924 if (!SWIG_IsOK(ecode4)) {
26925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26926 }
26927 arg4 = static_cast< wxDouble >(val4);
26928 ecode5 = SWIG_AsVal_double(obj4, &val5);
26929 if (!SWIG_IsOK(ecode5)) {
26930 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26931 }
26932 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26933 {
5c8c7dd3 26934 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
26935 if (PyErr_Occurred()) SWIG_fail;
26936 }
26937 resultobj = SWIG_Py_Void();
26938 return resultobj;
26939fail:
26940 return NULL;
26941}
26942
26943
5c8c7dd3 26944SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26945 PyObject *resultobj = 0;
5c8c7dd3
RD
26946 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26947 wxDouble arg2 ;
26948 wxDouble arg3 ;
26949 wxDouble arg4 ;
26950 wxDouble arg5 ;
26951 wxDouble arg6 ;
70d7cb34
RD
26952 void *argp1 = 0 ;
26953 int res1 = 0 ;
5c8c7dd3
RD
26954 double val2 ;
26955 int ecode2 = 0 ;
26956 double val3 ;
26957 int ecode3 = 0 ;
26958 double val4 ;
26959 int ecode4 = 0 ;
26960 double val5 ;
26961 int ecode5 = 0 ;
26962 double val6 ;
26963 int ecode6 = 0 ;
70d7cb34
RD
26964 PyObject * obj0 = 0 ;
26965 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26966 PyObject * obj2 = 0 ;
26967 PyObject * obj3 = 0 ;
26968 PyObject * obj4 = 0 ;
26969 PyObject * obj5 = 0 ;
70d7cb34 26970 char * kwnames[] = {
5c8c7dd3 26971 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
26972 };
26973
5c8c7dd3
RD
26974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26976 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26978 }
5c8c7dd3
RD
26979 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26980 ecode2 = SWIG_AsVal_double(obj1, &val2);
26981 if (!SWIG_IsOK(ecode2)) {
26982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26983 }
26984 arg2 = static_cast< wxDouble >(val2);
26985 ecode3 = SWIG_AsVal_double(obj2, &val3);
26986 if (!SWIG_IsOK(ecode3)) {
26987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26988 }
26989 arg3 = static_cast< wxDouble >(val3);
26990 ecode4 = SWIG_AsVal_double(obj3, &val4);
26991 if (!SWIG_IsOK(ecode4)) {
26992 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26993 }
26994 arg4 = static_cast< wxDouble >(val4);
26995 ecode5 = SWIG_AsVal_double(obj4, &val5);
26996 if (!SWIG_IsOK(ecode5)) {
26997 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26998 }
26999 arg5 = static_cast< wxDouble >(val5);
27000 ecode6 = SWIG_AsVal_double(obj5, &val6);
27001 if (!SWIG_IsOK(ecode6)) {
27002 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27003 }
27004 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27005 {
5c8c7dd3 27006 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27007 if (PyErr_Occurred()) SWIG_fail;
27008 }
5c8c7dd3 27009 resultobj = SWIG_Py_Void();
70d7cb34
RD
27010 return resultobj;
27011fail:
27012 return NULL;
27013}
27014
27015
5c8c7dd3 27016SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27017 PyObject *resultobj = 0;
5c8c7dd3
RD
27018 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27019 void *result = 0 ;
70d7cb34
RD
27020 void *argp1 = 0 ;
27021 int res1 = 0 ;
27022 PyObject *swig_obj[1] ;
27023
27024 if (!args) SWIG_fail;
27025 swig_obj[0] = args;
5c8c7dd3 27026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27027 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27029 }
5c8c7dd3 27030 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27031 {
5c8c7dd3 27032 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27033 if (PyErr_Occurred()) SWIG_fail;
27034 }
5c8c7dd3 27035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27036 return resultobj;
27037fail:
27038 return NULL;
27039}
27040
27041
5c8c7dd3 27042SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27043 PyObject *resultobj = 0;
5c8c7dd3
RD
27044 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27045 void *arg2 = (void *) 0 ;
70d7cb34
RD
27046 void *argp1 = 0 ;
27047 int res1 = 0 ;
5c8c7dd3 27048 int res2 ;
70d7cb34
RD
27049 PyObject * obj0 = 0 ;
27050 PyObject * obj1 = 0 ;
70d7cb34 27051 char * kwnames[] = {
5c8c7dd3 27052 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27053 };
27054
5c8c7dd3
RD
27055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27057 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
27058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27059 }
27060 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27061 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27062 if (!SWIG_IsOK(res2)) {
27063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27064 }
70d7cb34 27065 {
5c8c7dd3 27066 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27067 if (PyErr_Occurred()) SWIG_fail;
27068 }
27069 resultobj = SWIG_Py_Void();
27070 return resultobj;
27071fail:
27072 return NULL;
27073}
27074
27075
5c8c7dd3 27076SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27077 PyObject *resultobj = 0;
5c8c7dd3
RD
27078 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27079 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27080 void *argp1 = 0 ;
27081 int res1 = 0 ;
5c8c7dd3
RD
27082 void *argp2 = 0 ;
27083 int res2 = 0 ;
70d7cb34
RD
27084 PyObject * obj0 = 0 ;
27085 PyObject * obj1 = 0 ;
70d7cb34 27086 char * kwnames[] = {
5c8c7dd3 27087 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27088 };
27089
5c8c7dd3
RD
27090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27092 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27094 }
5c8c7dd3
RD
27095 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27096 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27097 if (!SWIG_IsOK(res2)) {
27098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27099 }
27100 if (!argp2) {
27101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27102 }
27103 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27104 {
5c8c7dd3 27105 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27106 if (PyErr_Occurred()) SWIG_fail;
27107 }
27108 resultobj = SWIG_Py_Void();
27109 return resultobj;
27110fail:
27111 return NULL;
27112}
27113
27114
5c8c7dd3 27115SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27116 PyObject *resultobj = 0;
5c8c7dd3
RD
27117 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27118 wxRect2DDouble result;
70d7cb34
RD
27119 void *argp1 = 0 ;
27120 int res1 = 0 ;
5c8c7dd3 27121 PyObject *swig_obj[1] ;
70d7cb34 27122
5c8c7dd3
RD
27123 if (!args) SWIG_fail;
27124 swig_obj[0] = args;
27125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27126 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27128 }
5c8c7dd3 27129 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27130 {
5c8c7dd3 27131 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27132 if (PyErr_Occurred()) SWIG_fail;
27133 }
5c8c7dd3 27134 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27135 return resultobj;
27136fail:
27137 return NULL;
27138}
27139
27140
5c8c7dd3 27141SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27142 PyObject *resultobj = 0;
5c8c7dd3
RD
27143 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27144 wxDouble arg2 ;
27145 wxDouble arg3 ;
27146 int arg4 = (int) wxODDEVEN_RULE ;
27147 bool result;
70d7cb34
RD
27148 void *argp1 = 0 ;
27149 int res1 = 0 ;
5c8c7dd3
RD
27150 double val2 ;
27151 int ecode2 = 0 ;
27152 double val3 ;
27153 int ecode3 = 0 ;
27154 int val4 ;
27155 int ecode4 = 0 ;
70d7cb34 27156
5c8c7dd3
RD
27157 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27159 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27161 }
5c8c7dd3
RD
27162 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27163 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27164 if (!SWIG_IsOK(ecode2)) {
27165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27166 }
27167 arg2 = static_cast< wxDouble >(val2);
27168 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27169 if (!SWIG_IsOK(ecode3)) {
27170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27171 }
27172 arg3 = static_cast< wxDouble >(val3);
27173 if (swig_obj[3]) {
27174 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27175 if (!SWIG_IsOK(ecode4)) {
27176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27177 }
27178 arg4 = static_cast< int >(val4);
70d7cb34
RD
27179 }
27180 {
5c8c7dd3 27181 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27182 if (PyErr_Occurred()) SWIG_fail;
27183 }
5c8c7dd3
RD
27184 {
27185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27186 }
27187 return resultobj;
27188fail:
27189 return NULL;
27190}
27191
27192
5c8c7dd3 27193SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27194 PyObject *resultobj = 0;
5c8c7dd3
RD
27195 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27196 wxPoint2DDouble *arg2 = 0 ;
27197 int arg3 = (int) wxODDEVEN_RULE ;
27198 bool result;
70d7cb34
RD
27199 void *argp1 = 0 ;
27200 int res1 = 0 ;
5c8c7dd3 27201 void *argp2 = 0 ;
70d7cb34 27202 int res2 = 0 ;
5c8c7dd3
RD
27203 int val3 ;
27204 int ecode3 = 0 ;
70d7cb34 27205
5c8c7dd3
RD
27206 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27208 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27210 }
5c8c7dd3
RD
27211 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27212 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27213 if (!SWIG_IsOK(res2)) {
27214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 27215 }
5c8c7dd3
RD
27216 if (!argp2) {
27217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27218 }
27219 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27220 if (swig_obj[2]) {
27221 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27222 if (!SWIG_IsOK(ecode3)) {
27223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27224 }
27225 arg3 = static_cast< int >(val3);
70d7cb34
RD
27226 }
27227 {
5c8c7dd3 27228 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
27229 if (PyErr_Occurred()) SWIG_fail;
27230 }
5c8c7dd3
RD
27231 {
27232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27233 }
27234 return resultobj;
27235fail:
27236 return NULL;
27237}
27238
27239
5c8c7dd3
RD
27240SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27241 int argc;
27242 PyObject *argv[5];
70d7cb34 27243
5c8c7dd3
RD
27244 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27245 --argc;
27246 if ((argc >= 2) && (argc <= 3)) {
27247 int _v = 0;
27248 {
27249 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27250 _v = SWIG_CheckState(res);
27251 }
27252 if (!_v) goto check_1;
27253 if (argc > 2) {
27254 {
27255 {
27256 int res = SWIG_AsVal_int(argv[2], NULL);
27257 _v = SWIG_CheckState(res);
27258 }
27259 }
27260 if (!_v) goto check_1;
27261 }
27262 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27263 }
5c8c7dd3
RD
27264check_1:
27265
27266 if ((argc >= 3) && (argc <= 4)) {
27267 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27268 }
5c8c7dd3 27269
70d7cb34 27270fail:
5c8c7dd3 27271 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27272 return NULL;
27273}
27274
27275
5c8c7dd3 27276SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27277 PyObject *obj;
27278 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27279 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27280 return SWIG_Py_Void();
27281}
27282
8f514ab4
RD
27283SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27284 return SWIG_Python_InitShadowInstance(args);
27285}
27286
5c8c7dd3
RD
27287SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27288 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27289 return 1;
27290}
27291
27292
27293SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27294 PyObject *pyobj = 0;
27295
27296 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27297 return pyobj;
27298}
27299
27300
27301SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27302 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27303 return 1;
27304}
27305
27306
27307SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27308 PyObject *pyobj = 0;
27309
27310 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27311 return pyobj;
27312}
27313
27314
27315SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27316 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27317 return 1;
27318}
27319
27320
27321SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27322 PyObject *pyobj = 0;
27323
27324 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27325 return pyobj;
27326}
27327
27328
27329SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27330 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27331 return 1;
27332}
27333
27334
27335SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27336 PyObject *pyobj = 0;
27337
27338 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27339 return pyobj;
27340}
27341
27342
27343SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27344 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27345 return 1;
27346}
27347
27348
27349SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27350 PyObject *pyobj = 0;
27351
27352 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27353 return pyobj;
27354}
27355
27356
70d7cb34
RD
27357SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27358 PyObject *resultobj = 0;
27359 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27360 void *argp1 = 0 ;
27361 int res1 = 0 ;
27362 PyObject *swig_obj[1] ;
27363
27364 if (!args) SWIG_fail;
27365 swig_obj[0] = args;
27366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27367 if (!SWIG_IsOK(res1)) {
27368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27369 }
27370 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27371 {
27372 delete arg1;
27373
27374 if (PyErr_Occurred()) SWIG_fail;
27375 }
27376 resultobj = SWIG_Py_Void();
27377 return resultobj;
27378fail:
27379 return NULL;
27380}
27381
27382
27383SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27384 PyObject *resultobj = 0;
27385 wxWindowDC *arg1 = 0 ;
27386 wxGraphicsContext *result = 0 ;
27387 void *argp1 = 0 ;
27388 int res1 = 0 ;
27389
27390 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27392 if (!SWIG_IsOK(res1)) {
27393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27394 }
27395 if (!argp1) {
27396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27397 }
27398 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27399 {
27400 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27401 if (PyErr_Occurred()) SWIG_fail;
27402 }
27403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27404 return resultobj;
27405fail:
27406 return NULL;
27407}
27408
27409
27410SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27411 PyObject *resultobj = 0;
27412 wxWindow *arg1 = (wxWindow *) 0 ;
27413 wxGraphicsContext *result = 0 ;
27414 void *argp1 = 0 ;
27415 int res1 = 0 ;
27416
27417 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27419 if (!SWIG_IsOK(res1)) {
27420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27421 }
27422 arg1 = reinterpret_cast< wxWindow * >(argp1);
27423 {
27424 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27425 if (PyErr_Occurred()) SWIG_fail;
27426 }
27427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27428 return resultobj;
27429fail:
27430 return NULL;
27431}
27432
27433
27434SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27435 int argc;
27436 PyObject *argv[2];
27437
27438 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27439 --argc;
27440 if (argc == 1) {
27441 int _v = 0;
27442 {
27443 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27444 _v = SWIG_CheckState(res);
27445 }
27446 if (!_v) goto check_1;
27447 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27448 }
27449check_1:
27450
27451 if (argc == 1) {
27452 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27453 }
27454
27455fail:
27456 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27457 return NULL;
27458}
27459
27460
27461SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27462 PyObject *resultobj = 0;
27463 void *arg1 = (void *) 0 ;
27464 wxGraphicsContext *result = 0 ;
27465 int res1 ;
27466 PyObject * obj0 = 0 ;
27467 char * kwnames[] = {
27468 (char *) "context", NULL
27469 };
27470
27471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27472 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27473 if (!SWIG_IsOK(res1)) {
27474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27475 }
27476 {
27477 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27478 if (PyErr_Occurred()) SWIG_fail;
27479 }
27480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27481 return resultobj;
27482fail:
27483 return NULL;
27484}
27485
27486
27487SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27488 PyObject *resultobj = 0;
27489 void *arg1 = (void *) 0 ;
27490 wxGraphicsContext *result = 0 ;
27491 int res1 ;
27492 PyObject * obj0 = 0 ;
27493 char * kwnames[] = {
27494 (char *) "window", NULL
27495 };
27496
27497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27498 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27499 if (!SWIG_IsOK(res1)) {
27500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27501 }
27502 {
27503 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27504 if (PyErr_Occurred()) SWIG_fail;
27505 }
27506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27507 return resultobj;
27508fail:
27509 return NULL;
27510}
27511
27512
27513SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27514 PyObject *resultobj = 0;
27515 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27516 wxGraphicsPath result;
70d7cb34
RD
27517 void *argp1 = 0 ;
27518 int res1 = 0 ;
27519 PyObject *swig_obj[1] ;
27520
27521 if (!args) SWIG_fail;
27522 swig_obj[0] = args;
27523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27524 if (!SWIG_IsOK(res1)) {
27525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27526 }
27527 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27528 {
5c8c7dd3 27529 result = (arg1)->CreatePath();
70d7cb34
RD
27530 if (PyErr_Occurred()) SWIG_fail;
27531 }
5c8c7dd3 27532 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27533 return resultobj;
27534fail:
27535 return NULL;
27536}
27537
27538
70d7cb34 27539SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27540 PyObject *resultobj = 0;
70d7cb34
RD
27541 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27542 wxPen *arg2 = 0 ;
27543 wxGraphicsPen result;
72ef6efb
RD
27544 void *argp1 = 0 ;
27545 int res1 = 0 ;
70d7cb34
RD
27546 void *argp2 = 0 ;
27547 int res2 = 0 ;
72ef6efb
RD
27548 PyObject * obj0 = 0 ;
27549 PyObject * obj1 = 0 ;
72ef6efb 27550 char * kwnames[] = {
70d7cb34 27551 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27552 };
27553
70d7cb34
RD
27554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27556 if (!SWIG_IsOK(res1)) {
70d7cb34 27557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27558 }
70d7cb34
RD
27559 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27560 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27561 if (!SWIG_IsOK(res2)) {
27562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27563 }
27564 if (!argp2) {
27565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27566 }
27567 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27568 {
70d7cb34 27569 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27570 if (PyErr_Occurred()) SWIG_fail;
27571 }
70d7cb34 27572 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27573 return resultobj;
27574fail:
27575 return NULL;
27576}
27577
27578
70d7cb34 27579SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27580 PyObject *resultobj = 0;
70d7cb34
RD
27581 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27582 wxBrush *arg2 = 0 ;
27583 wxGraphicsBrush result;
72ef6efb
RD
27584 void *argp1 = 0 ;
27585 int res1 = 0 ;
70d7cb34
RD
27586 void *argp2 = 0 ;
27587 int res2 = 0 ;
72ef6efb
RD
27588 PyObject * obj0 = 0 ;
27589 PyObject * obj1 = 0 ;
72ef6efb 27590 char * kwnames[] = {
70d7cb34 27591 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27592 };
27593
70d7cb34
RD
27594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27596 if (!SWIG_IsOK(res1)) {
70d7cb34 27597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27598 }
70d7cb34
RD
27599 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27601 if (!SWIG_IsOK(res2)) {
27602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27603 }
27604 if (!argp2) {
27605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27606 }
27607 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27608 {
70d7cb34 27609 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27610 if (PyErr_Occurred()) SWIG_fail;
27611 }
70d7cb34 27612 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27613 return resultobj;
27614fail:
27615 return NULL;
27616}
27617
27618
70d7cb34 27619SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27620 PyObject *resultobj = 0;
70d7cb34 27621 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27622 wxDouble arg2 ;
27623 wxDouble arg3 ;
27624 wxDouble arg4 ;
27625 wxDouble arg5 ;
70d7cb34
RD
27626 wxColour *arg6 = 0 ;
27627 wxColour *arg7 = 0 ;
27628 wxGraphicsBrush result;
72ef6efb
RD
27629 void *argp1 = 0 ;
27630 int res1 = 0 ;
27631 double val2 ;
27632 int ecode2 = 0 ;
27633 double val3 ;
27634 int ecode3 = 0 ;
27635 double val4 ;
27636 int ecode4 = 0 ;
27637 double val5 ;
27638 int ecode5 = 0 ;
70d7cb34
RD
27639 wxColour temp6 ;
27640 wxColour temp7 ;
72ef6efb
RD
27641 PyObject * obj0 = 0 ;
27642 PyObject * obj1 = 0 ;
27643 PyObject * obj2 = 0 ;
27644 PyObject * obj3 = 0 ;
27645 PyObject * obj4 = 0 ;
70d7cb34
RD
27646 PyObject * obj5 = 0 ;
27647 PyObject * obj6 = 0 ;
72ef6efb 27648 char * kwnames[] = {
70d7cb34 27649 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27650 };
27651
70d7cb34
RD
27652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27654 if (!SWIG_IsOK(res1)) {
70d7cb34 27655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27656 }
70d7cb34 27657 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27658 ecode2 = SWIG_AsVal_double(obj1, &val2);
27659 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27661 }
27662 arg2 = static_cast< wxDouble >(val2);
27663 ecode3 = SWIG_AsVal_double(obj2, &val3);
27664 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27666 }
27667 arg3 = static_cast< wxDouble >(val3);
27668 ecode4 = SWIG_AsVal_double(obj3, &val4);
27669 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27670 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27671 }
27672 arg4 = static_cast< wxDouble >(val4);
27673 ecode5 = SWIG_AsVal_double(obj4, &val5);
27674 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27675 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27676 }
27677 arg5 = static_cast< wxDouble >(val5);
27678 {
70d7cb34
RD
27679 arg6 = &temp6;
27680 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27681 }
70d7cb34
RD
27682 {
27683 arg7 = &temp7;
27684 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27685 }
72ef6efb 27686 {
70d7cb34 27687 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27688 if (PyErr_Occurred()) SWIG_fail;
27689 }
70d7cb34 27690 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27691 return resultobj;
27692fail:
27693 return NULL;
27694}
27695
27696
70d7cb34 27697SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27698 PyObject *resultobj = 0;
70d7cb34 27699 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27700 wxDouble arg2 ;
27701 wxDouble arg3 ;
27702 wxDouble arg4 ;
27703 wxDouble arg5 ;
27704 wxDouble arg6 ;
70d7cb34
RD
27705 wxColour *arg7 = 0 ;
27706 wxColour *arg8 = 0 ;
27707 wxGraphicsBrush result;
72ef6efb
RD
27708 void *argp1 = 0 ;
27709 int res1 = 0 ;
27710 double val2 ;
27711 int ecode2 = 0 ;
27712 double val3 ;
27713 int ecode3 = 0 ;
27714 double val4 ;
27715 int ecode4 = 0 ;
27716 double val5 ;
27717 int ecode5 = 0 ;
27718 double val6 ;
27719 int ecode6 = 0 ;
70d7cb34
RD
27720 wxColour temp7 ;
27721 wxColour temp8 ;
72ef6efb
RD
27722 PyObject * obj0 = 0 ;
27723 PyObject * obj1 = 0 ;
27724 PyObject * obj2 = 0 ;
27725 PyObject * obj3 = 0 ;
27726 PyObject * obj4 = 0 ;
27727 PyObject * obj5 = 0 ;
70d7cb34
RD
27728 PyObject * obj6 = 0 ;
27729 PyObject * obj7 = 0 ;
72ef6efb 27730 char * kwnames[] = {
70d7cb34 27731 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27732 };
27733
70d7cb34
RD
27734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27736 if (!SWIG_IsOK(res1)) {
70d7cb34 27737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27738 }
70d7cb34 27739 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27740 ecode2 = SWIG_AsVal_double(obj1, &val2);
27741 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27743 }
27744 arg2 = static_cast< wxDouble >(val2);
27745 ecode3 = SWIG_AsVal_double(obj2, &val3);
27746 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27748 }
27749 arg3 = static_cast< wxDouble >(val3);
27750 ecode4 = SWIG_AsVal_double(obj3, &val4);
27751 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27753 }
27754 arg4 = static_cast< wxDouble >(val4);
27755 ecode5 = SWIG_AsVal_double(obj4, &val5);
27756 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27757 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27758 }
27759 arg5 = static_cast< wxDouble >(val5);
27760 ecode6 = SWIG_AsVal_double(obj5, &val6);
27761 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27762 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27763 }
27764 arg6 = static_cast< wxDouble >(val6);
27765 {
70d7cb34
RD
27766 arg7 = &temp7;
27767 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27768 }
27769 {
27770 arg8 = &temp8;
27771 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27772 }
27773 {
27774 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
27775 if (PyErr_Occurred()) SWIG_fail;
27776 }
70d7cb34 27777 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27778 return resultobj;
27779fail:
27780 return NULL;
27781}
27782
27783
70d7cb34 27784SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27785 PyObject *resultobj = 0;
27786 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
27787 wxFont *arg2 = 0 ;
27788 wxColour const &arg3_defvalue = *wxBLACK ;
27789 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27790 wxGraphicsFont result;
72ef6efb
RD
27791 void *argp1 = 0 ;
27792 int res1 = 0 ;
70d7cb34
RD
27793 void *argp2 = 0 ;
27794 int res2 = 0 ;
27795 wxColour temp3 ;
27796 PyObject * obj0 = 0 ;
27797 PyObject * obj1 = 0 ;
27798 PyObject * obj2 = 0 ;
27799 char * kwnames[] = {
27800 (char *) "self",(char *) "font",(char *) "col", NULL
27801 };
72ef6efb 27802
70d7cb34
RD
27803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27805 if (!SWIG_IsOK(res1)) {
70d7cb34 27806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27807 }
27808 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
27809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27810 if (!SWIG_IsOK(res2)) {
27811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27812 }
70d7cb34
RD
27813 if (!argp2) {
27814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27815 }
70d7cb34
RD
27816 arg2 = reinterpret_cast< wxFont * >(argp2);
27817 if (obj2) {
27818 {
27819 arg3 = &temp3;
27820 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27821 }
72ef6efb 27822 }
72ef6efb 27823 {
70d7cb34 27824 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
27825 if (PyErr_Occurred()) SWIG_fail;
27826 }
70d7cb34 27827 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27828 return resultobj;
27829fail:
27830 return NULL;
27831}
27832
27833
70d7cb34 27834SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 27835 PyObject *resultobj = 0;
70d7cb34
RD
27836 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27837 wxDouble arg2 = (wxDouble) 1.0 ;
27838 wxDouble arg3 = (wxDouble) 0.0 ;
27839 wxDouble arg4 = (wxDouble) 0.0 ;
27840 wxDouble arg5 = (wxDouble) 1.0 ;
27841 wxDouble arg6 = (wxDouble) 0.0 ;
27842 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 27843 wxGraphicsMatrix result;
0a27f394
RD
27844 void *argp1 = 0 ;
27845 int res1 = 0 ;
70d7cb34
RD
27846 double val2 ;
27847 int ecode2 = 0 ;
27848 double val3 ;
27849 int ecode3 = 0 ;
27850 double val4 ;
27851 int ecode4 = 0 ;
27852 double val5 ;
27853 int ecode5 = 0 ;
27854 double val6 ;
27855 int ecode6 = 0 ;
27856 double val7 ;
27857 int ecode7 = 0 ;
27858 PyObject * obj0 = 0 ;
27859 PyObject * obj1 = 0 ;
27860 PyObject * obj2 = 0 ;
27861 PyObject * obj3 = 0 ;
27862 PyObject * obj4 = 0 ;
27863 PyObject * obj5 = 0 ;
27864 PyObject * obj6 = 0 ;
27865 char * kwnames[] = {
27866 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27867 };
0a27f394 27868
70d7cb34
RD
27869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 27871 if (!SWIG_IsOK(res1)) {
70d7cb34 27872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 27873 }
70d7cb34
RD
27874 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27875 if (obj1) {
27876 ecode2 = SWIG_AsVal_double(obj1, &val2);
27877 if (!SWIG_IsOK(ecode2)) {
27878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
27879 }
27880 arg2 = static_cast< wxDouble >(val2);
0a27f394 27881 }
70d7cb34
RD
27882 if (obj2) {
27883 ecode3 = SWIG_AsVal_double(obj2, &val3);
27884 if (!SWIG_IsOK(ecode3)) {
27885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
27886 }
27887 arg3 = static_cast< wxDouble >(val3);
0a27f394 27888 }
70d7cb34
RD
27889 if (obj3) {
27890 ecode4 = SWIG_AsVal_double(obj3, &val4);
27891 if (!SWIG_IsOK(ecode4)) {
27892 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
27893 }
27894 arg4 = static_cast< wxDouble >(val4);
0a27f394 27895 }
70d7cb34
RD
27896 if (obj4) {
27897 ecode5 = SWIG_AsVal_double(obj4, &val5);
27898 if (!SWIG_IsOK(ecode5)) {
27899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
27900 }
27901 arg5 = static_cast< wxDouble >(val5);
0a27f394 27902 }
70d7cb34
RD
27903 if (obj5) {
27904 ecode6 = SWIG_AsVal_double(obj5, &val6);
27905 if (!SWIG_IsOK(ecode6)) {
27906 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
27907 }
27908 arg6 = static_cast< wxDouble >(val6);
0a27f394 27909 }
70d7cb34
RD
27910 if (obj6) {
27911 ecode7 = SWIG_AsVal_double(obj6, &val7);
27912 if (!SWIG_IsOK(ecode7)) {
27913 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
27914 }
27915 arg7 = static_cast< wxDouble >(val7);
72ef6efb 27916 }
72ef6efb 27917 {
5c8c7dd3 27918 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
27919 if (PyErr_Occurred()) SWIG_fail;
27920 }
5c8c7dd3 27921 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27922 return resultobj;
27923fail:
27924 return NULL;
27925}
27926
27927
27928SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27929 PyObject *resultobj = 0;
27930 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27931 void *argp1 = 0 ;
27932 int res1 = 0 ;
27933 PyObject *swig_obj[1] ;
27934
27935 if (!args) SWIG_fail;
27936 swig_obj[0] = args;
27937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27938 if (!SWIG_IsOK(res1)) {
27939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27940 }
27941 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27942 {
72ef6efb 27943 (arg1)->PushState();
72ef6efb
RD
27944 if (PyErr_Occurred()) SWIG_fail;
27945 }
27946 resultobj = SWIG_Py_Void();
27947 return resultobj;
27948fail:
27949 return NULL;
27950}
27951
27952
27953SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27954 PyObject *resultobj = 0;
27955 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27956 void *argp1 = 0 ;
27957 int res1 = 0 ;
27958 PyObject *swig_obj[1] ;
27959
27960 if (!args) SWIG_fail;
27961 swig_obj[0] = args;
27962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27963 if (!SWIG_IsOK(res1)) {
27964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27965 }
27966 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27967 {
72ef6efb 27968 (arg1)->PopState();
72ef6efb
RD
27969 if (PyErr_Occurred()) SWIG_fail;
27970 }
27971 resultobj = SWIG_Py_Void();
27972 return resultobj;
27973fail:
27974 return NULL;
27975}
27976
27977
0a27f394 27978SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27979 PyObject *resultobj = 0;
27980 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27981 wxRegion *arg2 = 0 ;
27982 void *argp1 = 0 ;
27983 int res1 = 0 ;
27984 void *argp2 = 0 ;
27985 int res2 = 0 ;
27986 PyObject * obj0 = 0 ;
27987 PyObject * obj1 = 0 ;
27988 char * kwnames[] = {
27989 (char *) "self",(char *) "region", NULL
27990 };
27991
0a27f394 27992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
27993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27994 if (!SWIG_IsOK(res1)) {
0a27f394 27995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27996 }
27997 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27998 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
27999 if (!SWIG_IsOK(res2)) {
0a27f394 28000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28001 }
28002 if (!argp2) {
0a27f394 28003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28004 }
28005 arg2 = reinterpret_cast< wxRegion * >(argp2);
28006 {
72ef6efb 28007 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28008 if (PyErr_Occurred()) SWIG_fail;
28009 }
28010 resultobj = SWIG_Py_Void();
28011 return resultobj;
28012fail:
28013 return NULL;
28014}
28015
28016
0a27f394
RD
28017SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28018 PyObject *resultobj = 0;
28019 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28020 wxDouble arg2 ;
28021 wxDouble arg3 ;
28022 wxDouble arg4 ;
28023 wxDouble arg5 ;
28024 void *argp1 = 0 ;
28025 int res1 = 0 ;
28026 double val2 ;
28027 int ecode2 = 0 ;
28028 double val3 ;
28029 int ecode3 = 0 ;
28030 double val4 ;
28031 int ecode4 = 0 ;
28032 double val5 ;
28033 int ecode5 = 0 ;
28034 PyObject * obj0 = 0 ;
28035 PyObject * obj1 = 0 ;
28036 PyObject * obj2 = 0 ;
28037 PyObject * obj3 = 0 ;
28038 PyObject * obj4 = 0 ;
28039 char * kwnames[] = {
28040 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28041 };
28042
28043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28045 if (!SWIG_IsOK(res1)) {
28046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28047 }
28048 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28049 ecode2 = SWIG_AsVal_double(obj1, &val2);
28050 if (!SWIG_IsOK(ecode2)) {
28051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28052 }
28053 arg2 = static_cast< wxDouble >(val2);
28054 ecode3 = SWIG_AsVal_double(obj2, &val3);
28055 if (!SWIG_IsOK(ecode3)) {
28056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28057 }
28058 arg3 = static_cast< wxDouble >(val3);
28059 ecode4 = SWIG_AsVal_double(obj3, &val4);
28060 if (!SWIG_IsOK(ecode4)) {
28061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28062 }
28063 arg4 = static_cast< wxDouble >(val4);
28064 ecode5 = SWIG_AsVal_double(obj4, &val5);
28065 if (!SWIG_IsOK(ecode5)) {
28066 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28067 }
28068 arg5 = static_cast< wxDouble >(val5);
28069 {
28070 (arg1)->Clip(arg2,arg3,arg4,arg5);
28071 if (PyErr_Occurred()) SWIG_fail;
28072 }
28073 resultobj = SWIG_Py_Void();
28074 return resultobj;
28075fail:
28076 return NULL;
28077}
28078
28079
28080SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28081 PyObject *resultobj = 0;
28082 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28083 void *argp1 = 0 ;
28084 int res1 = 0 ;
28085 PyObject *swig_obj[1] ;
28086
28087 if (!args) SWIG_fail;
28088 swig_obj[0] = args;
28089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28090 if (!SWIG_IsOK(res1)) {
28091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28092 }
28093 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28094 {
28095 (arg1)->ResetClip();
28096 if (PyErr_Occurred()) SWIG_fail;
28097 }
28098 resultobj = SWIG_Py_Void();
28099 return resultobj;
28100fail:
28101 return NULL;
28102}
28103
28104
28105SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28106 PyObject *resultobj = 0;
28107 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28108 void *result = 0 ;
28109 void *argp1 = 0 ;
28110 int res1 = 0 ;
28111 PyObject *swig_obj[1] ;
28112
28113 if (!args) SWIG_fail;
28114 swig_obj[0] = args;
28115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28116 if (!SWIG_IsOK(res1)) {
28117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28118 }
28119 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28120 {
28121 result = (void *)(arg1)->GetNativeContext();
28122 if (PyErr_Occurred()) SWIG_fail;
28123 }
28124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28125 return resultobj;
28126fail:
28127 return NULL;
28128}
28129
28130
72ef6efb
RD
28131SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28132 PyObject *resultobj = 0;
28133 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28134 wxDouble arg2 ;
28135 wxDouble arg3 ;
28136 void *argp1 = 0 ;
28137 int res1 = 0 ;
28138 double val2 ;
28139 int ecode2 = 0 ;
28140 double val3 ;
28141 int ecode3 = 0 ;
28142 PyObject * obj0 = 0 ;
28143 PyObject * obj1 = 0 ;
28144 PyObject * obj2 = 0 ;
28145 char * kwnames[] = {
28146 (char *) "self",(char *) "dx",(char *) "dy", NULL
28147 };
28148
28149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28151 if (!SWIG_IsOK(res1)) {
28152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28153 }
28154 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28155 ecode2 = SWIG_AsVal_double(obj1, &val2);
28156 if (!SWIG_IsOK(ecode2)) {
28157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28158 }
28159 arg2 = static_cast< wxDouble >(val2);
28160 ecode3 = SWIG_AsVal_double(obj2, &val3);
28161 if (!SWIG_IsOK(ecode3)) {
28162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28163 }
28164 arg3 = static_cast< wxDouble >(val3);
28165 {
72ef6efb 28166 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28167 if (PyErr_Occurred()) SWIG_fail;
28168 }
28169 resultobj = SWIG_Py_Void();
28170 return resultobj;
28171fail:
28172 return NULL;
28173}
28174
28175
28176SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28177 PyObject *resultobj = 0;
28178 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28179 wxDouble arg2 ;
28180 wxDouble arg3 ;
28181 void *argp1 = 0 ;
28182 int res1 = 0 ;
28183 double val2 ;
28184 int ecode2 = 0 ;
28185 double val3 ;
28186 int ecode3 = 0 ;
28187 PyObject * obj0 = 0 ;
28188 PyObject * obj1 = 0 ;
28189 PyObject * obj2 = 0 ;
28190 char * kwnames[] = {
28191 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28192 };
28193
28194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28196 if (!SWIG_IsOK(res1)) {
28197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28198 }
28199 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28200 ecode2 = SWIG_AsVal_double(obj1, &val2);
28201 if (!SWIG_IsOK(ecode2)) {
28202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28203 }
28204 arg2 = static_cast< wxDouble >(val2);
28205 ecode3 = SWIG_AsVal_double(obj2, &val3);
28206 if (!SWIG_IsOK(ecode3)) {
28207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28208 }
28209 arg3 = static_cast< wxDouble >(val3);
28210 {
72ef6efb 28211 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28212 if (PyErr_Occurred()) SWIG_fail;
28213 }
28214 resultobj = SWIG_Py_Void();
28215 return resultobj;
28216fail:
28217 return NULL;
28218}
28219
28220
28221SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28222 PyObject *resultobj = 0;
28223 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28224 wxDouble arg2 ;
28225 void *argp1 = 0 ;
28226 int res1 = 0 ;
28227 double val2 ;
28228 int ecode2 = 0 ;
28229 PyObject * obj0 = 0 ;
28230 PyObject * obj1 = 0 ;
28231 char * kwnames[] = {
28232 (char *) "self",(char *) "angle", NULL
28233 };
28234
28235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28237 if (!SWIG_IsOK(res1)) {
28238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28239 }
28240 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28241 ecode2 = SWIG_AsVal_double(obj1, &val2);
28242 if (!SWIG_IsOK(ecode2)) {
28243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28244 }
28245 arg2 = static_cast< wxDouble >(val2);
28246 {
72ef6efb 28247 (arg1)->Rotate(arg2);
72ef6efb
RD
28248 if (PyErr_Occurred()) SWIG_fail;
28249 }
28250 resultobj = SWIG_Py_Void();
28251 return resultobj;
28252fail:
28253 return NULL;
28254}
28255
28256
5c8c7dd3
RD
28257SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28258 PyObject *resultobj = 0;
28259 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28260 wxGraphicsMatrix *arg2 = 0 ;
28261 void *argp1 = 0 ;
28262 int res1 = 0 ;
28263 void *argp2 = 0 ;
28264 int res2 = 0 ;
28265 PyObject * obj0 = 0 ;
28266 PyObject * obj1 = 0 ;
28267 char * kwnames[] = {
28268 (char *) "self",(char *) "matrix", NULL
28269 };
28270
28271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28273 if (!SWIG_IsOK(res1)) {
28274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28275 }
28276 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28277 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28278 if (!SWIG_IsOK(res2)) {
28279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28280 }
28281 if (!argp2) {
28282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28283 }
28284 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28285 {
28286 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28287 if (PyErr_Occurred()) SWIG_fail;
28288 }
28289 resultobj = SWIG_Py_Void();
28290 return resultobj;
28291fail:
28292 return NULL;
28293}
28294
28295
28296SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28297 PyObject *resultobj = 0;
28298 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28299 wxGraphicsMatrix *arg2 = 0 ;
28300 void *argp1 = 0 ;
28301 int res1 = 0 ;
28302 void *argp2 = 0 ;
28303 int res2 = 0 ;
28304 PyObject * obj0 = 0 ;
28305 PyObject * obj1 = 0 ;
28306 char * kwnames[] = {
28307 (char *) "self",(char *) "matrix", NULL
28308 };
28309
28310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28312 if (!SWIG_IsOK(res1)) {
28313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28314 }
28315 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28316 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28317 if (!SWIG_IsOK(res2)) {
28318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28319 }
28320 if (!argp2) {
28321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28322 }
28323 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28324 {
28325 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28326 if (PyErr_Occurred()) SWIG_fail;
28327 }
28328 resultobj = SWIG_Py_Void();
28329 return resultobj;
28330fail:
28331 return NULL;
28332}
28333
28334
28335SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28336 PyObject *resultobj = 0;
28337 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28338 wxGraphicsMatrix result;
28339 void *argp1 = 0 ;
28340 int res1 = 0 ;
28341 PyObject *swig_obj[1] ;
28342
28343 if (!args) SWIG_fail;
28344 swig_obj[0] = args;
28345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28346 if (!SWIG_IsOK(res1)) {
28347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28348 }
28349 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28350 {
28351 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28352 if (PyErr_Occurred()) SWIG_fail;
28353 }
28354 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28355 return resultobj;
28356fail:
28357 return NULL;
28358}
28359
28360
70d7cb34
RD
28361SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28362 PyObject *resultobj = 0;
28363 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28364 wxGraphicsPen *arg2 = 0 ;
28365 void *argp1 = 0 ;
28366 int res1 = 0 ;
28367 void *argp2 = 0 ;
28368 int res2 = 0 ;
28369
28370 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28372 if (!SWIG_IsOK(res1)) {
28373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28374 }
28375 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28376 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28377 if (!SWIG_IsOK(res2)) {
28378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28379 }
28380 if (!argp2) {
28381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28382 }
28383 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28384 {
28385 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28386 if (PyErr_Occurred()) SWIG_fail;
28387 }
28388 resultobj = SWIG_Py_Void();
28389 return resultobj;
28390fail:
28391 return NULL;
28392}
28393
28394
28395SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28396 PyObject *resultobj = 0;
28397 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28398 wxPen *arg2 = 0 ;
28399 void *argp1 = 0 ;
28400 int res1 = 0 ;
28401 void *argp2 = 0 ;
28402 int res2 = 0 ;
72ef6efb 28403
70d7cb34
RD
28404 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28406 if (!SWIG_IsOK(res1)) {
28407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28408 }
28409 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28410 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28411 if (!SWIG_IsOK(res2)) {
28412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28413 }
28414 if (!argp2) {
28415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28416 }
28417 arg2 = reinterpret_cast< wxPen * >(argp2);
28418 {
72ef6efb 28419 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28420 if (PyErr_Occurred()) SWIG_fail;
28421 }
28422 resultobj = SWIG_Py_Void();
28423 return resultobj;
28424fail:
28425 return NULL;
28426}
28427
28428
70d7cb34
RD
28429SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28430 int argc;
28431 PyObject *argv[3];
28432
28433 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28434 --argc;
28435 if (argc == 2) {
28436 int _v = 0;
28437 {
28438 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28439 _v = SWIG_CheckState(res);
28440 }
28441 if (!_v) goto check_1;
28442 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28443 }
28444check_1:
28445
28446 if (argc == 2) {
28447 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28448 }
28449
28450fail:
28451 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28452 return NULL;
28453}
28454
28455
28456SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28457 PyObject *resultobj = 0;
28458 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28459 wxGraphicsBrush *arg2 = 0 ;
28460 void *argp1 = 0 ;
28461 int res1 = 0 ;
28462 void *argp2 = 0 ;
28463 int res2 = 0 ;
28464
28465 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28467 if (!SWIG_IsOK(res1)) {
28468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28469 }
28470 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28471 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28472 if (!SWIG_IsOK(res2)) {
28473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28474 }
28475 if (!argp2) {
28476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28477 }
28478 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28479 {
28480 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28481 if (PyErr_Occurred()) SWIG_fail;
28482 }
28483 resultobj = SWIG_Py_Void();
28484 return resultobj;
28485fail:
28486 return NULL;
28487}
28488
28489
28490SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28491 PyObject *resultobj = 0;
28492 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28493 wxBrush *arg2 = 0 ;
28494 void *argp1 = 0 ;
28495 int res1 = 0 ;
28496 void *argp2 = 0 ;
28497 int res2 = 0 ;
72ef6efb 28498
70d7cb34
RD
28499 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28501 if (!SWIG_IsOK(res1)) {
28502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28503 }
28504 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28505 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28506 if (!SWIG_IsOK(res2)) {
28507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28508 }
28509 if (!argp2) {
28510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28511 }
28512 arg2 = reinterpret_cast< wxBrush * >(argp2);
28513 {
72ef6efb 28514 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28515 if (PyErr_Occurred()) SWIG_fail;
28516 }
28517 resultobj = SWIG_Py_Void();
28518 return resultobj;
28519fail:
28520 return NULL;
28521}
28522
28523
70d7cb34
RD
28524SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28525 int argc;
28526 PyObject *argv[3];
72ef6efb 28527
70d7cb34
RD
28528 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28529 --argc;
28530 if (argc == 2) {
28531 int _v = 0;
28532 {
28533 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28534 _v = SWIG_CheckState(res);
28535 }
28536 if (!_v) goto check_1;
28537 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28538 }
70d7cb34
RD
28539check_1:
28540
28541 if (argc == 2) {
28542 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28543 }
70d7cb34 28544
72ef6efb 28545fail:
70d7cb34 28546 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28547 return NULL;
28548}
28549
28550
70d7cb34 28551SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28552 PyObject *resultobj = 0;
28553 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28554 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28555 void *argp1 = 0 ;
28556 int res1 = 0 ;
70d7cb34
RD
28557 void *argp2 = 0 ;
28558 int res2 = 0 ;
72ef6efb 28559
70d7cb34
RD
28560 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28562 if (!SWIG_IsOK(res1)) {
70d7cb34 28563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28564 }
28565 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28566 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28567 if (!SWIG_IsOK(res2)) {
28568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28569 }
70d7cb34
RD
28570 if (!argp2) {
28571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28572 }
70d7cb34 28573 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28574 {
70d7cb34 28575 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28576 if (PyErr_Occurred()) SWIG_fail;
28577 }
28578 resultobj = SWIG_Py_Void();
28579 return resultobj;
28580fail:
28581 return NULL;
28582}
28583
28584
70d7cb34 28585SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28586 PyObject *resultobj = 0;
28587 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28588 wxFont *arg2 = 0 ;
70d7cb34
RD
28589 wxColour const &arg3_defvalue = *wxBLACK ;
28590 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28591 void *argp1 = 0 ;
28592 int res1 = 0 ;
28593 void *argp2 = 0 ;
28594 int res2 = 0 ;
70d7cb34 28595 wxColour temp3 ;
72ef6efb 28596
70d7cb34
RD
28597 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28599 if (!SWIG_IsOK(res1)) {
28600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28601 }
28602 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28603 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28604 if (!SWIG_IsOK(res2)) {
28605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28606 }
28607 if (!argp2) {
28608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28609 }
28610 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28611 if (swig_obj[2]) {
28612 {
28613 arg3 = &temp3;
28614 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28615 }
28616 }
72ef6efb 28617 {
70d7cb34 28618 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28619 if (PyErr_Occurred()) SWIG_fail;
28620 }
28621 resultobj = SWIG_Py_Void();
28622 return resultobj;
28623fail:
28624 return NULL;
28625}
28626
28627
70d7cb34
RD
28628SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28629 int argc;
28630 PyObject *argv[4];
72ef6efb 28631
70d7cb34
RD
28632 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28633 --argc;
28634 if (argc == 2) {
28635 int _v = 0;
28636 {
28637 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28638 _v = SWIG_CheckState(res);
28639 }
28640 if (!_v) goto check_1;
28641 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28642 }
70d7cb34
RD
28643check_1:
28644
28645 if ((argc >= 2) && (argc <= 3)) {
28646 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28647 }
70d7cb34 28648
72ef6efb 28649fail:
70d7cb34 28650 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28651 return NULL;
28652}
28653
28654
28655SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28656 PyObject *resultobj = 0;
28657 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28658 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28659 void *argp1 = 0 ;
28660 int res1 = 0 ;
28661 void *argp2 = 0 ;
28662 int res2 = 0 ;
28663 PyObject * obj0 = 0 ;
28664 PyObject * obj1 = 0 ;
28665 char * kwnames[] = {
28666 (char *) "self",(char *) "path", NULL
28667 };
28668
28669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28671 if (!SWIG_IsOK(res1)) {
28672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28673 }
28674 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28676 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28678 }
28679 if (!argp2) {
28680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28681 }
28682 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28683 {
5c8c7dd3 28684 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
28685 if (PyErr_Occurred()) SWIG_fail;
28686 }
28687 resultobj = SWIG_Py_Void();
28688 return resultobj;
28689fail:
28690 return NULL;
28691}
28692
28693
28694SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28695 PyObject *resultobj = 0;
28696 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3
RD
28697 wxGraphicsPath *arg2 = 0 ;
28698 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28699 void *argp1 = 0 ;
28700 int res1 = 0 ;
28701 void *argp2 = 0 ;
28702 int res2 = 0 ;
28703 int val3 ;
28704 int ecode3 = 0 ;
28705 PyObject * obj0 = 0 ;
28706 PyObject * obj1 = 0 ;
28707 PyObject * obj2 = 0 ;
28708 char * kwnames[] = {
28709 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28710 };
28711
28712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28714 if (!SWIG_IsOK(res1)) {
28715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28716 }
28717 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28719 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28721 }
28722 if (!argp2) {
28723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28724 }
28725 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28726 if (obj2) {
28727 ecode3 = SWIG_AsVal_int(obj2, &val3);
28728 if (!SWIG_IsOK(ecode3)) {
28729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28730 }
28731 arg3 = static_cast< int >(val3);
28732 }
28733 {
5c8c7dd3 28734 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28735 if (PyErr_Occurred()) SWIG_fail;
28736 }
28737 resultobj = SWIG_Py_Void();
28738 return resultobj;
28739fail:
28740 return NULL;
28741}
28742
28743
28744SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28745 PyObject *resultobj = 0;
28746 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3
RD
28747 wxGraphicsPath *arg2 = 0 ;
28748 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28749 void *argp1 = 0 ;
28750 int res1 = 0 ;
28751 void *argp2 = 0 ;
28752 int res2 = 0 ;
28753 int val3 ;
28754 int ecode3 = 0 ;
28755 PyObject * obj0 = 0 ;
28756 PyObject * obj1 = 0 ;
28757 PyObject * obj2 = 0 ;
28758 char * kwnames[] = {
28759 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28760 };
28761
28762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28764 if (!SWIG_IsOK(res1)) {
28765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28766 }
28767 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28768 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28769 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28771 }
28772 if (!argp2) {
28773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28774 }
28775 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28776 if (obj2) {
28777 ecode3 = SWIG_AsVal_int(obj2, &val3);
28778 if (!SWIG_IsOK(ecode3)) {
28779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28780 }
28781 arg3 = static_cast< int >(val3);
28782 }
28783 {
5c8c7dd3 28784 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28785 if (PyErr_Occurred()) SWIG_fail;
28786 }
28787 resultobj = SWIG_Py_Void();
28788 return resultobj;
28789fail:
28790 return NULL;
28791}
28792
28793
b39fe951 28794SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28795 PyObject *resultobj = 0;
28796 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28797 wxString *arg2 = 0 ;
28798 wxDouble arg3 ;
28799 wxDouble arg4 ;
28800 void *argp1 = 0 ;
28801 int res1 = 0 ;
28802 bool temp2 = false ;
28803 double val3 ;
28804 int ecode3 = 0 ;
28805 double val4 ;
28806 int ecode4 = 0 ;
b39fe951
RD
28807 PyObject * obj0 = 0 ;
28808 PyObject * obj1 = 0 ;
28809 PyObject * obj2 = 0 ;
28810 PyObject * obj3 = 0 ;
28811 char * kwnames[] = {
28812 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
28813 };
72ef6efb 28814
b39fe951
RD
28815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28817 if (!SWIG_IsOK(res1)) {
28818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28819 }
28820 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28821 {
b39fe951 28822 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28823 if (arg2 == NULL) SWIG_fail;
28824 temp2 = true;
28825 }
b39fe951 28826 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
28827 if (!SWIG_IsOK(ecode3)) {
28828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28829 }
28830 arg3 = static_cast< wxDouble >(val3);
b39fe951 28831 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
28832 if (!SWIG_IsOK(ecode4)) {
28833 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28834 }
28835 arg4 = static_cast< wxDouble >(val4);
28836 {
72ef6efb 28837 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
28838 if (PyErr_Occurred()) SWIG_fail;
28839 }
28840 resultobj = SWIG_Py_Void();
28841 {
28842 if (temp2)
28843 delete arg2;
28844 }
28845 return resultobj;
28846fail:
28847 {
28848 if (temp2)
28849 delete arg2;
28850 }
28851 return NULL;
28852}
28853
28854
b39fe951 28855SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28856 PyObject *resultobj = 0;
28857 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28858 wxString *arg2 = 0 ;
28859 wxDouble arg3 ;
28860 wxDouble arg4 ;
28861 wxDouble arg5 ;
28862 void *argp1 = 0 ;
28863 int res1 = 0 ;
28864 bool temp2 = false ;
28865 double val3 ;
28866 int ecode3 = 0 ;
28867 double val4 ;
28868 int ecode4 = 0 ;
28869 double val5 ;
28870 int ecode5 = 0 ;
b39fe951
RD
28871 PyObject * obj0 = 0 ;
28872 PyObject * obj1 = 0 ;
28873 PyObject * obj2 = 0 ;
28874 PyObject * obj3 = 0 ;
28875 PyObject * obj4 = 0 ;
28876 char * kwnames[] = {
28877 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
28878 };
72ef6efb 28879
b39fe951
RD
28880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28882 if (!SWIG_IsOK(res1)) {
b39fe951 28883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28884 }
28885 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28886 {
b39fe951 28887 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28888 if (arg2 == NULL) SWIG_fail;
28889 temp2 = true;
28890 }
b39fe951 28891 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 28892 if (!SWIG_IsOK(ecode3)) {
b39fe951 28893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28894 }
28895 arg3 = static_cast< wxDouble >(val3);
b39fe951 28896 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 28897 if (!SWIG_IsOK(ecode4)) {
b39fe951 28898 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28899 }
28900 arg4 = static_cast< wxDouble >(val4);
b39fe951 28901 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 28902 if (!SWIG_IsOK(ecode5)) {
b39fe951 28903 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28904 }
28905 arg5 = static_cast< wxDouble >(val5);
28906 {
72ef6efb 28907 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
28908 if (PyErr_Occurred()) SWIG_fail;
28909 }
28910 resultobj = SWIG_Py_Void();
28911 {
28912 if (temp2)
28913 delete arg2;
28914 }
28915 return resultobj;
28916fail:
28917 {
28918 if (temp2)
28919 delete arg2;
28920 }
28921 return NULL;
28922}
28923
28924
be68621e 28925SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28926 PyObject *resultobj = 0;
28927 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28928 wxString *arg2 = 0 ;
28929 wxDouble *arg3 = (wxDouble *) 0 ;
28930 wxDouble *arg4 = (wxDouble *) 0 ;
28931 wxDouble *arg5 = (wxDouble *) 0 ;
28932 wxDouble *arg6 = (wxDouble *) 0 ;
28933 void *argp1 = 0 ;
28934 int res1 = 0 ;
28935 bool temp2 = false ;
28936 wxDouble temp3 ;
28937 int res3 = SWIG_TMPOBJ ;
28938 wxDouble temp4 ;
28939 int res4 = SWIG_TMPOBJ ;
28940 wxDouble temp5 ;
28941 int res5 = SWIG_TMPOBJ ;
28942 wxDouble temp6 ;
28943 int res6 = SWIG_TMPOBJ ;
28944 PyObject * obj0 = 0 ;
28945 PyObject * obj1 = 0 ;
28946 char * kwnames[] = {
28947 (char *) "self",(char *) "text", NULL
28948 };
28949
28950 arg3 = &temp3;
28951 arg4 = &temp4;
28952 arg5 = &temp5;
28953 arg6 = &temp6;
be68621e 28954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28956 if (!SWIG_IsOK(res1)) {
be68621e 28957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
28958 }
28959 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28960 {
28961 arg2 = wxString_in_helper(obj1);
28962 if (arg2 == NULL) SWIG_fail;
28963 temp2 = true;
28964 }
28965 {
72ef6efb 28966 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
28967 if (PyErr_Occurred()) SWIG_fail;
28968 }
28969 resultobj = SWIG_Py_Void();
28970 if (SWIG_IsTmpObj(res3)) {
28971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
28972 } else {
28973 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
28975 }
28976 if (SWIG_IsTmpObj(res4)) {
28977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
28978 } else {
28979 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
28981 }
28982 if (SWIG_IsTmpObj(res5)) {
28983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
28984 } else {
28985 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28986 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
28987 }
28988 if (SWIG_IsTmpObj(res6)) {
28989 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
28990 } else {
28991 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28992 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
28993 }
28994 {
28995 if (temp2)
28996 delete arg2;
28997 }
28998 return resultobj;
28999fail:
29000 {
29001 if (temp2)
29002 delete arg2;
29003 }
29004 return NULL;
29005}
29006
29007
be68621e
RD
29008SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29009 PyObject *resultobj = 0;
29010 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29011 wxString *arg2 = 0 ;
29012 PyObject *result = 0 ;
29013 void *argp1 = 0 ;
29014 int res1 = 0 ;
29015 bool temp2 = false ;
29016 PyObject * obj0 = 0 ;
29017 PyObject * obj1 = 0 ;
29018 char * kwnames[] = {
29019 (char *) "self",(char *) "text", NULL
29020 };
29021
29022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29024 if (!SWIG_IsOK(res1)) {
29025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29026 }
29027 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29028 {
29029 arg2 = wxString_in_helper(obj1);
29030 if (arg2 == NULL) SWIG_fail;
29031 temp2 = true;
29032 }
29033 {
29034 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29035 if (PyErr_Occurred()) SWIG_fail;
29036 }
29037 resultobj = result;
29038 {
29039 if (temp2)
29040 delete arg2;
29041 }
29042 return resultobj;
29043fail:
29044 {
29045 if (temp2)
29046 delete arg2;
29047 }
29048 return NULL;
29049}
29050
29051
72ef6efb
RD
29052SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29053 PyObject *resultobj = 0;
29054 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29055 wxString *arg2 = 0 ;
b39fe951 29056 wxArrayDouble result;
72ef6efb
RD
29057 void *argp1 = 0 ;
29058 int res1 = 0 ;
29059 bool temp2 = false ;
72ef6efb
RD
29060 PyObject * obj0 = 0 ;
29061 PyObject * obj1 = 0 ;
72ef6efb 29062 char * kwnames[] = {
b39fe951 29063 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29064 };
29065
b39fe951 29066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29068 if (!SWIG_IsOK(res1)) {
b39fe951 29069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29070 }
29071 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29072 {
29073 arg2 = wxString_in_helper(obj1);
29074 if (arg2 == NULL) SWIG_fail;
29075 temp2 = true;
29076 }
72ef6efb 29077 {
b39fe951 29078 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29079 if (PyErr_Occurred()) SWIG_fail;
29080 }
b39fe951
RD
29081 {
29082 resultobj = wxArrayDouble2PyList_helper(result);
29083 }
72ef6efb
RD
29084 {
29085 if (temp2)
29086 delete arg2;
29087 }
29088 return resultobj;
29089fail:
29090 {
29091 if (temp2)
29092 delete arg2;
29093 }
29094 return NULL;
29095}
29096
29097
29098SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29099 PyObject *resultobj = 0;
29100 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29101 wxBitmap *arg2 = 0 ;
29102 wxDouble arg3 ;
29103 wxDouble arg4 ;
29104 wxDouble arg5 ;
29105 wxDouble arg6 ;
29106 void *argp1 = 0 ;
29107 int res1 = 0 ;
29108 void *argp2 = 0 ;
29109 int res2 = 0 ;
29110 double val3 ;
29111 int ecode3 = 0 ;
29112 double val4 ;
29113 int ecode4 = 0 ;
29114 double val5 ;
29115 int ecode5 = 0 ;
29116 double val6 ;
29117 int ecode6 = 0 ;
29118 PyObject * obj0 = 0 ;
29119 PyObject * obj1 = 0 ;
29120 PyObject * obj2 = 0 ;
29121 PyObject * obj3 = 0 ;
29122 PyObject * obj4 = 0 ;
29123 PyObject * obj5 = 0 ;
29124 char * kwnames[] = {
29125 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29126 };
29127
29128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29130 if (!SWIG_IsOK(res1)) {
29131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29132 }
29133 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29135 if (!SWIG_IsOK(res2)) {
29136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29137 }
29138 if (!argp2) {
29139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29140 }
29141 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29142 ecode3 = SWIG_AsVal_double(obj2, &val3);
29143 if (!SWIG_IsOK(ecode3)) {
29144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29145 }
29146 arg3 = static_cast< wxDouble >(val3);
29147 ecode4 = SWIG_AsVal_double(obj3, &val4);
29148 if (!SWIG_IsOK(ecode4)) {
29149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29150 }
29151 arg4 = static_cast< wxDouble >(val4);
29152 ecode5 = SWIG_AsVal_double(obj4, &val5);
29153 if (!SWIG_IsOK(ecode5)) {
29154 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29155 }
29156 arg5 = static_cast< wxDouble >(val5);
29157 ecode6 = SWIG_AsVal_double(obj5, &val6);
29158 if (!SWIG_IsOK(ecode6)) {
29159 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29160 }
29161 arg6 = static_cast< wxDouble >(val6);
29162 {
72ef6efb 29163 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29164 if (PyErr_Occurred()) SWIG_fail;
29165 }
29166 resultobj = SWIG_Py_Void();
29167 return resultobj;
29168fail:
29169 return NULL;
29170}
29171
29172
29173SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29174 PyObject *resultobj = 0;
29175 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29176 wxIcon *arg2 = 0 ;
29177 wxDouble arg3 ;
29178 wxDouble arg4 ;
29179 wxDouble arg5 ;
29180 wxDouble arg6 ;
29181 void *argp1 = 0 ;
29182 int res1 = 0 ;
29183 void *argp2 = 0 ;
29184 int res2 = 0 ;
29185 double val3 ;
29186 int ecode3 = 0 ;
29187 double val4 ;
29188 int ecode4 = 0 ;
29189 double val5 ;
29190 int ecode5 = 0 ;
70d7cb34
RD
29191 double val6 ;
29192 int ecode6 = 0 ;
29193 PyObject * obj0 = 0 ;
29194 PyObject * obj1 = 0 ;
29195 PyObject * obj2 = 0 ;
29196 PyObject * obj3 = 0 ;
29197 PyObject * obj4 = 0 ;
29198 PyObject * obj5 = 0 ;
29199 char * kwnames[] = {
29200 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29201 };
29202
29203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29205 if (!SWIG_IsOK(res1)) {
29206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29207 }
29208 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29209 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29210 if (!SWIG_IsOK(res2)) {
29211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29212 }
29213 if (!argp2) {
29214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29215 }
29216 arg2 = reinterpret_cast< wxIcon * >(argp2);
29217 ecode3 = SWIG_AsVal_double(obj2, &val3);
29218 if (!SWIG_IsOK(ecode3)) {
29219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29220 }
29221 arg3 = static_cast< wxDouble >(val3);
29222 ecode4 = SWIG_AsVal_double(obj3, &val4);
29223 if (!SWIG_IsOK(ecode4)) {
29224 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29225 }
29226 arg4 = static_cast< wxDouble >(val4);
29227 ecode5 = SWIG_AsVal_double(obj4, &val5);
29228 if (!SWIG_IsOK(ecode5)) {
29229 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29230 }
29231 arg5 = static_cast< wxDouble >(val5);
29232 ecode6 = SWIG_AsVal_double(obj5, &val6);
29233 if (!SWIG_IsOK(ecode6)) {
29234 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29235 }
29236 arg6 = static_cast< wxDouble >(val6);
29237 {
29238 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29239 if (PyErr_Occurred()) SWIG_fail;
29240 }
29241 resultobj = SWIG_Py_Void();
29242 return resultobj;
29243fail:
29244 return NULL;
29245}
29246
29247
29248SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29249 PyObject *resultobj = 0;
29250 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29251 wxDouble arg2 ;
29252 wxDouble arg3 ;
29253 wxDouble arg4 ;
29254 wxDouble arg5 ;
29255 void *argp1 = 0 ;
29256 int res1 = 0 ;
29257 double val2 ;
29258 int ecode2 = 0 ;
29259 double val3 ;
29260 int ecode3 = 0 ;
29261 double val4 ;
29262 int ecode4 = 0 ;
29263 double val5 ;
29264 int ecode5 = 0 ;
29265 PyObject * obj0 = 0 ;
29266 PyObject * obj1 = 0 ;
29267 PyObject * obj2 = 0 ;
29268 PyObject * obj3 = 0 ;
29269 PyObject * obj4 = 0 ;
29270 char * kwnames[] = {
29271 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29272 };
29273
29274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29276 if (!SWIG_IsOK(res1)) {
29277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29278 }
29279 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29280 ecode2 = SWIG_AsVal_double(obj1, &val2);
29281 if (!SWIG_IsOK(ecode2)) {
29282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29283 }
29284 arg2 = static_cast< wxDouble >(val2);
29285 ecode3 = SWIG_AsVal_double(obj2, &val3);
29286 if (!SWIG_IsOK(ecode3)) {
29287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29288 }
29289 arg3 = static_cast< wxDouble >(val3);
29290 ecode4 = SWIG_AsVal_double(obj3, &val4);
29291 if (!SWIG_IsOK(ecode4)) {
29292 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29293 }
29294 arg4 = static_cast< wxDouble >(val4);
29295 ecode5 = SWIG_AsVal_double(obj4, &val5);
29296 if (!SWIG_IsOK(ecode5)) {
29297 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29298 }
29299 arg5 = static_cast< wxDouble >(val5);
29300 {
29301 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29302 if (PyErr_Occurred()) SWIG_fail;
29303 }
29304 resultobj = SWIG_Py_Void();
29305 return resultobj;
29306fail:
29307 return NULL;
29308}
29309
29310
29311SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29312 PyObject *resultobj = 0;
29313 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29314 size_t arg2 ;
29315 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29316 void *argp1 = 0 ;
29317 int res1 = 0 ;
29318 PyObject * obj0 = 0 ;
29319 PyObject * obj1 = 0 ;
29320 char * kwnames[] = {
29321 (char *) "self",(char *) "points", NULL
29322 };
29323
29324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29326 if (!SWIG_IsOK(res1)) {
29327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29328 }
29329 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29330 {
29331 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29332 if (arg3 == NULL) SWIG_fail;
29333 }
29334 {
29335 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29336 if (PyErr_Occurred()) SWIG_fail;
29337 }
29338 resultobj = SWIG_Py_Void();
29339 {
29340 if (arg3) delete [] arg3;
29341 }
29342 return resultobj;
29343fail:
29344 {
29345 if (arg3) delete [] arg3;
29346 }
29347 return NULL;
29348}
29349
29350
29351SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29352 PyObject *resultobj = 0;
29353 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29354 PyObject *arg2 = (PyObject *) 0 ;
29355 PyObject *arg3 = (PyObject *) 0 ;
29356 void *argp1 = 0 ;
29357 int res1 = 0 ;
29358 PyObject * obj0 = 0 ;
29359 PyObject * obj1 = 0 ;
29360 PyObject * obj2 = 0 ;
29361 char * kwnames[] = {
29362 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29363 };
29364
29365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29367 if (!SWIG_IsOK(res1)) {
29368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29369 }
29370 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29371 arg2 = obj1;
29372 arg3 = obj2;
29373 {
29374 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29375 if (PyErr_Occurred()) SWIG_fail;
29376 }
29377 resultobj = SWIG_Py_Void();
29378 return resultobj;
29379fail:
29380 return NULL;
29381}
29382
29383
29384SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29385 PyObject *resultobj = 0;
29386 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29387 size_t arg2 ;
29388 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
5c8c7dd3 29389 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29390 void *argp1 = 0 ;
29391 int res1 = 0 ;
29392 int val4 ;
29393 int ecode4 = 0 ;
29394 PyObject * obj0 = 0 ;
29395 PyObject * obj1 = 0 ;
29396 PyObject * obj2 = 0 ;
29397 char * kwnames[] = {
29398 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29399 };
29400
29401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29403 if (!SWIG_IsOK(res1)) {
29404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29405 }
29406 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29407 {
29408 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29409 if (arg3 == NULL) SWIG_fail;
29410 }
29411 if (obj2) {
29412 ecode4 = SWIG_AsVal_int(obj2, &val4);
29413 if (!SWIG_IsOK(ecode4)) {
29414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29415 }
29416 arg4 = static_cast< int >(val4);
29417 }
29418 {
29419 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29420 if (PyErr_Occurred()) SWIG_fail;
29421 }
29422 resultobj = SWIG_Py_Void();
29423 {
29424 if (arg3) delete [] arg3;
29425 }
29426 return resultobj;
29427fail:
29428 {
29429 if (arg3) delete [] arg3;
29430 }
29431 return NULL;
29432}
29433
29434
29435SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29436 PyObject *resultobj = 0;
29437 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29438 wxDouble arg2 ;
29439 wxDouble arg3 ;
29440 wxDouble arg4 ;
29441 wxDouble arg5 ;
29442 void *argp1 = 0 ;
29443 int res1 = 0 ;
29444 double val2 ;
29445 int ecode2 = 0 ;
29446 double val3 ;
29447 int ecode3 = 0 ;
29448 double val4 ;
29449 int ecode4 = 0 ;
29450 double val5 ;
29451 int ecode5 = 0 ;
29452 PyObject * obj0 = 0 ;
29453 PyObject * obj1 = 0 ;
29454 PyObject * obj2 = 0 ;
29455 PyObject * obj3 = 0 ;
29456 PyObject * obj4 = 0 ;
29457 char * kwnames[] = {
29458 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29459 };
29460
29461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29463 if (!SWIG_IsOK(res1)) {
29464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29465 }
29466 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29467 ecode2 = SWIG_AsVal_double(obj1, &val2);
29468 if (!SWIG_IsOK(ecode2)) {
29469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29470 }
29471 arg2 = static_cast< wxDouble >(val2);
29472 ecode3 = SWIG_AsVal_double(obj2, &val3);
29473 if (!SWIG_IsOK(ecode3)) {
29474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29475 }
29476 arg3 = static_cast< wxDouble >(val3);
29477 ecode4 = SWIG_AsVal_double(obj3, &val4);
29478 if (!SWIG_IsOK(ecode4)) {
29479 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29480 }
29481 arg4 = static_cast< wxDouble >(val4);
29482 ecode5 = SWIG_AsVal_double(obj4, &val5);
29483 if (!SWIG_IsOK(ecode5)) {
29484 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29485 }
29486 arg5 = static_cast< wxDouble >(val5);
29487 {
29488 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29489 if (PyErr_Occurred()) SWIG_fail;
29490 }
29491 resultobj = SWIG_Py_Void();
29492 return resultobj;
29493fail:
29494 return NULL;
29495}
29496
29497
29498SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29499 PyObject *resultobj = 0;
29500 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29501 wxDouble arg2 ;
29502 wxDouble arg3 ;
29503 wxDouble arg4 ;
29504 wxDouble arg5 ;
29505 void *argp1 = 0 ;
29506 int res1 = 0 ;
29507 double val2 ;
29508 int ecode2 = 0 ;
29509 double val3 ;
29510 int ecode3 = 0 ;
29511 double val4 ;
29512 int ecode4 = 0 ;
29513 double val5 ;
29514 int ecode5 = 0 ;
72ef6efb
RD
29515 PyObject * obj0 = 0 ;
29516 PyObject * obj1 = 0 ;
29517 PyObject * obj2 = 0 ;
29518 PyObject * obj3 = 0 ;
29519 PyObject * obj4 = 0 ;
72ef6efb 29520 char * kwnames[] = {
70d7cb34 29521 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29522 };
29523
70d7cb34 29524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29526 if (!SWIG_IsOK(res1)) {
70d7cb34 29527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29528 }
29529 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29530 ecode2 = SWIG_AsVal_double(obj1, &val2);
29531 if (!SWIG_IsOK(ecode2)) {
29532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29533 }
29534 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29535 ecode3 = SWIG_AsVal_double(obj2, &val3);
29536 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29538 }
29539 arg3 = static_cast< wxDouble >(val3);
29540 ecode4 = SWIG_AsVal_double(obj3, &val4);
29541 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29542 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29543 }
29544 arg4 = static_cast< wxDouble >(val4);
29545 ecode5 = SWIG_AsVal_double(obj4, &val5);
29546 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29547 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29548 }
29549 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29550 {
70d7cb34 29551 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29552 if (PyErr_Occurred()) SWIG_fail;
29553 }
29554 resultobj = SWIG_Py_Void();
29555 return resultobj;
29556fail:
29557 return NULL;
29558}
29559
29560
70d7cb34 29561SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29562 PyObject *resultobj = 0;
29563 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29564 wxDouble arg2 ;
29565 wxDouble arg3 ;
29566 wxDouble arg4 ;
29567 wxDouble arg5 ;
70d7cb34 29568 wxDouble arg6 ;
72ef6efb
RD
29569 void *argp1 = 0 ;
29570 int res1 = 0 ;
29571 double val2 ;
29572 int ecode2 = 0 ;
29573 double val3 ;
29574 int ecode3 = 0 ;
29575 double val4 ;
29576 int ecode4 = 0 ;
29577 double val5 ;
29578 int ecode5 = 0 ;
70d7cb34
RD
29579 double val6 ;
29580 int ecode6 = 0 ;
72ef6efb
RD
29581 PyObject * obj0 = 0 ;
29582 PyObject * obj1 = 0 ;
29583 PyObject * obj2 = 0 ;
29584 PyObject * obj3 = 0 ;
29585 PyObject * obj4 = 0 ;
70d7cb34 29586 PyObject * obj5 = 0 ;
72ef6efb 29587 char * kwnames[] = {
70d7cb34 29588 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29589 };
29590
70d7cb34 29591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29593 if (!SWIG_IsOK(res1)) {
70d7cb34 29594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29595 }
29596 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29597 ecode2 = SWIG_AsVal_double(obj1, &val2);
29598 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29600 }
29601 arg2 = static_cast< wxDouble >(val2);
29602 ecode3 = SWIG_AsVal_double(obj2, &val3);
29603 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29605 }
29606 arg3 = static_cast< wxDouble >(val3);
29607 ecode4 = SWIG_AsVal_double(obj3, &val4);
29608 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29609 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29610 }
29611 arg4 = static_cast< wxDouble >(val4);
29612 ecode5 = SWIG_AsVal_double(obj4, &val5);
29613 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29614 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29615 }
29616 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29617 ecode6 = SWIG_AsVal_double(obj5, &val6);
29618 if (!SWIG_IsOK(ecode6)) {
29619 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29620 }
29621 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29622 {
70d7cb34 29623 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29624 if (PyErr_Occurred()) SWIG_fail;
29625 }
29626 resultobj = SWIG_Py_Void();
29627 return resultobj;
29628fail:
29629 return NULL;
29630}
29631
29632
70d7cb34 29633SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29634 PyObject *resultobj = 0;
29635 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29636 bool result;
72ef6efb
RD
29637 void *argp1 = 0 ;
29638 int res1 = 0 ;
70d7cb34 29639 PyObject *swig_obj[1] ;
72ef6efb 29640
70d7cb34
RD
29641 if (!args) SWIG_fail;
29642 swig_obj[0] = args;
29643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29644 if (!SWIG_IsOK(res1)) {
70d7cb34 29645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29646 }
29647 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29648 {
70d7cb34
RD
29649 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29650 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29651 }
72ef6efb 29652 {
70d7cb34
RD
29653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29654 }
29655 return resultobj;
29656fail:
29657 return NULL;
29658}
29659
29660
29661SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29662 PyObject *obj;
29663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29664 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29665 return SWIG_Py_Void();
29666}
29667
29668SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29669 PyObject *resultobj = 0;
29670 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29671 void *argp1 = 0 ;
29672 int res1 = 0 ;
29673 PyObject *swig_obj[1] ;
29674
29675 if (!args) SWIG_fail;
29676 swig_obj[0] = args;
29677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29678 if (!SWIG_IsOK(res1)) {
29679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29680 }
29681 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29682 {
29683 delete arg1;
29684
72ef6efb
RD
29685 if (PyErr_Occurred()) SWIG_fail;
29686 }
29687 resultobj = SWIG_Py_Void();
70d7cb34
RD
29688 return resultobj;
29689fail:
29690 return NULL;
29691}
29692
29693
29694SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29695 PyObject *resultobj = 0;
29696 wxGraphicsRenderer *result = 0 ;
29697
29698 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29699 {
70d7cb34
RD
29700 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29701 if (PyErr_Occurred()) SWIG_fail;
29702 }
29703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29704 return resultobj;
29705fail:
29706 return NULL;
29707}
29708
29709
29710SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29711 PyObject *resultobj = 0;
29712 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29713 wxWindowDC *arg2 = 0 ;
29714 wxGraphicsContext *result = 0 ;
29715 void *argp1 = 0 ;
29716 int res1 = 0 ;
29717 void *argp2 = 0 ;
29718 int res2 = 0 ;
29719
29720 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29722 if (!SWIG_IsOK(res1)) {
29723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29724 }
29725 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29726 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29727 if (!SWIG_IsOK(res2)) {
29728 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29729 }
29730 if (!argp2) {
29731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29732 }
29733 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29734 {
29735 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29736 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29737 }
70d7cb34 29738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29739 return resultobj;
29740fail:
70d7cb34
RD
29741 return NULL;
29742}
29743
29744
29745SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29746 PyObject *resultobj = 0;
29747 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29748 wxWindow *arg2 = (wxWindow *) 0 ;
29749 wxGraphicsContext *result = 0 ;
29750 void *argp1 = 0 ;
29751 int res1 = 0 ;
29752 void *argp2 = 0 ;
29753 int res2 = 0 ;
29754
29755 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29757 if (!SWIG_IsOK(res1)) {
29758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29759 }
29760 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29761 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29762 if (!SWIG_IsOK(res2)) {
29763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29764 }
29765 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 29766 {
70d7cb34
RD
29767 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29768 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29769 }
70d7cb34
RD
29770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29771 return resultobj;
29772fail:
72ef6efb
RD
29773 return NULL;
29774}
29775
29776
70d7cb34
RD
29777SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29778 int argc;
29779 PyObject *argv[3];
29780
29781 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29782 --argc;
29783 if (argc == 2) {
29784 int _v = 0;
29785 {
29786 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29787 _v = SWIG_CheckState(res);
29788 }
29789 if (!_v) goto check_1;
29790 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29791 }
29792check_1:
29793
29794 if (argc == 2) {
29795 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29796 }
29797
29798fail:
29799 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29800 return NULL;
29801}
29802
29803
29804SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29805 PyObject *resultobj = 0;
70d7cb34
RD
29806 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29807 void *arg2 = (void *) 0 ;
29808 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29809 void *argp1 = 0 ;
29810 int res1 = 0 ;
70d7cb34 29811 int res2 ;
b39fe951
RD
29812 PyObject * obj0 = 0 ;
29813 PyObject * obj1 = 0 ;
b39fe951 29814 char * kwnames[] = {
70d7cb34 29815 (char *) "self",(char *) "context", NULL
b39fe951 29816 };
72ef6efb 29817
70d7cb34
RD
29818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29820 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29822 }
29823 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29824 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29825 if (!SWIG_IsOK(res2)) {
29826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 29827 }
72ef6efb 29828 {
70d7cb34 29829 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
29830 if (PyErr_Occurred()) SWIG_fail;
29831 }
70d7cb34 29832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29833 return resultobj;
29834fail:
29835 return NULL;
29836}
29837
29838
70d7cb34 29839SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29840 PyObject *resultobj = 0;
70d7cb34
RD
29841 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29842 void *arg2 = (void *) 0 ;
29843 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29844 void *argp1 = 0 ;
29845 int res1 = 0 ;
70d7cb34 29846 int res2 ;
72ef6efb
RD
29847 PyObject * obj0 = 0 ;
29848 PyObject * obj1 = 0 ;
72ef6efb 29849 char * kwnames[] = {
70d7cb34 29850 (char *) "self",(char *) "window", NULL
72ef6efb
RD
29851 };
29852
70d7cb34
RD
29853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29855 if (!SWIG_IsOK(res1)) {
70d7cb34 29856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 29857 }
70d7cb34
RD
29858 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29859 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29860 if (!SWIG_IsOK(res2)) {
29861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
29862 }
29863 {
70d7cb34 29864 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
29865 if (PyErr_Occurred()) SWIG_fail;
29866 }
70d7cb34 29867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29868 return resultobj;
29869fail:
70d7cb34
RD
29870 return NULL;
29871}
29872
29873
29874SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29875 PyObject *resultobj = 0;
29876 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 29877 wxGraphicsPath result;
70d7cb34
RD
29878 void *argp1 = 0 ;
29879 int res1 = 0 ;
29880 PyObject *swig_obj[1] ;
29881
29882 if (!args) SWIG_fail;
29883 swig_obj[0] = args;
29884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29885 if (!SWIG_IsOK(res1)) {
29886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29887 }
29888 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 29889 {
5c8c7dd3 29890 result = (arg1)->CreatePath();
70d7cb34 29891 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29892 }
5c8c7dd3 29893 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
29894 return resultobj;
29895fail:
72ef6efb
RD
29896 return NULL;
29897}
29898
29899
70d7cb34 29900SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29901 PyObject *resultobj = 0;
70d7cb34
RD
29902 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29903 wxDouble arg2 = (wxDouble) 1.0 ;
29904 wxDouble arg3 = (wxDouble) 0.0 ;
29905 wxDouble arg4 = (wxDouble) 0.0 ;
29906 wxDouble arg5 = (wxDouble) 1.0 ;
29907 wxDouble arg6 = (wxDouble) 0.0 ;
29908 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 29909 wxGraphicsMatrix result;
72ef6efb
RD
29910 void *argp1 = 0 ;
29911 int res1 = 0 ;
29912 double val2 ;
29913 int ecode2 = 0 ;
29914 double val3 ;
29915 int ecode3 = 0 ;
29916 double val4 ;
29917 int ecode4 = 0 ;
29918 double val5 ;
29919 int ecode5 = 0 ;
70d7cb34
RD
29920 double val6 ;
29921 int ecode6 = 0 ;
29922 double val7 ;
29923 int ecode7 = 0 ;
72ef6efb
RD
29924 PyObject * obj0 = 0 ;
29925 PyObject * obj1 = 0 ;
29926 PyObject * obj2 = 0 ;
29927 PyObject * obj3 = 0 ;
29928 PyObject * obj4 = 0 ;
70d7cb34
RD
29929 PyObject * obj5 = 0 ;
29930 PyObject * obj6 = 0 ;
72ef6efb 29931 char * kwnames[] = {
70d7cb34 29932 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
29933 };
29934
70d7cb34
RD
29935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29937 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29939 }
29940 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29941 if (obj1) {
29942 ecode2 = SWIG_AsVal_double(obj1, &val2);
29943 if (!SWIG_IsOK(ecode2)) {
29944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
29945 }
29946 arg2 = static_cast< wxDouble >(val2);
29947 }
29948 if (obj2) {
29949 ecode3 = SWIG_AsVal_double(obj2, &val3);
29950 if (!SWIG_IsOK(ecode3)) {
29951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
29952 }
29953 arg3 = static_cast< wxDouble >(val3);
29954 }
29955 if (obj3) {
29956 ecode4 = SWIG_AsVal_double(obj3, &val4);
29957 if (!SWIG_IsOK(ecode4)) {
29958 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
29959 }
29960 arg4 = static_cast< wxDouble >(val4);
29961 }
29962 if (obj4) {
29963 ecode5 = SWIG_AsVal_double(obj4, &val5);
29964 if (!SWIG_IsOK(ecode5)) {
29965 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
29966 }
29967 arg5 = static_cast< wxDouble >(val5);
29968 }
29969 if (obj5) {
29970 ecode6 = SWIG_AsVal_double(obj5, &val6);
29971 if (!SWIG_IsOK(ecode6)) {
29972 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
29973 }
29974 arg6 = static_cast< wxDouble >(val6);
29975 }
29976 if (obj6) {
29977 ecode7 = SWIG_AsVal_double(obj6, &val7);
29978 if (!SWIG_IsOK(ecode7)) {
29979 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
29980 }
29981 arg7 = static_cast< wxDouble >(val7);
72ef6efb 29982 }
72ef6efb 29983 {
5c8c7dd3 29984 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
29985 if (PyErr_Occurred()) SWIG_fail;
29986 }
5c8c7dd3 29987 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29988 return resultobj;
29989fail:
29990 return NULL;
29991}
29992
29993
70d7cb34 29994SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29995 PyObject *resultobj = 0;
70d7cb34
RD
29996 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29997 wxPen *arg2 = 0 ;
29998 wxGraphicsPen result;
29999 void *argp1 = 0 ;
30000 int res1 = 0 ;
30001 void *argp2 = 0 ;
30002 int res2 = 0 ;
30003 PyObject * obj0 = 0 ;
30004 PyObject * obj1 = 0 ;
30005 char * kwnames[] = {
30006 (char *) "self",(char *) "pen", NULL
30007 };
30008
30009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30011 if (!SWIG_IsOK(res1)) {
30012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30013 }
30014 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30016 if (!SWIG_IsOK(res2)) {
30017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30018 }
30019 if (!argp2) {
30020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30021 }
30022 arg2 = reinterpret_cast< wxPen * >(argp2);
30023 {
30024 result = (arg1)->CreatePen((wxPen const &)*arg2);
30025 if (PyErr_Occurred()) SWIG_fail;
30026 }
30027 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30028 return resultobj;
30029fail:
30030 return NULL;
30031}
30032
30033
30034SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30035 PyObject *resultobj = 0;
30036 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30037 wxBrush *arg2 = 0 ;
30038 wxGraphicsBrush result;
30039 void *argp1 = 0 ;
30040 int res1 = 0 ;
30041 void *argp2 = 0 ;
30042 int res2 = 0 ;
30043 PyObject * obj0 = 0 ;
30044 PyObject * obj1 = 0 ;
30045 char * kwnames[] = {
30046 (char *) "self",(char *) "brush", NULL
30047 };
30048
30049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30051 if (!SWIG_IsOK(res1)) {
30052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30053 }
30054 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30056 if (!SWIG_IsOK(res2)) {
30057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30058 }
30059 if (!argp2) {
30060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30061 }
30062 arg2 = reinterpret_cast< wxBrush * >(argp2);
30063 {
30064 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30065 if (PyErr_Occurred()) SWIG_fail;
30066 }
30067 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30068 return resultobj;
30069fail:
30070 return NULL;
30071}
30072
30073
30074SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30075 PyObject *resultobj = 0;
30076 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30077 wxDouble arg2 ;
30078 wxDouble arg3 ;
30079 wxDouble arg4 ;
30080 wxDouble arg5 ;
70d7cb34
RD
30081 wxColour *arg6 = 0 ;
30082 wxColour *arg7 = 0 ;
30083 wxGraphicsBrush result;
72ef6efb
RD
30084 void *argp1 = 0 ;
30085 int res1 = 0 ;
30086 double val2 ;
30087 int ecode2 = 0 ;
30088 double val3 ;
30089 int ecode3 = 0 ;
30090 double val4 ;
30091 int ecode4 = 0 ;
30092 double val5 ;
30093 int ecode5 = 0 ;
70d7cb34
RD
30094 wxColour temp6 ;
30095 wxColour temp7 ;
72ef6efb
RD
30096 PyObject * obj0 = 0 ;
30097 PyObject * obj1 = 0 ;
30098 PyObject * obj2 = 0 ;
30099 PyObject * obj3 = 0 ;
30100 PyObject * obj4 = 0 ;
70d7cb34
RD
30101 PyObject * obj5 = 0 ;
30102 PyObject * obj6 = 0 ;
72ef6efb 30103 char * kwnames[] = {
70d7cb34 30104 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30105 };
30106
70d7cb34
RD
30107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30109 if (!SWIG_IsOK(res1)) {
70d7cb34 30110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30111 }
70d7cb34 30112 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30113 ecode2 = SWIG_AsVal_double(obj1, &val2);
30114 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30116 }
30117 arg2 = static_cast< wxDouble >(val2);
30118 ecode3 = SWIG_AsVal_double(obj2, &val3);
30119 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30120 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30121 }
30122 arg3 = static_cast< wxDouble >(val3);
30123 ecode4 = SWIG_AsVal_double(obj3, &val4);
30124 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30125 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30126 }
30127 arg4 = static_cast< wxDouble >(val4);
30128 ecode5 = SWIG_AsVal_double(obj4, &val5);
30129 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30131 }
30132 arg5 = static_cast< wxDouble >(val5);
30133 {
70d7cb34
RD
30134 arg6 = &temp6;
30135 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30136 }
30137 {
30138 arg7 = &temp7;
30139 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30140 }
30141 {
30142 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30143 if (PyErr_Occurred()) SWIG_fail;
30144 }
70d7cb34 30145 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30146 return resultobj;
30147fail:
30148 return NULL;
30149}
30150
30151
70d7cb34 30152SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30153 PyObject *resultobj = 0;
70d7cb34 30154 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30155 wxDouble arg2 ;
30156 wxDouble arg3 ;
30157 wxDouble arg4 ;
30158 wxDouble arg5 ;
30159 wxDouble arg6 ;
70d7cb34
RD
30160 wxColour *arg7 = 0 ;
30161 wxColour *arg8 = 0 ;
30162 wxGraphicsBrush result;
72ef6efb
RD
30163 void *argp1 = 0 ;
30164 int res1 = 0 ;
30165 double val2 ;
30166 int ecode2 = 0 ;
30167 double val3 ;
30168 int ecode3 = 0 ;
30169 double val4 ;
30170 int ecode4 = 0 ;
30171 double val5 ;
30172 int ecode5 = 0 ;
30173 double val6 ;
30174 int ecode6 = 0 ;
70d7cb34
RD
30175 wxColour temp7 ;
30176 wxColour temp8 ;
72ef6efb
RD
30177 PyObject * obj0 = 0 ;
30178 PyObject * obj1 = 0 ;
30179 PyObject * obj2 = 0 ;
30180 PyObject * obj3 = 0 ;
30181 PyObject * obj4 = 0 ;
30182 PyObject * obj5 = 0 ;
70d7cb34
RD
30183 PyObject * obj6 = 0 ;
30184 PyObject * obj7 = 0 ;
72ef6efb 30185 char * kwnames[] = {
70d7cb34 30186 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30187 };
30188
70d7cb34
RD
30189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30191 if (!SWIG_IsOK(res1)) {
70d7cb34 30192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30193 }
70d7cb34 30194 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30195 ecode2 = SWIG_AsVal_double(obj1, &val2);
30196 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30198 }
30199 arg2 = static_cast< wxDouble >(val2);
30200 ecode3 = SWIG_AsVal_double(obj2, &val3);
30201 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30203 }
30204 arg3 = static_cast< wxDouble >(val3);
30205 ecode4 = SWIG_AsVal_double(obj3, &val4);
30206 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30207 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30208 }
30209 arg4 = static_cast< wxDouble >(val4);
30210 ecode5 = SWIG_AsVal_double(obj4, &val5);
30211 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30212 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30213 }
30214 arg5 = static_cast< wxDouble >(val5);
30215 ecode6 = SWIG_AsVal_double(obj5, &val6);
30216 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30217 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30218 }
30219 arg6 = static_cast< wxDouble >(val6);
30220 {
70d7cb34
RD
30221 arg7 = &temp7;
30222 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30223 }
30224 {
30225 arg8 = &temp8;
30226 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30227 }
30228 {
30229 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30230 if (PyErr_Occurred()) SWIG_fail;
30231 }
70d7cb34 30232 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30233 return resultobj;
30234fail:
30235 return NULL;
30236}
30237
30238
70d7cb34
RD
30239SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30240 PyObject *resultobj = 0;
30241 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30242 wxFont *arg2 = 0 ;
30243 wxColour const &arg3_defvalue = *wxBLACK ;
30244 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30245 wxGraphicsFont result;
30246 void *argp1 = 0 ;
30247 int res1 = 0 ;
30248 void *argp2 = 0 ;
30249 int res2 = 0 ;
30250 wxColour temp3 ;
30251 PyObject * obj0 = 0 ;
30252 PyObject * obj1 = 0 ;
30253 PyObject * obj2 = 0 ;
30254 char * kwnames[] = {
30255 (char *) "self",(char *) "font",(char *) "col", NULL
30256 };
30257
30258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30260 if (!SWIG_IsOK(res1)) {
30261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30262 }
30263 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30264 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30265 if (!SWIG_IsOK(res2)) {
30266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30267 }
30268 if (!argp2) {
30269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30270 }
30271 arg2 = reinterpret_cast< wxFont * >(argp2);
30272 if (obj2) {
30273 {
30274 arg3 = &temp3;
30275 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30276 }
30277 }
30278 {
30279 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30280 if (PyErr_Occurred()) SWIG_fail;
30281 }
30282 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30283 return resultobj;
30284fail:
30285 return NULL;
30286}
30287
30288
30289SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30290 PyObject *obj;
30291 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30292 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30293 return SWIG_Py_Void();
30294}
30295
30296SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30297 PyObject *resultobj = 0;
30298 wxWindowDC *arg1 = 0 ;
30299 wxGCDC *result = 0 ;
30300 void *argp1 = 0 ;
30301 int res1 = 0 ;
30302 PyObject * obj0 = 0 ;
30303 char * kwnames[] = {
30304 (char *) "dc", NULL
30305 };
30306
30307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30308 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30309 if (!SWIG_IsOK(res1)) {
30310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30311 }
30312 if (!argp1) {
30313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30314 }
30315 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30316 {
30317 if (!wxPyCheckForApp()) SWIG_fail;
30318 PyThreadState* __tstate = wxPyBeginAllowThreads();
30319 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30320 wxPyEndAllowThreads(__tstate);
30321 if (PyErr_Occurred()) SWIG_fail;
30322 }
30323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30324 return resultobj;
30325fail:
30326 return NULL;
30327}
30328
30329
30330SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30331 PyObject *resultobj = 0;
30332 wxGCDC *arg1 = (wxGCDC *) 0 ;
30333 void *argp1 = 0 ;
30334 int res1 = 0 ;
30335 PyObject *swig_obj[1] ;
30336
30337 if (!args) SWIG_fail;
30338 swig_obj[0] = args;
30339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30340 if (!SWIG_IsOK(res1)) {
30341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30342 }
30343 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30344 {
72ef6efb
RD
30345 delete arg1;
30346
72ef6efb
RD
30347 if (PyErr_Occurred()) SWIG_fail;
30348 }
30349 resultobj = SWIG_Py_Void();
30350 return resultobj;
30351fail:
30352 return NULL;
30353}
30354
30355
0a27f394 30356SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30357 PyObject *resultobj = 0;
30358 wxGCDC *arg1 = (wxGCDC *) 0 ;
30359 wxGraphicsContext *result = 0 ;
30360 void *argp1 = 0 ;
30361 int res1 = 0 ;
30362 PyObject *swig_obj[1] ;
30363
30364 if (!args) SWIG_fail;
30365 swig_obj[0] = args;
30366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30367 if (!SWIG_IsOK(res1)) {
0a27f394 30368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30369 }
30370 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30371 {
0a27f394 30372 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30373 if (PyErr_Occurred()) SWIG_fail;
30374 }
30375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30376 return resultobj;
30377fail:
30378 return NULL;
30379}
30380
30381
0a27f394
RD
30382SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30383 PyObject *resultobj = 0;
30384 wxGCDC *arg1 = (wxGCDC *) 0 ;
30385 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30386 void *argp1 = 0 ;
30387 int res1 = 0 ;
30388 void *argp2 = 0 ;
30389 int res2 = 0 ;
30390 PyObject * obj0 = 0 ;
30391 PyObject * obj1 = 0 ;
30392 char * kwnames[] = {
30393 (char *) "self",(char *) "ctx", NULL
30394 };
30395
30396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30398 if (!SWIG_IsOK(res1)) {
30399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30400 }
30401 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30402 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30403 if (!SWIG_IsOK(res2)) {
30404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30405 }
30406 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30407 {
30408 (arg1)->SetGraphicsContext(arg2);
30409 if (PyErr_Occurred()) SWIG_fail;
30410 }
30411 resultobj = SWIG_Py_Void();
30412 return resultobj;
30413fail:
30414 return NULL;
30415}
30416
30417
72ef6efb
RD
30418SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30419 PyObject *obj;
30420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30421 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30422 return SWIG_Py_Void();
30423}
30424
30425SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30426 return SWIG_Python_InitShadowInstance(args);
30427}
30428
b39fe951
RD
30429SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30430 PyObject *resultobj = 0;
30431 wxOverlay *result = 0 ;
30432
30433 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30434 {
30435 PyThreadState* __tstate = wxPyBeginAllowThreads();
30436 result = (wxOverlay *)new wxOverlay();
30437 wxPyEndAllowThreads(__tstate);
30438 if (PyErr_Occurred()) SWIG_fail;
30439 }
30440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30441 return resultobj;
30442fail:
30443 return NULL;
30444}
30445
30446
30447SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30448 PyObject *resultobj = 0;
30449 wxOverlay *arg1 = (wxOverlay *) 0 ;
30450 void *argp1 = 0 ;
30451 int res1 = 0 ;
30452 PyObject *swig_obj[1] ;
30453
30454 if (!args) SWIG_fail;
30455 swig_obj[0] = args;
30456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30457 if (!SWIG_IsOK(res1)) {
30458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30459 }
30460 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30461 {
30462 PyThreadState* __tstate = wxPyBeginAllowThreads();
30463 delete arg1;
30464
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 *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30476 PyObject *resultobj = 0;
30477 wxOverlay *arg1 = (wxOverlay *) 0 ;
30478 void *argp1 = 0 ;
30479 int res1 = 0 ;
30480 PyObject *swig_obj[1] ;
30481
30482 if (!args) SWIG_fail;
30483 swig_obj[0] = args;
30484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30485 if (!SWIG_IsOK(res1)) {
30486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30487 }
30488 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30489 {
30490 PyThreadState* __tstate = wxPyBeginAllowThreads();
30491 (arg1)->Reset();
30492 wxPyEndAllowThreads(__tstate);
30493 if (PyErr_Occurred()) SWIG_fail;
30494 }
30495 resultobj = SWIG_Py_Void();
30496 return resultobj;
30497fail:
30498 return NULL;
30499}
30500
30501
30502SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30503 PyObject *obj;
30504 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30505 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30506 return SWIG_Py_Void();
30507}
30508
30509SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30510 return SWIG_Python_InitShadowInstance(args);
30511}
30512
30513SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30514 PyObject *resultobj = 0;
30515 wxOverlay *arg1 = 0 ;
30516 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30517 int arg3 ;
30518 int arg4 ;
30519 int arg5 ;
30520 int arg6 ;
30521 wxDCOverlay *result = 0 ;
30522 void *argp1 = 0 ;
30523 int res1 = 0 ;
30524 void *argp2 = 0 ;
30525 int res2 = 0 ;
30526 int val3 ;
30527 int ecode3 = 0 ;
30528 int val4 ;
30529 int ecode4 = 0 ;
30530 int val5 ;
30531 int ecode5 = 0 ;
30532 int val6 ;
30533 int ecode6 = 0 ;
30534
30535 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30537 if (!SWIG_IsOK(res1)) {
30538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30539 }
30540 if (!argp1) {
30541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30542 }
30543 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30544 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30545 if (!SWIG_IsOK(res2)) {
30546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30547 }
30548 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30549 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30550 if (!SWIG_IsOK(ecode3)) {
30551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30552 }
30553 arg3 = static_cast< int >(val3);
30554 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30555 if (!SWIG_IsOK(ecode4)) {
30556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30557 }
30558 arg4 = static_cast< int >(val4);
30559 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30560 if (!SWIG_IsOK(ecode5)) {
30561 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30562 }
30563 arg5 = static_cast< int >(val5);
30564 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30565 if (!SWIG_IsOK(ecode6)) {
30566 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30567 }
30568 arg6 = static_cast< int >(val6);
30569 {
30570 PyThreadState* __tstate = wxPyBeginAllowThreads();
30571 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30572 wxPyEndAllowThreads(__tstate);
30573 if (PyErr_Occurred()) SWIG_fail;
30574 }
30575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30576 return resultobj;
30577fail:
30578 return NULL;
30579}
30580
30581
30582SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30583 PyObject *resultobj = 0;
30584 wxOverlay *arg1 = 0 ;
30585 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30586 wxDCOverlay *result = 0 ;
30587 void *argp1 = 0 ;
30588 int res1 = 0 ;
30589 void *argp2 = 0 ;
30590 int res2 = 0 ;
30591
30592 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30594 if (!SWIG_IsOK(res1)) {
30595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30596 }
30597 if (!argp1) {
30598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30599 }
30600 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30601 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30602 if (!SWIG_IsOK(res2)) {
30603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30604 }
30605 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30606 {
30607 PyThreadState* __tstate = wxPyBeginAllowThreads();
30608 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30609 wxPyEndAllowThreads(__tstate);
30610 if (PyErr_Occurred()) SWIG_fail;
30611 }
30612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30613 return resultobj;
30614fail:
30615 return NULL;
30616}
30617
30618
30619SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30620 int argc;
30621 PyObject *argv[7];
30622
30623 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30624 --argc;
30625 if (argc == 2) {
30626 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30627 }
30628 if (argc == 6) {
30629 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30630 }
30631
30632fail:
30633 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30634 return NULL;
30635}
30636
30637
30638SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30639 PyObject *resultobj = 0;
30640 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30641 void *argp1 = 0 ;
30642 int res1 = 0 ;
30643 PyObject *swig_obj[1] ;
30644
30645 if (!args) SWIG_fail;
30646 swig_obj[0] = args;
30647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30648 if (!SWIG_IsOK(res1)) {
30649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30650 }
30651 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30652 {
30653 PyThreadState* __tstate = wxPyBeginAllowThreads();
30654 delete arg1;
30655
30656 wxPyEndAllowThreads(__tstate);
30657 if (PyErr_Occurred()) SWIG_fail;
30658 }
30659 resultobj = SWIG_Py_Void();
30660 return resultobj;
30661fail:
30662 return NULL;
30663}
30664
30665
30666SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30667 PyObject *resultobj = 0;
30668 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30669 void *argp1 = 0 ;
30670 int res1 = 0 ;
30671 PyObject *swig_obj[1] ;
30672
30673 if (!args) SWIG_fail;
30674 swig_obj[0] = args;
30675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30676 if (!SWIG_IsOK(res1)) {
30677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30678 }
30679 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30680 {
30681 PyThreadState* __tstate = wxPyBeginAllowThreads();
30682 (arg1)->Clear();
30683 wxPyEndAllowThreads(__tstate);
30684 if (PyErr_Occurred()) SWIG_fail;
30685 }
30686 resultobj = SWIG_Py_Void();
30687 return resultobj;
30688fail:
30689 return NULL;
30690}
30691
30692
30693SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30694 PyObject *obj;
30695 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30696 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30697 return SWIG_Py_Void();
30698}
30699
30700SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30701 return SWIG_Python_InitShadowInstance(args);
30702}
30703
72ef6efb
RD
30704SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30705 PyObject *resultobj = 0;
30706 int arg1 ;
30707 int arg2 ;
30708 int arg3 = (int) true ;
30709 int arg4 = (int) 1 ;
30710 wxImageList *result = 0 ;
30711 int val1 ;
30712 int ecode1 = 0 ;
30713 int val2 ;
30714 int ecode2 = 0 ;
30715 int val3 ;
30716 int ecode3 = 0 ;
30717 int val4 ;
30718 int ecode4 = 0 ;
30719 PyObject * obj0 = 0 ;
30720 PyObject * obj1 = 0 ;
30721 PyObject * obj2 = 0 ;
30722 PyObject * obj3 = 0 ;
30723 char * kwnames[] = {
30724 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30725 };
30726
30727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30728 ecode1 = SWIG_AsVal_int(obj0, &val1);
30729 if (!SWIG_IsOK(ecode1)) {
30730 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30731 }
30732 arg1 = static_cast< int >(val1);
30733 ecode2 = SWIG_AsVal_int(obj1, &val2);
30734 if (!SWIG_IsOK(ecode2)) {
30735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30736 }
30737 arg2 = static_cast< int >(val2);
30738 if (obj2) {
30739 ecode3 = SWIG_AsVal_int(obj2, &val3);
30740 if (!SWIG_IsOK(ecode3)) {
30741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30742 }
30743 arg3 = static_cast< int >(val3);
30744 }
30745 if (obj3) {
30746 ecode4 = SWIG_AsVal_int(obj3, &val4);
30747 if (!SWIG_IsOK(ecode4)) {
30748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30749 }
30750 arg4 = static_cast< int >(val4);
30751 }
30752 {
30753 if (!wxPyCheckForApp()) SWIG_fail;
30754 PyThreadState* __tstate = wxPyBeginAllowThreads();
30755 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30756 wxPyEndAllowThreads(__tstate);
30757 if (PyErr_Occurred()) SWIG_fail;
30758 }
e02c0a13 30759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
30760 return resultobj;
30761fail:
30762 return NULL;
30763}
30764
30765
30766SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30767 PyObject *resultobj = 0;
30768 wxImageList *arg1 = (wxImageList *) 0 ;
30769 void *argp1 = 0 ;
30770 int res1 = 0 ;
30771 PyObject *swig_obj[1] ;
30772
30773 if (!args) SWIG_fail;
30774 swig_obj[0] = args;
30775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30776 if (!SWIG_IsOK(res1)) {
30777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30778 }
30779 arg1 = reinterpret_cast< wxImageList * >(argp1);
30780 {
30781 PyThreadState* __tstate = wxPyBeginAllowThreads();
30782 delete arg1;
30783
30784 wxPyEndAllowThreads(__tstate);
30785 if (PyErr_Occurred()) SWIG_fail;
30786 }
30787 resultobj = SWIG_Py_Void();
30788 return resultobj;
30789fail:
30790 return NULL;
30791}
30792
30793
30794SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30795 PyObject *resultobj = 0;
30796 wxImageList *arg1 = (wxImageList *) 0 ;
30797 wxBitmap *arg2 = 0 ;
30798 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30799 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30800 int result;
30801 void *argp1 = 0 ;
30802 int res1 = 0 ;
30803 void *argp2 = 0 ;
30804 int res2 = 0 ;
30805 void *argp3 = 0 ;
30806 int res3 = 0 ;
30807 PyObject * obj0 = 0 ;
30808 PyObject * obj1 = 0 ;
30809 PyObject * obj2 = 0 ;
30810 char * kwnames[] = {
30811 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30812 };
30813
30814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30816 if (!SWIG_IsOK(res1)) {
30817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30818 }
30819 arg1 = reinterpret_cast< wxImageList * >(argp1);
30820 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30821 if (!SWIG_IsOK(res2)) {
30822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30823 }
30824 if (!argp2) {
30825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30826 }
30827 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30828 if (obj2) {
30829 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30830 if (!SWIG_IsOK(res3)) {
30831 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30832 }
30833 if (!argp3) {
30834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30835 }
30836 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30837 }
30838 {
30839 PyThreadState* __tstate = wxPyBeginAllowThreads();
30840 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30841 wxPyEndAllowThreads(__tstate);
30842 if (PyErr_Occurred()) SWIG_fail;
30843 }
30844 resultobj = SWIG_From_int(static_cast< int >(result));
30845 return resultobj;
30846fail:
30847 return NULL;
30848}
30849
30850
30851SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30852 PyObject *resultobj = 0;
30853 wxImageList *arg1 = (wxImageList *) 0 ;
30854 wxBitmap *arg2 = 0 ;
30855 wxColour *arg3 = 0 ;
30856 int result;
30857 void *argp1 = 0 ;
30858 int res1 = 0 ;
30859 void *argp2 = 0 ;
30860 int res2 = 0 ;
30861 wxColour temp3 ;
30862 PyObject * obj0 = 0 ;
30863 PyObject * obj1 = 0 ;
30864 PyObject * obj2 = 0 ;
30865 char * kwnames[] = {
30866 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
30867 };
30868
30869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30871 if (!SWIG_IsOK(res1)) {
30872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
30873 }
30874 arg1 = reinterpret_cast< wxImageList * >(argp1);
30875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30876 if (!SWIG_IsOK(res2)) {
30877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30878 }
30879 if (!argp2) {
30880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30881 }
30882 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30883 {
30884 arg3 = &temp3;
30885 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30886 }
30887 {
30888 PyThreadState* __tstate = wxPyBeginAllowThreads();
30889 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
30890 wxPyEndAllowThreads(__tstate);
30891 if (PyErr_Occurred()) SWIG_fail;
30892 }
30893 resultobj = SWIG_From_int(static_cast< int >(result));
30894 return resultobj;
30895fail:
30896 return NULL;
30897}
30898
30899
30900SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30901 PyObject *resultobj = 0;
30902 wxImageList *arg1 = (wxImageList *) 0 ;
30903 wxIcon *arg2 = 0 ;
30904 int result;
30905 void *argp1 = 0 ;
30906 int res1 = 0 ;
30907 void *argp2 = 0 ;
30908 int res2 = 0 ;
30909 PyObject * obj0 = 0 ;
30910 PyObject * obj1 = 0 ;
30911 char * kwnames[] = {
30912 (char *) "self",(char *) "icon", NULL
30913 };
30914
30915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30917 if (!SWIG_IsOK(res1)) {
30918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
30919 }
0085ce49
RD
30920 arg1 = reinterpret_cast< wxImageList * >(argp1);
30921 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30922 if (!SWIG_IsOK(res2)) {
30923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30924 }
30925 if (!argp2) {
30926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30927 }
30928 arg2 = reinterpret_cast< wxIcon * >(argp2);
30929 {
30930 PyThreadState* __tstate = wxPyBeginAllowThreads();
30931 result = (int)(arg1)->Add((wxIcon const &)*arg2);
30932 wxPyEndAllowThreads(__tstate);
30933 if (PyErr_Occurred()) SWIG_fail;
30934 }
30935 resultobj = SWIG_From_int(static_cast< int >(result));
30936 return resultobj;
30937fail:
30938 return NULL;
30939}
30940
30941
30942SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30943 PyObject *resultobj = 0;
30944 wxImageList *arg1 = (wxImageList *) 0 ;
30945 int arg2 ;
30946 SwigValueWrapper<wxBitmap > result;
30947 void *argp1 = 0 ;
30948 int res1 = 0 ;
30949 int val2 ;
30950 int ecode2 = 0 ;
30951 PyObject * obj0 = 0 ;
30952 PyObject * obj1 = 0 ;
30953 char * kwnames[] = {
30954 (char *) "self",(char *) "index", NULL
30955 };
30956
30957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
30958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30959 if (!SWIG_IsOK(res1)) {
30960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
30961 }
30962 arg1 = reinterpret_cast< wxImageList * >(argp1);
30963 ecode2 = SWIG_AsVal_int(obj1, &val2);
30964 if (!SWIG_IsOK(ecode2)) {
30965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
30966 }
30967 arg2 = static_cast< int >(val2);
30968 {
30969 PyThreadState* __tstate = wxPyBeginAllowThreads();
30970 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
30971 wxPyEndAllowThreads(__tstate);
30972 if (PyErr_Occurred()) SWIG_fail;
30973 }
30974 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
30975 return resultobj;
30976fail:
30977 return NULL;
30978}
30979
30980
30981SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30982 PyObject *resultobj = 0;
30983 wxImageList *arg1 = (wxImageList *) 0 ;
30984 int arg2 ;
30985 wxIcon result;
30986 void *argp1 = 0 ;
30987 int res1 = 0 ;
30988 int val2 ;
30989 int ecode2 = 0 ;
30990 PyObject * obj0 = 0 ;
30991 PyObject * obj1 = 0 ;
30992 char * kwnames[] = {
30993 (char *) "self",(char *) "index", NULL
30994 };
30995
30996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30998 if (!SWIG_IsOK(res1)) {
30999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31000 }
31001 arg1 = reinterpret_cast< wxImageList * >(argp1);
31002 ecode2 = SWIG_AsVal_int(obj1, &val2);
31003 if (!SWIG_IsOK(ecode2)) {
31004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31005 }
31006 arg2 = static_cast< int >(val2);
31007 {
31008 PyThreadState* __tstate = wxPyBeginAllowThreads();
31009 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31010 wxPyEndAllowThreads(__tstate);
31011 if (PyErr_Occurred()) SWIG_fail;
31012 }
31013 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31014 return resultobj;
31015fail:
31016 return NULL;
31017}
31018
31019
31020SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31021 PyObject *resultobj = 0;
31022 wxImageList *arg1 = (wxImageList *) 0 ;
31023 int arg2 ;
31024 wxBitmap *arg3 = 0 ;
01f6b6d3
RD
31025 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31026 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
0085ce49
RD
31027 bool result;
31028 void *argp1 = 0 ;
31029 int res1 = 0 ;
31030 int val2 ;
31031 int ecode2 = 0 ;
31032 void *argp3 = 0 ;
31033 int res3 = 0 ;
01f6b6d3
RD
31034 void *argp4 = 0 ;
31035 int res4 = 0 ;
0085ce49
RD
31036 PyObject * obj0 = 0 ;
31037 PyObject * obj1 = 0 ;
31038 PyObject * obj2 = 0 ;
01f6b6d3 31039 PyObject * obj3 = 0 ;
0085ce49 31040 char * kwnames[] = {
01f6b6d3 31041 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
0085ce49
RD
31042 };
31043
01f6b6d3 31044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
31045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31046 if (!SWIG_IsOK(res1)) {
31047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31048 }
31049 arg1 = reinterpret_cast< wxImageList * >(argp1);
31050 ecode2 = SWIG_AsVal_int(obj1, &val2);
31051 if (!SWIG_IsOK(ecode2)) {
31052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31053 }
31054 arg2 = static_cast< int >(val2);
31055 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31056 if (!SWIG_IsOK(res3)) {
31057 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31058 }
31059 if (!argp3) {
31060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31061 }
31062 arg3 = reinterpret_cast< wxBitmap * >(argp3);
01f6b6d3
RD
31063 if (obj3) {
31064 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31065 if (!SWIG_IsOK(res4)) {
31066 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31067 }
31068 if (!argp4) {
31069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31070 }
31071 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31072 }
0085ce49
RD
31073 {
31074 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 31075 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
0085ce49
RD
31076 wxPyEndAllowThreads(__tstate);
31077 if (PyErr_Occurred()) SWIG_fail;
31078 }
31079 {
31080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31081 }
31082 return resultobj;
31083fail:
31084 return NULL;
31085}
31086
31087
31088SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31089 PyObject *resultobj = 0;
31090 wxImageList *arg1 = (wxImageList *) 0 ;
31091 int arg2 ;
31092 wxDC *arg3 = 0 ;
31093 int arg4 ;
31094 int arg5 ;
31095 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31096 bool arg7 = (bool) (bool)false ;
31097 bool result;
31098 void *argp1 = 0 ;
31099 int res1 = 0 ;
31100 int val2 ;
31101 int ecode2 = 0 ;
31102 void *argp3 = 0 ;
31103 int res3 = 0 ;
31104 int val4 ;
31105 int ecode4 = 0 ;
31106 int val5 ;
31107 int ecode5 = 0 ;
31108 int val6 ;
31109 int ecode6 = 0 ;
31110 bool val7 ;
31111 int ecode7 = 0 ;
31112 PyObject * obj0 = 0 ;
31113 PyObject * obj1 = 0 ;
31114 PyObject * obj2 = 0 ;
31115 PyObject * obj3 = 0 ;
31116 PyObject * obj4 = 0 ;
31117 PyObject * obj5 = 0 ;
31118 PyObject * obj6 = 0 ;
31119 char * kwnames[] = {
31120 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31121 };
31122
31123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31125 if (!SWIG_IsOK(res1)) {
31126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31127 }
31128 arg1 = reinterpret_cast< wxImageList * >(argp1);
31129 ecode2 = SWIG_AsVal_int(obj1, &val2);
31130 if (!SWIG_IsOK(ecode2)) {
31131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31132 }
31133 arg2 = static_cast< int >(val2);
31134 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31135 if (!SWIG_IsOK(res3)) {
31136 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31137 }
31138 if (!argp3) {
31139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31140 }
31141 arg3 = reinterpret_cast< wxDC * >(argp3);
31142 ecode4 = SWIG_AsVal_int(obj3, &val4);
31143 if (!SWIG_IsOK(ecode4)) {
31144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31145 }
31146 arg4 = static_cast< int >(val4);
31147 ecode5 = SWIG_AsVal_int(obj4, &val5);
31148 if (!SWIG_IsOK(ecode5)) {
31149 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31150 }
31151 arg5 = static_cast< int >(val5);
31152 if (obj5) {
31153 ecode6 = SWIG_AsVal_int(obj5, &val6);
31154 if (!SWIG_IsOK(ecode6)) {
31155 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31156 }
31157 arg6 = static_cast< int >(val6);
31158 }
31159 if (obj6) {
31160 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31161 if (!SWIG_IsOK(ecode7)) {
31162 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31163 }
31164 arg7 = static_cast< bool >(val7);
31165 }
31166 {
31167 PyThreadState* __tstate = wxPyBeginAllowThreads();
31168 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31169 wxPyEndAllowThreads(__tstate);
31170 if (PyErr_Occurred()) SWIG_fail;
31171 }
31172 {
31173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31174 }
31175 return resultobj;
31176fail:
31177 return NULL;
31178}
31179
31180
31181SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31182 PyObject *resultobj = 0;
31183 wxImageList *arg1 = (wxImageList *) 0 ;
31184 int result;
31185 void *argp1 = 0 ;
31186 int res1 = 0 ;
31187 PyObject *swig_obj[1] ;
31188
31189 if (!args) SWIG_fail;
31190 swig_obj[0] = args;
31191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31192 if (!SWIG_IsOK(res1)) {
31193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31194 }
31195 arg1 = reinterpret_cast< wxImageList * >(argp1);
31196 {
31197 PyThreadState* __tstate = wxPyBeginAllowThreads();
31198 result = (int)(arg1)->GetImageCount();
31199 wxPyEndAllowThreads(__tstate);
31200 if (PyErr_Occurred()) SWIG_fail;
31201 }
31202 resultobj = SWIG_From_int(static_cast< int >(result));
31203 return resultobj;
31204fail:
31205 return NULL;
31206}
31207
31208
31209SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31210 PyObject *resultobj = 0;
31211 wxImageList *arg1 = (wxImageList *) 0 ;
31212 int arg2 ;
31213 bool result;
31214 void *argp1 = 0 ;
31215 int res1 = 0 ;
31216 int val2 ;
31217 int ecode2 = 0 ;
31218 PyObject * obj0 = 0 ;
31219 PyObject * obj1 = 0 ;
31220 char * kwnames[] = {
31221 (char *) "self",(char *) "index", NULL
31222 };
31223
31224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31226 if (!SWIG_IsOK(res1)) {
31227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31228 }
31229 arg1 = reinterpret_cast< wxImageList * >(argp1);
31230 ecode2 = SWIG_AsVal_int(obj1, &val2);
31231 if (!SWIG_IsOK(ecode2)) {
31232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31233 }
31234 arg2 = static_cast< int >(val2);
31235 {
31236 PyThreadState* __tstate = wxPyBeginAllowThreads();
31237 result = (bool)(arg1)->Remove(arg2);
31238 wxPyEndAllowThreads(__tstate);
31239 if (PyErr_Occurred()) SWIG_fail;
31240 }
31241 {
31242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31243 }
31244 return resultobj;
31245fail:
31246 return NULL;
31247}
31248
31249
31250SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31251 PyObject *resultobj = 0;
31252 wxImageList *arg1 = (wxImageList *) 0 ;
31253 bool result;
31254 void *argp1 = 0 ;
31255 int res1 = 0 ;
31256 PyObject *swig_obj[1] ;
31257
31258 if (!args) SWIG_fail;
31259 swig_obj[0] = args;
31260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31261 if (!SWIG_IsOK(res1)) {
31262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31263 }
31264 arg1 = reinterpret_cast< wxImageList * >(argp1);
31265 {
31266 PyThreadState* __tstate = wxPyBeginAllowThreads();
31267 result = (bool)(arg1)->RemoveAll();
31268 wxPyEndAllowThreads(__tstate);
31269 if (PyErr_Occurred()) SWIG_fail;
31270 }
31271 {
31272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31273 }
31274 return resultobj;
31275fail:
31276 return NULL;
31277}
31278
31279
31280SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31281 PyObject *resultobj = 0;
31282 wxImageList *arg1 = (wxImageList *) 0 ;
31283 int arg2 ;
31284 int *arg3 = 0 ;
31285 int *arg4 = 0 ;
31286 void *argp1 = 0 ;
31287 int res1 = 0 ;
31288 int val2 ;
31289 int ecode2 = 0 ;
31290 int temp3 ;
31291 int res3 = SWIG_TMPOBJ ;
31292 int temp4 ;
31293 int res4 = SWIG_TMPOBJ ;
31294 PyObject * obj0 = 0 ;
31295 PyObject * obj1 = 0 ;
31296 char * kwnames[] = {
31297 (char *) "self",(char *) "index", NULL
31298 };
31299
31300 arg3 = &temp3;
31301 arg4 = &temp4;
31302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31304 if (!SWIG_IsOK(res1)) {
31305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31306 }
31307 arg1 = reinterpret_cast< wxImageList * >(argp1);
31308 ecode2 = SWIG_AsVal_int(obj1, &val2);
31309 if (!SWIG_IsOK(ecode2)) {
31310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31311 }
31312 arg2 = static_cast< int >(val2);
31313 {
31314 PyThreadState* __tstate = wxPyBeginAllowThreads();
31315 (arg1)->GetSize(arg2,*arg3,*arg4);
31316 wxPyEndAllowThreads(__tstate);
31317 if (PyErr_Occurred()) SWIG_fail;
31318 }
31319 resultobj = SWIG_Py_Void();
31320 if (SWIG_IsTmpObj(res3)) {
31321 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31322 } else {
31323 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31324 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31325 }
31326 if (SWIG_IsTmpObj(res4)) {
31327 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31328 } else {
31329 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31330 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31331 }
31332 return resultobj;
31333fail:
31334 return NULL;
31335}
31336
31337
31338SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31339 PyObject *obj;
31340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31341 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31342 return SWIG_Py_Void();
31343}
31344
31345SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31346 return SWIG_Python_InitShadowInstance(args);
31347}
31348
50efceee
RD
31349SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31350 PyObject *resultobj = 0;
31351 wxStockGDI *result = 0 ;
0085ce49 31352
50efceee
RD
31353 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31354 {
31355 PyThreadState* __tstate = wxPyBeginAllowThreads();
31356 result = (wxStockGDI *)new wxStockGDI();
31357 wxPyEndAllowThreads(__tstate);
31358 if (PyErr_Occurred()) SWIG_fail;
31359 }
31360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31361 return resultobj;
31362fail:
31363 return NULL;
0085ce49
RD
31364}
31365
31366
50efceee
RD
31367SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31368 PyObject *resultobj = 0;
31369 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31370 void *argp1 = 0 ;
31371 int res1 = 0 ;
31372 PyObject *swig_obj[1] ;
0085ce49 31373
50efceee
RD
31374 if (!args) SWIG_fail;
31375 swig_obj[0] = args;
31376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31377 if (!SWIG_IsOK(res1)) {
31378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31379 }
31380 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31381 {
31382 PyThreadState* __tstate = wxPyBeginAllowThreads();
31383 delete arg1;
31384
31385 wxPyEndAllowThreads(__tstate);
31386 if (PyErr_Occurred()) SWIG_fail;
31387 }
31388 resultobj = SWIG_Py_Void();
31389 return resultobj;
31390fail:
31391 return NULL;
0085ce49
RD
31392}
31393
31394
50efceee
RD
31395SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31396 PyObject *resultobj = 0;
0085ce49 31397
50efceee
RD
31398 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31399 {
31400 PyThreadState* __tstate = wxPyBeginAllowThreads();
31401 wxStockGDI::DeleteAll();
31402 wxPyEndAllowThreads(__tstate);
31403 if (PyErr_Occurred()) SWIG_fail;
31404 }
31405 resultobj = SWIG_Py_Void();
31406 return resultobj;
31407fail:
31408 return NULL;
0085ce49
RD
31409}
31410
31411
50efceee
RD
31412SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31413 PyObject *resultobj = 0;
31414 wxStockGDI *result = 0 ;
0085ce49 31415
50efceee
RD
31416 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31417 {
31418 PyThreadState* __tstate = wxPyBeginAllowThreads();
31419 {
31420 wxStockGDI &_result_ref = wxStockGDI::instance();
31421 result = (wxStockGDI *) &_result_ref;
31422 }
31423 wxPyEndAllowThreads(__tstate);
31424 if (PyErr_Occurred()) SWIG_fail;
31425 }
31426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31427 return resultobj;
31428fail:
31429 return NULL;
0085ce49
RD
31430}
31431
31432
50efceee
RD
31433SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31434 PyObject *resultobj = 0;
31435 wxStockGDI::Item arg1 ;
31436 wxBrush *result = 0 ;
31437 int val1 ;
31438 int ecode1 = 0 ;
31439 PyObject * obj0 = 0 ;
31440 char * kwnames[] = {
31441 (char *) "item", NULL
31442 };
31443
31444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31445 ecode1 = SWIG_AsVal_int(obj0, &val1);
31446 if (!SWIG_IsOK(ecode1)) {
31447 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31448 }
31449 arg1 = static_cast< wxStockGDI::Item >(val1);
31450 {
31451 PyThreadState* __tstate = wxPyBeginAllowThreads();
31452 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31453 wxPyEndAllowThreads(__tstate);
31454 if (PyErr_Occurred()) SWIG_fail;
31455 }
31456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31457 return resultobj;
31458fail:
31459 return NULL;
0085ce49
RD
31460}
31461
31462
50efceee
RD
31463SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31464 PyObject *resultobj = 0;
31465 wxStockGDI::Item arg1 ;
31466 wxColour *result = 0 ;
31467 int val1 ;
31468 int ecode1 = 0 ;
31469 PyObject * obj0 = 0 ;
31470 char * kwnames[] = {
31471 (char *) "item", NULL
31472 };
0085ce49 31473
50efceee
RD
31474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31475 ecode1 = SWIG_AsVal_int(obj0, &val1);
31476 if (!SWIG_IsOK(ecode1)) {
31477 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31478 }
31479 arg1 = static_cast< wxStockGDI::Item >(val1);
31480 {
31481 PyThreadState* __tstate = wxPyBeginAllowThreads();
31482 result = (wxColour *)wxStockGDI::GetColour(arg1);
31483 wxPyEndAllowThreads(__tstate);
31484 if (PyErr_Occurred()) SWIG_fail;
31485 }
31486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31487 return resultobj;
31488fail:
31489 return NULL;
0085ce49
RD
31490}
31491
31492
50efceee
RD
31493SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31494 PyObject *resultobj = 0;
31495 wxStockGDI::Item arg1 ;
31496 wxCursor *result = 0 ;
31497 int val1 ;
31498 int ecode1 = 0 ;
31499 PyObject * obj0 = 0 ;
31500 char * kwnames[] = {
31501 (char *) "item", NULL
31502 };
31503
31504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31505 ecode1 = SWIG_AsVal_int(obj0, &val1);
31506 if (!SWIG_IsOK(ecode1)) {
31507 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31508 }
31509 arg1 = static_cast< wxStockGDI::Item >(val1);
31510 {
31511 PyThreadState* __tstate = wxPyBeginAllowThreads();
31512 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31513 wxPyEndAllowThreads(__tstate);
31514 if (PyErr_Occurred()) SWIG_fail;
31515 }
31516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31517 return resultobj;
31518fail:
31519 return NULL;
0085ce49
RD
31520}
31521
31522
50efceee
RD
31523SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31524 PyObject *resultobj = 0;
31525 wxStockGDI::Item arg1 ;
31526 wxPen *result = 0 ;
31527 int val1 ;
31528 int ecode1 = 0 ;
31529 PyObject * obj0 = 0 ;
31530 char * kwnames[] = {
31531 (char *) "item", NULL
31532 };
31533
31534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31535 ecode1 = SWIG_AsVal_int(obj0, &val1);
31536 if (!SWIG_IsOK(ecode1)) {
31537 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31538 }
31539 arg1 = static_cast< wxStockGDI::Item >(val1);
31540 {
31541 PyThreadState* __tstate = wxPyBeginAllowThreads();
31542 result = (wxPen *)wxStockGDI::GetPen(arg1);
31543 wxPyEndAllowThreads(__tstate);
31544 if (PyErr_Occurred()) SWIG_fail;
31545 }
31546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31547 return resultobj;
31548fail:
31549 return NULL;
0085ce49
RD
31550}
31551
31552
50efceee
RD
31553SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31554 PyObject *resultobj = 0;
31555 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31556 wxStockGDI::Item arg2 ;
31557 wxFont *result = 0 ;
31558 void *argp1 = 0 ;
31559 int res1 = 0 ;
31560 int val2 ;
31561 int ecode2 = 0 ;
31562 PyObject * obj0 = 0 ;
31563 PyObject * obj1 = 0 ;
31564 char * kwnames[] = {
31565 (char *) "self",(char *) "item", NULL
31566 };
0085ce49 31567
50efceee
RD
31568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31570 if (!SWIG_IsOK(res1)) {
31571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31572 }
31573 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31574 ecode2 = SWIG_AsVal_int(obj1, &val2);
31575 if (!SWIG_IsOK(ecode2)) {
31576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31577 }
31578 arg2 = static_cast< wxStockGDI::Item >(val2);
31579 {
31580 PyThreadState* __tstate = wxPyBeginAllowThreads();
31581 result = (wxFont *)(arg1)->GetFont(arg2);
31582 wxPyEndAllowThreads(__tstate);
31583 if (PyErr_Occurred()) SWIG_fail;
31584 }
31585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31586 return resultobj;
31587fail:
31588 return NULL;
0085ce49
RD
31589}
31590
31591
50efceee
RD
31592SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31593 PyObject *obj;
31594 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31595 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31596 return SWIG_Py_Void();
0085ce49
RD
31597}
31598
50efceee
RD
31599SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31600 return SWIG_Python_InitShadowInstance(args);
0085ce49
RD
31601}
31602
0085ce49
RD
31603SWIGINTERN int NullBitmap_set(PyObject *) {
31604 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31605 return 1;
31606}
31607
31608
31609SWIGINTERN PyObject *NullBitmap_get(void) {
31610 PyObject *pyobj = 0;
31611
31612 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31613 return pyobj;
31614}
31615
31616
31617SWIGINTERN int NullIcon_set(PyObject *) {
31618 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31619 return 1;
31620}
31621
31622
31623SWIGINTERN PyObject *NullIcon_get(void) {
31624 PyObject *pyobj = 0;
31625
31626 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31627 return pyobj;
31628}
31629
31630
31631SWIGINTERN int NullCursor_set(PyObject *) {
31632 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31633 return 1;
31634}
31635
31636
31637SWIGINTERN PyObject *NullCursor_get(void) {
31638 PyObject *pyobj = 0;
31639
31640 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31641 return pyobj;
31642}
31643
31644
31645SWIGINTERN int NullPen_set(PyObject *) {
31646 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31647 return 1;
31648}
31649
31650
31651SWIGINTERN PyObject *NullPen_get(void) {
31652 PyObject *pyobj = 0;
31653
31654 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31655 return pyobj;
31656}
31657
31658
31659SWIGINTERN int NullBrush_set(PyObject *) {
31660 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31661 return 1;
31662}
31663
31664
31665SWIGINTERN PyObject *NullBrush_get(void) {
31666 PyObject *pyobj = 0;
31667
31668 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31669 return pyobj;
31670}
31671
31672
31673SWIGINTERN int NullPalette_set(PyObject *) {
31674 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31675 return 1;
31676}
31677
31678
31679SWIGINTERN PyObject *NullPalette_get(void) {
31680 PyObject *pyobj = 0;
31681
31682 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31683 return pyobj;
31684}
31685
31686
31687SWIGINTERN int NullFont_set(PyObject *) {
31688 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31689 return 1;
31690}
31691
31692
31693SWIGINTERN PyObject *NullFont_get(void) {
31694 PyObject *pyobj = 0;
31695
31696 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31697 return pyobj;
31698}
31699
31700
31701SWIGINTERN int NullColour_set(PyObject *) {
31702 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31703 return 1;
31704}
31705
31706
31707SWIGINTERN PyObject *NullColour_get(void) {
31708 PyObject *pyobj = 0;
31709
31710 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31711 return pyobj;
31712}
31713
31714
50efceee 31715SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 31716 PyObject *resultobj = 0;
50efceee
RD
31717 wxGDIObjListBase *result = 0 ;
31718
31719 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31720 {
31721 PyThreadState* __tstate = wxPyBeginAllowThreads();
31722 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31723 wxPyEndAllowThreads(__tstate);
31724 if (PyErr_Occurred()) SWIG_fail;
31725 }
31726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31727 return resultobj;
31728fail:
31729 return NULL;
31730}
31731
31732
31733SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31734 PyObject *resultobj = 0;
31735 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
0085ce49
RD
31736 void *argp1 = 0 ;
31737 int res1 = 0 ;
50efceee 31738 PyObject *swig_obj[1] ;
0085ce49 31739
50efceee
RD
31740 if (!args) SWIG_fail;
31741 swig_obj[0] = args;
31742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
0085ce49 31743 if (!SWIG_IsOK(res1)) {
50efceee 31744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
0085ce49 31745 }
50efceee 31746 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
0085ce49
RD
31747 {
31748 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
31749 delete arg1;
31750
0085ce49
RD
31751 wxPyEndAllowThreads(__tstate);
31752 if (PyErr_Occurred()) SWIG_fail;
31753 }
31754 resultobj = SWIG_Py_Void();
31755 return resultobj;
31756fail:
31757 return NULL;
31758}
31759
31760
50efceee
RD
31761SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31762 PyObject *obj;
31763 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31764 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31765 return SWIG_Py_Void();
31766}
31767
31768SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31769 return SWIG_Python_InitShadowInstance(args);
31770}
31771
0085ce49
RD
31772SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31773 PyObject *resultobj = 0;
31774 wxPenList *arg1 = (wxPenList *) 0 ;
31775 wxColour *arg2 = 0 ;
31776 int arg3 ;
31777 int arg4 ;
31778 wxPen *result = 0 ;
31779 void *argp1 = 0 ;
31780 int res1 = 0 ;
31781 wxColour temp2 ;
31782 int val3 ;
31783 int ecode3 = 0 ;
31784 int val4 ;
31785 int ecode4 = 0 ;
31786 PyObject * obj0 = 0 ;
31787 PyObject * obj1 = 0 ;
31788 PyObject * obj2 = 0 ;
31789 PyObject * obj3 = 0 ;
31790 char * kwnames[] = {
31791 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31792 };
31793
31794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31796 if (!SWIG_IsOK(res1)) {
31797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31798 }
31799 arg1 = reinterpret_cast< wxPenList * >(argp1);
31800 {
31801 arg2 = &temp2;
31802 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31803 }
31804 ecode3 = SWIG_AsVal_int(obj2, &val3);
31805 if (!SWIG_IsOK(ecode3)) {
31806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31807 }
31808 arg3 = static_cast< int >(val3);
31809 ecode4 = SWIG_AsVal_int(obj3, &val4);
31810 if (!SWIG_IsOK(ecode4)) {
31811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31812 }
31813 arg4 = static_cast< int >(val4);
31814 {
31815 PyThreadState* __tstate = wxPyBeginAllowThreads();
31816 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31817 wxPyEndAllowThreads(__tstate);
31818 if (PyErr_Occurred()) SWIG_fail;
31819 }
31820 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31821 return resultobj;
31822fail:
31823 return NULL;
31824}
31825
31826
50efceee 31827SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
31828 PyObject *resultobj = 0;
31829 wxPenList *arg1 = (wxPenList *) 0 ;
31830 wxPen *arg2 = (wxPen *) 0 ;
31831 void *argp1 = 0 ;
31832 int res1 = 0 ;
31833 void *argp2 = 0 ;
31834 int res2 = 0 ;
31835 PyObject * obj0 = 0 ;
31836 PyObject * obj1 = 0 ;
31837 char * kwnames[] = {
31838 (char *) "self",(char *) "pen", NULL
31839 };
31840
50efceee 31841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
0085ce49
RD
31842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31843 if (!SWIG_IsOK(res1)) {
50efceee 31844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
31845 }
31846 arg1 = reinterpret_cast< wxPenList * >(argp1);
31847 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31848 if (!SWIG_IsOK(res2)) {
50efceee 31849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
0085ce49
RD
31850 }
31851 arg2 = reinterpret_cast< wxPen * >(argp2);
31852 {
31853 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 31854 (arg1)->AddPen(arg2);
0085ce49
RD
31855 wxPyEndAllowThreads(__tstate);
31856 if (PyErr_Occurred()) SWIG_fail;
31857 }
31858 resultobj = SWIG_Py_Void();
31859 return resultobj;
31860fail:
31861 return NULL;
31862}
31863
31864
50efceee 31865SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
31866 PyObject *resultobj = 0;
31867 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 31868 wxPen *arg2 = (wxPen *) 0 ;
0085ce49
RD
31869 void *argp1 = 0 ;
31870 int res1 = 0 ;
50efceee
RD
31871 void *argp2 = 0 ;
31872 int res2 = 0 ;
31873 PyObject * obj0 = 0 ;
31874 PyObject * obj1 = 0 ;
31875 char * kwnames[] = {
31876 (char *) "self",(char *) "pen", NULL
31877 };
0085ce49 31878
50efceee
RD
31879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
31880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49 31881 if (!SWIG_IsOK(res1)) {
50efceee 31882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
31883 }
31884 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
31885 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31886 if (!SWIG_IsOK(res2)) {
31887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
31888 }
31889 arg2 = reinterpret_cast< wxPen * >(argp2);
0085ce49
RD
31890 {
31891 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 31892 (arg1)->RemovePen(arg2);
0085ce49
RD
31893 wxPyEndAllowThreads(__tstate);
31894 if (PyErr_Occurred()) SWIG_fail;
31895 }
50efceee 31896 resultobj = SWIG_Py_Void();
0085ce49
RD
31897 return resultobj;
31898fail:
31899 return NULL;
31900}
31901
31902
31903SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31904 PyObject *obj;
31905 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31906 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
31907 return SWIG_Py_Void();
31908}
31909
50efceee
RD
31910SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31911 PyObject *resultobj = 0;
31912 wxBrushList *arg1 = (wxBrushList *) 0 ;
31913 wxColour *arg2 = 0 ;
31914 int arg3 = (int) wxSOLID ;
31915 wxBrush *result = 0 ;
31916 void *argp1 = 0 ;
31917 int res1 = 0 ;
31918 wxColour temp2 ;
31919 int val3 ;
31920 int ecode3 = 0 ;
31921 PyObject * obj0 = 0 ;
31922 PyObject * obj1 = 0 ;
31923 PyObject * obj2 = 0 ;
31924 char * kwnames[] = {
31925 (char *) "self",(char *) "colour",(char *) "style", NULL
31926 };
31927
31928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31930 if (!SWIG_IsOK(res1)) {
31931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31932 }
31933 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31934 {
31935 arg2 = &temp2;
31936 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31937 }
31938 if (obj2) {
31939 ecode3 = SWIG_AsVal_int(obj2, &val3);
31940 if (!SWIG_IsOK(ecode3)) {
31941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
31942 }
31943 arg3 = static_cast< int >(val3);
31944 }
31945 {
31946 PyThreadState* __tstate = wxPyBeginAllowThreads();
31947 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
31948 wxPyEndAllowThreads(__tstate);
31949 if (PyErr_Occurred()) SWIG_fail;
31950 }
31951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31952 return resultobj;
31953fail:
31954 return NULL;
31955}
31956
31957
0085ce49
RD
31958SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31959 PyObject *resultobj = 0;
31960 wxBrushList *arg1 = (wxBrushList *) 0 ;
31961 wxBrush *arg2 = (wxBrush *) 0 ;
31962 void *argp1 = 0 ;
31963 int res1 = 0 ;
31964 void *argp2 = 0 ;
31965 int res2 = 0 ;
31966 PyObject * obj0 = 0 ;
31967 PyObject * obj1 = 0 ;
31968 char * kwnames[] = {
31969 (char *) "self",(char *) "brush", NULL
31970 };
31971
31972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31974 if (!SWIG_IsOK(res1)) {
31975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31976 }
31977 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
31979 if (!SWIG_IsOK(res2)) {
31980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
31981 }
31982 arg2 = reinterpret_cast< wxBrush * >(argp2);
31983 {
31984 PyThreadState* __tstate = wxPyBeginAllowThreads();
31985 (arg1)->AddBrush(arg2);
31986 wxPyEndAllowThreads(__tstate);
31987 if (PyErr_Occurred()) SWIG_fail;
31988 }
31989 resultobj = SWIG_Py_Void();
31990 return resultobj;
31991fail:
31992 return NULL;
31993}
31994
31995
50efceee 31996SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
31997 PyObject *resultobj = 0;
31998 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 31999 wxBrush *arg2 = (wxBrush *) 0 ;
0085ce49
RD
32000 void *argp1 = 0 ;
32001 int res1 = 0 ;
50efceee
RD
32002 void *argp2 = 0 ;
32003 int res2 = 0 ;
32004 PyObject * obj0 = 0 ;
32005 PyObject * obj1 = 0 ;
32006 char * kwnames[] = {
32007 (char *) "self",(char *) "brush", NULL
32008 };
32009
32010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32012 if (!SWIG_IsOK(res1)) {
32013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32014 }
32015 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32016 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32017 if (!SWIG_IsOK(res2)) {
32018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32019 }
32020 arg2 = reinterpret_cast< wxBrush * >(argp2);
32021 {
32022 PyThreadState* __tstate = wxPyBeginAllowThreads();
32023 (arg1)->RemoveBrush(arg2);
32024 wxPyEndAllowThreads(__tstate);
32025 if (PyErr_Occurred()) SWIG_fail;
32026 }
32027 resultobj = SWIG_Py_Void();
32028 return resultobj;
32029fail:
32030 return NULL;
32031}
32032
32033
32034SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32035 PyObject *obj;
32036 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32037 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32038 return SWIG_Py_Void();
32039}
32040
32041SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32042 PyObject *resultobj = 0;
32043 wxFontList *arg1 = (wxFontList *) 0 ;
32044 int arg2 ;
32045 int arg3 ;
32046 int arg4 ;
32047 int arg5 ;
32048 bool arg6 = (bool) false ;
32049 wxString const &arg7_defvalue = wxPyEmptyString ;
32050 wxString *arg7 = (wxString *) &arg7_defvalue ;
32051 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32052 wxFont *result = 0 ;
32053 void *argp1 = 0 ;
32054 int res1 = 0 ;
32055 int val2 ;
32056 int ecode2 = 0 ;
0085ce49
RD
32057 int val3 ;
32058 int ecode3 = 0 ;
50efceee
RD
32059 int val4 ;
32060 int ecode4 = 0 ;
32061 int val5 ;
32062 int ecode5 = 0 ;
32063 bool val6 ;
32064 int ecode6 = 0 ;
32065 bool temp7 = false ;
32066 int val8 ;
32067 int ecode8 = 0 ;
0085ce49
RD
32068 PyObject * obj0 = 0 ;
32069 PyObject * obj1 = 0 ;
32070 PyObject * obj2 = 0 ;
50efceee
RD
32071 PyObject * obj3 = 0 ;
32072 PyObject * obj4 = 0 ;
32073 PyObject * obj5 = 0 ;
32074 PyObject * obj6 = 0 ;
32075 PyObject * obj7 = 0 ;
0085ce49 32076 char * kwnames[] = {
50efceee 32077 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
0085ce49
RD
32078 };
32079
50efceee
RD
32080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32082 if (!SWIG_IsOK(res1)) {
50efceee 32083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32084 }
50efceee
RD
32085 arg1 = reinterpret_cast< wxFontList * >(argp1);
32086 ecode2 = SWIG_AsVal_int(obj1, &val2);
32087 if (!SWIG_IsOK(ecode2)) {
32088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32089 }
32090 arg2 = static_cast< int >(val2);
32091 ecode3 = SWIG_AsVal_int(obj2, &val3);
32092 if (!SWIG_IsOK(ecode3)) {
32093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32094 }
32095 arg3 = static_cast< int >(val3);
32096 ecode4 = SWIG_AsVal_int(obj3, &val4);
32097 if (!SWIG_IsOK(ecode4)) {
32098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32099 }
32100 arg4 = static_cast< int >(val4);
32101 ecode5 = SWIG_AsVal_int(obj4, &val5);
32102 if (!SWIG_IsOK(ecode5)) {
32103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32104 }
32105 arg5 = static_cast< int >(val5);
32106 if (obj5) {
32107 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32108 if (!SWIG_IsOK(ecode6)) {
32109 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32110 }
32111 arg6 = static_cast< bool >(val6);
0085ce49 32112 }
50efceee
RD
32113 if (obj6) {
32114 {
32115 arg7 = wxString_in_helper(obj6);
32116 if (arg7 == NULL) SWIG_fail;
32117 temp7 = true;
32118 }
32119 }
32120 if (obj7) {
32121 ecode8 = SWIG_AsVal_int(obj7, &val8);
32122 if (!SWIG_IsOK(ecode8)) {
32123 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
0085ce49 32124 }
50efceee 32125 arg8 = static_cast< wxFontEncoding >(val8);
0085ce49
RD
32126 }
32127 {
32128 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32129 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
0085ce49
RD
32130 wxPyEndAllowThreads(__tstate);
32131 if (PyErr_Occurred()) SWIG_fail;
32132 }
50efceee
RD
32133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32134 {
32135 if (temp7)
32136 delete arg7;
32137 }
0085ce49
RD
32138 return resultobj;
32139fail:
50efceee
RD
32140 {
32141 if (temp7)
32142 delete arg7;
32143 }
0085ce49
RD
32144 return NULL;
32145}
32146
32147
50efceee 32148SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 32149 PyObject *resultobj = 0;
50efceee
RD
32150 wxFontList *arg1 = (wxFontList *) 0 ;
32151 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
32152 void *argp1 = 0 ;
32153 int res1 = 0 ;
32154 void *argp2 = 0 ;
32155 int res2 = 0 ;
32156 PyObject * obj0 = 0 ;
32157 PyObject * obj1 = 0 ;
32158 char * kwnames[] = {
50efceee 32159 (char *) "self",(char *) "font", NULL
0085ce49
RD
32160 };
32161
50efceee
RD
32162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32164 if (!SWIG_IsOK(res1)) {
50efceee 32165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32166 }
50efceee
RD
32167 arg1 = reinterpret_cast< wxFontList * >(argp1);
32168 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
0085ce49 32169 if (!SWIG_IsOK(res2)) {
50efceee 32170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
0085ce49 32171 }
50efceee 32172 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
32173 {
32174 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32175 (arg1)->AddFont(arg2);
0085ce49
RD
32176 wxPyEndAllowThreads(__tstate);
32177 if (PyErr_Occurred()) SWIG_fail;
32178 }
32179 resultobj = SWIG_Py_Void();
32180 return resultobj;
32181fail:
32182 return NULL;
32183}
32184
32185
50efceee 32186SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 32187 PyObject *resultobj = 0;
50efceee
RD
32188 wxFontList *arg1 = (wxFontList *) 0 ;
32189 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
32190 void *argp1 = 0 ;
32191 int res1 = 0 ;
50efceee
RD
32192 void *argp2 = 0 ;
32193 int res2 = 0 ;
32194 PyObject * obj0 = 0 ;
32195 PyObject * obj1 = 0 ;
32196 char * kwnames[] = {
32197 (char *) "self",(char *) "font", NULL
32198 };
0085ce49 32199
50efceee
RD
32200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32202 if (!SWIG_IsOK(res1)) {
50efceee 32203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32204 }
50efceee
RD
32205 arg1 = reinterpret_cast< wxFontList * >(argp1);
32206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32207 if (!SWIG_IsOK(res2)) {
32208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32209 }
32210 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
32211 {
32212 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32213 (arg1)->RemoveFont(arg2);
0085ce49
RD
32214 wxPyEndAllowThreads(__tstate);
32215 if (PyErr_Occurred()) SWIG_fail;
32216 }
50efceee 32217 resultobj = SWIG_Py_Void();
0085ce49
RD
32218 return resultobj;
32219fail:
32220 return NULL;
32221}
32222
32223
50efceee 32224SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
32225 PyObject *obj;
32226 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 32227 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
0085ce49
RD
32228 return SWIG_Py_Void();
32229}
32230
32231SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32232 PyObject *resultobj = 0;
32233 wxColourDatabase *result = 0 ;
32234
32235 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32236 {
32237 if (!wxPyCheckForApp()) SWIG_fail;
32238 PyThreadState* __tstate = wxPyBeginAllowThreads();
32239 result = (wxColourDatabase *)new wxColourDatabase();
32240 wxPyEndAllowThreads(__tstate);
32241 if (PyErr_Occurred()) SWIG_fail;
32242 }
32243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32244 return resultobj;
32245fail:
32246 return NULL;
32247}
32248
32249
32250SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32251 PyObject *resultobj = 0;
32252 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32253 void *argp1 = 0 ;
32254 int res1 = 0 ;
32255 PyObject *swig_obj[1] ;
32256
32257 if (!args) SWIG_fail;
32258 swig_obj[0] = args;
32259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32260 if (!SWIG_IsOK(res1)) {
32261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32262 }
32263 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32264 {
32265 PyThreadState* __tstate = wxPyBeginAllowThreads();
32266 delete arg1;
32267
32268 wxPyEndAllowThreads(__tstate);
32269 if (PyErr_Occurred()) SWIG_fail;
32270 }
32271 resultobj = SWIG_Py_Void();
32272 return resultobj;
32273fail:
32274 return NULL;
32275}
32276
32277
32278SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32279 PyObject *resultobj = 0;
32280 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32281 wxString *arg2 = 0 ;
32282 wxColour result;
32283 void *argp1 = 0 ;
32284 int res1 = 0 ;
32285 bool temp2 = false ;
32286 PyObject * obj0 = 0 ;
32287 PyObject * obj1 = 0 ;
32288 char * kwnames[] = {
32289 (char *) "self",(char *) "name", NULL
32290 };
32291
32292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32294 if (!SWIG_IsOK(res1)) {
32295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32296 }
32297 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32298 {
32299 arg2 = wxString_in_helper(obj1);
32300 if (arg2 == NULL) SWIG_fail;
32301 temp2 = true;
32302 }
32303 {
32304 PyThreadState* __tstate = wxPyBeginAllowThreads();
32305 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32306 wxPyEndAllowThreads(__tstate);
32307 if (PyErr_Occurred()) SWIG_fail;
32308 }
32309 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32310 {
32311 if (temp2)
32312 delete arg2;
32313 }
32314 return resultobj;
32315fail:
32316 {
32317 if (temp2)
32318 delete arg2;
32319 }
32320 return NULL;
32321}
32322
32323
32324SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32325 PyObject *resultobj = 0;
32326 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32327 wxColour *arg2 = 0 ;
32328 wxString result;
32329 void *argp1 = 0 ;
32330 int res1 = 0 ;
32331 wxColour temp2 ;
32332 PyObject * obj0 = 0 ;
32333 PyObject * obj1 = 0 ;
32334 char * kwnames[] = {
32335 (char *) "self",(char *) "colour", NULL
32336 };
32337
32338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32340 if (!SWIG_IsOK(res1)) {
32341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32342 }
32343 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32344 {
32345 arg2 = &temp2;
32346 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32347 }
32348 {
32349 PyThreadState* __tstate = wxPyBeginAllowThreads();
32350 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32351 wxPyEndAllowThreads(__tstate);
32352 if (PyErr_Occurred()) SWIG_fail;
32353 }
32354 {
32355#if wxUSE_UNICODE
32356 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32357#else
32358 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32359#endif
32360 }
32361 return resultobj;
32362fail:
32363 return NULL;
32364}
32365
32366
32367SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32368 PyObject *resultobj = 0;
32369 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32370 wxString *arg2 = 0 ;
32371 wxColour *arg3 = 0 ;
32372 void *argp1 = 0 ;
32373 int res1 = 0 ;
32374 bool temp2 = false ;
32375 wxColour temp3 ;
32376 PyObject * obj0 = 0 ;
32377 PyObject * obj1 = 0 ;
32378 PyObject * obj2 = 0 ;
32379 char * kwnames[] = {
32380 (char *) "self",(char *) "name",(char *) "colour", NULL
32381 };
32382
32383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32385 if (!SWIG_IsOK(res1)) {
32386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32387 }
32388 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32389 {
32390 arg2 = wxString_in_helper(obj1);
32391 if (arg2 == NULL) SWIG_fail;
32392 temp2 = true;
32393 }
32394 {
32395 arg3 = &temp3;
32396 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32397 }
32398 {
32399 PyThreadState* __tstate = wxPyBeginAllowThreads();
32400 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32401 wxPyEndAllowThreads(__tstate);
32402 if (PyErr_Occurred()) SWIG_fail;
32403 }
32404 resultobj = SWIG_Py_Void();
32405 {
32406 if (temp2)
32407 delete arg2;
32408 }
32409 return resultobj;
32410fail:
32411 {
32412 if (temp2)
32413 delete arg2;
32414 }
32415 return NULL;
32416}
32417
32418
32419SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32420 PyObject *resultobj = 0;
32421 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32422 wxString *arg2 = 0 ;
32423 int arg3 ;
32424 int arg4 ;
32425 int arg5 ;
32426 void *argp1 = 0 ;
32427 int res1 = 0 ;
32428 bool temp2 = false ;
32429 int val3 ;
32430 int ecode3 = 0 ;
32431 int val4 ;
32432 int ecode4 = 0 ;
50efceee
RD
32433 int val5 ;
32434 int ecode5 = 0 ;
0085ce49
RD
32435 PyObject * obj0 = 0 ;
32436 PyObject * obj1 = 0 ;
32437 PyObject * obj2 = 0 ;
32438 PyObject * obj3 = 0 ;
32439 PyObject * obj4 = 0 ;
0085ce49 32440 char * kwnames[] = {
50efceee 32441 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
0085ce49
RD
32442 };
32443
50efceee
RD
32444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
0085ce49 32446 if (!SWIG_IsOK(res1)) {
50efceee
RD
32447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32448 }
32449 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32450 {
32451 arg2 = wxString_in_helper(obj1);
32452 if (arg2 == NULL) SWIG_fail;
32453 temp2 = true;
0085ce49 32454 }
0085ce49
RD
32455 ecode3 = SWIG_AsVal_int(obj2, &val3);
32456 if (!SWIG_IsOK(ecode3)) {
50efceee 32457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
0085ce49
RD
32458 }
32459 arg3 = static_cast< int >(val3);
32460 ecode4 = SWIG_AsVal_int(obj3, &val4);
32461 if (!SWIG_IsOK(ecode4)) {
50efceee 32462 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
0085ce49
RD
32463 }
32464 arg4 = static_cast< int >(val4);
32465 ecode5 = SWIG_AsVal_int(obj4, &val5);
32466 if (!SWIG_IsOK(ecode5)) {
50efceee 32467 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
0085ce49
RD
32468 }
32469 arg5 = static_cast< int >(val5);
0085ce49
RD
32470 {
32471 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32472 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
0085ce49
RD
32473 wxPyEndAllowThreads(__tstate);
32474 if (PyErr_Occurred()) SWIG_fail;
32475 }
50efceee 32476 resultobj = SWIG_Py_Void();
0085ce49 32477 {
50efceee
RD
32478 if (temp2)
32479 delete arg2;
0085ce49
RD
32480 }
32481 return resultobj;
32482fail:
32483 {
50efceee
RD
32484 if (temp2)
32485 delete arg2;
0085ce49
RD
32486 }
32487 return NULL;
32488}
32489
32490
50efceee
RD
32491SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32492 PyObject *obj;
32493 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32494 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32495 return SWIG_Py_Void();
32496}
32497
32498SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32499 return SWIG_Python_InitShadowInstance(args);
32500}
32501
32502SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 32503 PyObject *resultobj = 0;
50efceee 32504 wxFontList *result = 0 ;
0085ce49 32505
50efceee 32506 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
0085ce49
RD
32507 {
32508 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32509 result = (wxFontList *)_wxPyInitTheFontList();
0085ce49
RD
32510 wxPyEndAllowThreads(__tstate);
32511 if (PyErr_Occurred()) SWIG_fail;
32512 }
50efceee 32513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49
RD
32514 return resultobj;
32515fail:
32516 return NULL;
32517}
32518
32519
50efceee 32520SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 32521 PyObject *resultobj = 0;
50efceee 32522 wxPenList *result = 0 ;
0085ce49 32523
50efceee 32524 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
0085ce49
RD
32525 {
32526 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32527 result = (wxPenList *)_wxPyInitThePenList();
0085ce49
RD
32528 wxPyEndAllowThreads(__tstate);
32529 if (PyErr_Occurred()) SWIG_fail;
32530 }
50efceee 32531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49
RD
32532 return resultobj;
32533fail:
32534 return NULL;
32535}
32536
32537
50efceee
RD
32538SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32539 PyObject *resultobj = 0;
32540 wxBrushList *result = 0 ;
0085ce49 32541
50efceee
RD
32542 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32543 {
32544 PyThreadState* __tstate = wxPyBeginAllowThreads();
32545 result = (wxBrushList *)_wxPyInitTheBrushList();
32546 wxPyEndAllowThreads(__tstate);
32547 if (PyErr_Occurred()) SWIG_fail;
32548 }
32549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32550 return resultobj;
32551fail:
32552 return NULL;
0085ce49
RD
32553}
32554
32555
50efceee
RD
32556SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32557 PyObject *resultobj = 0;
32558 wxColourDatabase *result = 0 ;
0085ce49 32559
50efceee
RD
32560 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32561 {
32562 PyThreadState* __tstate = wxPyBeginAllowThreads();
32563 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32564 wxPyEndAllowThreads(__tstate);
32565 if (PyErr_Occurred()) SWIG_fail;
32566 }
32567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32568 return resultobj;
32569fail:
32570 return NULL;
0085ce49
RD
32571}
32572
32573
32574SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32575 PyObject *resultobj = 0;
32576 wxEffects *result = 0 ;
32577
32578 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32579 {
32580 PyThreadState* __tstate = wxPyBeginAllowThreads();
32581 result = (wxEffects *)new wxEffects();
32582 wxPyEndAllowThreads(__tstate);
32583 if (PyErr_Occurred()) SWIG_fail;
32584 }
32585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32586 return resultobj;
32587fail:
32588 return NULL;
32589}
32590
32591
32592SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32593 PyObject *resultobj = 0;
32594 wxEffects *arg1 = (wxEffects *) 0 ;
32595 wxColour result;
32596 void *argp1 = 0 ;
32597 int res1 = 0 ;
32598 PyObject *swig_obj[1] ;
32599
32600 if (!args) SWIG_fail;
32601 swig_obj[0] = args;
32602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32603 if (!SWIG_IsOK(res1)) {
32604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32605 }
32606 arg1 = reinterpret_cast< wxEffects * >(argp1);
32607 {
32608 PyThreadState* __tstate = wxPyBeginAllowThreads();
32609 result = ((wxEffects const *)arg1)->GetHighlightColour();
32610 wxPyEndAllowThreads(__tstate);
32611 if (PyErr_Occurred()) SWIG_fail;
32612 }
32613 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32614 return resultobj;
32615fail:
32616 return NULL;
32617}
32618
32619
32620SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32621 PyObject *resultobj = 0;
32622 wxEffects *arg1 = (wxEffects *) 0 ;
32623 wxColour result;
32624 void *argp1 = 0 ;
32625 int res1 = 0 ;
32626 PyObject *swig_obj[1] ;
32627
32628 if (!args) SWIG_fail;
32629 swig_obj[0] = args;
32630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32631 if (!SWIG_IsOK(res1)) {
32632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32633 }
32634 arg1 = reinterpret_cast< wxEffects * >(argp1);
32635 {
32636 PyThreadState* __tstate = wxPyBeginAllowThreads();
32637 result = ((wxEffects const *)arg1)->GetLightShadow();
32638 wxPyEndAllowThreads(__tstate);
32639 if (PyErr_Occurred()) SWIG_fail;
32640 }
32641 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32642 return resultobj;
32643fail:
32644 return NULL;
32645}
32646
32647
32648SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32649 PyObject *resultobj = 0;
32650 wxEffects *arg1 = (wxEffects *) 0 ;
32651 wxColour result;
32652 void *argp1 = 0 ;
32653 int res1 = 0 ;
32654 PyObject *swig_obj[1] ;
32655
32656 if (!args) SWIG_fail;
32657 swig_obj[0] = args;
32658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32659 if (!SWIG_IsOK(res1)) {
32660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32661 }
32662 arg1 = reinterpret_cast< wxEffects * >(argp1);
32663 {
32664 PyThreadState* __tstate = wxPyBeginAllowThreads();
32665 result = ((wxEffects const *)arg1)->GetFaceColour();
32666 wxPyEndAllowThreads(__tstate);
32667 if (PyErr_Occurred()) SWIG_fail;
32668 }
32669 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32670 return resultobj;
32671fail:
32672 return NULL;
32673}
32674
32675
32676SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32677 PyObject *resultobj = 0;
32678 wxEffects *arg1 = (wxEffects *) 0 ;
32679 wxColour result;
32680 void *argp1 = 0 ;
32681 int res1 = 0 ;
32682 PyObject *swig_obj[1] ;
32683
32684 if (!args) SWIG_fail;
32685 swig_obj[0] = args;
32686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32687 if (!SWIG_IsOK(res1)) {
32688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32689 }
32690 arg1 = reinterpret_cast< wxEffects * >(argp1);
32691 {
32692 PyThreadState* __tstate = wxPyBeginAllowThreads();
32693 result = ((wxEffects const *)arg1)->GetMediumShadow();
32694 wxPyEndAllowThreads(__tstate);
32695 if (PyErr_Occurred()) SWIG_fail;
32696 }
32697 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32698 return resultobj;
32699fail:
32700 return NULL;
32701}
32702
32703
32704SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32705 PyObject *resultobj = 0;
32706 wxEffects *arg1 = (wxEffects *) 0 ;
32707 wxColour result;
32708 void *argp1 = 0 ;
32709 int res1 = 0 ;
32710 PyObject *swig_obj[1] ;
32711
32712 if (!args) SWIG_fail;
32713 swig_obj[0] = args;
32714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32715 if (!SWIG_IsOK(res1)) {
32716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32717 }
32718 arg1 = reinterpret_cast< wxEffects * >(argp1);
32719 {
32720 PyThreadState* __tstate = wxPyBeginAllowThreads();
32721 result = ((wxEffects const *)arg1)->GetDarkShadow();
32722 wxPyEndAllowThreads(__tstate);
32723 if (PyErr_Occurred()) SWIG_fail;
32724 }
32725 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32726 return resultobj;
32727fail:
32728 return NULL;
32729}
32730
32731
32732SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32733 PyObject *resultobj = 0;
32734 wxEffects *arg1 = (wxEffects *) 0 ;
32735 wxColour *arg2 = 0 ;
32736 void *argp1 = 0 ;
32737 int res1 = 0 ;
32738 wxColour temp2 ;
32739 PyObject * obj0 = 0 ;
32740 PyObject * obj1 = 0 ;
32741 char * kwnames[] = {
32742 (char *) "self",(char *) "c", NULL
32743 };
32744
32745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32747 if (!SWIG_IsOK(res1)) {
32748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32749 }
32750 arg1 = reinterpret_cast< wxEffects * >(argp1);
32751 {
32752 arg2 = &temp2;
32753 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32754 }
32755 {
32756 PyThreadState* __tstate = wxPyBeginAllowThreads();
32757 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32758 wxPyEndAllowThreads(__tstate);
32759 if (PyErr_Occurred()) SWIG_fail;
32760 }
32761 resultobj = SWIG_Py_Void();
32762 return resultobj;
32763fail:
32764 return NULL;
32765}
32766
32767
32768SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32769 PyObject *resultobj = 0;
32770 wxEffects *arg1 = (wxEffects *) 0 ;
32771 wxColour *arg2 = 0 ;
32772 void *argp1 = 0 ;
32773 int res1 = 0 ;
32774 wxColour temp2 ;
32775 PyObject * obj0 = 0 ;
32776 PyObject * obj1 = 0 ;
32777 char * kwnames[] = {
32778 (char *) "self",(char *) "c", NULL
32779 };
32780
32781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32783 if (!SWIG_IsOK(res1)) {
32784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32785 }
32786 arg1 = reinterpret_cast< wxEffects * >(argp1);
32787 {
32788 arg2 = &temp2;
32789 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32790 }
32791 {
32792 PyThreadState* __tstate = wxPyBeginAllowThreads();
32793 (arg1)->SetLightShadow((wxColour const &)*arg2);
32794 wxPyEndAllowThreads(__tstate);
32795 if (PyErr_Occurred()) SWIG_fail;
32796 }
32797 resultobj = SWIG_Py_Void();
32798 return resultobj;
32799fail:
32800 return NULL;
32801}
32802
32803
32804SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32805 PyObject *resultobj = 0;
32806 wxEffects *arg1 = (wxEffects *) 0 ;
32807 wxColour *arg2 = 0 ;
32808 void *argp1 = 0 ;
32809 int res1 = 0 ;
32810 wxColour temp2 ;
32811 PyObject * obj0 = 0 ;
32812 PyObject * obj1 = 0 ;
32813 char * kwnames[] = {
32814 (char *) "self",(char *) "c", NULL
32815 };
32816
32817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32819 if (!SWIG_IsOK(res1)) {
32820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32821 }
32822 arg1 = reinterpret_cast< wxEffects * >(argp1);
32823 {
32824 arg2 = &temp2;
32825 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32826 }
32827 {
32828 PyThreadState* __tstate = wxPyBeginAllowThreads();
32829 (arg1)->SetFaceColour((wxColour const &)*arg2);
32830 wxPyEndAllowThreads(__tstate);
32831 if (PyErr_Occurred()) SWIG_fail;
32832 }
32833 resultobj = SWIG_Py_Void();
32834 return resultobj;
32835fail:
32836 return NULL;
32837}
32838
32839
32840SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32841 PyObject *resultobj = 0;
32842 wxEffects *arg1 = (wxEffects *) 0 ;
32843 wxColour *arg2 = 0 ;
32844 void *argp1 = 0 ;
32845 int res1 = 0 ;
32846 wxColour temp2 ;
32847 PyObject * obj0 = 0 ;
32848 PyObject * obj1 = 0 ;
32849 char * kwnames[] = {
32850 (char *) "self",(char *) "c", NULL
32851 };
32852
32853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32855 if (!SWIG_IsOK(res1)) {
32856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32857 }
32858 arg1 = reinterpret_cast< wxEffects * >(argp1);
32859 {
32860 arg2 = &temp2;
32861 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32862 }
32863 {
32864 PyThreadState* __tstate = wxPyBeginAllowThreads();
32865 (arg1)->SetMediumShadow((wxColour const &)*arg2);
32866 wxPyEndAllowThreads(__tstate);
32867 if (PyErr_Occurred()) SWIG_fail;
32868 }
32869 resultobj = SWIG_Py_Void();
32870 return resultobj;
32871fail:
32872 return NULL;
32873}
32874
32875
32876SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32877 PyObject *resultobj = 0;
32878 wxEffects *arg1 = (wxEffects *) 0 ;
32879 wxColour *arg2 = 0 ;
32880 void *argp1 = 0 ;
32881 int res1 = 0 ;
32882 wxColour temp2 ;
32883 PyObject * obj0 = 0 ;
32884 PyObject * obj1 = 0 ;
32885 char * kwnames[] = {
32886 (char *) "self",(char *) "c", NULL
32887 };
32888
32889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32891 if (!SWIG_IsOK(res1)) {
32892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32893 }
32894 arg1 = reinterpret_cast< wxEffects * >(argp1);
32895 {
32896 arg2 = &temp2;
32897 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32898 }
32899 {
32900 PyThreadState* __tstate = wxPyBeginAllowThreads();
32901 (arg1)->SetDarkShadow((wxColour const &)*arg2);
32902 wxPyEndAllowThreads(__tstate);
32903 if (PyErr_Occurred()) SWIG_fail;
32904 }
32905 resultobj = SWIG_Py_Void();
32906 return resultobj;
32907fail:
32908 return NULL;
32909}
32910
32911
32912SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32913 PyObject *resultobj = 0;
32914 wxEffects *arg1 = (wxEffects *) 0 ;
32915 wxColour *arg2 = 0 ;
32916 wxColour *arg3 = 0 ;
32917 wxColour *arg4 = 0 ;
32918 wxColour *arg5 = 0 ;
32919 wxColour *arg6 = 0 ;
32920 void *argp1 = 0 ;
32921 int res1 = 0 ;
32922 wxColour temp2 ;
32923 wxColour temp3 ;
32924 wxColour temp4 ;
32925 wxColour temp5 ;
32926 wxColour temp6 ;
32927 PyObject * obj0 = 0 ;
32928 PyObject * obj1 = 0 ;
32929 PyObject * obj2 = 0 ;
32930 PyObject * obj3 = 0 ;
32931 PyObject * obj4 = 0 ;
32932 PyObject * obj5 = 0 ;
32933 char * kwnames[] = {
32934 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
32935 };
32936
32937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32939 if (!SWIG_IsOK(res1)) {
32940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
32941 }
32942 arg1 = reinterpret_cast< wxEffects * >(argp1);
32943 {
32944 arg2 = &temp2;
32945 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32946 }
32947 {
32948 arg3 = &temp3;
32949 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32950 }
32951 {
32952 arg4 = &temp4;
32953 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32954 }
32955 {
32956 arg5 = &temp5;
32957 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
32958 }
32959 {
32960 arg6 = &temp6;
32961 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
32962 }
32963 {
32964 PyThreadState* __tstate = wxPyBeginAllowThreads();
32965 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
32966 wxPyEndAllowThreads(__tstate);
32967 if (PyErr_Occurred()) SWIG_fail;
32968 }
32969 resultobj = SWIG_Py_Void();
32970 return resultobj;
32971fail:
32972 return NULL;
32973}
32974
32975
32976SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32977 PyObject *resultobj = 0;
32978 wxEffects *arg1 = (wxEffects *) 0 ;
32979 wxDC *arg2 = 0 ;
32980 wxRect *arg3 = 0 ;
32981 int arg4 = (int) 1 ;
32982 void *argp1 = 0 ;
32983 int res1 = 0 ;
32984 void *argp2 = 0 ;
32985 int res2 = 0 ;
32986 wxRect temp3 ;
32987 int val4 ;
32988 int ecode4 = 0 ;
32989 PyObject * obj0 = 0 ;
32990 PyObject * obj1 = 0 ;
32991 PyObject * obj2 = 0 ;
32992 PyObject * obj3 = 0 ;
32993 char * kwnames[] = {
32994 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
32995 };
32996
32997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32999 if (!SWIG_IsOK(res1)) {
33000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33001 }
33002 arg1 = reinterpret_cast< wxEffects * >(argp1);
33003 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33004 if (!SWIG_IsOK(res2)) {
33005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33006 }
33007 if (!argp2) {
33008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33009 }
33010 arg2 = reinterpret_cast< wxDC * >(argp2);
33011 {
33012 arg3 = &temp3;
33013 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33014 }
33015 if (obj3) {
33016 ecode4 = SWIG_AsVal_int(obj3, &val4);
33017 if (!SWIG_IsOK(ecode4)) {
33018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33019 }
33020 arg4 = static_cast< int >(val4);
33021 }
33022 {
33023 PyThreadState* __tstate = wxPyBeginAllowThreads();
33024 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33025 wxPyEndAllowThreads(__tstate);
33026 if (PyErr_Occurred()) SWIG_fail;
33027 }
33028 resultobj = SWIG_Py_Void();
33029 return resultobj;
33030fail:
33031 return NULL;
33032}
33033
33034
33035SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33036 PyObject *resultobj = 0;
33037 wxEffects *arg1 = (wxEffects *) 0 ;
33038 wxRect *arg2 = 0 ;
33039 wxDC *arg3 = 0 ;
33040 wxBitmap *arg4 = 0 ;
33041 bool result;
33042 void *argp1 = 0 ;
33043 int res1 = 0 ;
33044 wxRect temp2 ;
33045 void *argp3 = 0 ;
33046 int res3 = 0 ;
33047 void *argp4 = 0 ;
33048 int res4 = 0 ;
33049 PyObject * obj0 = 0 ;
33050 PyObject * obj1 = 0 ;
33051 PyObject * obj2 = 0 ;
33052 PyObject * obj3 = 0 ;
33053 char * kwnames[] = {
33054 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33055 };
33056
33057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33059 if (!SWIG_IsOK(res1)) {
33060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33061 }
33062 arg1 = reinterpret_cast< wxEffects * >(argp1);
33063 {
33064 arg2 = &temp2;
33065 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33066 }
33067 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33068 if (!SWIG_IsOK(res3)) {
33069 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33070 }
33071 if (!argp3) {
33072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33073 }
33074 arg3 = reinterpret_cast< wxDC * >(argp3);
33075 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33076 if (!SWIG_IsOK(res4)) {
33077 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33078 }
33079 if (!argp4) {
33080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33081 }
33082 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33083 {
33084 PyThreadState* __tstate = wxPyBeginAllowThreads();
33085 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33086 wxPyEndAllowThreads(__tstate);
33087 if (PyErr_Occurred()) SWIG_fail;
33088 }
33089 {
33090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33091 }
33092 return resultobj;
33093fail:
33094 return NULL;
33095}
33096
33097
33098SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33099 PyObject *obj;
33100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33101 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33102 return SWIG_Py_Void();
33103}
33104
33105SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33106 return SWIG_Python_InitShadowInstance(args);
33107}
33108
33109SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33110 PyObject *resultobj = 0;
33111 int arg1 ;
33112 int arg2 ;
33113 bool arg3 ;
33114 wxSplitterRenderParams *result = 0 ;
33115 int val1 ;
33116 int ecode1 = 0 ;
33117 int val2 ;
33118 int ecode2 = 0 ;
33119 bool val3 ;
33120 int ecode3 = 0 ;
33121 PyObject * obj0 = 0 ;
33122 PyObject * obj1 = 0 ;
33123 PyObject * obj2 = 0 ;
33124 char * kwnames[] = {
33125 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33126 };
33127
33128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33129 ecode1 = SWIG_AsVal_int(obj0, &val1);
33130 if (!SWIG_IsOK(ecode1)) {
33131 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33132 }
33133 arg1 = static_cast< int >(val1);
33134 ecode2 = SWIG_AsVal_int(obj1, &val2);
33135 if (!SWIG_IsOK(ecode2)) {
33136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33137 }
33138 arg2 = static_cast< int >(val2);
33139 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33140 if (!SWIG_IsOK(ecode3)) {
33141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33142 }
33143 arg3 = static_cast< bool >(val3);
33144 {
33145 PyThreadState* __tstate = wxPyBeginAllowThreads();
33146 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33147 wxPyEndAllowThreads(__tstate);
33148 if (PyErr_Occurred()) SWIG_fail;
33149 }
33150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33151 return resultobj;
33152fail:
33153 return NULL;
33154}
33155
33156
33157SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33158 PyObject *resultobj = 0;
33159 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33160 void *argp1 = 0 ;
33161 int res1 = 0 ;
33162 PyObject *swig_obj[1] ;
33163
33164 if (!args) SWIG_fail;
33165 swig_obj[0] = args;
33166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33167 if (!SWIG_IsOK(res1)) {
33168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33169 }
33170 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33171 {
33172 PyThreadState* __tstate = wxPyBeginAllowThreads();
33173 delete arg1;
33174
33175 wxPyEndAllowThreads(__tstate);
33176 if (PyErr_Occurred()) SWIG_fail;
33177 }
33178 resultobj = SWIG_Py_Void();
33179 return resultobj;
33180fail:
33181 return NULL;
33182}
33183
33184
33185SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33186 PyObject *resultobj = 0;
33187 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33188 int result;
33189 void *argp1 = 0 ;
33190 int res1 = 0 ;
33191 PyObject *swig_obj[1] ;
33192
33193 if (!args) SWIG_fail;
33194 swig_obj[0] = args;
33195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33196 if (!SWIG_IsOK(res1)) {
33197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33198 }
33199 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33200 result = (int)(int) ((arg1)->widthSash);
33201 resultobj = SWIG_From_int(static_cast< int >(result));
33202 return resultobj;
33203fail:
33204 return NULL;
33205}
33206
33207
33208SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33209 PyObject *resultobj = 0;
33210 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33211 int result;
33212 void *argp1 = 0 ;
33213 int res1 = 0 ;
33214 PyObject *swig_obj[1] ;
33215
33216 if (!args) SWIG_fail;
33217 swig_obj[0] = args;
33218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33219 if (!SWIG_IsOK(res1)) {
33220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33221 }
33222 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33223 result = (int)(int) ((arg1)->border);
33224 resultobj = SWIG_From_int(static_cast< int >(result));
33225 return resultobj;
33226fail:
33227 return NULL;
33228}
33229
33230
33231SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33232 PyObject *resultobj = 0;
33233 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33234 bool result;
33235 void *argp1 = 0 ;
33236 int res1 = 0 ;
33237 PyObject *swig_obj[1] ;
33238
33239 if (!args) SWIG_fail;
33240 swig_obj[0] = args;
33241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33242 if (!SWIG_IsOK(res1)) {
33243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33244 }
33245 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33246 result = (bool)(bool) ((arg1)->isHotSensitive);
33247 resultobj = SWIG_From_bool(static_cast< bool >(result));
33248 return resultobj;
33249fail:
33250 return NULL;
33251}
33252
33253
33254SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33255 PyObject *obj;
33256 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33257 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33258 return SWIG_Py_Void();
33259}
33260
33261SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33262 return SWIG_Python_InitShadowInstance(args);
33263}
33264
33d6fd3b
RD
33265SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33266 PyObject *resultobj = 0;
33267 wxHeaderButtonParams *result = 0 ;
33268
33269 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33270 {
33271 PyThreadState* __tstate = wxPyBeginAllowThreads();
33272 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33273 wxPyEndAllowThreads(__tstate);
33274 if (PyErr_Occurred()) SWIG_fail;
33275 }
33276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33277 return resultobj;
33278fail:
33279 return NULL;
33280}
33281
33282
33283SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33284 PyObject *resultobj = 0;
33285 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33286 void *argp1 = 0 ;
33287 int res1 = 0 ;
33288 PyObject *swig_obj[1] ;
33289
33290 if (!args) SWIG_fail;
33291 swig_obj[0] = args;
33292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33293 if (!SWIG_IsOK(res1)) {
33294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33295 }
33296 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33297 {
33298 PyThreadState* __tstate = wxPyBeginAllowThreads();
33299 delete arg1;
33300
33301 wxPyEndAllowThreads(__tstate);
33302 if (PyErr_Occurred()) SWIG_fail;
33303 }
33304 resultobj = SWIG_Py_Void();
33305 return resultobj;
33306fail:
33307 return NULL;
33308}
33309
33310
33311SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33312 PyObject *resultobj = 0;
33313 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33314 wxColour *arg2 = (wxColour *) 0 ;
33315 void *argp1 = 0 ;
33316 int res1 = 0 ;
33317 wxColour temp2 ;
33318 PyObject *swig_obj[2] ;
33319
33320 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33322 if (!SWIG_IsOK(res1)) {
33323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33324 }
33325 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33326 {
33327 arg2 = &temp2;
33328 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33329 }
33330 if (arg1) (arg1)->m_arrowColour = *arg2;
33331
33332 resultobj = SWIG_Py_Void();
33333 return resultobj;
33334fail:
33335 return NULL;
33336}
33337
33338
33339SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33340 PyObject *resultobj = 0;
33341 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33342 wxColour *result = 0 ;
33343 void *argp1 = 0 ;
33344 int res1 = 0 ;
33345 PyObject *swig_obj[1] ;
33346
33347 if (!args) SWIG_fail;
33348 swig_obj[0] = args;
33349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33350 if (!SWIG_IsOK(res1)) {
33351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33352 }
33353 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33354 result = (wxColour *)& ((arg1)->m_arrowColour);
33355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33356 return resultobj;
33357fail:
33358 return NULL;
33359}
33360
33361
33362SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33363 PyObject *resultobj = 0;
33364 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33365 wxColour *arg2 = (wxColour *) 0 ;
33366 void *argp1 = 0 ;
33367 int res1 = 0 ;
33368 wxColour temp2 ;
33369 PyObject *swig_obj[2] ;
33370
33371 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33373 if (!SWIG_IsOK(res1)) {
33374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33375 }
33376 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33377 {
33378 arg2 = &temp2;
33379 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33380 }
33381 if (arg1) (arg1)->m_selectionColour = *arg2;
33382
33383 resultobj = SWIG_Py_Void();
33384 return resultobj;
33385fail:
33386 return NULL;
33387}
33388
33389
33390SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33391 PyObject *resultobj = 0;
33392 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33393 wxColour *result = 0 ;
33394 void *argp1 = 0 ;
33395 int res1 = 0 ;
33396 PyObject *swig_obj[1] ;
33397
33398 if (!args) SWIG_fail;
33399 swig_obj[0] = args;
33400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33401 if (!SWIG_IsOK(res1)) {
33402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33403 }
33404 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33405 result = (wxColour *)& ((arg1)->m_selectionColour);
33406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33407 return resultobj;
33408fail:
33409 return NULL;
33410}
33411
33412
33413SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33414 PyObject *resultobj = 0;
33415 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33416 wxString *arg2 = (wxString *) 0 ;
33417 void *argp1 = 0 ;
33418 int res1 = 0 ;
33419 bool temp2 = false ;
33420 PyObject *swig_obj[2] ;
33421
33422 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33424 if (!SWIG_IsOK(res1)) {
33425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33426 }
33427 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33428 {
33429 arg2 = wxString_in_helper(swig_obj[1]);
33430 if (arg2 == NULL) SWIG_fail;
33431 temp2 = true;
33432 }
33433 if (arg1) (arg1)->m_labelText = *arg2;
33434
33435 resultobj = SWIG_Py_Void();
33436 {
33437 if (temp2)
33438 delete arg2;
33439 }
33440 return resultobj;
33441fail:
33442 {
33443 if (temp2)
33444 delete arg2;
33445 }
33446 return NULL;
33447}
33448
33449
33450SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33451 PyObject *resultobj = 0;
33452 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33453 wxString *result = 0 ;
33454 void *argp1 = 0 ;
33455 int res1 = 0 ;
33456 PyObject *swig_obj[1] ;
33457
33458 if (!args) SWIG_fail;
33459 swig_obj[0] = args;
33460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33461 if (!SWIG_IsOK(res1)) {
33462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33463 }
33464 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33465 result = (wxString *)& ((arg1)->m_labelText);
33466 {
33467#if wxUSE_UNICODE
33468 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33469#else
33470 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33471#endif
33472 }
33473 return resultobj;
33474fail:
33475 return NULL;
33476}
33477
33478
33479SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33480 PyObject *resultobj = 0;
33481 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33482 wxFont *arg2 = (wxFont *) 0 ;
33483 void *argp1 = 0 ;
33484 int res1 = 0 ;
33485 void *argp2 = 0 ;
33486 int res2 = 0 ;
33487 PyObject *swig_obj[2] ;
33488
33489 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33491 if (!SWIG_IsOK(res1)) {
33492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33493 }
33494 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33495 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33496 if (!SWIG_IsOK(res2)) {
33497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33498 }
33499 arg2 = reinterpret_cast< wxFont * >(argp2);
33500 if (arg1) (arg1)->m_labelFont = *arg2;
33501
33502 resultobj = SWIG_Py_Void();
33503 return resultobj;
33504fail:
33505 return NULL;
33506}
33507
33508
33509SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33510 PyObject *resultobj = 0;
33511 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33512 wxFont *result = 0 ;
33513 void *argp1 = 0 ;
33514 int res1 = 0 ;
33515 PyObject *swig_obj[1] ;
33516
33517 if (!args) SWIG_fail;
33518 swig_obj[0] = args;
33519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33520 if (!SWIG_IsOK(res1)) {
33521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33522 }
33523 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33524 result = (wxFont *)& ((arg1)->m_labelFont);
33525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33526 return resultobj;
33527fail:
33528 return NULL;
33529}
33530
33531
33532SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33533 PyObject *resultobj = 0;
33534 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33535 wxColour *arg2 = (wxColour *) 0 ;
33536 void *argp1 = 0 ;
33537 int res1 = 0 ;
33538 wxColour temp2 ;
33539 PyObject *swig_obj[2] ;
33540
33541 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33543 if (!SWIG_IsOK(res1)) {
33544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33545 }
33546 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33547 {
33548 arg2 = &temp2;
33549 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33550 }
33551 if (arg1) (arg1)->m_labelColour = *arg2;
33552
33553 resultobj = SWIG_Py_Void();
33554 return resultobj;
33555fail:
33556 return NULL;
33557}
33558
33559
33560SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33561 PyObject *resultobj = 0;
33562 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33563 wxColour *result = 0 ;
33564 void *argp1 = 0 ;
33565 int res1 = 0 ;
33566 PyObject *swig_obj[1] ;
33567
33568 if (!args) SWIG_fail;
33569 swig_obj[0] = args;
33570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33571 if (!SWIG_IsOK(res1)) {
33572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33573 }
33574 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33575 result = (wxColour *)& ((arg1)->m_labelColour);
33576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33577 return resultobj;
33578fail:
33579 return NULL;
33580}
33581
33582
33583SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33584 PyObject *resultobj = 0;
33585 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33586 wxBitmap *arg2 = (wxBitmap *) 0 ;
33587 void *argp1 = 0 ;
33588 int res1 = 0 ;
33589 void *argp2 = 0 ;
33590 int res2 = 0 ;
33591 PyObject *swig_obj[2] ;
33592
33593 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33595 if (!SWIG_IsOK(res1)) {
33596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33597 }
33598 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33599 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33600 if (!SWIG_IsOK(res2)) {
33601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33602 }
33603 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33604 if (arg1) (arg1)->m_labelBitmap = *arg2;
33605
33606 resultobj = SWIG_Py_Void();
33607 return resultobj;
33608fail:
33609 return NULL;
33610}
33611
33612
33613SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33614 PyObject *resultobj = 0;
33615 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33616 wxBitmap *result = 0 ;
33617 void *argp1 = 0 ;
33618 int res1 = 0 ;
33619 PyObject *swig_obj[1] ;
33620
33621 if (!args) SWIG_fail;
33622 swig_obj[0] = args;
33623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33624 if (!SWIG_IsOK(res1)) {
33625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33626 }
33627 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33628 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33630 return resultobj;
33631fail:
33632 return NULL;
33633}
33634
33635
33636SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33637 PyObject *resultobj = 0;
33638 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33639 int arg2 ;
33640 void *argp1 = 0 ;
33641 int res1 = 0 ;
33642 int val2 ;
33643 int ecode2 = 0 ;
33644 PyObject *swig_obj[2] ;
33645
33646 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33648 if (!SWIG_IsOK(res1)) {
33649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33650 }
33651 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33652 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33653 if (!SWIG_IsOK(ecode2)) {
33654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33655 }
33656 arg2 = static_cast< int >(val2);
33657 if (arg1) (arg1)->m_labelAlignment = arg2;
33658
33659 resultobj = SWIG_Py_Void();
33660 return resultobj;
33661fail:
33662 return NULL;
33663}
33664
33665
33666SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33667 PyObject *resultobj = 0;
33668 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33669 int result;
33670 void *argp1 = 0 ;
33671 int res1 = 0 ;
33672 PyObject *swig_obj[1] ;
33673
33674 if (!args) SWIG_fail;
33675 swig_obj[0] = args;
33676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33677 if (!SWIG_IsOK(res1)) {
33678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33679 }
33680 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33681 result = (int) ((arg1)->m_labelAlignment);
33682 resultobj = SWIG_From_int(static_cast< int >(result));
33683 return resultobj;
33684fail:
33685 return NULL;
33686}
33687
33688
33689SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33690 PyObject *obj;
33691 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33692 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33693 return SWIG_Py_Void();
33694}
33695
33696SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33697 return SWIG_Python_InitShadowInstance(args);
33698}
33699
0085ce49
RD
33700SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33701 PyObject *resultobj = 0;
33702 int arg1 ;
33703 int arg2 ;
33704 wxRendererVersion *result = 0 ;
33705 int val1 ;
33706 int ecode1 = 0 ;
33707 int val2 ;
33708 int ecode2 = 0 ;
33709 PyObject * obj0 = 0 ;
33710 PyObject * obj1 = 0 ;
33711 char * kwnames[] = {
33712 (char *) "version_",(char *) "age_", NULL
33713 };
33714
33715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33716 ecode1 = SWIG_AsVal_int(obj0, &val1);
33717 if (!SWIG_IsOK(ecode1)) {
33718 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33719 }
33720 arg1 = static_cast< int >(val1);
33721 ecode2 = SWIG_AsVal_int(obj1, &val2);
33722 if (!SWIG_IsOK(ecode2)) {
33723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33724 }
33725 arg2 = static_cast< int >(val2);
33726 {
33727 PyThreadState* __tstate = wxPyBeginAllowThreads();
33728 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33729 wxPyEndAllowThreads(__tstate);
33730 if (PyErr_Occurred()) SWIG_fail;
33731 }
33732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33733 return resultobj;
33734fail:
33735 return NULL;
33736}
33737
33738
33739SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33740 PyObject *resultobj = 0;
33741 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33742 void *argp1 = 0 ;
33743 int res1 = 0 ;
33744 PyObject *swig_obj[1] ;
33745
33746 if (!args) SWIG_fail;
33747 swig_obj[0] = args;
33748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33749 if (!SWIG_IsOK(res1)) {
33750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33751 }
33752 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33753 {
33754 PyThreadState* __tstate = wxPyBeginAllowThreads();
33755 delete arg1;
33756
33757 wxPyEndAllowThreads(__tstate);
33758 if (PyErr_Occurred()) SWIG_fail;
33759 }
33760 resultobj = SWIG_Py_Void();
33761 return resultobj;
33762fail:
33763 return NULL;
33764}
33765
33766
33767SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33768 PyObject *resultobj = 0;
33769 wxRendererVersion *arg1 = 0 ;
33770 bool result;
33771 void *argp1 = 0 ;
33772 int res1 = 0 ;
33773 PyObject * obj0 = 0 ;
33774 char * kwnames[] = {
33775 (char *) "ver", NULL
33776 };
33777
33778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33779 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33780 if (!SWIG_IsOK(res1)) {
33781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33782 }
33783 if (!argp1) {
33784 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33785 }
33786 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33787 {
33788 PyThreadState* __tstate = wxPyBeginAllowThreads();
33789 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33790 wxPyEndAllowThreads(__tstate);
33791 if (PyErr_Occurred()) SWIG_fail;
33792 }
33793 {
33794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33795 }
33796 return resultobj;
33797fail:
33798 return NULL;
33799}
33800
33801
33802SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33803 PyObject *resultobj = 0;
33804 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33805 int result;
33806 void *argp1 = 0 ;
33807 int res1 = 0 ;
33808 PyObject *swig_obj[1] ;
33809
33810 if (!args) SWIG_fail;
33811 swig_obj[0] = args;
33812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33813 if (!SWIG_IsOK(res1)) {
33814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33815 }
33816 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33817 result = (int)(int) ((arg1)->version);
33818 resultobj = SWIG_From_int(static_cast< int >(result));
33819 return resultobj;
33820fail:
33821 return NULL;
33822}
33823
33824
33825SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33826 PyObject *resultobj = 0;
33827 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33828 int result;
33829 void *argp1 = 0 ;
33830 int res1 = 0 ;
33831 PyObject *swig_obj[1] ;
33832
33833 if (!args) SWIG_fail;
33834 swig_obj[0] = args;
33835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33836 if (!SWIG_IsOK(res1)) {
33837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33838 }
33839 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33840 result = (int)(int) ((arg1)->age);
33841 resultobj = SWIG_From_int(static_cast< int >(result));
33842 return resultobj;
33843fail:
33844 return NULL;
33845}
33846
33847
33848SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33849 PyObject *obj;
33850 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33851 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33852 return SWIG_Py_Void();
33853}
33854
33855SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33856 return SWIG_Python_InitShadowInstance(args);
33857}
33858
33859SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33860 PyObject *resultobj = 0;
33861 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33862 wxWindow *arg2 = (wxWindow *) 0 ;
33863 wxDC *arg3 = 0 ;
33864 wxRect *arg4 = 0 ;
33865 int arg5 = (int) 0 ;
33d6fd3b
RD
33866 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33867 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
0085ce49
RD
33868 void *argp1 = 0 ;
33869 int res1 = 0 ;
33870 void *argp2 = 0 ;
33871 int res2 = 0 ;
33872 void *argp3 = 0 ;
33873 int res3 = 0 ;
33874 wxRect temp4 ;
33875 int val5 ;
33876 int ecode5 = 0 ;
33d6fd3b
RD
33877 int val6 ;
33878 int ecode6 = 0 ;
33879 void *argp7 = 0 ;
33880 int res7 = 0 ;
0085ce49
RD
33881 PyObject * obj0 = 0 ;
33882 PyObject * obj1 = 0 ;
33883 PyObject * obj2 = 0 ;
33884 PyObject * obj3 = 0 ;
33885 PyObject * obj4 = 0 ;
33d6fd3b
RD
33886 PyObject * obj5 = 0 ;
33887 PyObject * obj6 = 0 ;
0085ce49 33888 char * kwnames[] = {
33d6fd3b 33889 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
0085ce49
RD
33890 };
33891
33d6fd3b 33892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
0085ce49
RD
33893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33894 if (!SWIG_IsOK(res1)) {
33895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33896 }
33897 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33898 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33899 if (!SWIG_IsOK(res2)) {
33900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
33901 }
33902 arg2 = reinterpret_cast< wxWindow * >(argp2);
33903 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33904 if (!SWIG_IsOK(res3)) {
33905 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33906 }
33907 if (!argp3) {
33908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33909 }
33910 arg3 = reinterpret_cast< wxDC * >(argp3);
33911 {
33912 arg4 = &temp4;
33913 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33914 }
33915 if (obj4) {
33916 ecode5 = SWIG_AsVal_int(obj4, &val5);
33917 if (!SWIG_IsOK(ecode5)) {
33918 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
33919 }
33920 arg5 = static_cast< int >(val5);
33921 }
33d6fd3b
RD
33922 if (obj5) {
33923 ecode6 = SWIG_AsVal_int(obj5, &val6);
33924 if (!SWIG_IsOK(ecode6)) {
33925 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33926 }
33927 arg6 = static_cast< wxHeaderSortIconType >(val6);
33928 }
33929 if (obj6) {
33930 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33931 if (!SWIG_IsOK(res7)) {
33932 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33933 }
33934 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33935 }
33936 {
33937 PyThreadState* __tstate = wxPyBeginAllowThreads();
33938 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33939 wxPyEndAllowThreads(__tstate);
33940 if (PyErr_Occurred()) SWIG_fail;
33941 }
33942 resultobj = SWIG_Py_Void();
33943 return resultobj;
33944fail:
33945 return NULL;
33946}
33947
33948
33949SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33950 PyObject *resultobj = 0;
33951 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33952 wxWindow *arg2 = (wxWindow *) 0 ;
33953 wxDC *arg3 = 0 ;
33954 wxRect *arg4 = 0 ;
33955 int arg5 = (int) 0 ;
33956 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33957 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
33958 void *argp1 = 0 ;
33959 int res1 = 0 ;
33960 void *argp2 = 0 ;
33961 int res2 = 0 ;
33962 void *argp3 = 0 ;
33963 int res3 = 0 ;
33964 wxRect temp4 ;
33965 int val5 ;
33966 int ecode5 = 0 ;
33967 int val6 ;
33968 int ecode6 = 0 ;
33969 void *argp7 = 0 ;
33970 int res7 = 0 ;
33971 PyObject * obj0 = 0 ;
33972 PyObject * obj1 = 0 ;
33973 PyObject * obj2 = 0 ;
33974 PyObject * obj3 = 0 ;
33975 PyObject * obj4 = 0 ;
33976 PyObject * obj5 = 0 ;
33977 PyObject * obj6 = 0 ;
33978 char * kwnames[] = {
33979 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
33980 };
33981
33982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33984 if (!SWIG_IsOK(res1)) {
33985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33986 }
33987 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33988 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33989 if (!SWIG_IsOK(res2)) {
33990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
33991 }
33992 arg2 = reinterpret_cast< wxWindow * >(argp2);
33993 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33994 if (!SWIG_IsOK(res3)) {
33995 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33996 }
33997 if (!argp3) {
33998 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33999 }
34000 arg3 = reinterpret_cast< wxDC * >(argp3);
34001 {
34002 arg4 = &temp4;
34003 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34004 }
34005 if (obj4) {
34006 ecode5 = SWIG_AsVal_int(obj4, &val5);
34007 if (!SWIG_IsOK(ecode5)) {
34008 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34009 }
34010 arg5 = static_cast< int >(val5);
34011 }
34012 if (obj5) {
34013 ecode6 = SWIG_AsVal_int(obj5, &val6);
34014 if (!SWIG_IsOK(ecode6)) {
34015 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34016 }
34017 arg6 = static_cast< wxHeaderSortIconType >(val6);
34018 }
34019 if (obj6) {
34020 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34021 if (!SWIG_IsOK(res7)) {
34022 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34023 }
34024 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34025 }
0085ce49
RD
34026 {
34027 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34028 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
0085ce49
RD
34029 wxPyEndAllowThreads(__tstate);
34030 if (PyErr_Occurred()) SWIG_fail;
34031 }
34032 resultobj = SWIG_Py_Void();
34033 return resultobj;
34034fail:
34035 return NULL;
34036}
34037
34038
33d6fd3b
RD
34039SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34040 PyObject *resultobj = 0;
34041 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34042 wxWindow *arg2 = (wxWindow *) 0 ;
34043 int result;
34044 void *argp1 = 0 ;
34045 int res1 = 0 ;
34046 void *argp2 = 0 ;
34047 int res2 = 0 ;
34048 PyObject * obj0 = 0 ;
34049 PyObject * obj1 = 0 ;
34050 char * kwnames[] = {
34051 (char *) "self",(char *) "win", NULL
34052 };
34053
34054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34056 if (!SWIG_IsOK(res1)) {
34057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34058 }
34059 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34060 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34061 if (!SWIG_IsOK(res2)) {
34062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34063 }
34064 arg2 = reinterpret_cast< wxWindow * >(argp2);
34065 {
34066 PyThreadState* __tstate = wxPyBeginAllowThreads();
34067 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34068 wxPyEndAllowThreads(__tstate);
34069 if (PyErr_Occurred()) SWIG_fail;
34070 }
34071 resultobj = SWIG_From_int(static_cast< int >(result));
34072 return resultobj;
34073fail:
34074 return NULL;
34075}
34076
34077
0085ce49
RD
34078SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34079 PyObject *resultobj = 0;
34080 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34081 wxWindow *arg2 = (wxWindow *) 0 ;
34082 wxDC *arg3 = 0 ;
34083 wxRect *arg4 = 0 ;
34084 int arg5 = (int) 0 ;
34085 void *argp1 = 0 ;
34086 int res1 = 0 ;
34087 void *argp2 = 0 ;
34088 int res2 = 0 ;
34089 void *argp3 = 0 ;
34090 int res3 = 0 ;
34091 wxRect temp4 ;
34092 int val5 ;
34093 int ecode5 = 0 ;
34094 PyObject * obj0 = 0 ;
34095 PyObject * obj1 = 0 ;
34096 PyObject * obj2 = 0 ;
34097 PyObject * obj3 = 0 ;
34098 PyObject * obj4 = 0 ;
34099 char * kwnames[] = {
34100 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34101 };
34102
34103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34105 if (!SWIG_IsOK(res1)) {
34106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34107 }
34108 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34109 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34110 if (!SWIG_IsOK(res2)) {
34111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34112 }
34113 arg2 = reinterpret_cast< wxWindow * >(argp2);
34114 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34115 if (!SWIG_IsOK(res3)) {
34116 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34117 }
34118 if (!argp3) {
34119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34120 }
34121 arg3 = reinterpret_cast< wxDC * >(argp3);
34122 {
34123 arg4 = &temp4;
34124 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34125 }
34126 if (obj4) {
34127 ecode5 = SWIG_AsVal_int(obj4, &val5);
34128 if (!SWIG_IsOK(ecode5)) {
34129 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34130 }
34131 arg5 = static_cast< int >(val5);
34132 }
34133 {
34134 PyThreadState* __tstate = wxPyBeginAllowThreads();
34135 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34136 wxPyEndAllowThreads(__tstate);
34137 if (PyErr_Occurred()) SWIG_fail;
34138 }
34139 resultobj = SWIG_Py_Void();
34140 return resultobj;
34141fail:
34142 return NULL;
34143}
34144
34145
34146SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34147 PyObject *resultobj = 0;
34148 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34149 wxWindow *arg2 = (wxWindow *) 0 ;
34150 wxDC *arg3 = 0 ;
34151 wxRect *arg4 = 0 ;
34152 int arg5 = (int) 0 ;
34153 void *argp1 = 0 ;
34154 int res1 = 0 ;
34155 void *argp2 = 0 ;
34156 int res2 = 0 ;
34157 void *argp3 = 0 ;
34158 int res3 = 0 ;
34159 wxRect temp4 ;
34160 int val5 ;
34161 int ecode5 = 0 ;
34162 PyObject * obj0 = 0 ;
34163 PyObject * obj1 = 0 ;
34164 PyObject * obj2 = 0 ;
34165 PyObject * obj3 = 0 ;
34166 PyObject * obj4 = 0 ;
34167 char * kwnames[] = {
34168 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34169 };
34170
34171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34173 if (!SWIG_IsOK(res1)) {
34174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34175 }
34176 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34177 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34178 if (!SWIG_IsOK(res2)) {
34179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34180 }
34181 arg2 = reinterpret_cast< wxWindow * >(argp2);
34182 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34183 if (!SWIG_IsOK(res3)) {
34184 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34185 }
34186 if (!argp3) {
34187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34188 }
34189 arg3 = reinterpret_cast< wxDC * >(argp3);
34190 {
34191 arg4 = &temp4;
34192 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34193 }
34194 if (obj4) {
34195 ecode5 = SWIG_AsVal_int(obj4, &val5);
34196 if (!SWIG_IsOK(ecode5)) {
34197 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34198 }
34199 arg5 = static_cast< int >(val5);
34200 }
34201 {
34202 PyThreadState* __tstate = wxPyBeginAllowThreads();
34203 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34204 wxPyEndAllowThreads(__tstate);
34205 if (PyErr_Occurred()) SWIG_fail;
34206 }
34207 resultobj = SWIG_Py_Void();
34208 return resultobj;
34209fail:
34210 return NULL;
34211}
34212
34213
34214SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34215 PyObject *resultobj = 0;
34216 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34217 wxWindow *arg2 = (wxWindow *) 0 ;
34218 wxDC *arg3 = 0 ;
34219 wxSize *arg4 = 0 ;
34220 int arg5 ;
34221 wxOrientation arg6 ;
34222 int arg7 = (int) 0 ;
34223 void *argp1 = 0 ;
34224 int res1 = 0 ;
34225 void *argp2 = 0 ;
34226 int res2 = 0 ;
34227 void *argp3 = 0 ;
34228 int res3 = 0 ;
34229 wxSize temp4 ;
34230 int val5 ;
34231 int ecode5 = 0 ;
34232 int val6 ;
34233 int ecode6 = 0 ;
34234 int val7 ;
34235 int ecode7 = 0 ;
34236 PyObject * obj0 = 0 ;
34237 PyObject * obj1 = 0 ;
34238 PyObject * obj2 = 0 ;
34239 PyObject * obj3 = 0 ;
34240 PyObject * obj4 = 0 ;
34241 PyObject * obj5 = 0 ;
34242 PyObject * obj6 = 0 ;
34243 char * kwnames[] = {
34244 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34245 };
34246
34247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34249 if (!SWIG_IsOK(res1)) {
34250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34251 }
34252 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34253 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34254 if (!SWIG_IsOK(res2)) {
34255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34256 }
34257 arg2 = reinterpret_cast< wxWindow * >(argp2);
34258 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34259 if (!SWIG_IsOK(res3)) {
34260 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34261 }
34262 if (!argp3) {
34263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34264 }
34265 arg3 = reinterpret_cast< wxDC * >(argp3);
34266 {
34267 arg4 = &temp4;
34268 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34269 }
34270 ecode5 = SWIG_AsVal_int(obj4, &val5);
34271 if (!SWIG_IsOK(ecode5)) {
34272 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34273 }
34274 arg5 = static_cast< int >(val5);
34275 ecode6 = SWIG_AsVal_int(obj5, &val6);
34276 if (!SWIG_IsOK(ecode6)) {
34277 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34278 }
34279 arg6 = static_cast< wxOrientation >(val6);
34280 if (obj6) {
34281 ecode7 = SWIG_AsVal_int(obj6, &val7);
34282 if (!SWIG_IsOK(ecode7)) {
34283 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34284 }
34285 arg7 = static_cast< int >(val7);
34286 }
34287 {
34288 PyThreadState* __tstate = wxPyBeginAllowThreads();
34289 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34290 wxPyEndAllowThreads(__tstate);
34291 if (PyErr_Occurred()) SWIG_fail;
34292 }
34293 resultobj = SWIG_Py_Void();
34294 return resultobj;
34295fail:
34296 return NULL;
34297}
34298
34299
34300SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34301 PyObject *resultobj = 0;
34302 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34303 wxWindow *arg2 = (wxWindow *) 0 ;
34304 wxDC *arg3 = 0 ;
34305 wxRect *arg4 = 0 ;
34306 int arg5 = (int) 0 ;
34307 void *argp1 = 0 ;
34308 int res1 = 0 ;
34309 void *argp2 = 0 ;
34310 int res2 = 0 ;
34311 void *argp3 = 0 ;
34312 int res3 = 0 ;
34313 wxRect temp4 ;
34314 int val5 ;
34315 int ecode5 = 0 ;
34316 PyObject * obj0 = 0 ;
34317 PyObject * obj1 = 0 ;
34318 PyObject * obj2 = 0 ;
34319 PyObject * obj3 = 0 ;
34320 PyObject * obj4 = 0 ;
34321 char * kwnames[] = {
34322 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34323 };
34324
34325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34327 if (!SWIG_IsOK(res1)) {
34328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34329 }
34330 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34331 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34332 if (!SWIG_IsOK(res2)) {
34333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34334 }
34335 arg2 = reinterpret_cast< wxWindow * >(argp2);
34336 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34337 if (!SWIG_IsOK(res3)) {
34338 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34339 }
34340 if (!argp3) {
34341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34342 }
34343 arg3 = reinterpret_cast< wxDC * >(argp3);
34344 {
34345 arg4 = &temp4;
34346 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34347 }
34348 if (obj4) {
34349 ecode5 = SWIG_AsVal_int(obj4, &val5);
34350 if (!SWIG_IsOK(ecode5)) {
34351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34352 }
34353 arg5 = static_cast< int >(val5);
34354 }
34355 {
34356 PyThreadState* __tstate = wxPyBeginAllowThreads();
34357 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34358 wxPyEndAllowThreads(__tstate);
34359 if (PyErr_Occurred()) SWIG_fail;
34360 }
34361 resultobj = SWIG_Py_Void();
34362 return resultobj;
34363fail:
34364 return NULL;
34365}
34366
34367
34368SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34369 PyObject *resultobj = 0;
34370 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34371 wxWindow *arg2 = (wxWindow *) 0 ;
34372 wxDC *arg3 = 0 ;
34373 wxRect *arg4 = 0 ;
34374 int arg5 = (int) 0 ;
34375 void *argp1 = 0 ;
34376 int res1 = 0 ;
34377 void *argp2 = 0 ;
34378 int res2 = 0 ;
34379 void *argp3 = 0 ;
34380 int res3 = 0 ;
34381 wxRect temp4 ;
34382 int val5 ;
34383 int ecode5 = 0 ;
34384 PyObject * obj0 = 0 ;
34385 PyObject * obj1 = 0 ;
34386 PyObject * obj2 = 0 ;
34387 PyObject * obj3 = 0 ;
34388 PyObject * obj4 = 0 ;
34389 char * kwnames[] = {
34390 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34391 };
34392
34393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34395 if (!SWIG_IsOK(res1)) {
34396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34397 }
34398 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34399 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34400 if (!SWIG_IsOK(res2)) {
34401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34402 }
34403 arg2 = reinterpret_cast< wxWindow * >(argp2);
34404 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34405 if (!SWIG_IsOK(res3)) {
34406 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34407 }
34408 if (!argp3) {
34409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34410 }
34411 arg3 = reinterpret_cast< wxDC * >(argp3);
34412 {
34413 arg4 = &temp4;
34414 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34415 }
34416 if (obj4) {
34417 ecode5 = SWIG_AsVal_int(obj4, &val5);
34418 if (!SWIG_IsOK(ecode5)) {
34419 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34420 }
34421 arg5 = static_cast< int >(val5);
34422 }
34423 {
34424 PyThreadState* __tstate = wxPyBeginAllowThreads();
34425 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34426 wxPyEndAllowThreads(__tstate);
34427 if (PyErr_Occurred()) SWIG_fail;
34428 }
34429 resultobj = SWIG_Py_Void();
34430 return resultobj;
34431fail:
34432 return NULL;
34433}
34434
34435
01f6b6d3
RD
34436SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34437 PyObject *resultobj = 0;
34438 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34439 wxWindow *arg2 = (wxWindow *) 0 ;
34440 wxDC *arg3 = 0 ;
34441 wxRect *arg4 = 0 ;
34442 int arg5 = (int) 0 ;
34443 void *argp1 = 0 ;
34444 int res1 = 0 ;
34445 void *argp2 = 0 ;
34446 int res2 = 0 ;
34447 void *argp3 = 0 ;
34448 int res3 = 0 ;
34449 wxRect temp4 ;
34450 int val5 ;
34451 int ecode5 = 0 ;
34452 PyObject * obj0 = 0 ;
34453 PyObject * obj1 = 0 ;
34454 PyObject * obj2 = 0 ;
34455 PyObject * obj3 = 0 ;
34456 PyObject * obj4 = 0 ;
34457 char * kwnames[] = {
34458 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34459 };
34460
34461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34463 if (!SWIG_IsOK(res1)) {
34464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34465 }
34466 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34467 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34468 if (!SWIG_IsOK(res2)) {
34469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34470 }
34471 arg2 = reinterpret_cast< wxWindow * >(argp2);
34472 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34473 if (!SWIG_IsOK(res3)) {
34474 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34475 }
34476 if (!argp3) {
34477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34478 }
34479 arg3 = reinterpret_cast< wxDC * >(argp3);
34480 {
34481 arg4 = &temp4;
34482 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34483 }
34484 if (obj4) {
34485 ecode5 = SWIG_AsVal_int(obj4, &val5);
34486 if (!SWIG_IsOK(ecode5)) {
34487 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34488 }
34489 arg5 = static_cast< int >(val5);
34490 }
34491 {
34492 PyThreadState* __tstate = wxPyBeginAllowThreads();
34493 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34494 wxPyEndAllowThreads(__tstate);
34495 if (PyErr_Occurred()) SWIG_fail;
34496 }
34497 resultobj = SWIG_Py_Void();
34498 return resultobj;
34499fail:
34500 return NULL;
34501}
34502
34503
34504SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34505 PyObject *resultobj = 0;
34506 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34507 wxWindow *arg2 = (wxWindow *) 0 ;
34508 wxDC *arg3 = 0 ;
34509 wxRect *arg4 = 0 ;
34510 int arg5 = (int) 0 ;
34511 void *argp1 = 0 ;
34512 int res1 = 0 ;
34513 void *argp2 = 0 ;
34514 int res2 = 0 ;
34515 void *argp3 = 0 ;
34516 int res3 = 0 ;
34517 wxRect temp4 ;
34518 int val5 ;
34519 int ecode5 = 0 ;
34520 PyObject * obj0 = 0 ;
34521 PyObject * obj1 = 0 ;
34522 PyObject * obj2 = 0 ;
34523 PyObject * obj3 = 0 ;
34524 PyObject * obj4 = 0 ;
34525 char * kwnames[] = {
34526 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34527 };
34528
34529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34531 if (!SWIG_IsOK(res1)) {
34532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34533 }
34534 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34535 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34536 if (!SWIG_IsOK(res2)) {
34537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34538 }
34539 arg2 = reinterpret_cast< wxWindow * >(argp2);
34540 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34541 if (!SWIG_IsOK(res3)) {
34542 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34543 }
34544 if (!argp3) {
34545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34546 }
34547 arg3 = reinterpret_cast< wxDC * >(argp3);
34548 {
34549 arg4 = &temp4;
34550 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34551 }
34552 if (obj4) {
34553 ecode5 = SWIG_AsVal_int(obj4, &val5);
34554 if (!SWIG_IsOK(ecode5)) {
34555 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34556 }
34557 arg5 = static_cast< int >(val5);
34558 }
34559 {
34560 PyThreadState* __tstate = wxPyBeginAllowThreads();
34561 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34562 wxPyEndAllowThreads(__tstate);
34563 if (PyErr_Occurred()) SWIG_fail;
34564 }
34565 resultobj = SWIG_Py_Void();
34566 return resultobj;
34567fail:
34568 return NULL;
34569}
34570
34571
34572SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
34573 PyObject *resultobj = 0;
34574 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34575 wxWindow *arg2 = (wxWindow *) 0 ;
34576 wxDC *arg3 = 0 ;
34577 wxRect *arg4 = 0 ;
34578 int arg5 = (int) 0 ;
34579 void *argp1 = 0 ;
34580 int res1 = 0 ;
34581 void *argp2 = 0 ;
34582 int res2 = 0 ;
34583 void *argp3 = 0 ;
34584 int res3 = 0 ;
34585 wxRect temp4 ;
34586 int val5 ;
34587 int ecode5 = 0 ;
34588 PyObject * obj0 = 0 ;
34589 PyObject * obj1 = 0 ;
34590 PyObject * obj2 = 0 ;
34591 PyObject * obj3 = 0 ;
34592 PyObject * obj4 = 0 ;
34593 char * kwnames[] = {
34594 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34595 };
34596
01f6b6d3 34597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
34598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34599 if (!SWIG_IsOK(res1)) {
01f6b6d3 34600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
34601 }
34602 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34603 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34604 if (!SWIG_IsOK(res2)) {
01f6b6d3 34605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
34606 }
34607 arg2 = reinterpret_cast< wxWindow * >(argp2);
34608 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34609 if (!SWIG_IsOK(res3)) {
01f6b6d3 34610 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
34611 }
34612 if (!argp3) {
01f6b6d3 34613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
34614 }
34615 arg3 = reinterpret_cast< wxDC * >(argp3);
34616 {
34617 arg4 = &temp4;
34618 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34619 }
34620 if (obj4) {
34621 ecode5 = SWIG_AsVal_int(obj4, &val5);
34622 if (!SWIG_IsOK(ecode5)) {
01f6b6d3 34623 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
34624 }
34625 arg5 = static_cast< int >(val5);
34626 }
34627 {
34628 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 34629 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
34630 wxPyEndAllowThreads(__tstate);
34631 if (PyErr_Occurred()) SWIG_fail;
34632 }
34633 resultobj = SWIG_Py_Void();
34634 return resultobj;
34635fail:
34636 return NULL;
34637}
34638
34639
0085ce49
RD
34640SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34641 PyObject *resultobj = 0;
34642 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34643 wxWindow *arg2 = (wxWindow *) 0 ;
34644 SwigValueWrapper<wxSplitterRenderParams > result;
34645 void *argp1 = 0 ;
34646 int res1 = 0 ;
34647 void *argp2 = 0 ;
34648 int res2 = 0 ;
34649 PyObject * obj0 = 0 ;
34650 PyObject * obj1 = 0 ;
34651 char * kwnames[] = {
34652 (char *) "self",(char *) "win", NULL
34653 };
34654
34655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34657 if (!SWIG_IsOK(res1)) {
34658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34659 }
34660 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34661 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34662 if (!SWIG_IsOK(res2)) {
34663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34664 }
34665 arg2 = reinterpret_cast< wxWindow * >(argp2);
34666 {
34667 PyThreadState* __tstate = wxPyBeginAllowThreads();
34668 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34669 wxPyEndAllowThreads(__tstate);
34670 if (PyErr_Occurred()) SWIG_fail;
34671 }
34672 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34673 return resultobj;
34674fail:
34675 return NULL;
34676}
34677
34678
34679SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34680 PyObject *resultobj = 0;
34681 wxRendererNative *result = 0 ;
34682
34683 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34684 {
704eda0c 34685 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34686 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 34687 {
0085ce49
RD
34688 wxRendererNative &_result_ref = wxRendererNative::Get();
34689 result = (wxRendererNative *) &_result_ref;
093d3ff1 34690 }
0085ce49
RD
34691 wxPyEndAllowThreads(__tstate);
34692 if (PyErr_Occurred()) SWIG_fail;
34693 }
34694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34695 return resultobj;
34696fail:
34697 return NULL;
34698}
34699
34700
34701SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34702 PyObject *resultobj = 0;
34703 wxRendererNative *result = 0 ;
34704
34705 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34706 {
704eda0c 34707 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34708 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 34709 {
0085ce49
RD
34710 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34711 result = (wxRendererNative *) &_result_ref;
8d38bd1d 34712 }
0085ce49
RD
34713 wxPyEndAllowThreads(__tstate);
34714 if (PyErr_Occurred()) SWIG_fail;
34715 }
34716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34717 return resultobj;
34718fail:
34719 return NULL;
34720}
34721
34722
34723SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34724 PyObject *resultobj = 0;
34725 wxRendererNative *result = 0 ;
34726
34727 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34728 {
704eda0c 34729 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 34731 {
0085ce49
RD
34732 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34733 result = (wxRendererNative *) &_result_ref;
8d38bd1d 34734 }
0085ce49
RD
34735 wxPyEndAllowThreads(__tstate);
34736 if (PyErr_Occurred()) SWIG_fail;
34737 }
34738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34739 return resultobj;
34740fail:
34741 return NULL;
34742}
34743
34744
34745SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34746 PyObject *resultobj = 0;
34747 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34748 wxRendererNative *result = 0 ;
34749 void *argp1 = 0 ;
34750 int res1 = 0 ;
34751 PyObject * obj0 = 0 ;
34752 char * kwnames[] = {
34753 (char *) "renderer", NULL
34754 };
34755
34756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34758 if (!SWIG_IsOK(res1)) {
34759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34760 }
34761 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34762 {
704eda0c 34763 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49
RD
34764 PyThreadState* __tstate = wxPyBeginAllowThreads();
34765 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34766 wxPyEndAllowThreads(__tstate);
34767 if (PyErr_Occurred()) SWIG_fail;
34768 }
34769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34770 return resultobj;
34771fail:
34772 return NULL;
34773}
34774
34775
34776SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34777 PyObject *resultobj = 0;
34778 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34779 SwigValueWrapper<wxRendererVersion > result;
34780 void *argp1 = 0 ;
34781 int res1 = 0 ;
34782 PyObject *swig_obj[1] ;
34783
34784 if (!args) SWIG_fail;
34785 swig_obj[0] = args;
34786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34787 if (!SWIG_IsOK(res1)) {
34788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34789 }
34790 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34791 {
34792 PyThreadState* __tstate = wxPyBeginAllowThreads();
34793 result = ((wxRendererNative const *)arg1)->GetVersion();
34794 wxPyEndAllowThreads(__tstate);
34795 if (PyErr_Occurred()) SWIG_fail;
34796 }
34797 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34798 return resultobj;
34799fail:
34800 return NULL;
34801}
34802
34803
34804SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34805 PyObject *obj;
34806 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34807 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34808 return SWIG_Py_Void();
34809}
34810
27e45892
RD
34811SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34812 PyObject *resultobj = 0;
34813 wxPseudoDC *result = 0 ;
34814
34815 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34816 {
34817 PyThreadState* __tstate = wxPyBeginAllowThreads();
34818 result = (wxPseudoDC *)new wxPseudoDC();
34819 wxPyEndAllowThreads(__tstate);
34820 if (PyErr_Occurred()) SWIG_fail;
34821 }
34822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34823 return resultobj;
34824fail:
34825 return NULL;
34826}
34827
34828
34829SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34830 PyObject *resultobj = 0;
34831 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34832 void *argp1 = 0 ;
34833 int res1 = 0 ;
34834 PyObject *swig_obj[1] ;
34835
34836 if (!args) SWIG_fail;
34837 swig_obj[0] = args;
34838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34839 if (!SWIG_IsOK(res1)) {
34840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34841 }
34842 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34843 {
34844 PyThreadState* __tstate = wxPyBeginAllowThreads();
34845 (arg1)->BeginDrawing();
34846 wxPyEndAllowThreads(__tstate);
34847 if (PyErr_Occurred()) SWIG_fail;
34848 }
34849 resultobj = SWIG_Py_Void();
34850 return resultobj;
34851fail:
34852 return NULL;
34853}
34854
34855
34856SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34857 PyObject *resultobj = 0;
34858 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34859 void *argp1 = 0 ;
34860 int res1 = 0 ;
34861 PyObject *swig_obj[1] ;
34862
34863 if (!args) SWIG_fail;
34864 swig_obj[0] = args;
34865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34866 if (!SWIG_IsOK(res1)) {
34867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34868 }
34869 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34870 {
34871 PyThreadState* __tstate = wxPyBeginAllowThreads();
34872 (arg1)->EndDrawing();
34873 wxPyEndAllowThreads(__tstate);
34874 if (PyErr_Occurred()) SWIG_fail;
34875 }
34876 resultobj = SWIG_Py_Void();
34877 return resultobj;
34878fail:
34879 return NULL;
34880}
34881
34882
34883SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34884 PyObject *resultobj = 0;
34885 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34886 void *argp1 = 0 ;
34887 int res1 = 0 ;
34888 PyObject *swig_obj[1] ;
34889
34890 if (!args) SWIG_fail;
34891 swig_obj[0] = args;
34892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
34893 if (!SWIG_IsOK(res1)) {
34894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34895 }
34896 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34897 {
34898 PyThreadState* __tstate = wxPyBeginAllowThreads();
34899 delete arg1;
34900
34901 wxPyEndAllowThreads(__tstate);
34902 if (PyErr_Occurred()) SWIG_fail;
34903 }
34904 resultobj = SWIG_Py_Void();
34905 return resultobj;
34906fail:
34907 return NULL;
34908}
34909
34910
34911SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34912 PyObject *resultobj = 0;
34913 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34914 void *argp1 = 0 ;
34915 int res1 = 0 ;
34916 PyObject *swig_obj[1] ;
34917
34918 if (!args) SWIG_fail;
34919 swig_obj[0] = args;
34920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34921 if (!SWIG_IsOK(res1)) {
34922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34923 }
34924 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34925 {
34926 PyThreadState* __tstate = wxPyBeginAllowThreads();
34927 (arg1)->RemoveAll();
34928 wxPyEndAllowThreads(__tstate);
34929 if (PyErr_Occurred()) SWIG_fail;
34930 }
34931 resultobj = SWIG_Py_Void();
34932 return resultobj;
34933fail:
34934 return NULL;
34935}
34936
34937
34938SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34939 PyObject *resultobj = 0;
34940 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34941 int result;
34942 void *argp1 = 0 ;
34943 int res1 = 0 ;
34944 PyObject *swig_obj[1] ;
34945
34946 if (!args) SWIG_fail;
34947 swig_obj[0] = args;
34948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34949 if (!SWIG_IsOK(res1)) {
34950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34951 }
34952 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34953 {
34954 PyThreadState* __tstate = wxPyBeginAllowThreads();
34955 result = (int)(arg1)->GetLen();
34956 wxPyEndAllowThreads(__tstate);
34957 if (PyErr_Occurred()) SWIG_fail;
34958 }
34959 resultobj = SWIG_From_int(static_cast< int >(result));
34960 return resultobj;
34961fail:
34962 return NULL;
34963}
34964
34965
34966SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34967 PyObject *resultobj = 0;
34968 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34969 int arg2 ;
34970 void *argp1 = 0 ;
34971 int res1 = 0 ;
34972 int val2 ;
34973 int ecode2 = 0 ;
34974 PyObject * obj0 = 0 ;
34975 PyObject * obj1 = 0 ;
34976 char * kwnames[] = {
34977 (char *) "self",(char *) "id", NULL
34978 };
34979
34980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
34981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34982 if (!SWIG_IsOK(res1)) {
34983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34984 }
34985 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34986 ecode2 = SWIG_AsVal_int(obj1, &val2);
34987 if (!SWIG_IsOK(ecode2)) {
34988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
34989 }
34990 arg2 = static_cast< int >(val2);
34991 {
34992 PyThreadState* __tstate = wxPyBeginAllowThreads();
34993 (arg1)->SetId(arg2);
34994 wxPyEndAllowThreads(__tstate);
34995 if (PyErr_Occurred()) SWIG_fail;
34996 }
34997 resultobj = SWIG_Py_Void();
34998 return resultobj;
34999fail:
35000 return NULL;
35001}
35002
35003
35004SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35005 PyObject *resultobj = 0;
35006 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35007 int arg2 ;
35008 void *argp1 = 0 ;
35009 int res1 = 0 ;
35010 int val2 ;
35011 int ecode2 = 0 ;
35012 PyObject * obj0 = 0 ;
35013 PyObject * obj1 = 0 ;
35014 char * kwnames[] = {
35015 (char *) "self",(char *) "id", NULL
35016 };
35017
35018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35020 if (!SWIG_IsOK(res1)) {
35021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35022 }
35023 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35024 ecode2 = SWIG_AsVal_int(obj1, &val2);
35025 if (!SWIG_IsOK(ecode2)) {
35026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35027 }
35028 arg2 = static_cast< int >(val2);
35029 {
35030 PyThreadState* __tstate = wxPyBeginAllowThreads();
35031 (arg1)->ClearId(arg2);
35032 wxPyEndAllowThreads(__tstate);
35033 if (PyErr_Occurred()) SWIG_fail;
35034 }
35035 resultobj = SWIG_Py_Void();
35036 return resultobj;
35037fail:
35038 return NULL;
35039}
35040
35041
35042SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35043 PyObject *resultobj = 0;
35044 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35045 int arg2 ;
35046 void *argp1 = 0 ;
35047 int res1 = 0 ;
35048 int val2 ;
35049 int ecode2 = 0 ;
35050 PyObject * obj0 = 0 ;
35051 PyObject * obj1 = 0 ;
35052 char * kwnames[] = {
35053 (char *) "self",(char *) "id", NULL
35054 };
35055
35056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35058 if (!SWIG_IsOK(res1)) {
35059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35060 }
35061 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35062 ecode2 = SWIG_AsVal_int(obj1, &val2);
35063 if (!SWIG_IsOK(ecode2)) {
35064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35065 }
35066 arg2 = static_cast< int >(val2);
35067 {
35068 PyThreadState* __tstate = wxPyBeginAllowThreads();
35069 (arg1)->RemoveId(arg2);
35070 wxPyEndAllowThreads(__tstate);
35071 if (PyErr_Occurred()) SWIG_fail;
35072 }
35073 resultobj = SWIG_Py_Void();
35074 return resultobj;
35075fail:
35076 return NULL;
35077}
35078
35079
35080SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35081 PyObject *resultobj = 0;
35082 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35083 int arg2 ;
35084 int arg3 ;
35085 int arg4 ;
35086 void *argp1 = 0 ;
35087 int res1 = 0 ;
35088 int val2 ;
35089 int ecode2 = 0 ;
35090 int val3 ;
35091 int ecode3 = 0 ;
35092 int val4 ;
35093 int ecode4 = 0 ;
35094 PyObject * obj0 = 0 ;
35095 PyObject * obj1 = 0 ;
35096 PyObject * obj2 = 0 ;
35097 PyObject * obj3 = 0 ;
35098 char * kwnames[] = {
35099 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35100 };
35101
35102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35104 if (!SWIG_IsOK(res1)) {
35105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35106 }
35107 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35108 ecode2 = SWIG_AsVal_int(obj1, &val2);
35109 if (!SWIG_IsOK(ecode2)) {
35110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35111 }
35112 arg2 = static_cast< int >(val2);
35113 ecode3 = SWIG_AsVal_int(obj2, &val3);
35114 if (!SWIG_IsOK(ecode3)) {
35115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35116 }
35117 arg3 = static_cast< int >(val3);
35118 ecode4 = SWIG_AsVal_int(obj3, &val4);
35119 if (!SWIG_IsOK(ecode4)) {
35120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35121 }
35122 arg4 = static_cast< int >(val4);
35123 {
35124 PyThreadState* __tstate = wxPyBeginAllowThreads();
35125 (arg1)->TranslateId(arg2,arg3,arg4);
35126 wxPyEndAllowThreads(__tstate);
35127 if (PyErr_Occurred()) SWIG_fail;
35128 }
35129 resultobj = SWIG_Py_Void();
35130 return resultobj;
35131fail:
35132 return NULL;
35133}
35134
35135
72ef6efb
RD
35136SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35137 PyObject *resultobj = 0;
35138 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35139 int arg2 ;
35140 bool arg3 = (bool) true ;
35141 void *argp1 = 0 ;
35142 int res1 = 0 ;
35143 int val2 ;
35144 int ecode2 = 0 ;
35145 bool val3 ;
35146 int ecode3 = 0 ;
35147 PyObject * obj0 = 0 ;
35148 PyObject * obj1 = 0 ;
35149 PyObject * obj2 = 0 ;
35150 char * kwnames[] = {
35151 (char *) "self",(char *) "id",(char *) "greyout", NULL
35152 };
35153
35154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35156 if (!SWIG_IsOK(res1)) {
35157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35158 }
35159 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35160 ecode2 = SWIG_AsVal_int(obj1, &val2);
35161 if (!SWIG_IsOK(ecode2)) {
35162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35163 }
35164 arg2 = static_cast< int >(val2);
35165 if (obj2) {
35166 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35167 if (!SWIG_IsOK(ecode3)) {
35168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35169 }
35170 arg3 = static_cast< bool >(val3);
35171 }
35172 {
35173 PyThreadState* __tstate = wxPyBeginAllowThreads();
35174 (arg1)->SetIdGreyedOut(arg2,arg3);
35175 wxPyEndAllowThreads(__tstate);
35176 if (PyErr_Occurred()) SWIG_fail;
35177 }
35178 resultobj = SWIG_Py_Void();
35179 return resultobj;
35180fail:
35181 return NULL;
35182}
35183
35184
35185SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35186 PyObject *resultobj = 0;
35187 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35188 int arg2 ;
35189 bool result;
35190 void *argp1 = 0 ;
35191 int res1 = 0 ;
35192 int val2 ;
35193 int ecode2 = 0 ;
35194 PyObject * obj0 = 0 ;
35195 PyObject * obj1 = 0 ;
35196 char * kwnames[] = {
35197 (char *) "self",(char *) "id", NULL
35198 };
35199
35200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35202 if (!SWIG_IsOK(res1)) {
35203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35204 }
35205 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35206 ecode2 = SWIG_AsVal_int(obj1, &val2);
35207 if (!SWIG_IsOK(ecode2)) {
35208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35209 }
35210 arg2 = static_cast< int >(val2);
35211 {
35212 PyThreadState* __tstate = wxPyBeginAllowThreads();
35213 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35214 wxPyEndAllowThreads(__tstate);
35215 if (PyErr_Occurred()) SWIG_fail;
35216 }
35217 {
35218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35219 }
35220 return resultobj;
35221fail:
35222 return NULL;
35223}
35224
35225
35226SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35227 PyObject *resultobj = 0;
35228 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35229 int arg2 ;
35230 int arg3 ;
35231 int arg4 = (int) 1 ;
35232 wxColor const &arg5_defvalue = *wxWHITE ;
35233 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35234 PyObject *result = 0 ;
35235 void *argp1 = 0 ;
35236 int res1 = 0 ;
35237 int val2 ;
35238 int ecode2 = 0 ;
35239 int val3 ;
35240 int ecode3 = 0 ;
35241 int val4 ;
35242 int ecode4 = 0 ;
35243 void *argp5 = 0 ;
35244 int res5 = 0 ;
35245 PyObject * obj0 = 0 ;
35246 PyObject * obj1 = 0 ;
35247 PyObject * obj2 = 0 ;
35248 PyObject * obj3 = 0 ;
35249 PyObject * obj4 = 0 ;
35250 char * kwnames[] = {
35251 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35252 };
35253
35254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35256 if (!SWIG_IsOK(res1)) {
35257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35258 }
35259 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35260 ecode2 = SWIG_AsVal_int(obj1, &val2);
35261 if (!SWIG_IsOK(ecode2)) {
35262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35263 }
35264 arg2 = static_cast< int >(val2);
35265 ecode3 = SWIG_AsVal_int(obj2, &val3);
35266 if (!SWIG_IsOK(ecode3)) {
35267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35268 }
35269 arg3 = static_cast< int >(val3);
35270 if (obj3) {
35271 ecode4 = SWIG_AsVal_int(obj3, &val4);
35272 if (!SWIG_IsOK(ecode4)) {
35273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35274 }
35275 arg4 = static_cast< int >(val4);
35276 }
35277 if (obj4) {
35278 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35279 if (!SWIG_IsOK(res5)) {
35280 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35281 }
35282 if (!argp5) {
35283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35284 }
35285 arg5 = reinterpret_cast< wxColor * >(argp5);
35286 }
35287 {
35288 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35289 if (PyErr_Occurred()) SWIG_fail;
35290 }
35291 resultobj = result;
35292 return resultobj;
35293fail:
35294 return NULL;
35295}
35296
35297
35298SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35299 PyObject *resultobj = 0;
35300 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35301 int arg2 ;
35302 int arg3 ;
35303 PyObject *result = 0 ;
35304 void *argp1 = 0 ;
35305 int res1 = 0 ;
35306 int val2 ;
35307 int ecode2 = 0 ;
35308 int val3 ;
35309 int ecode3 = 0 ;
35310 PyObject * obj0 = 0 ;
35311 PyObject * obj1 = 0 ;
35312 PyObject * obj2 = 0 ;
35313 char * kwnames[] = {
35314 (char *) "self",(char *) "x",(char *) "y", NULL
35315 };
35316
35317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35319 if (!SWIG_IsOK(res1)) {
35320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35321 }
35322 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35323 ecode2 = SWIG_AsVal_int(obj1, &val2);
35324 if (!SWIG_IsOK(ecode2)) {
35325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35326 }
35327 arg2 = static_cast< int >(val2);
35328 ecode3 = SWIG_AsVal_int(obj2, &val3);
35329 if (!SWIG_IsOK(ecode3)) {
35330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35331 }
35332 arg3 = static_cast< int >(val3);
35333 {
35334 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35335 if (PyErr_Occurred()) SWIG_fail;
35336 }
35337 resultobj = result;
35338 return resultobj;
35339fail:
35340 return NULL;
35341}
35342
35343
27e45892
RD
35344SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35345 PyObject *resultobj = 0;
35346 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35347 int arg2 ;
35348 wxDC *arg3 = (wxDC *) 0 ;
35349 void *argp1 = 0 ;
35350 int res1 = 0 ;
35351 int val2 ;
35352 int ecode2 = 0 ;
35353 void *argp3 = 0 ;
35354 int res3 = 0 ;
35355 PyObject * obj0 = 0 ;
35356 PyObject * obj1 = 0 ;
35357 PyObject * obj2 = 0 ;
35358 char * kwnames[] = {
35359 (char *) "self",(char *) "id",(char *) "dc", NULL
35360 };
35361
35362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35364 if (!SWIG_IsOK(res1)) {
35365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35366 }
35367 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35368 ecode2 = SWIG_AsVal_int(obj1, &val2);
35369 if (!SWIG_IsOK(ecode2)) {
35370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35371 }
35372 arg2 = static_cast< int >(val2);
35373 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35374 if (!SWIG_IsOK(res3)) {
35375 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35376 }
35377 arg3 = reinterpret_cast< wxDC * >(argp3);
35378 {
35379 PyThreadState* __tstate = wxPyBeginAllowThreads();
35380 (arg1)->DrawIdToDC(arg2,arg3);
35381 wxPyEndAllowThreads(__tstate);
35382 if (PyErr_Occurred()) SWIG_fail;
35383 }
35384 resultobj = SWIG_Py_Void();
35385 return resultobj;
35386fail:
35387 return NULL;
35388}
35389
35390
35391SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35392 PyObject *resultobj = 0;
35393 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35394 int arg2 ;
35395 wxRect *arg3 = 0 ;
35396 void *argp1 = 0 ;
35397 int res1 = 0 ;
35398 int val2 ;
35399 int ecode2 = 0 ;
35400 wxRect temp3 ;
35401 PyObject * obj0 = 0 ;
35402 PyObject * obj1 = 0 ;
35403 PyObject * obj2 = 0 ;
35404 char * kwnames[] = {
35405 (char *) "self",(char *) "id",(char *) "rect", NULL
35406 };
35407
35408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35410 if (!SWIG_IsOK(res1)) {
35411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35412 }
35413 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35414 ecode2 = SWIG_AsVal_int(obj1, &val2);
35415 if (!SWIG_IsOK(ecode2)) {
35416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35417 }
35418 arg2 = static_cast< int >(val2);
35419 {
35420 arg3 = &temp3;
35421 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35422 }
35423 {
35424 PyThreadState* __tstate = wxPyBeginAllowThreads();
35425 (arg1)->SetIdBounds(arg2,*arg3);
35426 wxPyEndAllowThreads(__tstate);
35427 if (PyErr_Occurred()) SWIG_fail;
35428 }
35429 resultobj = SWIG_Py_Void();
35430 return resultobj;
35431fail:
35432 return NULL;
35433}
35434
35435
35436SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35437 PyObject *resultobj = 0;
35438 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35439 int arg2 ;
35440 wxRect result;
35441 void *argp1 = 0 ;
35442 int res1 = 0 ;
35443 int val2 ;
35444 int ecode2 = 0 ;
35445 PyObject * obj0 = 0 ;
35446 PyObject * obj1 = 0 ;
35447 char * kwnames[] = {
35448 (char *) "self",(char *) "id", NULL
35449 };
35450
35451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35453 if (!SWIG_IsOK(res1)) {
35454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35455 }
35456 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35457 ecode2 = SWIG_AsVal_int(obj1, &val2);
35458 if (!SWIG_IsOK(ecode2)) {
35459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35460 }
35461 arg2 = static_cast< int >(val2);
35462 {
35463 PyThreadState* __tstate = wxPyBeginAllowThreads();
35464 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35465 wxPyEndAllowThreads(__tstate);
35466 if (PyErr_Occurred()) SWIG_fail;
35467 }
35468 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35469 return resultobj;
35470fail:
35471 return NULL;
35472}
35473
35474
35475SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35476 PyObject *resultobj = 0;
35477 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35478 wxDC *arg2 = (wxDC *) 0 ;
35479 wxRect *arg3 = 0 ;
35480 void *argp1 = 0 ;
35481 int res1 = 0 ;
35482 void *argp2 = 0 ;
35483 int res2 = 0 ;
35484 wxRect temp3 ;
35485 PyObject * obj0 = 0 ;
35486 PyObject * obj1 = 0 ;
35487 PyObject * obj2 = 0 ;
35488 char * kwnames[] = {
35489 (char *) "self",(char *) "dc",(char *) "rect", NULL
35490 };
35491
35492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35494 if (!SWIG_IsOK(res1)) {
35495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35496 }
35497 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35498 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35499 if (!SWIG_IsOK(res2)) {
35500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35501 }
35502 arg2 = reinterpret_cast< wxDC * >(argp2);
35503 {
35504 arg3 = &temp3;
35505 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35506 }
35507 {
35508 PyThreadState* __tstate = wxPyBeginAllowThreads();
35509 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35510 wxPyEndAllowThreads(__tstate);
35511 if (PyErr_Occurred()) SWIG_fail;
35512 }
35513 resultobj = SWIG_Py_Void();
35514 return resultobj;
35515fail:
35516 return NULL;
35517}
35518
35519
35520SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35521 PyObject *resultobj = 0;
35522 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35523 wxDC *arg2 = (wxDC *) 0 ;
35524 wxRegion *arg3 = 0 ;
35525 void *argp1 = 0 ;
35526 int res1 = 0 ;
35527 void *argp2 = 0 ;
35528 int res2 = 0 ;
35529 void *argp3 = 0 ;
35530 int res3 = 0 ;
35531 PyObject * obj0 = 0 ;
35532 PyObject * obj1 = 0 ;
35533 PyObject * obj2 = 0 ;
35534 char * kwnames[] = {
35535 (char *) "self",(char *) "dc",(char *) "region", NULL
35536 };
35537
35538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35540 if (!SWIG_IsOK(res1)) {
35541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35542 }
35543 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35544 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35545 if (!SWIG_IsOK(res2)) {
35546 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35547 }
35548 arg2 = reinterpret_cast< wxDC * >(argp2);
35549 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35550 if (!SWIG_IsOK(res3)) {
35551 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35552 }
35553 if (!argp3) {
35554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35555 }
35556 arg3 = reinterpret_cast< wxRegion * >(argp3);
35557 {
35558 PyThreadState* __tstate = wxPyBeginAllowThreads();
35559 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35560 wxPyEndAllowThreads(__tstate);
35561 if (PyErr_Occurred()) SWIG_fail;
35562 }
35563 resultobj = SWIG_Py_Void();
35564 return resultobj;
35565fail:
35566 return NULL;
35567}
35568
35569
35570SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35571 PyObject *resultobj = 0;
35572 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35573 wxDC *arg2 = (wxDC *) 0 ;
35574 void *argp1 = 0 ;
35575 int res1 = 0 ;
35576 void *argp2 = 0 ;
35577 int res2 = 0 ;
35578 PyObject * obj0 = 0 ;
35579 PyObject * obj1 = 0 ;
35580 char * kwnames[] = {
35581 (char *) "self",(char *) "dc", NULL
35582 };
35583
35584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35586 if (!SWIG_IsOK(res1)) {
35587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35588 }
35589 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35590 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35591 if (!SWIG_IsOK(res2)) {
35592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35593 }
35594 arg2 = reinterpret_cast< wxDC * >(argp2);
35595 {
35596 PyThreadState* __tstate = wxPyBeginAllowThreads();
35597 (arg1)->DrawToDC(arg2);
35598 wxPyEndAllowThreads(__tstate);
35599 if (PyErr_Occurred()) SWIG_fail;
35600 }
35601 resultobj = SWIG_Py_Void();
35602 return resultobj;
35603fail:
35604 return NULL;
35605}
35606
35607
35608SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35609 PyObject *resultobj = 0;
35610 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35611 int arg2 ;
35612 int arg3 ;
35613 wxColour *arg4 = 0 ;
35614 int arg5 = (int) wxFLOOD_SURFACE ;
35615 void *argp1 = 0 ;
35616 int res1 = 0 ;
35617 int val2 ;
35618 int ecode2 = 0 ;
35619 int val3 ;
35620 int ecode3 = 0 ;
35621 wxColour temp4 ;
35622 int val5 ;
35623 int ecode5 = 0 ;
35624 PyObject * obj0 = 0 ;
35625 PyObject * obj1 = 0 ;
35626 PyObject * obj2 = 0 ;
35627 PyObject * obj3 = 0 ;
35628 PyObject * obj4 = 0 ;
35629 char * kwnames[] = {
35630 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35631 };
35632
35633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35635 if (!SWIG_IsOK(res1)) {
35636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35637 }
35638 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35639 ecode2 = SWIG_AsVal_int(obj1, &val2);
35640 if (!SWIG_IsOK(ecode2)) {
35641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35642 }
35643 arg2 = static_cast< int >(val2);
35644 ecode3 = SWIG_AsVal_int(obj2, &val3);
35645 if (!SWIG_IsOK(ecode3)) {
35646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35647 }
35648 arg3 = static_cast< int >(val3);
35649 {
35650 arg4 = &temp4;
35651 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35652 }
35653 if (obj4) {
35654 ecode5 = SWIG_AsVal_int(obj4, &val5);
35655 if (!SWIG_IsOK(ecode5)) {
35656 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35657 }
35658 arg5 = static_cast< int >(val5);
35659 }
35660 {
35661 PyThreadState* __tstate = wxPyBeginAllowThreads();
35662 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35663 wxPyEndAllowThreads(__tstate);
35664 if (PyErr_Occurred()) SWIG_fail;
35665 }
35666 resultobj = SWIG_Py_Void();
35667 return resultobj;
35668fail:
35669 return NULL;
35670}
35671
35672
35673SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35674 PyObject *resultobj = 0;
35675 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35676 wxPoint *arg2 = 0 ;
35677 wxColour *arg3 = 0 ;
35678 int arg4 = (int) wxFLOOD_SURFACE ;
35679 void *argp1 = 0 ;
35680 int res1 = 0 ;
35681 wxPoint temp2 ;
35682 wxColour temp3 ;
35683 int val4 ;
35684 int ecode4 = 0 ;
35685 PyObject * obj0 = 0 ;
35686 PyObject * obj1 = 0 ;
35687 PyObject * obj2 = 0 ;
35688 PyObject * obj3 = 0 ;
35689 char * kwnames[] = {
35690 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35691 };
35692
35693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35695 if (!SWIG_IsOK(res1)) {
35696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35697 }
35698 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35699 {
35700 arg2 = &temp2;
35701 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35702 }
35703 {
35704 arg3 = &temp3;
35705 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35706 }
35707 if (obj3) {
35708 ecode4 = SWIG_AsVal_int(obj3, &val4);
35709 if (!SWIG_IsOK(ecode4)) {
35710 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35711 }
35712 arg4 = static_cast< int >(val4);
35713 }
35714 {
35715 PyThreadState* __tstate = wxPyBeginAllowThreads();
35716 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35717 wxPyEndAllowThreads(__tstate);
35718 if (PyErr_Occurred()) SWIG_fail;
35719 }
35720 resultobj = SWIG_Py_Void();
35721 return resultobj;
35722fail:
35723 return NULL;
35724}
35725
35726
35727SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35728 PyObject *resultobj = 0;
35729 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35730 int arg2 ;
35731 int arg3 ;
35732 int arg4 ;
35733 int arg5 ;
35734 void *argp1 = 0 ;
35735 int res1 = 0 ;
35736 int val2 ;
35737 int ecode2 = 0 ;
35738 int val3 ;
35739 int ecode3 = 0 ;
35740 int val4 ;
35741 int ecode4 = 0 ;
35742 int val5 ;
35743 int ecode5 = 0 ;
35744 PyObject * obj0 = 0 ;
35745 PyObject * obj1 = 0 ;
35746 PyObject * obj2 = 0 ;
35747 PyObject * obj3 = 0 ;
35748 PyObject * obj4 = 0 ;
35749 char * kwnames[] = {
35750 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35751 };
35752
35753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35755 if (!SWIG_IsOK(res1)) {
35756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35757 }
35758 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35759 ecode2 = SWIG_AsVal_int(obj1, &val2);
35760 if (!SWIG_IsOK(ecode2)) {
35761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35762 }
35763 arg2 = static_cast< int >(val2);
35764 ecode3 = SWIG_AsVal_int(obj2, &val3);
35765 if (!SWIG_IsOK(ecode3)) {
35766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35767 }
35768 arg3 = static_cast< int >(val3);
35769 ecode4 = SWIG_AsVal_int(obj3, &val4);
35770 if (!SWIG_IsOK(ecode4)) {
35771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35772 }
35773 arg4 = static_cast< int >(val4);
35774 ecode5 = SWIG_AsVal_int(obj4, &val5);
35775 if (!SWIG_IsOK(ecode5)) {
35776 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35777 }
35778 arg5 = static_cast< int >(val5);
35779 {
35780 PyThreadState* __tstate = wxPyBeginAllowThreads();
35781 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35782 wxPyEndAllowThreads(__tstate);
35783 if (PyErr_Occurred()) SWIG_fail;
35784 }
35785 resultobj = SWIG_Py_Void();
35786 return resultobj;
35787fail:
35788 return NULL;
35789}
35790
35791
35792SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35793 PyObject *resultobj = 0;
35794 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35795 wxPoint *arg2 = 0 ;
35796 wxPoint *arg3 = 0 ;
35797 void *argp1 = 0 ;
35798 int res1 = 0 ;
35799 wxPoint temp2 ;
35800 wxPoint temp3 ;
35801 PyObject * obj0 = 0 ;
35802 PyObject * obj1 = 0 ;
35803 PyObject * obj2 = 0 ;
35804 char * kwnames[] = {
35805 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35806 };
35807
35808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35810 if (!SWIG_IsOK(res1)) {
35811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35812 }
35813 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35814 {
35815 arg2 = &temp2;
35816 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35817 }
35818 {
35819 arg3 = &temp3;
35820 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35821 }
35822 {
35823 PyThreadState* __tstate = wxPyBeginAllowThreads();
35824 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35825 wxPyEndAllowThreads(__tstate);
35826 if (PyErr_Occurred()) SWIG_fail;
35827 }
35828 resultobj = SWIG_Py_Void();
35829 return resultobj;
35830fail:
35831 return NULL;
35832}
35833
35834
35835SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35836 PyObject *resultobj = 0;
35837 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35838 int arg2 ;
35839 int arg3 ;
35840 void *argp1 = 0 ;
35841 int res1 = 0 ;
35842 int val2 ;
35843 int ecode2 = 0 ;
35844 int val3 ;
35845 int ecode3 = 0 ;
35846 PyObject * obj0 = 0 ;
35847 PyObject * obj1 = 0 ;
35848 PyObject * obj2 = 0 ;
35849 char * kwnames[] = {
35850 (char *) "self",(char *) "x",(char *) "y", NULL
35851 };
35852
35853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35855 if (!SWIG_IsOK(res1)) {
35856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35857 }
35858 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35859 ecode2 = SWIG_AsVal_int(obj1, &val2);
35860 if (!SWIG_IsOK(ecode2)) {
35861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
35862 }
35863 arg2 = static_cast< int >(val2);
35864 ecode3 = SWIG_AsVal_int(obj2, &val3);
35865 if (!SWIG_IsOK(ecode3)) {
35866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
35867 }
35868 arg3 = static_cast< int >(val3);
35869 {
35870 PyThreadState* __tstate = wxPyBeginAllowThreads();
35871 (arg1)->CrossHair(arg2,arg3);
35872 wxPyEndAllowThreads(__tstate);
35873 if (PyErr_Occurred()) SWIG_fail;
35874 }
35875 resultobj = SWIG_Py_Void();
35876 return resultobj;
35877fail:
35878 return NULL;
35879}
35880
35881
35882SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35883 PyObject *resultobj = 0;
35884 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35885 wxPoint *arg2 = 0 ;
35886 void *argp1 = 0 ;
35887 int res1 = 0 ;
35888 wxPoint temp2 ;
35889 PyObject * obj0 = 0 ;
35890 PyObject * obj1 = 0 ;
35891 char * kwnames[] = {
35892 (char *) "self",(char *) "pt", NULL
35893 };
35894
35895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
35896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35897 if (!SWIG_IsOK(res1)) {
35898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35899 }
35900 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35901 {
35902 arg2 = &temp2;
35903 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35904 }
35905 {
35906 PyThreadState* __tstate = wxPyBeginAllowThreads();
35907 (arg1)->CrossHair((wxPoint const &)*arg2);
35908 wxPyEndAllowThreads(__tstate);
35909 if (PyErr_Occurred()) SWIG_fail;
35910 }
35911 resultobj = SWIG_Py_Void();
35912 return resultobj;
35913fail:
35914 return NULL;
35915}
35916
35917
35918SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35919 PyObject *resultobj = 0;
35920 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35921 int arg2 ;
35922 int arg3 ;
35923 int arg4 ;
35924 int arg5 ;
35925 int arg6 ;
35926 int arg7 ;
35927 void *argp1 = 0 ;
35928 int res1 = 0 ;
35929 int val2 ;
35930 int ecode2 = 0 ;
35931 int val3 ;
35932 int ecode3 = 0 ;
35933 int val4 ;
35934 int ecode4 = 0 ;
35935 int val5 ;
35936 int ecode5 = 0 ;
35937 int val6 ;
35938 int ecode6 = 0 ;
35939 int val7 ;
35940 int ecode7 = 0 ;
35941 PyObject * obj0 = 0 ;
35942 PyObject * obj1 = 0 ;
35943 PyObject * obj2 = 0 ;
35944 PyObject * obj3 = 0 ;
35945 PyObject * obj4 = 0 ;
35946 PyObject * obj5 = 0 ;
35947 PyObject * obj6 = 0 ;
35948 char * kwnames[] = {
35949 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
35950 };
35951
35952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35954 if (!SWIG_IsOK(res1)) {
35955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35956 }
35957 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35958 ecode2 = SWIG_AsVal_int(obj1, &val2);
35959 if (!SWIG_IsOK(ecode2)) {
35960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
35961 }
35962 arg2 = static_cast< int >(val2);
35963 ecode3 = SWIG_AsVal_int(obj2, &val3);
35964 if (!SWIG_IsOK(ecode3)) {
35965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
35966 }
35967 arg3 = static_cast< int >(val3);
35968 ecode4 = SWIG_AsVal_int(obj3, &val4);
35969 if (!SWIG_IsOK(ecode4)) {
35970 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
35971 }
35972 arg4 = static_cast< int >(val4);
35973 ecode5 = SWIG_AsVal_int(obj4, &val5);
35974 if (!SWIG_IsOK(ecode5)) {
35975 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
35976 }
35977 arg5 = static_cast< int >(val5);
35978 ecode6 = SWIG_AsVal_int(obj5, &val6);
35979 if (!SWIG_IsOK(ecode6)) {
35980 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
35981 }
35982 arg6 = static_cast< int >(val6);
35983 ecode7 = SWIG_AsVal_int(obj6, &val7);
35984 if (!SWIG_IsOK(ecode7)) {
35985 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
35986 }
35987 arg7 = static_cast< int >(val7);
35988 {
35989 PyThreadState* __tstate = wxPyBeginAllowThreads();
35990 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
35991 wxPyEndAllowThreads(__tstate);
35992 if (PyErr_Occurred()) SWIG_fail;
35993 }
35994 resultobj = SWIG_Py_Void();
35995 return resultobj;
35996fail:
35997 return NULL;
35998}
35999
36000
36001SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36002 PyObject *resultobj = 0;
36003 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36004 wxPoint *arg2 = 0 ;
36005 wxPoint *arg3 = 0 ;
36006 wxPoint *arg4 = 0 ;
36007 void *argp1 = 0 ;
36008 int res1 = 0 ;
36009 wxPoint temp2 ;
36010 wxPoint temp3 ;
36011 wxPoint temp4 ;
36012 PyObject * obj0 = 0 ;
36013 PyObject * obj1 = 0 ;
36014 PyObject * obj2 = 0 ;
36015 PyObject * obj3 = 0 ;
36016 char * kwnames[] = {
36017 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36018 };
36019
36020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36022 if (!SWIG_IsOK(res1)) {
36023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36024 }
36025 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36026 {
36027 arg2 = &temp2;
36028 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36029 }
36030 {
36031 arg3 = &temp3;
36032 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36033 }
36034 {
36035 arg4 = &temp4;
36036 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36037 }
36038 {
36039 PyThreadState* __tstate = wxPyBeginAllowThreads();
36040 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36041 wxPyEndAllowThreads(__tstate);
36042 if (PyErr_Occurred()) SWIG_fail;
36043 }
36044 resultobj = SWIG_Py_Void();
36045 return resultobj;
36046fail:
36047 return NULL;
36048}
36049
36050
36051SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36052 PyObject *resultobj = 0;
36053 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36054 int arg2 ;
36055 int arg3 ;
36056 int arg4 ;
36057 int arg5 ;
36058 void *argp1 = 0 ;
36059 int res1 = 0 ;
36060 int val2 ;
36061 int ecode2 = 0 ;
36062 int val3 ;
36063 int ecode3 = 0 ;
36064 int val4 ;
36065 int ecode4 = 0 ;
36066 int val5 ;
36067 int ecode5 = 0 ;
36068 PyObject * obj0 = 0 ;
36069 PyObject * obj1 = 0 ;
36070 PyObject * obj2 = 0 ;
36071 PyObject * obj3 = 0 ;
36072 PyObject * obj4 = 0 ;
36073 char * kwnames[] = {
36074 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36075 };
36076
36077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36079 if (!SWIG_IsOK(res1)) {
36080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36081 }
36082 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36083 ecode2 = SWIG_AsVal_int(obj1, &val2);
36084 if (!SWIG_IsOK(ecode2)) {
36085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36086 }
36087 arg2 = static_cast< int >(val2);
36088 ecode3 = SWIG_AsVal_int(obj2, &val3);
36089 if (!SWIG_IsOK(ecode3)) {
36090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36091 }
36092 arg3 = static_cast< int >(val3);
36093 ecode4 = SWIG_AsVal_int(obj3, &val4);
36094 if (!SWIG_IsOK(ecode4)) {
36095 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36096 }
36097 arg4 = static_cast< int >(val4);
36098 ecode5 = SWIG_AsVal_int(obj4, &val5);
36099 if (!SWIG_IsOK(ecode5)) {
36100 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36101 }
36102 arg5 = static_cast< int >(val5);
36103 {
36104 PyThreadState* __tstate = wxPyBeginAllowThreads();
36105 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36106 wxPyEndAllowThreads(__tstate);
36107 if (PyErr_Occurred()) SWIG_fail;
36108 }
36109 resultobj = SWIG_Py_Void();
36110 return resultobj;
36111fail:
36112 return NULL;
36113}
36114
36115
36116SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36117 PyObject *resultobj = 0;
36118 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36119 wxRect *arg2 = 0 ;
36120 void *argp1 = 0 ;
36121 int res1 = 0 ;
36122 wxRect temp2 ;
36123 PyObject * obj0 = 0 ;
36124 PyObject * obj1 = 0 ;
36125 char * kwnames[] = {
36126 (char *) "self",(char *) "rect", NULL
36127 };
36128
36129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36131 if (!SWIG_IsOK(res1)) {
36132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36133 }
36134 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36135 {
36136 arg2 = &temp2;
36137 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36138 }
36139 {
36140 PyThreadState* __tstate = wxPyBeginAllowThreads();
36141 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36142 wxPyEndAllowThreads(__tstate);
36143 if (PyErr_Occurred()) SWIG_fail;
36144 }
36145 resultobj = SWIG_Py_Void();
36146 return resultobj;
36147fail:
36148 return NULL;
36149}
36150
36151
36152SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36153 PyObject *resultobj = 0;
36154 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36155 int arg2 ;
36156 int arg3 ;
36157 int arg4 ;
36158 int arg5 ;
36159 double arg6 ;
36160 double arg7 ;
36161 void *argp1 = 0 ;
36162 int res1 = 0 ;
36163 int val2 ;
36164 int ecode2 = 0 ;
36165 int val3 ;
36166 int ecode3 = 0 ;
36167 int val4 ;
36168 int ecode4 = 0 ;
36169 int val5 ;
36170 int ecode5 = 0 ;
36171 double val6 ;
36172 int ecode6 = 0 ;
36173 double val7 ;
36174 int ecode7 = 0 ;
36175 PyObject * obj0 = 0 ;
36176 PyObject * obj1 = 0 ;
36177 PyObject * obj2 = 0 ;
36178 PyObject * obj3 = 0 ;
36179 PyObject * obj4 = 0 ;
36180 PyObject * obj5 = 0 ;
36181 PyObject * obj6 = 0 ;
36182 char * kwnames[] = {
36183 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36184 };
36185
36186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36188 if (!SWIG_IsOK(res1)) {
36189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36190 }
36191 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36192 ecode2 = SWIG_AsVal_int(obj1, &val2);
36193 if (!SWIG_IsOK(ecode2)) {
36194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36195 }
36196 arg2 = static_cast< int >(val2);
36197 ecode3 = SWIG_AsVal_int(obj2, &val3);
36198 if (!SWIG_IsOK(ecode3)) {
36199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36200 }
36201 arg3 = static_cast< int >(val3);
36202 ecode4 = SWIG_AsVal_int(obj3, &val4);
36203 if (!SWIG_IsOK(ecode4)) {
36204 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36205 }
36206 arg4 = static_cast< int >(val4);
36207 ecode5 = SWIG_AsVal_int(obj4, &val5);
36208 if (!SWIG_IsOK(ecode5)) {
36209 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36210 }
36211 arg5 = static_cast< int >(val5);
36212 ecode6 = SWIG_AsVal_double(obj5, &val6);
36213 if (!SWIG_IsOK(ecode6)) {
36214 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36215 }
36216 arg6 = static_cast< double >(val6);
36217 ecode7 = SWIG_AsVal_double(obj6, &val7);
36218 if (!SWIG_IsOK(ecode7)) {
36219 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36220 }
36221 arg7 = static_cast< double >(val7);
36222 {
36223 PyThreadState* __tstate = wxPyBeginAllowThreads();
36224 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36225 wxPyEndAllowThreads(__tstate);
36226 if (PyErr_Occurred()) SWIG_fail;
36227 }
36228 resultobj = SWIG_Py_Void();
36229 return resultobj;
36230fail:
36231 return NULL;
36232}
36233
36234
36235SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36236 PyObject *resultobj = 0;
36237 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36238 wxPoint *arg2 = 0 ;
36239 wxSize *arg3 = 0 ;
36240 double arg4 ;
36241 double arg5 ;
36242 void *argp1 = 0 ;
36243 int res1 = 0 ;
36244 wxPoint temp2 ;
36245 wxSize temp3 ;
36246 double val4 ;
36247 int ecode4 = 0 ;
36248 double val5 ;
36249 int ecode5 = 0 ;
36250 PyObject * obj0 = 0 ;
36251 PyObject * obj1 = 0 ;
36252 PyObject * obj2 = 0 ;
36253 PyObject * obj3 = 0 ;
36254 PyObject * obj4 = 0 ;
36255 char * kwnames[] = {
36256 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36257 };
36258
36259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36261 if (!SWIG_IsOK(res1)) {
36262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36263 }
36264 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36265 {
36266 arg2 = &temp2;
36267 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36268 }
36269 {
36270 arg3 = &temp3;
36271 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36272 }
36273 ecode4 = SWIG_AsVal_double(obj3, &val4);
36274 if (!SWIG_IsOK(ecode4)) {
36275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36276 }
36277 arg4 = static_cast< double >(val4);
36278 ecode5 = SWIG_AsVal_double(obj4, &val5);
36279 if (!SWIG_IsOK(ecode5)) {
36280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36281 }
36282 arg5 = static_cast< double >(val5);
36283 {
36284 PyThreadState* __tstate = wxPyBeginAllowThreads();
36285 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36286 wxPyEndAllowThreads(__tstate);
36287 if (PyErr_Occurred()) SWIG_fail;
36288 }
36289 resultobj = SWIG_Py_Void();
36290 return resultobj;
36291fail:
36292 return NULL;
36293}
36294
36295
36296SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36297 PyObject *resultobj = 0;
36298 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36299 int arg2 ;
36300 int arg3 ;
36301 void *argp1 = 0 ;
36302 int res1 = 0 ;
36303 int val2 ;
36304 int ecode2 = 0 ;
36305 int val3 ;
36306 int ecode3 = 0 ;
36307 PyObject * obj0 = 0 ;
36308 PyObject * obj1 = 0 ;
36309 PyObject * obj2 = 0 ;
36310 char * kwnames[] = {
36311 (char *) "self",(char *) "x",(char *) "y", NULL
36312 };
36313
36314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36316 if (!SWIG_IsOK(res1)) {
36317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36318 }
36319 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36320 ecode2 = SWIG_AsVal_int(obj1, &val2);
36321 if (!SWIG_IsOK(ecode2)) {
36322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36323 }
36324 arg2 = static_cast< int >(val2);
36325 ecode3 = SWIG_AsVal_int(obj2, &val3);
36326 if (!SWIG_IsOK(ecode3)) {
36327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36328 }
36329 arg3 = static_cast< int >(val3);
36330 {
36331 PyThreadState* __tstate = wxPyBeginAllowThreads();
36332 (arg1)->DrawPoint(arg2,arg3);
36333 wxPyEndAllowThreads(__tstate);
36334 if (PyErr_Occurred()) SWIG_fail;
36335 }
36336 resultobj = SWIG_Py_Void();
36337 return resultobj;
36338fail:
36339 return NULL;
36340}
36341
36342
36343SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36344 PyObject *resultobj = 0;
36345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36346 wxPoint *arg2 = 0 ;
36347 void *argp1 = 0 ;
36348 int res1 = 0 ;
36349 wxPoint temp2 ;
36350 PyObject * obj0 = 0 ;
36351 PyObject * obj1 = 0 ;
36352 char * kwnames[] = {
36353 (char *) "self",(char *) "pt", NULL
36354 };
36355
36356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36358 if (!SWIG_IsOK(res1)) {
36359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36360 }
36361 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36362 {
36363 arg2 = &temp2;
36364 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36365 }
36366 {
36367 PyThreadState* __tstate = wxPyBeginAllowThreads();
36368 (arg1)->DrawPoint((wxPoint const &)*arg2);
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_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36380 PyObject *resultobj = 0;
36381 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36382 int arg2 ;
36383 int arg3 ;
36384 int arg4 ;
36385 int arg5 ;
36386 void *argp1 = 0 ;
36387 int res1 = 0 ;
36388 int val2 ;
36389 int ecode2 = 0 ;
36390 int val3 ;
36391 int ecode3 = 0 ;
36392 int val4 ;
36393 int ecode4 = 0 ;
36394 int val5 ;
36395 int ecode5 = 0 ;
36396 PyObject * obj0 = 0 ;
36397 PyObject * obj1 = 0 ;
36398 PyObject * obj2 = 0 ;
36399 PyObject * obj3 = 0 ;
36400 PyObject * obj4 = 0 ;
36401 char * kwnames[] = {
36402 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36403 };
36404
36405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36407 if (!SWIG_IsOK(res1)) {
36408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36409 }
36410 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36411 ecode2 = SWIG_AsVal_int(obj1, &val2);
36412 if (!SWIG_IsOK(ecode2)) {
36413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36414 }
36415 arg2 = static_cast< int >(val2);
36416 ecode3 = SWIG_AsVal_int(obj2, &val3);
36417 if (!SWIG_IsOK(ecode3)) {
36418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36419 }
36420 arg3 = static_cast< int >(val3);
36421 ecode4 = SWIG_AsVal_int(obj3, &val4);
36422 if (!SWIG_IsOK(ecode4)) {
36423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36424 }
36425 arg4 = static_cast< int >(val4);
36426 ecode5 = SWIG_AsVal_int(obj4, &val5);
36427 if (!SWIG_IsOK(ecode5)) {
36428 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36429 }
36430 arg5 = static_cast< int >(val5);
36431 {
36432 PyThreadState* __tstate = wxPyBeginAllowThreads();
36433 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36434 wxPyEndAllowThreads(__tstate);
36435 if (PyErr_Occurred()) SWIG_fail;
36436 }
36437 resultobj = SWIG_Py_Void();
36438 return resultobj;
36439fail:
36440 return NULL;
36441}
36442
36443
36444SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36445 PyObject *resultobj = 0;
36446 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36447 wxRect *arg2 = 0 ;
36448 void *argp1 = 0 ;
36449 int res1 = 0 ;
36450 wxRect temp2 ;
36451 PyObject * obj0 = 0 ;
36452 PyObject * obj1 = 0 ;
36453 char * kwnames[] = {
36454 (char *) "self",(char *) "rect", NULL
36455 };
36456
36457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36459 if (!SWIG_IsOK(res1)) {
36460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36461 }
36462 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36463 {
36464 arg2 = &temp2;
36465 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36466 }
36467 {
36468 PyThreadState* __tstate = wxPyBeginAllowThreads();
36469 (arg1)->DrawRectangle((wxRect const &)*arg2);
36470 wxPyEndAllowThreads(__tstate);
36471 if (PyErr_Occurred()) SWIG_fail;
36472 }
36473 resultobj = SWIG_Py_Void();
36474 return resultobj;
36475fail:
36476 return NULL;
36477}
36478
36479
36480SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36481 PyObject *resultobj = 0;
36482 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36483 wxPoint *arg2 = 0 ;
36484 wxSize *arg3 = 0 ;
36485 void *argp1 = 0 ;
36486 int res1 = 0 ;
36487 wxPoint temp2 ;
36488 wxSize temp3 ;
36489 PyObject * obj0 = 0 ;
36490 PyObject * obj1 = 0 ;
36491 PyObject * obj2 = 0 ;
36492 char * kwnames[] = {
36493 (char *) "self",(char *) "pt",(char *) "sz", NULL
36494 };
36495
36496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36498 if (!SWIG_IsOK(res1)) {
36499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36500 }
36501 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36502 {
36503 arg2 = &temp2;
36504 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36505 }
36506 {
36507 arg3 = &temp3;
36508 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36509 }
36510 {
36511 PyThreadState* __tstate = wxPyBeginAllowThreads();
36512 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36513 wxPyEndAllowThreads(__tstate);
36514 if (PyErr_Occurred()) SWIG_fail;
36515 }
36516 resultobj = SWIG_Py_Void();
36517 return resultobj;
36518fail:
36519 return NULL;
36520}
36521
36522
36523SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36524 PyObject *resultobj = 0;
36525 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36526 int arg2 ;
36527 int arg3 ;
36528 int arg4 ;
36529 int arg5 ;
36530 double arg6 ;
36531 void *argp1 = 0 ;
36532 int res1 = 0 ;
36533 int val2 ;
36534 int ecode2 = 0 ;
36535 int val3 ;
36536 int ecode3 = 0 ;
36537 int val4 ;
36538 int ecode4 = 0 ;
36539 int val5 ;
36540 int ecode5 = 0 ;
36541 double val6 ;
36542 int ecode6 = 0 ;
36543 PyObject * obj0 = 0 ;
36544 PyObject * obj1 = 0 ;
36545 PyObject * obj2 = 0 ;
36546 PyObject * obj3 = 0 ;
36547 PyObject * obj4 = 0 ;
36548 PyObject * obj5 = 0 ;
36549 char * kwnames[] = {
36550 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36551 };
36552
36553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36555 if (!SWIG_IsOK(res1)) {
36556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36557 }
36558 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36559 ecode2 = SWIG_AsVal_int(obj1, &val2);
36560 if (!SWIG_IsOK(ecode2)) {
36561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36562 }
36563 arg2 = static_cast< int >(val2);
36564 ecode3 = SWIG_AsVal_int(obj2, &val3);
36565 if (!SWIG_IsOK(ecode3)) {
36566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36567 }
36568 arg3 = static_cast< int >(val3);
36569 ecode4 = SWIG_AsVal_int(obj3, &val4);
36570 if (!SWIG_IsOK(ecode4)) {
36571 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36572 }
36573 arg4 = static_cast< int >(val4);
36574 ecode5 = SWIG_AsVal_int(obj4, &val5);
36575 if (!SWIG_IsOK(ecode5)) {
36576 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36577 }
36578 arg5 = static_cast< int >(val5);
36579 ecode6 = SWIG_AsVal_double(obj5, &val6);
36580 if (!SWIG_IsOK(ecode6)) {
36581 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36582 }
36583 arg6 = static_cast< double >(val6);
36584 {
36585 PyThreadState* __tstate = wxPyBeginAllowThreads();
36586 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36587 wxPyEndAllowThreads(__tstate);
36588 if (PyErr_Occurred()) SWIG_fail;
36589 }
36590 resultobj = SWIG_Py_Void();
36591 return resultobj;
36592fail:
36593 return NULL;
36594}
36595
36596
36597SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36598 PyObject *resultobj = 0;
36599 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36600 wxRect *arg2 = 0 ;
36601 double arg3 ;
36602 void *argp1 = 0 ;
36603 int res1 = 0 ;
36604 wxRect temp2 ;
36605 double val3 ;
36606 int ecode3 = 0 ;
36607 PyObject * obj0 = 0 ;
36608 PyObject * obj1 = 0 ;
36609 PyObject * obj2 = 0 ;
36610 char * kwnames[] = {
36611 (char *) "self",(char *) "r",(char *) "radius", NULL
36612 };
36613
36614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36616 if (!SWIG_IsOK(res1)) {
36617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36618 }
36619 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36620 {
36621 arg2 = &temp2;
36622 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36623 }
36624 ecode3 = SWIG_AsVal_double(obj2, &val3);
36625 if (!SWIG_IsOK(ecode3)) {
36626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36627 }
36628 arg3 = static_cast< double >(val3);
36629 {
36630 PyThreadState* __tstate = wxPyBeginAllowThreads();
36631 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
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_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36643 PyObject *resultobj = 0;
36644 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36645 wxPoint *arg2 = 0 ;
36646 wxSize *arg3 = 0 ;
36647 double arg4 ;
36648 void *argp1 = 0 ;
36649 int res1 = 0 ;
36650 wxPoint temp2 ;
36651 wxSize temp3 ;
36652 double val4 ;
36653 int ecode4 = 0 ;
36654 PyObject * obj0 = 0 ;
36655 PyObject * obj1 = 0 ;
36656 PyObject * obj2 = 0 ;
36657 PyObject * obj3 = 0 ;
36658 char * kwnames[] = {
36659 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36660 };
36661
36662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36664 if (!SWIG_IsOK(res1)) {
36665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36666 }
36667 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36668 {
36669 arg2 = &temp2;
36670 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36671 }
36672 {
36673 arg3 = &temp3;
36674 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36675 }
36676 ecode4 = SWIG_AsVal_double(obj3, &val4);
36677 if (!SWIG_IsOK(ecode4)) {
36678 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36679 }
36680 arg4 = static_cast< double >(val4);
36681 {
36682 PyThreadState* __tstate = wxPyBeginAllowThreads();
36683 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36684 wxPyEndAllowThreads(__tstate);
36685 if (PyErr_Occurred()) SWIG_fail;
36686 }
36687 resultobj = SWIG_Py_Void();
36688 return resultobj;
36689fail:
36690 return NULL;
36691}
36692
36693
36694SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36695 PyObject *resultobj = 0;
36696 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36697 int arg2 ;
36698 int arg3 ;
36699 int arg4 ;
36700 void *argp1 = 0 ;
36701 int res1 = 0 ;
36702 int val2 ;
36703 int ecode2 = 0 ;
36704 int val3 ;
36705 int ecode3 = 0 ;
36706 int val4 ;
36707 int ecode4 = 0 ;
36708 PyObject * obj0 = 0 ;
36709 PyObject * obj1 = 0 ;
36710 PyObject * obj2 = 0 ;
36711 PyObject * obj3 = 0 ;
36712 char * kwnames[] = {
36713 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36714 };
36715
36716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36718 if (!SWIG_IsOK(res1)) {
36719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36720 }
36721 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36722 ecode2 = SWIG_AsVal_int(obj1, &val2);
36723 if (!SWIG_IsOK(ecode2)) {
36724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36725 }
36726 arg2 = static_cast< int >(val2);
36727 ecode3 = SWIG_AsVal_int(obj2, &val3);
36728 if (!SWIG_IsOK(ecode3)) {
36729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36730 }
36731 arg3 = static_cast< int >(val3);
36732 ecode4 = SWIG_AsVal_int(obj3, &val4);
36733 if (!SWIG_IsOK(ecode4)) {
36734 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36735 }
36736 arg4 = static_cast< int >(val4);
36737 {
36738 PyThreadState* __tstate = wxPyBeginAllowThreads();
36739 (arg1)->DrawCircle(arg2,arg3,arg4);
36740 wxPyEndAllowThreads(__tstate);
36741 if (PyErr_Occurred()) SWIG_fail;
36742 }
36743 resultobj = SWIG_Py_Void();
36744 return resultobj;
36745fail:
36746 return NULL;
36747}
36748
36749
36750SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36751 PyObject *resultobj = 0;
36752 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36753 wxPoint *arg2 = 0 ;
36754 int arg3 ;
36755 void *argp1 = 0 ;
36756 int res1 = 0 ;
36757 wxPoint temp2 ;
36758 int val3 ;
36759 int ecode3 = 0 ;
36760 PyObject * obj0 = 0 ;
36761 PyObject * obj1 = 0 ;
36762 PyObject * obj2 = 0 ;
36763 char * kwnames[] = {
36764 (char *) "self",(char *) "pt",(char *) "radius", NULL
36765 };
36766
36767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36769 if (!SWIG_IsOK(res1)) {
36770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36771 }
36772 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36773 {
36774 arg2 = &temp2;
36775 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36776 }
36777 ecode3 = SWIG_AsVal_int(obj2, &val3);
36778 if (!SWIG_IsOK(ecode3)) {
36779 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36780 }
36781 arg3 = static_cast< int >(val3);
36782 {
36783 PyThreadState* __tstate = wxPyBeginAllowThreads();
36784 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36785 wxPyEndAllowThreads(__tstate);
36786 if (PyErr_Occurred()) SWIG_fail;
36787 }
36788 resultobj = SWIG_Py_Void();
36789 return resultobj;
36790fail:
36791 return NULL;
36792}
36793
36794
36795SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36796 PyObject *resultobj = 0;
36797 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36798 int arg2 ;
36799 int arg3 ;
36800 int arg4 ;
36801 int arg5 ;
36802 void *argp1 = 0 ;
36803 int res1 = 0 ;
36804 int val2 ;
36805 int ecode2 = 0 ;
36806 int val3 ;
36807 int ecode3 = 0 ;
36808 int val4 ;
36809 int ecode4 = 0 ;
36810 int val5 ;
36811 int ecode5 = 0 ;
36812 PyObject * obj0 = 0 ;
36813 PyObject * obj1 = 0 ;
36814 PyObject * obj2 = 0 ;
36815 PyObject * obj3 = 0 ;
36816 PyObject * obj4 = 0 ;
36817 char * kwnames[] = {
36818 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36819 };
36820
36821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36823 if (!SWIG_IsOK(res1)) {
36824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36825 }
36826 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36827 ecode2 = SWIG_AsVal_int(obj1, &val2);
36828 if (!SWIG_IsOK(ecode2)) {
36829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36830 }
36831 arg2 = static_cast< int >(val2);
36832 ecode3 = SWIG_AsVal_int(obj2, &val3);
36833 if (!SWIG_IsOK(ecode3)) {
36834 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36835 }
36836 arg3 = static_cast< int >(val3);
36837 ecode4 = SWIG_AsVal_int(obj3, &val4);
36838 if (!SWIG_IsOK(ecode4)) {
36839 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36840 }
36841 arg4 = static_cast< int >(val4);
36842 ecode5 = SWIG_AsVal_int(obj4, &val5);
36843 if (!SWIG_IsOK(ecode5)) {
36844 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36845 }
36846 arg5 = static_cast< int >(val5);
36847 {
36848 PyThreadState* __tstate = wxPyBeginAllowThreads();
36849 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36850 wxPyEndAllowThreads(__tstate);
36851 if (PyErr_Occurred()) SWIG_fail;
36852 }
36853 resultobj = SWIG_Py_Void();
36854 return resultobj;
36855fail:
36856 return NULL;
36857}
36858
36859
36860SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36861 PyObject *resultobj = 0;
36862 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36863 wxRect *arg2 = 0 ;
36864 void *argp1 = 0 ;
36865 int res1 = 0 ;
36866 wxRect temp2 ;
36867 PyObject * obj0 = 0 ;
36868 PyObject * obj1 = 0 ;
36869 char * kwnames[] = {
36870 (char *) "self",(char *) "rect", NULL
36871 };
36872
36873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
36874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36875 if (!SWIG_IsOK(res1)) {
36876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36877 }
36878 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36879 {
36880 arg2 = &temp2;
36881 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36882 }
36883 {
36884 PyThreadState* __tstate = wxPyBeginAllowThreads();
36885 (arg1)->DrawEllipse((wxRect const &)*arg2);
36886 wxPyEndAllowThreads(__tstate);
36887 if (PyErr_Occurred()) SWIG_fail;
36888 }
36889 resultobj = SWIG_Py_Void();
36890 return resultobj;
36891fail:
36892 return NULL;
36893}
36894
36895
36896SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36897 PyObject *resultobj = 0;
36898 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36899 wxPoint *arg2 = 0 ;
36900 wxSize *arg3 = 0 ;
36901 void *argp1 = 0 ;
36902 int res1 = 0 ;
36903 wxPoint temp2 ;
36904 wxSize temp3 ;
36905 PyObject * obj0 = 0 ;
36906 PyObject * obj1 = 0 ;
36907 PyObject * obj2 = 0 ;
36908 char * kwnames[] = {
36909 (char *) "self",(char *) "pt",(char *) "sz", NULL
36910 };
36911
36912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36914 if (!SWIG_IsOK(res1)) {
36915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36916 }
36917 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36918 {
36919 arg2 = &temp2;
36920 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36921 }
36922 {
36923 arg3 = &temp3;
36924 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36925 }
36926 {
36927 PyThreadState* __tstate = wxPyBeginAllowThreads();
36928 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
36929 wxPyEndAllowThreads(__tstate);
36930 if (PyErr_Occurred()) SWIG_fail;
36931 }
36932 resultobj = SWIG_Py_Void();
36933 return resultobj;
36934fail:
36935 return NULL;
36936}
36937
36938
36939SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36940 PyObject *resultobj = 0;
36941 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36942 wxIcon *arg2 = 0 ;
36943 int arg3 ;
36944 int arg4 ;
36945 void *argp1 = 0 ;
36946 int res1 = 0 ;
36947 void *argp2 = 0 ;
36948 int res2 = 0 ;
36949 int val3 ;
36950 int ecode3 = 0 ;
36951 int val4 ;
36952 int ecode4 = 0 ;
36953 PyObject * obj0 = 0 ;
36954 PyObject * obj1 = 0 ;
36955 PyObject * obj2 = 0 ;
36956 PyObject * obj3 = 0 ;
36957 char * kwnames[] = {
36958 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
36959 };
36960
36961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36963 if (!SWIG_IsOK(res1)) {
36964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36965 }
36966 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36967 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
36968 if (!SWIG_IsOK(res2)) {
36969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36970 }
36971 if (!argp2) {
36972 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36973 }
36974 arg2 = reinterpret_cast< wxIcon * >(argp2);
36975 ecode3 = SWIG_AsVal_int(obj2, &val3);
36976 if (!SWIG_IsOK(ecode3)) {
36977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
36978 }
36979 arg3 = static_cast< int >(val3);
36980 ecode4 = SWIG_AsVal_int(obj3, &val4);
36981 if (!SWIG_IsOK(ecode4)) {
36982 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
36983 }
36984 arg4 = static_cast< int >(val4);
36985 {
36986 PyThreadState* __tstate = wxPyBeginAllowThreads();
36987 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
36988 wxPyEndAllowThreads(__tstate);
36989 if (PyErr_Occurred()) SWIG_fail;
36990 }
36991 resultobj = SWIG_Py_Void();
36992 return resultobj;
36993fail:
36994 return NULL;
36995}
36996
36997
36998SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36999 PyObject *resultobj = 0;
37000 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37001 wxIcon *arg2 = 0 ;
37002 wxPoint *arg3 = 0 ;
37003 void *argp1 = 0 ;
37004 int res1 = 0 ;
37005 void *argp2 = 0 ;
37006 int res2 = 0 ;
37007 wxPoint temp3 ;
37008 PyObject * obj0 = 0 ;
37009 PyObject * obj1 = 0 ;
37010 PyObject * obj2 = 0 ;
37011 char * kwnames[] = {
37012 (char *) "self",(char *) "icon",(char *) "pt", NULL
37013 };
37014
37015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37017 if (!SWIG_IsOK(res1)) {
37018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37019 }
37020 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37021 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37022 if (!SWIG_IsOK(res2)) {
37023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37024 }
37025 if (!argp2) {
37026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37027 }
37028 arg2 = reinterpret_cast< wxIcon * >(argp2);
37029 {
37030 arg3 = &temp3;
37031 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37032 }
37033 {
37034 PyThreadState* __tstate = wxPyBeginAllowThreads();
37035 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37036 wxPyEndAllowThreads(__tstate);
37037 if (PyErr_Occurred()) SWIG_fail;
37038 }
37039 resultobj = SWIG_Py_Void();
37040 return resultobj;
37041fail:
37042 return NULL;
37043}
37044
37045
37046SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37047 PyObject *resultobj = 0;
37048 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37049 wxBitmap *arg2 = 0 ;
37050 int arg3 ;
37051 int arg4 ;
37052 bool arg5 = (bool) false ;
37053 void *argp1 = 0 ;
37054 int res1 = 0 ;
37055 void *argp2 = 0 ;
37056 int res2 = 0 ;
37057 int val3 ;
37058 int ecode3 = 0 ;
37059 int val4 ;
37060 int ecode4 = 0 ;
37061 bool val5 ;
37062 int ecode5 = 0 ;
37063 PyObject * obj0 = 0 ;
37064 PyObject * obj1 = 0 ;
37065 PyObject * obj2 = 0 ;
37066 PyObject * obj3 = 0 ;
37067 PyObject * obj4 = 0 ;
37068 char * kwnames[] = {
37069 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37070 };
37071
37072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37074 if (!SWIG_IsOK(res1)) {
37075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37076 }
37077 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37078 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37079 if (!SWIG_IsOK(res2)) {
37080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37081 }
37082 if (!argp2) {
37083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37084 }
37085 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37086 ecode3 = SWIG_AsVal_int(obj2, &val3);
37087 if (!SWIG_IsOK(ecode3)) {
37088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37089 }
37090 arg3 = static_cast< int >(val3);
37091 ecode4 = SWIG_AsVal_int(obj3, &val4);
37092 if (!SWIG_IsOK(ecode4)) {
37093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37094 }
37095 arg4 = static_cast< int >(val4);
37096 if (obj4) {
37097 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37098 if (!SWIG_IsOK(ecode5)) {
37099 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37100 }
37101 arg5 = static_cast< bool >(val5);
37102 }
37103 {
37104 PyThreadState* __tstate = wxPyBeginAllowThreads();
37105 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37106 wxPyEndAllowThreads(__tstate);
37107 if (PyErr_Occurred()) SWIG_fail;
37108 }
37109 resultobj = SWIG_Py_Void();
37110 return resultobj;
37111fail:
37112 return NULL;
37113}
37114
37115
37116SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37117 PyObject *resultobj = 0;
37118 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37119 wxBitmap *arg2 = 0 ;
37120 wxPoint *arg3 = 0 ;
37121 bool arg4 = (bool) false ;
37122 void *argp1 = 0 ;
37123 int res1 = 0 ;
37124 void *argp2 = 0 ;
37125 int res2 = 0 ;
37126 wxPoint temp3 ;
37127 bool val4 ;
37128 int ecode4 = 0 ;
37129 PyObject * obj0 = 0 ;
37130 PyObject * obj1 = 0 ;
37131 PyObject * obj2 = 0 ;
37132 PyObject * obj3 = 0 ;
37133 char * kwnames[] = {
37134 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37135 };
37136
37137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37139 if (!SWIG_IsOK(res1)) {
37140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37141 }
37142 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37143 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37144 if (!SWIG_IsOK(res2)) {
37145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37146 }
37147 if (!argp2) {
37148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37149 }
37150 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37151 {
37152 arg3 = &temp3;
37153 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37154 }
37155 if (obj3) {
37156 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37157 if (!SWIG_IsOK(ecode4)) {
37158 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37159 }
37160 arg4 = static_cast< bool >(val4);
37161 }
37162 {
37163 PyThreadState* __tstate = wxPyBeginAllowThreads();
37164 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37165 wxPyEndAllowThreads(__tstate);
37166 if (PyErr_Occurred()) SWIG_fail;
37167 }
37168 resultobj = SWIG_Py_Void();
37169 return resultobj;
37170fail:
37171 return NULL;
37172}
37173
37174
37175SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37176 PyObject *resultobj = 0;
37177 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37178 wxString *arg2 = 0 ;
37179 int arg3 ;
37180 int arg4 ;
37181 void *argp1 = 0 ;
37182 int res1 = 0 ;
37183 bool temp2 = false ;
37184 int val3 ;
37185 int ecode3 = 0 ;
37186 int val4 ;
37187 int ecode4 = 0 ;
37188 PyObject * obj0 = 0 ;
37189 PyObject * obj1 = 0 ;
37190 PyObject * obj2 = 0 ;
37191 PyObject * obj3 = 0 ;
37192 char * kwnames[] = {
37193 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37194 };
37195
37196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37198 if (!SWIG_IsOK(res1)) {
37199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37200 }
37201 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37202 {
37203 arg2 = wxString_in_helper(obj1);
37204 if (arg2 == NULL) SWIG_fail;
37205 temp2 = true;
37206 }
37207 ecode3 = SWIG_AsVal_int(obj2, &val3);
37208 if (!SWIG_IsOK(ecode3)) {
37209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37210 }
37211 arg3 = static_cast< int >(val3);
37212 ecode4 = SWIG_AsVal_int(obj3, &val4);
37213 if (!SWIG_IsOK(ecode4)) {
37214 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37215 }
37216 arg4 = static_cast< int >(val4);
37217 {
37218 PyThreadState* __tstate = wxPyBeginAllowThreads();
37219 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37220 wxPyEndAllowThreads(__tstate);
37221 if (PyErr_Occurred()) SWIG_fail;
37222 }
37223 resultobj = SWIG_Py_Void();
37224 {
37225 if (temp2)
37226 delete arg2;
37227 }
37228 return resultobj;
37229fail:
37230 {
37231 if (temp2)
37232 delete arg2;
37233 }
37234 return NULL;
37235}
37236
37237
37238SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37239 PyObject *resultobj = 0;
37240 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37241 wxString *arg2 = 0 ;
37242 wxPoint *arg3 = 0 ;
37243 void *argp1 = 0 ;
37244 int res1 = 0 ;
37245 bool temp2 = false ;
37246 wxPoint temp3 ;
37247 PyObject * obj0 = 0 ;
37248 PyObject * obj1 = 0 ;
37249 PyObject * obj2 = 0 ;
37250 char * kwnames[] = {
37251 (char *) "self",(char *) "text",(char *) "pt", NULL
37252 };
37253
37254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37256 if (!SWIG_IsOK(res1)) {
37257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37258 }
37259 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37260 {
37261 arg2 = wxString_in_helper(obj1);
37262 if (arg2 == NULL) SWIG_fail;
37263 temp2 = true;
37264 }
37265 {
37266 arg3 = &temp3;
37267 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37268 }
37269 {
37270 PyThreadState* __tstate = wxPyBeginAllowThreads();
37271 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37272 wxPyEndAllowThreads(__tstate);
37273 if (PyErr_Occurred()) SWIG_fail;
37274 }
37275 resultobj = SWIG_Py_Void();
37276 {
37277 if (temp2)
37278 delete arg2;
37279 }
37280 return resultobj;
37281fail:
37282 {
37283 if (temp2)
37284 delete arg2;
37285 }
37286 return NULL;
37287}
37288
37289
37290SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37291 PyObject *resultobj = 0;
37292 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37293 wxString *arg2 = 0 ;
37294 int arg3 ;
37295 int arg4 ;
37296 double arg5 ;
37297 void *argp1 = 0 ;
37298 int res1 = 0 ;
37299 bool temp2 = false ;
37300 int val3 ;
37301 int ecode3 = 0 ;
37302 int val4 ;
37303 int ecode4 = 0 ;
37304 double val5 ;
37305 int ecode5 = 0 ;
37306 PyObject * obj0 = 0 ;
37307 PyObject * obj1 = 0 ;
37308 PyObject * obj2 = 0 ;
37309 PyObject * obj3 = 0 ;
37310 PyObject * obj4 = 0 ;
37311 char * kwnames[] = {
37312 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37313 };
37314
37315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37317 if (!SWIG_IsOK(res1)) {
37318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37319 }
37320 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37321 {
37322 arg2 = wxString_in_helper(obj1);
37323 if (arg2 == NULL) SWIG_fail;
37324 temp2 = true;
37325 }
37326 ecode3 = SWIG_AsVal_int(obj2, &val3);
37327 if (!SWIG_IsOK(ecode3)) {
37328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37329 }
37330 arg3 = static_cast< int >(val3);
37331 ecode4 = SWIG_AsVal_int(obj3, &val4);
37332 if (!SWIG_IsOK(ecode4)) {
37333 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37334 }
37335 arg4 = static_cast< int >(val4);
37336 ecode5 = SWIG_AsVal_double(obj4, &val5);
37337 if (!SWIG_IsOK(ecode5)) {
37338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37339 }
37340 arg5 = static_cast< double >(val5);
37341 {
37342 PyThreadState* __tstate = wxPyBeginAllowThreads();
37343 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37344 wxPyEndAllowThreads(__tstate);
37345 if (PyErr_Occurred()) SWIG_fail;
37346 }
37347 resultobj = SWIG_Py_Void();
37348 {
37349 if (temp2)
37350 delete arg2;
37351 }
37352 return resultobj;
37353fail:
37354 {
37355 if (temp2)
37356 delete arg2;
37357 }
37358 return NULL;
37359}
37360
37361
37362SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37363 PyObject *resultobj = 0;
37364 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37365 wxString *arg2 = 0 ;
37366 wxPoint *arg3 = 0 ;
37367 double arg4 ;
37368 void *argp1 = 0 ;
37369 int res1 = 0 ;
37370 bool temp2 = false ;
37371 wxPoint temp3 ;
37372 double val4 ;
37373 int ecode4 = 0 ;
37374 PyObject * obj0 = 0 ;
37375 PyObject * obj1 = 0 ;
37376 PyObject * obj2 = 0 ;
37377 PyObject * obj3 = 0 ;
37378 char * kwnames[] = {
37379 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37380 };
37381
37382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37384 if (!SWIG_IsOK(res1)) {
37385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37386 }
37387 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37388 {
37389 arg2 = wxString_in_helper(obj1);
37390 if (arg2 == NULL) SWIG_fail;
37391 temp2 = true;
37392 }
37393 {
37394 arg3 = &temp3;
37395 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37396 }
37397 ecode4 = SWIG_AsVal_double(obj3, &val4);
37398 if (!SWIG_IsOK(ecode4)) {
37399 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37400 }
37401 arg4 = static_cast< double >(val4);
37402 {
37403 PyThreadState* __tstate = wxPyBeginAllowThreads();
37404 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37405 wxPyEndAllowThreads(__tstate);
37406 if (PyErr_Occurred()) SWIG_fail;
37407 }
37408 resultobj = SWIG_Py_Void();
37409 {
37410 if (temp2)
37411 delete arg2;
37412 }
37413 return resultobj;
37414fail:
37415 {
37416 if (temp2)
37417 delete arg2;
37418 }
37419 return NULL;
37420}
37421
37422
37423SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37424 PyObject *resultobj = 0;
37425 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37426 int arg2 ;
37427 wxPoint *arg3 = (wxPoint *) 0 ;
37428 int arg4 = (int) 0 ;
37429 int arg5 = (int) 0 ;
37430 void *argp1 = 0 ;
37431 int res1 = 0 ;
37432 int val4 ;
37433 int ecode4 = 0 ;
37434 int val5 ;
37435 int ecode5 = 0 ;
37436 PyObject * obj0 = 0 ;
37437 PyObject * obj1 = 0 ;
37438 PyObject * obj2 = 0 ;
37439 PyObject * obj3 = 0 ;
37440 char * kwnames[] = {
37441 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37442 };
37443
37444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37446 if (!SWIG_IsOK(res1)) {
37447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37448 }
37449 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37450 {
37451 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37452 if (arg3 == NULL) SWIG_fail;
37453 }
37454 if (obj2) {
37455 ecode4 = SWIG_AsVal_int(obj2, &val4);
37456 if (!SWIG_IsOK(ecode4)) {
37457 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37458 }
37459 arg4 = static_cast< int >(val4);
37460 }
37461 if (obj3) {
37462 ecode5 = SWIG_AsVal_int(obj3, &val5);
37463 if (!SWIG_IsOK(ecode5)) {
37464 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37465 }
37466 arg5 = static_cast< int >(val5);
37467 }
37468 {
37469 PyThreadState* __tstate = wxPyBeginAllowThreads();
37470 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37471 wxPyEndAllowThreads(__tstate);
37472 if (PyErr_Occurred()) SWIG_fail;
37473 }
37474 resultobj = SWIG_Py_Void();
37475 {
37476 if (arg3) delete [] arg3;
37477 }
37478 return resultobj;
37479fail:
37480 {
37481 if (arg3) delete [] arg3;
37482 }
37483 return NULL;
37484}
37485
37486
37487SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37488 PyObject *resultobj = 0;
37489 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37490 int arg2 ;
37491 wxPoint *arg3 = (wxPoint *) 0 ;
37492 int arg4 = (int) 0 ;
37493 int arg5 = (int) 0 ;
37494 int arg6 = (int) wxODDEVEN_RULE ;
37495 void *argp1 = 0 ;
37496 int res1 = 0 ;
37497 int val4 ;
37498 int ecode4 = 0 ;
37499 int val5 ;
37500 int ecode5 = 0 ;
37501 int val6 ;
37502 int ecode6 = 0 ;
37503 PyObject * obj0 = 0 ;
37504 PyObject * obj1 = 0 ;
37505 PyObject * obj2 = 0 ;
37506 PyObject * obj3 = 0 ;
37507 PyObject * obj4 = 0 ;
37508 char * kwnames[] = {
37509 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37510 };
37511
37512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37514 if (!SWIG_IsOK(res1)) {
37515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37516 }
37517 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37518 {
37519 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37520 if (arg3 == NULL) SWIG_fail;
37521 }
37522 if (obj2) {
37523 ecode4 = SWIG_AsVal_int(obj2, &val4);
37524 if (!SWIG_IsOK(ecode4)) {
37525 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37526 }
37527 arg4 = static_cast< int >(val4);
37528 }
37529 if (obj3) {
37530 ecode5 = SWIG_AsVal_int(obj3, &val5);
37531 if (!SWIG_IsOK(ecode5)) {
37532 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37533 }
37534 arg5 = static_cast< int >(val5);
37535 }
37536 if (obj4) {
37537 ecode6 = SWIG_AsVal_int(obj4, &val6);
37538 if (!SWIG_IsOK(ecode6)) {
37539 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37540 }
37541 arg6 = static_cast< int >(val6);
37542 }
37543 {
37544 PyThreadState* __tstate = wxPyBeginAllowThreads();
37545 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37546 wxPyEndAllowThreads(__tstate);
37547 if (PyErr_Occurred()) SWIG_fail;
37548 }
37549 resultobj = SWIG_Py_Void();
37550 {
37551 if (arg3) delete [] arg3;
37552 }
37553 return resultobj;
37554fail:
37555 {
37556 if (arg3) delete [] arg3;
37557 }
37558 return NULL;
37559}
37560
37561
37562SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37563 PyObject *resultobj = 0;
37564 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37565 wxString *arg2 = 0 ;
37566 wxRect *arg3 = 0 ;
37567 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37568 int arg5 = (int) -1 ;
37569 void *argp1 = 0 ;
37570 int res1 = 0 ;
37571 bool temp2 = false ;
37572 wxRect temp3 ;
37573 int val4 ;
37574 int ecode4 = 0 ;
37575 int val5 ;
37576 int ecode5 = 0 ;
37577 PyObject * obj0 = 0 ;
37578 PyObject * obj1 = 0 ;
37579 PyObject * obj2 = 0 ;
37580 PyObject * obj3 = 0 ;
37581 PyObject * obj4 = 0 ;
37582 char * kwnames[] = {
37583 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37584 };
37585
37586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37588 if (!SWIG_IsOK(res1)) {
37589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37590 }
37591 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37592 {
37593 arg2 = wxString_in_helper(obj1);
37594 if (arg2 == NULL) SWIG_fail;
37595 temp2 = true;
37596 }
37597 {
37598 arg3 = &temp3;
37599 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37600 }
37601 if (obj3) {
37602 ecode4 = SWIG_AsVal_int(obj3, &val4);
37603 if (!SWIG_IsOK(ecode4)) {
37604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37605 }
37606 arg4 = static_cast< int >(val4);
37607 }
37608 if (obj4) {
37609 ecode5 = SWIG_AsVal_int(obj4, &val5);
37610 if (!SWIG_IsOK(ecode5)) {
37611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37612 }
37613 arg5 = static_cast< int >(val5);
37614 }
37615 {
37616 PyThreadState* __tstate = wxPyBeginAllowThreads();
37617 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37618 wxPyEndAllowThreads(__tstate);
37619 if (PyErr_Occurred()) SWIG_fail;
37620 }
37621 resultobj = SWIG_Py_Void();
37622 {
37623 if (temp2)
37624 delete arg2;
37625 }
37626 return resultobj;
37627fail:
37628 {
37629 if (temp2)
37630 delete arg2;
37631 }
37632 return NULL;
37633}
37634
37635
37636SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37637 PyObject *resultobj = 0;
37638 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37639 wxString *arg2 = 0 ;
37640 wxBitmap *arg3 = 0 ;
37641 wxRect *arg4 = 0 ;
37642 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37643 int arg6 = (int) -1 ;
37644 void *argp1 = 0 ;
37645 int res1 = 0 ;
37646 bool temp2 = false ;
37647 void *argp3 = 0 ;
37648 int res3 = 0 ;
37649 wxRect temp4 ;
37650 int val5 ;
37651 int ecode5 = 0 ;
37652 int val6 ;
37653 int ecode6 = 0 ;
37654 PyObject * obj0 = 0 ;
37655 PyObject * obj1 = 0 ;
37656 PyObject * obj2 = 0 ;
37657 PyObject * obj3 = 0 ;
37658 PyObject * obj4 = 0 ;
37659 PyObject * obj5 = 0 ;
37660 char * kwnames[] = {
37661 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37662 };
37663
37664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37666 if (!SWIG_IsOK(res1)) {
37667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37668 }
37669 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37670 {
37671 arg2 = wxString_in_helper(obj1);
37672 if (arg2 == NULL) SWIG_fail;
37673 temp2 = true;
37674 }
37675 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37676 if (!SWIG_IsOK(res3)) {
37677 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37678 }
37679 if (!argp3) {
37680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37681 }
37682 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37683 {
37684 arg4 = &temp4;
37685 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37686 }
37687 if (obj4) {
37688 ecode5 = SWIG_AsVal_int(obj4, &val5);
37689 if (!SWIG_IsOK(ecode5)) {
37690 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37691 }
37692 arg5 = static_cast< int >(val5);
37693 }
37694 if (obj5) {
37695 ecode6 = SWIG_AsVal_int(obj5, &val6);
37696 if (!SWIG_IsOK(ecode6)) {
37697 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37698 }
37699 arg6 = static_cast< int >(val6);
37700 }
37701 {
37702 PyThreadState* __tstate = wxPyBeginAllowThreads();
37703 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37704 wxPyEndAllowThreads(__tstate);
37705 if (PyErr_Occurred()) SWIG_fail;
37706 }
37707 resultobj = SWIG_Py_Void();
37708 {
37709 if (temp2)
37710 delete arg2;
37711 }
37712 return resultobj;
37713fail:
37714 {
37715 if (temp2)
37716 delete arg2;
37717 }
37718 return NULL;
37719}
37720
37721
37722SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37723 PyObject *resultobj = 0;
37724 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37725 int arg2 ;
37726 wxPoint *arg3 = (wxPoint *) 0 ;
37727 void *argp1 = 0 ;
37728 int res1 = 0 ;
37729 PyObject * obj0 = 0 ;
37730 PyObject * obj1 = 0 ;
37731 char * kwnames[] = {
37732 (char *) "self",(char *) "points", NULL
37733 };
37734
37735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37737 if (!SWIG_IsOK(res1)) {
37738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37739 }
37740 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37741 {
37742 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37743 if (arg3 == NULL) SWIG_fail;
37744 }
37745 {
37746 PyThreadState* __tstate = wxPyBeginAllowThreads();
37747 (arg1)->DrawSpline(arg2,arg3);
37748 wxPyEndAllowThreads(__tstate);
37749 if (PyErr_Occurred()) SWIG_fail;
37750 }
37751 resultobj = SWIG_Py_Void();
37752 {
37753 if (arg3) delete [] arg3;
37754 }
37755 return resultobj;
37756fail:
37757 {
37758 if (arg3) delete [] arg3;
37759 }
37760 return NULL;
37761}
37762
37763
37764SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37765 PyObject *resultobj = 0;
37766 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37767 void *argp1 = 0 ;
37768 int res1 = 0 ;
37769 PyObject *swig_obj[1] ;
37770
37771 if (!args) SWIG_fail;
37772 swig_obj[0] = args;
37773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37774 if (!SWIG_IsOK(res1)) {
37775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37776 }
37777 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37778 {
37779 PyThreadState* __tstate = wxPyBeginAllowThreads();
37780 (arg1)->Clear();
37781 wxPyEndAllowThreads(__tstate);
37782 if (PyErr_Occurred()) SWIG_fail;
37783 }
37784 resultobj = SWIG_Py_Void();
37785 return resultobj;
37786fail:
37787 return NULL;
37788}
37789
37790
37791SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37792 PyObject *resultobj = 0;
37793 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37794 wxFont *arg2 = 0 ;
37795 void *argp1 = 0 ;
37796 int res1 = 0 ;
37797 void *argp2 = 0 ;
37798 int res2 = 0 ;
37799 PyObject * obj0 = 0 ;
37800 PyObject * obj1 = 0 ;
37801 char * kwnames[] = {
37802 (char *) "self",(char *) "font", NULL
37803 };
37804
37805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37807 if (!SWIG_IsOK(res1)) {
37808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37809 }
37810 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37812 if (!SWIG_IsOK(res2)) {
37813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37814 }
37815 if (!argp2) {
37816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37817 }
37818 arg2 = reinterpret_cast< wxFont * >(argp2);
37819 {
37820 PyThreadState* __tstate = wxPyBeginAllowThreads();
37821 (arg1)->SetFont((wxFont const &)*arg2);
37822 wxPyEndAllowThreads(__tstate);
37823 if (PyErr_Occurred()) SWIG_fail;
37824 }
37825 resultobj = SWIG_Py_Void();
37826 return resultobj;
37827fail:
37828 return NULL;
37829}
37830
37831
37832SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37833 PyObject *resultobj = 0;
37834 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37835 wxPen *arg2 = 0 ;
37836 void *argp1 = 0 ;
37837 int res1 = 0 ;
37838 void *argp2 = 0 ;
37839 int res2 = 0 ;
37840 PyObject * obj0 = 0 ;
37841 PyObject * obj1 = 0 ;
37842 char * kwnames[] = {
37843 (char *) "self",(char *) "pen", NULL
37844 };
37845
37846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37848 if (!SWIG_IsOK(res1)) {
37849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37850 }
37851 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37853 if (!SWIG_IsOK(res2)) {
37854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37855 }
37856 if (!argp2) {
37857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37858 }
37859 arg2 = reinterpret_cast< wxPen * >(argp2);
37860 {
37861 PyThreadState* __tstate = wxPyBeginAllowThreads();
37862 (arg1)->SetPen((wxPen const &)*arg2);
37863 wxPyEndAllowThreads(__tstate);
37864 if (PyErr_Occurred()) SWIG_fail;
37865 }
37866 resultobj = SWIG_Py_Void();
37867 return resultobj;
37868fail:
37869 return NULL;
37870}
37871
37872
37873SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37874 PyObject *resultobj = 0;
37875 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37876 wxBrush *arg2 = 0 ;
37877 void *argp1 = 0 ;
37878 int res1 = 0 ;
37879 void *argp2 = 0 ;
37880 int res2 = 0 ;
37881 PyObject * obj0 = 0 ;
37882 PyObject * obj1 = 0 ;
37883 char * kwnames[] = {
37884 (char *) "self",(char *) "brush", NULL
37885 };
37886
37887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
37888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37889 if (!SWIG_IsOK(res1)) {
37890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37891 }
37892 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37894 if (!SWIG_IsOK(res2)) {
37895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37896 }
37897 if (!argp2) {
37898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37899 }
37900 arg2 = reinterpret_cast< wxBrush * >(argp2);
37901 {
37902 PyThreadState* __tstate = wxPyBeginAllowThreads();
37903 (arg1)->SetBrush((wxBrush const &)*arg2);
37904 wxPyEndAllowThreads(__tstate);
37905 if (PyErr_Occurred()) SWIG_fail;
37906 }
37907 resultobj = SWIG_Py_Void();
37908 return resultobj;
37909fail:
37910 return NULL;
37911}
37912
37913
37914SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37915 PyObject *resultobj = 0;
37916 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37917 wxBrush *arg2 = 0 ;
37918 void *argp1 = 0 ;
37919 int res1 = 0 ;
37920 void *argp2 = 0 ;
37921 int res2 = 0 ;
37922 PyObject * obj0 = 0 ;
37923 PyObject * obj1 = 0 ;
37924 char * kwnames[] = {
37925 (char *) "self",(char *) "brush", NULL
37926 };
37927
37928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37930 if (!SWIG_IsOK(res1)) {
37931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37932 }
37933 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37934 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37935 if (!SWIG_IsOK(res2)) {
37936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37937 }
37938 if (!argp2) {
37939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37940 }
37941 arg2 = reinterpret_cast< wxBrush * >(argp2);
37942 {
37943 PyThreadState* __tstate = wxPyBeginAllowThreads();
37944 (arg1)->SetBackground((wxBrush const &)*arg2);
37945 wxPyEndAllowThreads(__tstate);
37946 if (PyErr_Occurred()) SWIG_fail;
37947 }
37948 resultobj = SWIG_Py_Void();
37949 return resultobj;
37950fail:
37951 return NULL;
37952}
37953
37954
37955SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37956 PyObject *resultobj = 0;
37957 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37958 int arg2 ;
37959 void *argp1 = 0 ;
37960 int res1 = 0 ;
37961 int val2 ;
37962 int ecode2 = 0 ;
37963 PyObject * obj0 = 0 ;
37964 PyObject * obj1 = 0 ;
37965 char * kwnames[] = {
37966 (char *) "self",(char *) "mode", NULL
37967 };
37968
37969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
37970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37971 if (!SWIG_IsOK(res1)) {
37972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37973 }
37974 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37975 ecode2 = SWIG_AsVal_int(obj1, &val2);
37976 if (!SWIG_IsOK(ecode2)) {
37977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
37978 }
37979 arg2 = static_cast< int >(val2);
37980 {
37981 PyThreadState* __tstate = wxPyBeginAllowThreads();
37982 (arg1)->SetBackgroundMode(arg2);
37983 wxPyEndAllowThreads(__tstate);
37984 if (PyErr_Occurred()) SWIG_fail;
37985 }
37986 resultobj = SWIG_Py_Void();
37987 return resultobj;
37988fail:
37989 return NULL;
37990}
37991
37992
37993SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37994 PyObject *resultobj = 0;
37995 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37996 wxPalette *arg2 = 0 ;
37997 void *argp1 = 0 ;
37998 int res1 = 0 ;
37999 void *argp2 = 0 ;
38000 int res2 = 0 ;
38001 PyObject * obj0 = 0 ;
38002 PyObject * obj1 = 0 ;
38003 char * kwnames[] = {
38004 (char *) "self",(char *) "palette", NULL
38005 };
38006
38007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38009 if (!SWIG_IsOK(res1)) {
38010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38011 }
38012 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38014 if (!SWIG_IsOK(res2)) {
38015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38016 }
38017 if (!argp2) {
38018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38019 }
38020 arg2 = reinterpret_cast< wxPalette * >(argp2);
38021 {
38022 PyThreadState* __tstate = wxPyBeginAllowThreads();
38023 (arg1)->SetPalette((wxPalette const &)*arg2);
38024 wxPyEndAllowThreads(__tstate);
38025 if (PyErr_Occurred()) SWIG_fail;
38026 }
38027 resultobj = SWIG_Py_Void();
38028 return resultobj;
38029fail:
38030 return NULL;
38031}
38032
38033
38034SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38035 PyObject *resultobj = 0;
38036 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38037 wxColour *arg2 = 0 ;
38038 void *argp1 = 0 ;
38039 int res1 = 0 ;
38040 wxColour temp2 ;
38041 PyObject * obj0 = 0 ;
38042 PyObject * obj1 = 0 ;
38043 char * kwnames[] = {
38044 (char *) "self",(char *) "colour", NULL
38045 };
38046
38047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38049 if (!SWIG_IsOK(res1)) {
38050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38051 }
38052 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38053 {
38054 arg2 = &temp2;
38055 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38056 }
38057 {
38058 PyThreadState* __tstate = wxPyBeginAllowThreads();
38059 (arg1)->SetTextForeground((wxColour const &)*arg2);
38060 wxPyEndAllowThreads(__tstate);
38061 if (PyErr_Occurred()) SWIG_fail;
38062 }
38063 resultobj = SWIG_Py_Void();
38064 return resultobj;
38065fail:
38066 return NULL;
38067}
38068
38069
38070SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38071 PyObject *resultobj = 0;
38072 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38073 wxColour *arg2 = 0 ;
38074 void *argp1 = 0 ;
38075 int res1 = 0 ;
38076 wxColour temp2 ;
38077 PyObject * obj0 = 0 ;
38078 PyObject * obj1 = 0 ;
38079 char * kwnames[] = {
38080 (char *) "self",(char *) "colour", NULL
38081 };
38082
38083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38085 if (!SWIG_IsOK(res1)) {
38086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38087 }
38088 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38089 {
38090 arg2 = &temp2;
38091 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38092 }
38093 {
38094 PyThreadState* __tstate = wxPyBeginAllowThreads();
38095 (arg1)->SetTextBackground((wxColour const &)*arg2);
38096 wxPyEndAllowThreads(__tstate);
38097 if (PyErr_Occurred()) SWIG_fail;
38098 }
38099 resultobj = SWIG_Py_Void();
38100 return resultobj;
38101fail:
38102 return NULL;
38103}
38104
38105
38106SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38107 PyObject *resultobj = 0;
38108 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38109 int arg2 ;
38110 void *argp1 = 0 ;
38111 int res1 = 0 ;
38112 int val2 ;
38113 int ecode2 = 0 ;
38114 PyObject * obj0 = 0 ;
38115 PyObject * obj1 = 0 ;
38116 char * kwnames[] = {
38117 (char *) "self",(char *) "function", NULL
38118 };
38119
38120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38122 if (!SWIG_IsOK(res1)) {
38123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38124 }
38125 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38126 ecode2 = SWIG_AsVal_int(obj1, &val2);
38127 if (!SWIG_IsOK(ecode2)) {
38128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38129 }
38130 arg2 = static_cast< int >(val2);
38131 {
38132 PyThreadState* __tstate = wxPyBeginAllowThreads();
38133 (arg1)->SetLogicalFunction(arg2);
38134 wxPyEndAllowThreads(__tstate);
38135 if (PyErr_Occurred()) SWIG_fail;
38136 }
38137 resultobj = SWIG_Py_Void();
38138 return resultobj;
38139fail:
38140 return NULL;
38141}
38142
38143
38144SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38145 PyObject *obj;
38146 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38147 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38148 return SWIG_Py_Void();
38149}
38150
38151SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38152 return SWIG_Python_InitShadowInstance(args);
38153}
38154
38155static PyMethodDef SwigMethods[] = {
38156 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38157 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38158 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38159 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38160 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38161 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38162 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38163 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38164 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38165 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38166 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38167 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38168 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38169 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38170 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38171 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38172 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38173 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38174 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38175 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38176 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38177 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38178 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38179 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38180 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38181 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38182 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38183 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38184 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38185 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38186 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38187 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38188 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38189 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38190 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38191 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38192 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38193 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38194 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38195 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38196 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38197 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38198 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38199 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38200 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38201 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38202 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38203 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38204 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38205 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38206 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38207 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38208 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38209 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38210 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38211 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38212 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38213 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38214 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38215 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38216 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38217 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38218 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38219 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38220 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38221 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38222 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38223 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38224 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38225 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38226 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38227 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38228 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38229 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38230 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38231 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38232 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38233 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38234 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38235 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38236 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38237 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38238 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38239 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38240 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38241 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38242 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38243 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38244 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38245 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38246 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38247 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38248 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38249 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38250 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38251 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38252 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38253 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38254 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38255 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38256 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38257 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38258 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38259 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38260 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38261 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38262 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38263 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38264 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38265 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38266 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38267 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38268 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38269 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38270 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38271 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38272 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38273 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38274 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38275 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38276 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38277 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38278 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38279 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38280 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38281 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38282 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38283 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38284 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38285 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38286 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38287 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38288 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38289 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38290 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38291 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38292 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38293 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38294 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38295 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38296 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38297 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38298 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38299 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38300 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38301 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38302 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38303 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38304 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38305 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38306 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38307 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38308 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38309 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38310 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38311 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38312 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38313 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38314 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38315 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38316 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38317 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38318 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38319 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38320 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38321 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38322 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38323 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38324 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38325 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38326 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38327 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38328 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38329 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38330 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38331 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38332 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38333 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38334 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38335 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38336 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38337 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38338 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38339 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38340 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38341 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38342 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38343 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38344 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38345 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38346 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38347 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38348 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38349 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38350 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38351 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38352 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38353 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38354 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38355 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38356 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38357 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38358 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38359 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38360 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38361 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38362 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38363 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38364 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38365 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38366 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38367 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38368 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38369 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38370 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38371 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38373 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38374 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38375 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38376 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38377 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38378 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38379 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38380 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38381 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38382 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38383 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38384 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38385 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38386 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38387 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38388 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38389 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38390 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38391 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38392 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38393 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38394 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38395 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38396 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38397 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38398 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38400 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38401 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38402 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38403 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38404 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38405 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38406 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38407 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38408 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38409 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38410 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38411 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38412 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38413 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38414 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38415 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38416 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38417 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38418 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38419 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38420 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38421 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38422 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38423 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38424 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38425 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38426 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38427 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38428 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38429 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38430 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38431 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38432 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38433 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38434 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38435 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38436 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38437 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38438 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38439 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38440 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38441 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38442 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38443 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38444 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38445 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38446 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38447 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38448 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38449 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38450 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38451 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38452 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38453 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38454 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38455 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38456 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38457 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38458 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38459 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38460 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38461 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38462 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38463 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38464 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38465 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38466 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38467 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38468 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38469 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38470 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38471 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38472 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38473 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38474 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38475 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38476 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38477 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38478 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38479 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38482 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38483 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38484 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38485 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38486 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38487 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38488 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38489 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38490 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38491 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38492 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38493 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38494 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38495 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38496 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38498 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38499 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38500 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38501 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38502 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38503 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38504 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38505 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38506 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38507 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38508 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38509 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38510 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38512 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38514 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38515 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38516 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38517 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38518 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38519 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38520 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38521 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38522 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38523 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38524 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38525 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38526 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38527 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38528 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38529 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38532 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38533 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38534 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38535 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38536 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38537 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38538 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38539 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38540 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38541 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38542 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38543 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38544 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38545 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38546 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38547 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38548 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38550 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38551 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38552 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38553 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38554 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38555 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38556 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38557 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38558 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38560 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38561 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38562 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38563 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38564 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38565 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38566 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38567 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38568 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38569 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38570 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38571 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38574 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38575 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38576 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38582 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38583 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38584 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38585 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38586 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38588 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38589 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38590 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38591 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38592 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38593 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38594 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38595 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38596 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38597 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38598 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38599 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38600 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38601 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38602 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38603 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38604 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38605 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38606 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38607 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38611 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38612 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38613 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38614 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38615 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38616 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38617 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38618 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38619 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38623 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38624 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38625 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38626 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38627 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38628 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38630 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38631 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38632 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38633 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38634 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38635 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38636 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38637 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38638 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
0085ce49
RD
38639 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38640 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38641 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38642 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38643 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38644 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38645 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38646 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38647 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38648 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38649 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38651 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38652 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38653 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38654 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38655 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38656 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38657 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38658 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38659 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38660 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38662 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38663 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38664 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38665 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38666 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38667 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38669 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38670 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38671 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38672 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38673 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
38674 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38675 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38676 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38677 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38678 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38679 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38683 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38685 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38686 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38687 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38689 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38690 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38691 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38693 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38694 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38695 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38696 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38697 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38698 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
8e99bda9 38699 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38700 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38702 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38703 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38704 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38705 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38706 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38709 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38710 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
38711 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38713 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38714 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38716 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38717 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38719 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
38720 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38721 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38722 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
38723 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
38725 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38726 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38727 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38729 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38730 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38731 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38732 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 38733 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38734 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38736 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38737 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38739 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38742 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38743 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38744 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38745 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38746 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38747 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38749 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38750 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38752 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
38753 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38755 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38756 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38757 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38758 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38759 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38760 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38761 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38762 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38763 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38764 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38765 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38766 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38767 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38768 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38769 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38770 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 38771 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
38772 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38773 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38777 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38779 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38783 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38784 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38785 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
38786 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
38787 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 38788 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
38789 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38790 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38791 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38792 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38793 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38794 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 38795 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
38796 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38797 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
38800 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38802 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38803 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38805 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38806 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 38807 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 38808 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 38809 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
38810 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
38811 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38812 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38813 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
38814 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38816 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38818 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38820 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38821 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 38822 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38823 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
38824 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38825 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
38826 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38827 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
38829 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38831 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
38832 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38833 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38834 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
38835 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
38838 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38839 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 38840 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38841 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38842 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38846 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 38847 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38848 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38852 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 38853 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38854 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
38855 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
38856 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
38857 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
38858 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
38860 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38863 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38864 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38865 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38866 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
72ef6efb
RD
38867 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
38869 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
38870 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38871 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
38872 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
38873 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
38874 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
38875 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
38876 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
38877 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
38878 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
38879 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
38880 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
38881 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
38882 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38883 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
38884 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
38885 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
38886 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
38887 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38888 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38889 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38890 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
38892 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
38893 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
38895 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38896 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
38897 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
38898 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
38899 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
38900 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
38901 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
38902 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
38908 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
38909 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
38910 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
38911 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
38912 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
0085ce49 38913 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 38914 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 38915 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 38916 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
0085ce49 38917 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 38918 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 38919 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 38920 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
38921 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38922 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
0085ce49
RD
38925 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
38926 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
38927 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
38932 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
38933 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
38934 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
38935 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
38936 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
0085ce49
RD
38937 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
38938 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
38939 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
38940 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
38941 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
38942 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
38943 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
38946 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
38952 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
38953 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
38955 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
38956 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
38957 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
38958 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
38959 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
38960 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
38961 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
38962 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
38963 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
38964 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
38965 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
38966 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
38967 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
38968 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
38969 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
38970 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
38971 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
38972 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
38973 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
38974 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
38975 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
38976 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
38977 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38978 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
38980 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
38981 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
38982 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
38983 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
38984 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
38985 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
38986 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38988 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3
RD
38993 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
38995 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38996 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
38997 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
38998 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
38999 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39000 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39001 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39002 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39003 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39004 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39005 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39006 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39007 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39008 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39009 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39013 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39014 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39016 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39017 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39018 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39019 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39020 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39021 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39022 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39023 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39025 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39026 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39027 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39028 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39029 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39030 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39031 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39033 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39034 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39035 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39038 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39040 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39041 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39042 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39048 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39049 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39058 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39060 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39061 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39062 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39072 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
39073 { NULL, NULL, 0, NULL }
39074};
39075
39076
39077/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39078
72ef6efb
RD
39079static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39080 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39081}
8e99bda9
RD
39082static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39083 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39084}
39085static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39086 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39087}
72ef6efb
RD
39088static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39089 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39090}
39091static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39092 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39093}
fc46b7f3
RD
39094static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39095 return (void *)((wxLocale *) ((wxPyLocale *) x));
39096}
70d7cb34
RD
39097static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39098 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39099}
39100static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39101 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39102}
39103static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39104 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39105}
39106static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39107 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39108}
39109static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39110 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39111}
39112static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39113 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39114}
0085ce49
RD
39115static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39116 return (void *)((wxGDIObject *) ((wxIcon *) x));
39117}
39118static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39119 return (void *)((wxGDIObject *) ((wxPalette *) x));
39120}
39121static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39122 return (void *)((wxGDIObject *) ((wxPen *) x));
39123}
39124static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39125 return (void *)((wxGDIObject *) ((wxFont *) x));
39126}
39127static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39128 return (void *)((wxGDIObject *) ((wxCursor *) x));
39129}
39130static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39131 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39132}
39133static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39134 return (void *)((wxGDIObject *) ((wxRegion *) x));
39135}
39136static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39137 return (void *)((wxGDIObject *) ((wxBrush *) x));
39138}
72ef6efb
RD
39139static void *_p_wxGCDCTo_p_wxDC(void *x) {
39140 return (void *)((wxDC *) ((wxGCDC *) x));
39141}
0085ce49
RD
39142static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39143 return (void *)((wxDC *) ((wxScreenDC *) x));
39144}
24f6c4e8
RD
39145static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39146 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39147}
0085ce49
RD
39148static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39149 return (void *)((wxDC *) ((wxMirrorDC *) x));
39150}
39151static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39152 return (void *)((wxDC *) ((wxMemoryDC *) x));
39153}
39154static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39155 return (void *)((wxDC *) ((wxWindowDC *) x));
39156}
39157static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39158 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39159}
0085ce49 39160static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39161 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
39162}
39163static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39164 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
0085ce49 39165}
24f6c4e8
RD
39166static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39167 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39168}
39169static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39170 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39171}
0085ce49
RD
39172static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39173 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39174}
39175static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39176 return (void *)((wxDC *) ((wxPrinterDC *) x));
39177}
50efceee
RD
39178static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39179 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39180}
39181static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39182 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39183}
39184static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39185 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39186}
0085ce49
RD
39187static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39188 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39189}
39190static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39191 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39192}
39193static void *_p_wxPenTo_p_wxObject(void *x) {
39194 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39195}
39196static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39197 return (void *)((wxObject *) ((wxRegionIterator *) x));
39198}
0085ce49
RD
39199static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39200 return (void *)((wxObject *) ((wxSizerItem *) x));
39201}
34e0a3bb
RD
39202static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39203 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39204}
0085ce49
RD
39205static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39206 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39207}
39208static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39209 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39210}
39211static void *_p_wxIconTo_p_wxObject(void *x) {
39212 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39213}
39214static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39215 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39216}
39217static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39218 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39219}
39220static void *_p_wxSizerTo_p_wxObject(void *x) {
39221 return (void *)((wxObject *) ((wxSizer *) x));
39222}
39223static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39224 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39225}
39226static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39227 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39228}
0085ce49
RD
39229static void *_p_wxEventTo_p_wxObject(void *x) {
39230 return (void *)((wxObject *) ((wxEvent *) x));
39231}
39232static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39233 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39234}
39235static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39236 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39237}
39238static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39239 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39240}
27e45892
RD
39241static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39242 return (void *)((wxObject *) ((wxPseudoDC *) x));
39243}
2131d850
RD
39244static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39245 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39246}
0085ce49
RD
39247static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39248 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39249}
39250static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39251 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39252}
39253static void *_p_wxDCTo_p_wxObject(void *x) {
39254 return (void *)((wxObject *) ((wxDC *) x));
39255}
39256static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39257 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39258}
39259static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39260 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39261}
39262static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39263 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39264}
39265static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39266 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39267}
39268static void *_p_wxControlTo_p_wxObject(void *x) {
39269 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39270}
70d7cb34
RD
39271static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39272 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39273}
0085ce49
RD
39274static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39275 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39276}
39277static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39278 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
39279}
39280static void *_p_wxFSFileTo_p_wxObject(void *x) {
39281 return (void *)((wxObject *) ((wxFSFile *) x));
39282}
39283static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
39284 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
39285}
39286static void *_p_wxRegionTo_p_wxObject(void *x) {
39287 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39288}
39289static void *_p_wxPySizerTo_p_wxObject(void *x) {
39290 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39291}
39292static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39293 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39294}
39295static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39296 return (void *)((wxObject *) ((wxGDIObject *) x));
39297}
70d7cb34
RD
39298static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39299 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39300}
39301static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39302 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39303}
0085ce49
RD
39304static void *_p_wxEffectsTo_p_wxObject(void *x) {
39305 return (void *)((wxObject *) ((wxEffects *) x));
39306}
39307static void *_p_wxPyEventTo_p_wxObject(void *x) {
39308 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39309}
39310static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39311 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39312}
39313static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39314 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39315}
70d7cb34
RD
39316static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39317 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39318}
0085ce49
RD
39319static void *_p_wxShowEventTo_p_wxObject(void *x) {
39320 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39321}
39322static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39323 return (void *)((wxObject *) ((wxMenuItem *) x));
39324}
39325static void *_p_wxDateEventTo_p_wxObject(void *x) {
39326 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39327}
39328static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39329 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39330}
39331static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39332 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39333}
39334static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39335 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39336}
39337static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39338 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39339}
39340static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39341 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39342}
39343static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39344 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39345}
39346static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39347 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39348}
39349static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39350 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39351}
39352static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39353 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39354}
39355static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39356 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39357}
39358static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39359 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39360}
39361static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39362 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39363}
39364static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39365 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39366}
39367static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39368 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39369}
39370static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39371 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39372}
39373static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39374 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39375}
39376static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39377 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39378}
39379static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39380 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39381}
39382static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39383 return (void *)((wxObject *) ((wxImageHandler *) x));
39384}
39385static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39386 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39387}
39388static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39389 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39390}
580080c5
RD
39391static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39392 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39393}
0085ce49
RD
39394static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39395 return (void *)((wxObject *) ((wxEvtHandler *) x));
39396}
34e0a3bb
RD
39397static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39398 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39399}
24f6c4e8
RD
39400static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39401 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39402}
0085ce49 39403static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 39404 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
0085ce49 39405}
24f6c4e8
RD
39406static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39407 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
0085ce49
RD
39408}
39409static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39410 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39411}
39412static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39413 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39414}
0085ce49
RD
39415static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39416 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39417}
580080c5
RD
39418static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39419 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39420}
0085ce49
RD
39421static void *_p_wxImageTo_p_wxObject(void *x) {
39422 return (void *)((wxObject *) ((wxImage *) x));
39423}
39424static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39425 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39426}
70d7cb34
RD
39427static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39428 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39429}
39430static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39431 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39432}
0085ce49
RD
39433static void *_p_wxPaletteTo_p_wxObject(void *x) {
39434 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39435}
39436static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 39437 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
0085ce49
RD
39438}
39439static void *_p_wxImageListTo_p_wxObject(void *x) {
39440 return (void *)((wxObject *) ((wxImageList *) x));
39441}
72ef6efb
RD
39442static void *_p_wxGCDCTo_p_wxObject(void *x) {
39443 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39444}
0085ce49
RD
39445static void *_p_wxCursorTo_p_wxObject(void *x) {
39446 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39447}
39448static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39449 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39450}
39451static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39452 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39453}
70d7cb34
RD
39454static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39455 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39456}
0085ce49
RD
39457static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39458 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39459}
39460static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39461 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39462}
39463static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39464 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39465}
39466static void *_p_wxWindowTo_p_wxObject(void *x) {
39467 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39468}
39469static void *_p_wxMenuTo_p_wxObject(void *x) {
39470 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39471}
39472static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39473 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39474}
39475static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39476 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39477}
0085ce49
RD
39478static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39479 return (void *)((wxObject *) ((wxFileSystem *) x));
39480}
39481static void *_p_wxBitmapTo_p_wxObject(void *x) {
39482 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39483}
39484static void *_p_wxMaskTo_p_wxObject(void *x) {
39485 return (void *)((wxObject *) ((wxMask *) x));
39486}
70d7cb34
RD
39487static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39488 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39489}
0085ce49
RD
39490static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39491 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39492}
39493static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39494 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39495}
39496static void *_p_wxPyAppTo_p_wxObject(void *x) {
39497 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39498}
39499static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39500 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39501}
39502static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39503 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39504}
39505static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39506 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39507}
39508static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39509 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39510}
39511static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39512 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39513}
39514static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39515 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39516}
39517static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39518 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39519}
39520static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39521 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39522}
39523static void *_p_wxFontTo_p_wxObject(void *x) {
39524 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39525}
39526static void *_p_wxBrushTo_p_wxObject(void *x) {
39527 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39528}
39529static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39530 return (void *)((wxObject *) ((wxMetaFile *) x));
39531}
39532static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39533 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39534}
39535static void *_p_wxColourTo_p_wxObject(void *x) {
39536 return (void *)((wxObject *) ((wxColour *) x));
39537}
0085ce49
RD
39538static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39539 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39540}
39541static void *_p_wxValidatorTo_p_wxObject(void *x) {
39542 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39543}
39544static void *_p_wxControlTo_p_wxWindow(void *x) {
39545 return (void *)((wxWindow *) ((wxControl *) x));
39546}
39547static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39548 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39549}
39550static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39551 return (void *)((wxWindow *) ((wxMenuBar *) x));
39552}
fc46b7f3
RD
39553static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39554 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39555}
39556static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39557 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39558}
39559static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
0085ce49 39560static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39561static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39562static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39563static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39564static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39565static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39566static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39567static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39568static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39569static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39570static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
0085ce49
RD
39571static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39572static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39573static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39574static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39575static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39576static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
0085ce49 39577static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39578static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
0085ce49
RD
39579static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39580static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39581static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39582static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39583static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39584static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39585static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39586static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39587static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
0085ce49
RD
39588static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39589static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39590static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39591static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39592static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39593static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39594static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39595static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 39596static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
0085ce49 39597static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39598static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39599static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39600static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39601static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39602static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39603static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39604static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39605static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39606static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
0085ce49
RD
39607static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39608static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39609static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39610static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39611static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39612static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39613static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39614static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39615static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39616static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39617static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39618static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39619static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39620static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39621static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39622static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
0085ce49
RD
39623static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39624static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 39625static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39626static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
39627static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39628static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39629static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39630static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39631static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39632static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39633static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39634static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39635static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39636static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39637static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39638static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39639static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
39640static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39641static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39642static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39643static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39644static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39645static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39646static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39647static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39648static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39649static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39650static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39651static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39652static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39653static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39654static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39655static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39656static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39657static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39658static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39659static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39660static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39661static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39662static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
0085ce49 39663static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 39664static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
39665static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39666static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39667static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39668static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39669static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39670static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 39671static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 39672static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 39673static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 39674static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
0085ce49
RD
39675static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39676static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39677static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 39678static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49 39679static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 39680static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
0085ce49
RD
39681static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39682static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39683static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39684static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39685static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39686static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39687static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39688static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39689static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39690static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39691static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39692static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39693static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39694static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39695static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39696static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39697static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39698static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39699static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39700static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 39701static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
0085ce49
RD
39702static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39703static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39704static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39705static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39706static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 39707static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
0085ce49 39708static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 39709static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 39710static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39711static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39712static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39713static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 39714static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
0085ce49 39715static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 39716static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
0085ce49 39717static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 39718static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39719static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39720static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39721static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39722static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39723static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39724static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39725static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 39726static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
0085ce49
RD
39727static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39728static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39729static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39730
39731static swig_type_info *swig_type_initial[] = {
fc46b7f3 39732 &_swigt__p_buffer,
0085ce49
RD
39733 &_swigt__p_char,
39734 &_swigt__p_double,
39735 &_swigt__p_form_ops_t,
39736 &_swigt__p_int,
39737 &_swigt__p_unsigned_char,
39738 &_swigt__p_unsigned_int,
39739 &_swigt__p_unsigned_long,
0a27f394 39740 &_swigt__p_void,
0085ce49
RD
39741 &_swigt__p_wxANIHandler,
39742 &_swigt__p_wxAcceleratorTable,
39743 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
39744 &_swigt__p_wxAlphaPixelData,
39745 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 39746 &_swigt__p_wxAutoBufferedPaintDC,
0085ce49
RD
39747 &_swigt__p_wxBMPHandler,
39748 &_swigt__p_wxBitmap,
39749 &_swigt__p_wxBoxSizer,
39750 &_swigt__p_wxBrush,
39751 &_swigt__p_wxBrushList,
39752 &_swigt__p_wxBufferedDC,
39753 &_swigt__p_wxBufferedPaintDC,
39754 &_swigt__p_wxCURHandler,
fc46b7f3 39755 &_swigt__p_wxChar,
0085ce49
RD
39756 &_swigt__p_wxChildFocusEvent,
39757 &_swigt__p_wxClientDC,
2131d850 39758 &_swigt__p_wxClipboardTextEvent,
0085ce49 39759 &_swigt__p_wxCloseEvent,
72ef6efb 39760 &_swigt__p_wxColor,
0085ce49
RD
39761 &_swigt__p_wxColour,
39762 &_swigt__p_wxColourDatabase,
39763 &_swigt__p_wxCommandEvent,
39764 &_swigt__p_wxContextMenuEvent,
39765 &_swigt__p_wxControl,
39766 &_swigt__p_wxControlWithItems,
39767 &_swigt__p_wxCursor,
39768 &_swigt__p_wxDC,
70d7cb34
RD
39769 &_swigt__p_wxDCBrushChanger,
39770 &_swigt__p_wxDCClipper,
b39fe951 39771 &_swigt__p_wxDCOverlay,
70d7cb34
RD
39772 &_swigt__p_wxDCPenChanger,
39773 &_swigt__p_wxDCTextColourChanger,
0085ce49
RD
39774 &_swigt__p_wxDash,
39775 &_swigt__p_wxDateEvent,
39776 &_swigt__p_wxDisplayChangedEvent,
39777 &_swigt__p_wxDropFilesEvent,
39778 &_swigt__p_wxDuplexMode,
39779 &_swigt__p_wxEffects,
39780 &_swigt__p_wxEncodingConverter,
39781 &_swigt__p_wxEraseEvent,
39782 &_swigt__p_wxEvent,
39783 &_swigt__p_wxEvtHandler,
39784 &_swigt__p_wxFSFile,
39785 &_swigt__p_wxFileSystem,
39786 &_swigt__p_wxFlexGridSizer,
39787 &_swigt__p_wxFocusEvent,
39788 &_swigt__p_wxFont,
39789 &_swigt__p_wxFontList,
39790 &_swigt__p_wxFontMapper,
39791 &_swigt__p_wxGBSizerItem,
72ef6efb 39792 &_swigt__p_wxGCDC,
50efceee 39793 &_swigt__p_wxGDIObjListBase,
0085ce49
RD
39794 &_swigt__p_wxGDIObject,
39795 &_swigt__p_wxGIFHandler,
70d7cb34 39796 &_swigt__p_wxGraphicsBrush,
72ef6efb 39797 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
39798 &_swigt__p_wxGraphicsFont,
39799 &_swigt__p_wxGraphicsMatrix,
39800 &_swigt__p_wxGraphicsObject,
72ef6efb 39801 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
39802 &_swigt__p_wxGraphicsPen,
39803 &_swigt__p_wxGraphicsRenderer,
0085ce49
RD
39804 &_swigt__p_wxGridBagSizer,
39805 &_swigt__p_wxGridSizer,
33d6fd3b 39806 &_swigt__p_wxHeaderButtonParams,
0085ce49
RD
39807 &_swigt__p_wxICOHandler,
39808 &_swigt__p_wxIcon,
39809 &_swigt__p_wxIconBundle,
39810 &_swigt__p_wxIconLocation,
39811 &_swigt__p_wxIconizeEvent,
39812 &_swigt__p_wxIdleEvent,
39813 &_swigt__p_wxImage,
39814 &_swigt__p_wxImageHandler,
39815 &_swigt__p_wxImageList,
39816 &_swigt__p_wxIndividualLayoutConstraint,
39817 &_swigt__p_wxInitDialogEvent,
39818 &_swigt__p_wxJPEGHandler,
39819 &_swigt__p_wxKeyEvent,
39820 &_swigt__p_wxLanguageInfo,
39821 &_swigt__p_wxLayoutConstraints,
39822 &_swigt__p_wxLocale,
39823 &_swigt__p_wxMask,
39824 &_swigt__p_wxMaximizeEvent,
39825 &_swigt__p_wxMemoryDC,
39826 &_swigt__p_wxMenu,
39827 &_swigt__p_wxMenuBar,
39828 &_swigt__p_wxMenuEvent,
39829 &_swigt__p_wxMenuItem,
39830 &_swigt__p_wxMetaFile,
39831 &_swigt__p_wxMetaFileDC,
39832 &_swigt__p_wxMirrorDC,
39833 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 39834 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
39835 &_swigt__p_wxMouseEvent,
39836 &_swigt__p_wxMoveEvent,
39837 &_swigt__p_wxNativeEncodingInfo,
39838 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
39839 &_swigt__p_wxNativePixelData,
39840 &_swigt__p_wxNativePixelData_Accessor,
0085ce49
RD
39841 &_swigt__p_wxNavigationKeyEvent,
39842 &_swigt__p_wxNcPaintEvent,
39843 &_swigt__p_wxNotifyEvent,
39844 &_swigt__p_wxObject,
b39fe951 39845 &_swigt__p_wxOverlay,
0085ce49
RD
39846 &_swigt__p_wxPCXHandler,
39847 &_swigt__p_wxPNGHandler,
39848 &_swigt__p_wxPNMHandler,
39849 &_swigt__p_wxPaintDC,
39850 &_swigt__p_wxPaintEvent,
39851 &_swigt__p_wxPalette,
39852 &_swigt__p_wxPaletteChangedEvent,
39853 &_swigt__p_wxPaperSize,
39854 &_swigt__p_wxPen,
39855 &_swigt__p_wxPenList,
fc46b7f3 39856 &_swigt__p_wxPixelDataBase,
0085ce49 39857 &_swigt__p_wxPoint,
72ef6efb 39858 &_swigt__p_wxPoint2D,
70d7cb34 39859 &_swigt__p_wxPoint2DDouble,
0085ce49
RD
39860 &_swigt__p_wxPostScriptDC,
39861 &_swigt__p_wxPrintData,
39862 &_swigt__p_wxPrinterDC,
27e45892 39863 &_swigt__p_wxPseudoDC,
0085ce49
RD
39864 &_swigt__p_wxPyApp,
39865 &_swigt__p_wxPyCommandEvent,
39866 &_swigt__p_wxPyEvent,
39867 &_swigt__p_wxPyFontEnumerator,
39868 &_swigt__p_wxPyImageHandler,
fc46b7f3 39869 &_swigt__p_wxPyLocale,
0085ce49
RD
39870 &_swigt__p_wxPySizer,
39871 &_swigt__p_wxPyValidator,
39872 &_swigt__p_wxQueryNewPaletteEvent,
39873 &_swigt__p_wxRect,
70d7cb34 39874 &_swigt__p_wxRect2DDouble,
0085ce49
RD
39875 &_swigt__p_wxRegion,
39876 &_swigt__p_wxRegionIterator,
39877 &_swigt__p_wxRendererNative,
39878 &_swigt__p_wxRendererVersion,
39879 &_swigt__p_wxScreenDC,
39880 &_swigt__p_wxScrollEvent,
39881 &_swigt__p_wxScrollWinEvent,
39882 &_swigt__p_wxSetCursorEvent,
39883 &_swigt__p_wxShowEvent,
39884 &_swigt__p_wxSize,
39885 &_swigt__p_wxSizeEvent,
39886 &_swigt__p_wxSizer,
39887 &_swigt__p_wxSizerItem,
39888 &_swigt__p_wxSplitterRenderParams,
39889 &_swigt__p_wxStaticBoxSizer,
39890 &_swigt__p_wxStdDialogButtonSizer,
50efceee 39891 &_swigt__p_wxStockGDI,
0085ce49
RD
39892 &_swigt__p_wxString,
39893 &_swigt__p_wxSysColourChangedEvent,
580080c5 39894 &_swigt__p_wxTGAHandler,
0085ce49
RD
39895 &_swigt__p_wxTIFFHandler,
39896 &_swigt__p_wxUpdateUIEvent,
39897 &_swigt__p_wxValidator,
39898 &_swigt__p_wxWindow,
39899 &_swigt__p_wxWindowCreateEvent,
39900 &_swigt__p_wxWindowDC,
39901 &_swigt__p_wxWindowDestroyEvent,
39902 &_swigt__p_wxXPMHandler,
39903};
39904
fc46b7f3 39905static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39906static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
39907static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
39908static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
39909static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
39910static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
39911static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
39912static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 39913static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
39914static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
39915static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 39916static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39917static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
39918static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
39919static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
39920static 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}};
39921static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39922static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
39923static 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}};
39924static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39925static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
39926static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
39927static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 39928static 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
39929static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
39930static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 39931static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39932static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
39933static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39934static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
39935static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
39936static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
39937static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
39938static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
39939static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
39940static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39941static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 39942static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
0085ce49 39943static 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 39944static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 39945static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39946static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
39947static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
39948static 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 39949static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
39950static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
39951static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 39952static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39953static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
39954static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
39955static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
39956static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
39957static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
39958static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 39959static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 39960static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 39961static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39962static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
39963static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
39964static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
39965static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
39966static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
39967static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
39968static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 39969static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 39970static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 39971static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39972static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
39973static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
39974static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39975static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39976static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
39977static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
39978static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
39979static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
39980static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
39981static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39982static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39983static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 39984static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
39985static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39986static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39987static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39988static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39989static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39990static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39991static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
39992static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
39993static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
39994static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
39995static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
39996static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
39997static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
39998static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
39999static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40000static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40001static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40002static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40003static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40004static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40005static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40006static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40007static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40008static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40009static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40010static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40011static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40012static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40013static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40014static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40015static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40016static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40017static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40018static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40019static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40020static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40021static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40022static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40023static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40024static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40025static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40026static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40027static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40028static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40029static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40030static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40031static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40032static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40033static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40034static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40035static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40036static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40037static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40038static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40039static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40040static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40041static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40042static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40043static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40044static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40045static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40046static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
b39fe951 40047static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40048static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40049static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40050static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40051static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40052static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40053static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
0085ce49 40054static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40055static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40056static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40057static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40058static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40059static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40060static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40061static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40062static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40063static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40064static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40065static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40066static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40067static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40068static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40069static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40070static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40071static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40072static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40073static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40074static 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 40075static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40076
40077static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40078 _swigc__p_buffer,
0085ce49
RD
40079 _swigc__p_char,
40080 _swigc__p_double,
40081 _swigc__p_form_ops_t,
40082 _swigc__p_int,
40083 _swigc__p_unsigned_char,
40084 _swigc__p_unsigned_int,
40085 _swigc__p_unsigned_long,
0a27f394 40086 _swigc__p_void,
0085ce49
RD
40087 _swigc__p_wxANIHandler,
40088 _swigc__p_wxAcceleratorTable,
40089 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40090 _swigc__p_wxAlphaPixelData,
40091 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40092 _swigc__p_wxAutoBufferedPaintDC,
0085ce49
RD
40093 _swigc__p_wxBMPHandler,
40094 _swigc__p_wxBitmap,
40095 _swigc__p_wxBoxSizer,
40096 _swigc__p_wxBrush,
40097 _swigc__p_wxBrushList,
40098 _swigc__p_wxBufferedDC,
40099 _swigc__p_wxBufferedPaintDC,
40100 _swigc__p_wxCURHandler,
fc46b7f3 40101 _swigc__p_wxChar,
0085ce49
RD
40102 _swigc__p_wxChildFocusEvent,
40103 _swigc__p_wxClientDC,
2131d850 40104 _swigc__p_wxClipboardTextEvent,
0085ce49 40105 _swigc__p_wxCloseEvent,
72ef6efb 40106 _swigc__p_wxColor,
0085ce49
RD
40107 _swigc__p_wxColour,
40108 _swigc__p_wxColourDatabase,
40109 _swigc__p_wxCommandEvent,
40110 _swigc__p_wxContextMenuEvent,
40111 _swigc__p_wxControl,
40112 _swigc__p_wxControlWithItems,
40113 _swigc__p_wxCursor,
40114 _swigc__p_wxDC,
70d7cb34
RD
40115 _swigc__p_wxDCBrushChanger,
40116 _swigc__p_wxDCClipper,
b39fe951 40117 _swigc__p_wxDCOverlay,
70d7cb34
RD
40118 _swigc__p_wxDCPenChanger,
40119 _swigc__p_wxDCTextColourChanger,
0085ce49
RD
40120 _swigc__p_wxDash,
40121 _swigc__p_wxDateEvent,
40122 _swigc__p_wxDisplayChangedEvent,
40123 _swigc__p_wxDropFilesEvent,
40124 _swigc__p_wxDuplexMode,
40125 _swigc__p_wxEffects,
40126 _swigc__p_wxEncodingConverter,
40127 _swigc__p_wxEraseEvent,
40128 _swigc__p_wxEvent,
40129 _swigc__p_wxEvtHandler,
40130 _swigc__p_wxFSFile,
40131 _swigc__p_wxFileSystem,
40132 _swigc__p_wxFlexGridSizer,
40133 _swigc__p_wxFocusEvent,
40134 _swigc__p_wxFont,
40135 _swigc__p_wxFontList,
40136 _swigc__p_wxFontMapper,
40137 _swigc__p_wxGBSizerItem,
72ef6efb 40138 _swigc__p_wxGCDC,
50efceee 40139 _swigc__p_wxGDIObjListBase,
0085ce49
RD
40140 _swigc__p_wxGDIObject,
40141 _swigc__p_wxGIFHandler,
70d7cb34 40142 _swigc__p_wxGraphicsBrush,
72ef6efb 40143 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40144 _swigc__p_wxGraphicsFont,
40145 _swigc__p_wxGraphicsMatrix,
40146 _swigc__p_wxGraphicsObject,
72ef6efb 40147 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40148 _swigc__p_wxGraphicsPen,
40149 _swigc__p_wxGraphicsRenderer,
0085ce49
RD
40150 _swigc__p_wxGridBagSizer,
40151 _swigc__p_wxGridSizer,
33d6fd3b 40152 _swigc__p_wxHeaderButtonParams,
0085ce49
RD
40153 _swigc__p_wxICOHandler,
40154 _swigc__p_wxIcon,
40155 _swigc__p_wxIconBundle,
40156 _swigc__p_wxIconLocation,
40157 _swigc__p_wxIconizeEvent,
40158 _swigc__p_wxIdleEvent,
40159 _swigc__p_wxImage,
40160 _swigc__p_wxImageHandler,
40161 _swigc__p_wxImageList,
40162 _swigc__p_wxIndividualLayoutConstraint,
40163 _swigc__p_wxInitDialogEvent,
40164 _swigc__p_wxJPEGHandler,
40165 _swigc__p_wxKeyEvent,
40166 _swigc__p_wxLanguageInfo,
40167 _swigc__p_wxLayoutConstraints,
40168 _swigc__p_wxLocale,
40169 _swigc__p_wxMask,
40170 _swigc__p_wxMaximizeEvent,
40171 _swigc__p_wxMemoryDC,
40172 _swigc__p_wxMenu,
40173 _swigc__p_wxMenuBar,
40174 _swigc__p_wxMenuEvent,
40175 _swigc__p_wxMenuItem,
40176 _swigc__p_wxMetaFile,
40177 _swigc__p_wxMetaFileDC,
40178 _swigc__p_wxMirrorDC,
40179 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40180 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
40181 _swigc__p_wxMouseEvent,
40182 _swigc__p_wxMoveEvent,
40183 _swigc__p_wxNativeEncodingInfo,
40184 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40185 _swigc__p_wxNativePixelData,
40186 _swigc__p_wxNativePixelData_Accessor,
0085ce49
RD
40187 _swigc__p_wxNavigationKeyEvent,
40188 _swigc__p_wxNcPaintEvent,
40189 _swigc__p_wxNotifyEvent,
40190 _swigc__p_wxObject,
b39fe951 40191 _swigc__p_wxOverlay,
0085ce49
RD
40192 _swigc__p_wxPCXHandler,
40193 _swigc__p_wxPNGHandler,
40194 _swigc__p_wxPNMHandler,
40195 _swigc__p_wxPaintDC,
40196 _swigc__p_wxPaintEvent,
40197 _swigc__p_wxPalette,
40198 _swigc__p_wxPaletteChangedEvent,
40199 _swigc__p_wxPaperSize,
40200 _swigc__p_wxPen,
40201 _swigc__p_wxPenList,
fc46b7f3 40202 _swigc__p_wxPixelDataBase,
0085ce49 40203 _swigc__p_wxPoint,
72ef6efb 40204 _swigc__p_wxPoint2D,
70d7cb34 40205 _swigc__p_wxPoint2DDouble,
0085ce49
RD
40206 _swigc__p_wxPostScriptDC,
40207 _swigc__p_wxPrintData,
40208 _swigc__p_wxPrinterDC,
27e45892 40209 _swigc__p_wxPseudoDC,
0085ce49
RD
40210 _swigc__p_wxPyApp,
40211 _swigc__p_wxPyCommandEvent,
40212 _swigc__p_wxPyEvent,
40213 _swigc__p_wxPyFontEnumerator,
40214 _swigc__p_wxPyImageHandler,
fc46b7f3 40215 _swigc__p_wxPyLocale,
0085ce49
RD
40216 _swigc__p_wxPySizer,
40217 _swigc__p_wxPyValidator,
40218 _swigc__p_wxQueryNewPaletteEvent,
40219 _swigc__p_wxRect,
70d7cb34 40220 _swigc__p_wxRect2DDouble,
0085ce49
RD
40221 _swigc__p_wxRegion,
40222 _swigc__p_wxRegionIterator,
40223 _swigc__p_wxRendererNative,
40224 _swigc__p_wxRendererVersion,
40225 _swigc__p_wxScreenDC,
40226 _swigc__p_wxScrollEvent,
40227 _swigc__p_wxScrollWinEvent,
40228 _swigc__p_wxSetCursorEvent,
40229 _swigc__p_wxShowEvent,
40230 _swigc__p_wxSize,
40231 _swigc__p_wxSizeEvent,
40232 _swigc__p_wxSizer,
40233 _swigc__p_wxSizerItem,
40234 _swigc__p_wxSplitterRenderParams,
40235 _swigc__p_wxStaticBoxSizer,
40236 _swigc__p_wxStdDialogButtonSizer,
50efceee 40237 _swigc__p_wxStockGDI,
0085ce49
RD
40238 _swigc__p_wxString,
40239 _swigc__p_wxSysColourChangedEvent,
580080c5 40240 _swigc__p_wxTGAHandler,
0085ce49
RD
40241 _swigc__p_wxTIFFHandler,
40242 _swigc__p_wxUpdateUIEvent,
40243 _swigc__p_wxValidator,
40244 _swigc__p_wxWindow,
40245 _swigc__p_wxWindowCreateEvent,
40246 _swigc__p_wxWindowDC,
40247 _swigc__p_wxWindowDestroyEvent,
40248 _swigc__p_wxXPMHandler,
40249};
40250
40251
40252/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40253
40254static swig_const_info swig_const_table[] = {
40255{0, 0, 0, 0.0, 0, 0}};
40256
40257#ifdef __cplusplus
40258}
40259#endif
40260/* -----------------------------------------------------------------------------
40261 * Type initialization:
40262 * This problem is tough by the requirement that no dynamic
40263 * memory is used. Also, since swig_type_info structures store pointers to
40264 * swig_cast_info structures and swig_cast_info structures store pointers back
40265 * to swig_type_info structures, we need some lookup code at initialization.
40266 * The idea is that swig generates all the structures that are needed.
40267 * The runtime then collects these partially filled structures.
40268 * The SWIG_InitializeModule function takes these initial arrays out of
40269 * swig_module, and does all the lookup, filling in the swig_module.types
40270 * array with the correct data and linking the correct swig_cast_info
40271 * structures together.
40272 *
40273 * The generated swig_type_info structures are assigned staticly to an initial
40274 * array. We just loop though that array, and handle each type individually.
40275 * First we lookup if this type has been already loaded, and if so, use the
40276 * loaded structure instead of the generated one. Then we have to fill in the
40277 * cast linked list. The cast data is initially stored in something like a
40278 * two-dimensional array. Each row corresponds to a type (there are the same
40279 * number of rows as there are in the swig_type_initial array). Each entry in
40280 * a column is one of the swig_cast_info structures for that type.
40281 * The cast_initial array is actually an array of arrays, because each row has
40282 * a variable number of columns. So to actually build the cast linked list,
40283 * we find the array of casts associated with the type, and loop through it
40284 * adding the casts to the list. The one last trick we need to do is making
40285 * sure the type pointer in the swig_cast_info struct is correct.
40286 *
40287 * First off, we lookup the cast->type name to see if it is already loaded.
40288 * There are three cases to handle:
40289 * 1) If the cast->type has already been loaded AND the type we are adding
40290 * casting info to has not been loaded (it is in this module), THEN we
40291 * replace the cast->type pointer with the type pointer that has already
40292 * been loaded.
40293 * 2) If BOTH types (the one we are adding casting info to, and the
40294 * cast->type) are loaded, THEN the cast info has already been loaded by
40295 * the previous module so we just ignore it.
40296 * 3) Finally, if cast->type has not already been loaded, then we add that
40297 * swig_cast_info to the linked list (because the cast->type) pointer will
40298 * be correct.
40299 * ----------------------------------------------------------------------------- */
40300
40301#ifdef __cplusplus
40302extern "C" {
40303#if 0
40304} /* c-mode */
40305#endif
40306#endif
40307
40308#if 0
40309#define SWIGRUNTIME_DEBUG
40310#endif
40311
40312SWIGRUNTIME void
40313SWIG_InitializeModule(void *clientdata) {
40314 size_t i;
40315 swig_module_info *module_head;
40316 static int init_run = 0;
40317
40318 clientdata = clientdata;
40319
40320 if (init_run) return;
40321 init_run = 1;
40322
40323 /* Initialize the swig_module */
40324 swig_module.type_initial = swig_type_initial;
40325 swig_module.cast_initial = swig_cast_initial;
40326
40327 /* Try and load any already created modules */
40328 module_head = SWIG_GetModule(clientdata);
40329 if (module_head) {
40330 swig_module.next = module_head->next;
40331 module_head->next = &swig_module;
40332 } else {
40333 /* This is the first module loaded */
40334 swig_module.next = &swig_module;
40335 SWIG_SetModule(clientdata, &swig_module);
40336 }
40337
40338 /* Now work on filling in swig_module.types */
40339#ifdef SWIGRUNTIME_DEBUG
40340 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40341#endif
40342 for (i = 0; i < swig_module.size; ++i) {
40343 swig_type_info *type = 0;
40344 swig_type_info *ret;
40345 swig_cast_info *cast;
40346
40347#ifdef SWIGRUNTIME_DEBUG
40348 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40349#endif
40350
40351 /* if there is another module already loaded */
40352 if (swig_module.next != &swig_module) {
40353 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8d38bd1d 40354 }
0085ce49
RD
40355 if (type) {
40356 /* Overwrite clientdata field */
40357#ifdef SWIGRUNTIME_DEBUG
40358 printf("SWIG_InitializeModule: found type %s\n", type->name);
40359#endif
40360 if (swig_module.type_initial[i]->clientdata) {
40361 type->clientdata = swig_module.type_initial[i]->clientdata;
40362#ifdef SWIGRUNTIME_DEBUG
40363 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40364#endif
40365 }
40366 } else {
40367 type = swig_module.type_initial[i];
8d38bd1d 40368 }
0085ce49
RD
40369
40370 /* Insert casting types */
40371 cast = swig_module.cast_initial[i];
40372 while (cast->type) {
40373 /* Don't need to add information already in the list */
40374 ret = 0;
40375#ifdef SWIGRUNTIME_DEBUG
40376 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40377#endif
40378 if (swig_module.next != &swig_module) {
40379 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40380#ifdef SWIGRUNTIME_DEBUG
40381 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40382#endif
40383 }
40384 if (ret) {
40385 if (type == swig_module.type_initial[i]) {
40386#ifdef SWIGRUNTIME_DEBUG
40387 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40388#endif
40389 cast->type = ret;
40390 ret = 0;
40391 } else {
40392 /* Check for casting already in the list */
40393 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40394#ifdef SWIGRUNTIME_DEBUG
40395 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40396#endif
40397 if (!ocast) ret = 0;
40398 }
40399 }
40400
40401 if (!ret) {
40402#ifdef SWIGRUNTIME_DEBUG
40403 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40404#endif
40405 if (type->cast) {
40406 type->cast->prev = cast;
40407 cast->next = type->cast;
40408 }
40409 type->cast = cast;
40410 }
40411 cast++;
8d38bd1d 40412 }
0085ce49
RD
40413 /* Set entry in modules->types array equal to the type */
40414 swig_module.types[i] = type;
40415 }
40416 swig_module.types[i] = 0;
40417
40418#ifdef SWIGRUNTIME_DEBUG
40419 printf("**** SWIG_InitializeModule: Cast List ******\n");
40420 for (i = 0; i < swig_module.size; ++i) {
40421 int j = 0;
40422 swig_cast_info *cast = swig_module.cast_initial[i];
40423 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40424 while (cast->type) {
40425 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40426 cast++;
40427 ++j;
40428 }
40429 printf("---- Total casts: %d\n",j);
40430 }
40431 printf("**** SWIG_InitializeModule: Cast List ******\n");
40432#endif
40433}
40434
40435/* This function will propagate the clientdata field of type to
40436* any new swig_type_info structures that have been added into the list
40437* of equivalent types. It is like calling
40438* SWIG_TypeClientData(type, clientdata) a second time.
40439*/
40440SWIGRUNTIME void
40441SWIG_PropagateClientData(void) {
40442 size_t i;
40443 swig_cast_info *equiv;
40444 static int init_run = 0;
40445
40446 if (init_run) return;
40447 init_run = 1;
40448
40449 for (i = 0; i < swig_module.size; i++) {
40450 if (swig_module.types[i]->clientdata) {
40451 equiv = swig_module.types[i]->cast;
40452 while (equiv) {
40453 if (!equiv->converter) {
40454 if (equiv->type && !equiv->type->clientdata)
40455 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40456 }
40457 equiv = equiv->next;
40458 }
8d38bd1d 40459 }
0085ce49
RD
40460 }
40461}
40462
40463#ifdef __cplusplus
40464#if 0
40465{
40466 /* c-mode */
40467#endif
40468}
40469#endif
40470
40471
40472
40473#ifdef __cplusplus
40474extern "C" {
40475#endif
40476
40477 /* Python-specific SWIG API */
40478#define SWIG_newvarlink() SWIG_Python_newvarlink()
40479#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40480#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40481
40482 /* -----------------------------------------------------------------------------
40483 * global variable support code.
40484 * ----------------------------------------------------------------------------- */
40485
40486 typedef struct swig_globalvar {
40487 char *name; /* Name of global variable */
40488 PyObject *(*get_attr)(void); /* Return the current value */
40489 int (*set_attr)(PyObject *); /* Set the value */
40490 struct swig_globalvar *next;
40491 } swig_globalvar;
40492
40493 typedef struct swig_varlinkobject {
40494 PyObject_HEAD
40495 swig_globalvar *vars;
40496 } swig_varlinkobject;
40497
40498 SWIGINTERN PyObject *
40499 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40500 return PyString_FromString("<Swig global variables>");
40501 }
40502
40503 SWIGINTERN PyObject *
40504 swig_varlink_str(swig_varlinkobject *v) {
40505 PyObject *str = PyString_FromString("(");
40506 swig_globalvar *var;
40507 for (var = v->vars; var; var=var->next) {
40508 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40509 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40510 }
40511 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40512 return str;
40513 }
40514
40515 SWIGINTERN int
40516 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40517 PyObject *str = swig_varlink_str(v);
40518 fprintf(fp,"Swig global variables ");
40519 fprintf(fp,"%s\n", PyString_AsString(str));
40520 Py_DECREF(str);
40521 return 0;
40522 }
40523
40524 SWIGINTERN void
40525 swig_varlink_dealloc(swig_varlinkobject *v) {
40526 swig_globalvar *var = v->vars;
40527 while (var) {
40528 swig_globalvar *n = var->next;
40529 free(var->name);
40530 free(var);
40531 var = n;
8d38bd1d 40532 }
0085ce49
RD
40533 }
40534
40535 SWIGINTERN PyObject *
40536 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40537 PyObject *res = NULL;
40538 swig_globalvar *var = v->vars;
40539 while (var) {
40540 if (strcmp(var->name,n) == 0) {
40541 res = (*var->get_attr)();
40542 break;
40543 }
40544 var = var->next;
8d38bd1d 40545 }
0085ce49
RD
40546 if (res == NULL && !PyErr_Occurred()) {
40547 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 40548 }
0085ce49
RD
40549 return res;
40550 }
40551
40552 SWIGINTERN int
40553 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40554 int res = 1;
40555 swig_globalvar *var = v->vars;
40556 while (var) {
40557 if (strcmp(var->name,n) == 0) {
40558 res = (*var->set_attr)(p);
40559 break;
40560 }
40561 var = var->next;
8d38bd1d 40562 }
0085ce49
RD
40563 if (res == 1 && !PyErr_Occurred()) {
40564 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 40565 }
0085ce49
RD
40566 return res;
40567 }
40568
40569 SWIGINTERN PyTypeObject*
40570 swig_varlink_type(void) {
40571 static char varlink__doc__[] = "Swig var link object";
40572 static PyTypeObject varlink_type;
40573 static int type_init = 0;
40574 if (!type_init) {
40575 const PyTypeObject tmp
40576 = {
40577 PyObject_HEAD_INIT(NULL)
40578 0, /* Number of items in variable part (ob_size) */
40579 (char *)"swigvarlink", /* Type name (tp_name) */
40580 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40581 0, /* Itemsize (tp_itemsize) */
40582 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40583 (printfunc) swig_varlink_print, /* Print (tp_print) */
40584 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40585 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40586 0, /* tp_compare */
40587 (reprfunc) swig_varlink_repr, /* tp_repr */
40588 0, /* tp_as_number */
40589 0, /* tp_as_sequence */
40590 0, /* tp_as_mapping */
40591 0, /* tp_hash */
40592 0, /* tp_call */
40593 (reprfunc)swig_varlink_str, /* tp_str */
40594 0, /* tp_getattro */
40595 0, /* tp_setattro */
40596 0, /* tp_as_buffer */
40597 0, /* tp_flags */
40598 varlink__doc__, /* tp_doc */
40599 0, /* tp_traverse */
40600 0, /* tp_clear */
40601 0, /* tp_richcompare */
40602 0, /* tp_weaklistoffset */
40603#if PY_VERSION_HEX >= 0x02020000
40604 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40605#endif
40606#if PY_VERSION_HEX >= 0x02030000
40607 0, /* tp_del */
40608#endif
40609#ifdef COUNT_ALLOCS
40610 0,0,0,0 /* tp_alloc -> tp_next */
40611#endif
40612 };
40613 varlink_type = tmp;
40614 varlink_type.ob_type = &PyType_Type;
40615 type_init = 1;
8d38bd1d 40616 }
0085ce49
RD
40617 return &varlink_type;
40618 }
40619
40620 /* Create a variable linking object for use later */
40621 SWIGINTERN PyObject *
40622 SWIG_Python_newvarlink(void) {
40623 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40624 if (result) {
40625 result->vars = 0;
40626 }
40627 return ((PyObject*) result);
40628 }
40629
40630 SWIGINTERN void
40631 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40632 swig_varlinkobject *v = (swig_varlinkobject *) p;
40633 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40634 if (gv) {
40635 size_t size = strlen(name)+1;
40636 gv->name = (char *)malloc(size);
40637 if (gv->name) {
40638 strncpy(gv->name,name,size);
40639 gv->get_attr = get_attr;
40640 gv->set_attr = set_attr;
40641 gv->next = v->vars;
40642 }
8d38bd1d 40643 }
0085ce49
RD
40644 v->vars = gv;
40645 }
40646
40647 SWIGINTERN PyObject *
40648 SWIG_globals() {
40649 static PyObject *_SWIG_globals = 0;
40650 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40651 return _SWIG_globals;
40652 }
40653
40654 /* -----------------------------------------------------------------------------
40655 * constants/methods manipulation
40656 * ----------------------------------------------------------------------------- */
40657
40658 /* Install Constants */
40659 SWIGINTERN void
40660 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40661 PyObject *obj = 0;
40662 size_t i;
40663 for (i = 0; constants[i].type; ++i) {
40664 switch(constants[i].type) {
40665 case SWIG_PY_POINTER:
40666 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40667 break;
40668 case SWIG_PY_BINARY:
40669 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40670 break;
40671 default:
40672 obj = 0;
40673 break;
40674 }
40675 if (obj) {
40676 PyDict_SetItemString(d, constants[i].name, obj);
40677 Py_DECREF(obj);
40678 }
8d38bd1d 40679 }
0085ce49
RD
40680 }
40681
40682 /* -----------------------------------------------------------------------------*/
40683 /* Fix SwigMethods to carry the callback ptrs when needed */
40684 /* -----------------------------------------------------------------------------*/
40685
40686 SWIGINTERN void
40687 SWIG_Python_FixMethods(PyMethodDef *methods,
40688 swig_const_info *const_table,
40689 swig_type_info **types,
40690 swig_type_info **types_initial) {
40691 size_t i;
40692 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 40693 const char *c = methods[i].ml_doc;
0085ce49
RD
40694 if (c && (c = strstr(c, "swig_ptr: "))) {
40695 int j;
40696 swig_const_info *ci = 0;
453fb36b 40697 const char *name = c + 10;
0085ce49
RD
40698 for (j = 0; const_table[j].type; ++j) {
40699 if (strncmp(const_table[j].name, name,
40700 strlen(const_table[j].name)) == 0) {
40701 ci = &(const_table[j]);
40702 break;
40703 }
40704 }
40705 if (ci) {
40706 size_t shift = (ci->ptype) - types;
40707 swig_type_info *ty = types_initial[shift];
40708 size_t ldoc = (c - methods[i].ml_doc);
40709 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40710 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40711 if (ndoc) {
40712 char *buff = ndoc;
40713 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40714 if (ptr) {
40715 strncpy(buff, methods[i].ml_doc, ldoc);
40716 buff += ldoc;
40717 strncpy(buff, "swig_ptr: ", 10);
40718 buff += 10;
40719 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40720 methods[i].ml_doc = ndoc;
40721 }
40722 }
40723 }
40724 }
8d38bd1d 40725 }
0085ce49
RD
40726 }
40727
40728#ifdef __cplusplus
40729}
40730#endif
40731
40732/* -----------------------------------------------------------------------------*
40733 * Partial Init method
40734 * -----------------------------------------------------------------------------*/
40735
40736#ifdef __cplusplus
40737extern "C"
40738#endif
40739SWIGEXPORT void SWIG_init(void) {
40740 PyObject *m, *d;
40741
40742 /* Fix SwigMethods to carry the callback ptrs when needed */
40743 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40744
40745 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40746 d = PyModule_GetDict(m);
40747
40748 SWIG_InitializeModule(0);
40749 SWIG_InstallConstants(d,swig_const_table);
40750
40751
01f6b6d3
RD
40752 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40753 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40754 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
40755 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40756 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
0085ce49
RD
40757 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40758 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40759 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40760 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40761 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40762 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40763 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40764 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40765 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40766 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40767 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40768 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40769 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40770 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40771 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40772 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40773 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40774 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40775 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40776 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40777 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40778 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40779 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40780 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40781 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40782 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40783 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40784 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40785 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40786 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40787 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40788 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40789 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40790 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40791 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40792 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40793 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40794 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40795 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40796 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40797 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40798 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40799 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40800 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40801 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40802 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40803 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40804 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40805 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40806 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40807 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40808 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40809 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40810 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40811 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40812 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40813 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40814 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40815 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40816 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40817 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40818 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40819 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40820 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40821 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40822 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40823 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40824 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40825 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40826 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40827 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40828 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40829 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40830 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40831 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40832 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40833 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40834 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40835 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40836 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40837 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40838 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40839 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40840 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40841 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40842 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40843 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40844 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40845 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40846 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40847 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40848 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40849 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40850 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40851 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40852 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
40853 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
40854 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
40855 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
40856 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
40857 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
40858 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
40859 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
40860 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
40861 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
40862 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
40863 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
40864 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
40865 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
40866 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
40867 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
40868 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
40869 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
40870 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
40871 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
40872 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
40873 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
40874 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
40875 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
40876 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
40877 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
40878 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
40879 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
40880 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
40881 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
40882 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
40883 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
40884
40885 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
40886
40887 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
40888 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
40889 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
40890 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
40891 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
40892 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
40893 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
40894 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
40895 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
40896 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
40897 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
40898 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
40899 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
40900 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
40901 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
40902 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
40903 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
40904 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
40905 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
40906 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
40907 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
40908 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
40909 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
40910 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
40911 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
40912 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
40913 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
40914 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
40915 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
40916 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
40917 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
40918 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
40919 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
40920 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
40921 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
40922 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
40923 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
40924 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
40925 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
40926 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
40927 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
40928 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
40929 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
40930 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
40931 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
40932 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
40933 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
40934 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
40935 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
40936 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
40937 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
40938 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
40939 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
40940 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
40941 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
40942 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
40943 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
40944 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
40945 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
40946 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
40947 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
40948 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
40949 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
40950 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
40951 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
40952 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
40953 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
40954 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
40955 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
40956 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
40957 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
40958 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
40959 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
40960 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
40961 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
40962 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
40963 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
40964 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
40965 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
40966 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
40967 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
40968 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
40969 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
40970 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
40971 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
40972 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
40973 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
40974 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
40975 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
40976 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
40977 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
40978 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
40979 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
40980 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
40981 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
40982 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
40983 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
40984 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
40985 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
40986 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
40987 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
40988 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
40989 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
40990 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
40991 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
40992 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
40993 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
40994 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
40995 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
40996 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
40997 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
40998 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
40999 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41000 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41001 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41002 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41003 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41004 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41005 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41006 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41007 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41008 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41009 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41010 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41011 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41012 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41013 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41014 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41015 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41016 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41017 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41018 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41019 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41020 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41021 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41022 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41023 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41024 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41025 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41026 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41027 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41028 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41029 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41030 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41031 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41032 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41033 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41034 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41035 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41036 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41037 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41038 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41039 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41040 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41041 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41042 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41043 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41044 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41045 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41046 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41047 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41048 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41049 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41050 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41051 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41052 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41053 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41054 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41055 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41056 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41057 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41058 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41059 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41060 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41061 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41062 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41063 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41064 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41065 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41066 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41067 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41068 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41069 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41070 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41071 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41072 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41073 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41074 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41075 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41076 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41077 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41078 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41079 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41080 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41081 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41082 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41083 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41084 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41085 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41086 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41087 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41088 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41089 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41090 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41091 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41092 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41093 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41094 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41095 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41096 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41097 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41098 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41099 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41100 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41101 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41102 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41103 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41104 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41105 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41106 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41107 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41108 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41109 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41110 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41111 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41112 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41113 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41114 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41115 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41116 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41117 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41118 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41119 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41120 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41121 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41122 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41123 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41124 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41125 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41126 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41127 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41128 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41129 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41130 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41131 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41132 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41133 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41134 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41135 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41136 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41137 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41138 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41139 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41140 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
0085ce49
RD
41141 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41142 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41143 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41144 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41145 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41146 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41147 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
41148 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41149 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41150 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41151 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41152 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41153 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41154 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41155 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41156 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41157 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41158 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41159 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41160 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41161 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41162 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41163 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41164 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41165 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41166 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41167 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41168 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41169 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41170 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41171 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41172 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41173 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41174 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41175 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41176 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41177 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41178 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41179 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41180 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41181 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41182 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
0085ce49
RD
41183 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41184 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41185 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41186 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41187 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41188 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41189 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41190 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
0085ce49
RD
41191 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41192 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41193 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41194 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
0085ce49
RD
41195 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41196 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41197 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41198 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
0085ce49
RD
41199 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41200 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41201 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41202 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41203 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41204 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41205 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41206 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41207 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41208 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
0085ce49
RD
41209 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41210 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41211
41212 // Work around a chicken/egg problem in drawlist.cpp
41213 wxPyDrawList_SetAPIPtr();
41214
d14a1e28
RD
41215}
41216