]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
Add wxSimpleHtmlListBox
[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
8bd35413
RD
3637class wxGraphicsRenderer;
3638class wxGraphicsMatrix;
3639
70d7cb34
RD
3640
3641class wxGraphicsObject : public wxObject
72ef6efb
RD
3642{
3643public :
8bd35413 3644 wxGraphicsObject() {}
70d7cb34 3645 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3646 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3647 "wx.GraphicsObject is not available on this platform.");
3648 }
3649 wxGraphicsObject( const wxGraphicsObject& ) {}
3650 virtual ~wxGraphicsObject() {}
3651 bool IsNull() const { return false; }
3652 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3653} ;
3654
3655
3656
3657class wxGraphicsPen : public wxGraphicsObject
3658{
8bd35413 3659public:
70d7cb34
RD
3660 wxGraphicsPen() {}
3661 virtual ~wxGraphicsPen() {}
3662} ;
3663wxGraphicsPen wxNullGraphicsPen;
3664
3665
3666
3667class wxGraphicsBrush : public wxGraphicsObject
3668{
3669public :
3670 wxGraphicsBrush() {}
3671 virtual ~wxGraphicsBrush() {}
3672} ;
3673wxGraphicsBrush wxNullGraphicsBrush;
3674
3675
3676
3677class wxGraphicsFont : public wxGraphicsObject
3678{
3679public :
3680 wxGraphicsFont() {}
3681 virtual ~wxGraphicsFont() {}
3682} ;
3683wxGraphicsFont wxNullGraphicsFont;
3684
3685
3686
3687class wxGraphicsPath : public wxGraphicsObject
3688{
3689public :
8bd35413 3690 wxGraphicsPath() { }
70d7cb34
RD
3691 wxGraphicsPath(wxGraphicsRenderer* ) {
3692 PyErr_SetString(PyExc_NotImplementedError,
3693 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3694 }
3695 virtual ~wxGraphicsPath() {}
70d7cb34 3696
72ef6efb 3697 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3698 void MoveToPoint( const wxPoint2DDouble& ) {}
3699 void AddLineToPoint( wxDouble, wxDouble ) {}
3700 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3701 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34 3702 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
8bd35413 3703 void AddPath( const wxGraphicsPath& ) {}
72ef6efb 3704 void CloseSubpath() {}
8bd35413
RD
3705 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3706 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
72ef6efb 3707 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3708 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3709
3710 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3711 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3712 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3713 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3714
70d7cb34
RD
3715 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3716 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3717 void * GetNativePath() const { return NULL; }
8bd35413
RD
3718 void UnGetNativePath(void *) const {}
3719 void Transform( const wxGraphicsMatrix& ) {}
3720 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3721 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
70d7cb34 3722
8bd35413
RD
3723 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3724 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
70d7cb34 3725};
5c8c7dd3 3726wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3727
3728
3729class wxGraphicsMatrix : public wxGraphicsObject
3730{
3731public :
8bd35413 3732 wxGraphicsMatrix() { }
70d7cb34
RD
3733 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3734 PyErr_SetString(PyExc_NotImplementedError,
3735 "wx.GraphicsMatrix is not available on this platform.");
3736 }
3737 virtual ~wxGraphicsMatrix() {}
8bd35413
RD
3738 virtual void Concat( const wxGraphicsMatrix & ) {}
3739 virtual void Copy( const wxGraphicsMatrix & ) {}
70d7cb34
RD
3740 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3741 wxDouble , wxDouble ) {}
3742 virtual void Invert() {}
8bd35413
RD
3743 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3744 virtual bool IsIdentity() const { return false; }
70d7cb34
RD
3745 virtual void Translate( wxDouble , wxDouble ) {}
3746 virtual void Scale( wxDouble , wxDouble ) {}
3747 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3748 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3749 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
70d7cb34 3750 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3751};
5c8c7dd3 3752wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3753
70d7cb34
RD
3754
3755class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3756{
3757public:
70d7cb34
RD
3758
3759 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3760 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3761 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3762 }
70d7cb34 3763
72ef6efb 3764 virtual ~wxGraphicsContext() {}
70d7cb34 3765
8bd35413
RD
3766 static wxGraphicsContext* Create() {
3767 PyErr_SetString(PyExc_NotImplementedError,
3768 "wx.GraphicsContext is not available on this platform.");
3769 return NULL;
3770 }
70d7cb34 3771 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3772 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3773 "wx.GraphicsContext is not available on this platform.");
8bd35413 3774 return NULL;
72ef6efb 3775 }
b876c1e4 3776
70d7cb34 3777 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3778 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3779 "wx.GraphicsContext is not available on this platform.");
8bd35413 3780 return NULL;
70d7cb34 3781 }
b876c1e4 3782
70d7cb34
RD
3783 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3784 PyErr_SetString(PyExc_NotImplementedError,
3785 "wx.GraphicsContext is not available on this platform.");
8bd35413 3786 return NULL;
70d7cb34
RD
3787 }
3788
3789 static wxGraphicsContext* Create( wxWindow* ) {
3790 PyErr_SetString(PyExc_NotImplementedError,
3791 "wx.GraphicsContext is not available on this platform.");
8bd35413 3792 return NULL;
70d7cb34
RD
3793 }
3794
8bd35413 3795 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3796
8bd35413 3797 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
70d7cb34 3798
8bd35413 3799 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
70d7cb34
RD
3800
3801 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413 3802 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34
RD
3803
3804 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3805 wxDouble xc, wxDouble yc, wxDouble radius,
8bd35413 3806 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
70d7cb34 3807
8bd35413 3808 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
70d7cb34 3809
8bd35413
RD
3810 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3811 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
70d7cb34
RD
3812
3813 virtual void PushState() {}
3814 virtual void PopState() {}
3815 virtual void Clip( const wxRegion & ) {}
3816 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3817 virtual void ResetClip() {}
3818 virtual void * GetNativeContext() { return NULL; }
3819 virtual void Translate( wxDouble , wxDouble ) {}
3820 virtual void Scale( wxDouble , wxDouble ) {}
3821 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3822 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3823 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3824 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
70d7cb34
RD
3825
3826 virtual void SetPen( const wxGraphicsPen& ) {}
3827 void SetPen( const wxPen& ) {}
3828
3829 virtual void SetBrush( const wxGraphicsBrush& ) {}
3830 void SetBrush( const wxBrush& ) {}
3831
3832 virtual void SetFont( const wxGraphicsFont& ) {}
3833 void SetFont( const wxFont&, const wxColour& ) {}
3834
8bd35413
RD
3835 virtual void StrokePath( const wxGraphicsPath & ) {}
3836 virtual void FillPath( const wxGraphicsPath &, int ) {}
3837 virtual void DrawPath( const wxGraphicsPath &, int ) {}
70d7cb34
RD
3838
3839 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3840 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
8bd35413
RD
3841 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3842 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
70d7cb34
RD
3843 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3844 wxDouble *, wxDouble * ) const {}
3845 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3846
3847 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3848 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3849
3850 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3851 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3852 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3853 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3854 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
8bd35413 3855 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
70d7cb34
RD
3856 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3857 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3858 virtual bool ShouldOffset() const { return false; }
3859};
3860
3861
3862class wxGraphicsRenderer : public wxObject
3863{
3864public :
3865 wxGraphicsRenderer() {
3866 PyErr_SetString(PyExc_NotImplementedError,
3867 "wx.GraphicsRenderer is not available on this platform.");
3868 }
3869
3870 virtual ~wxGraphicsRenderer() {}
3871
8bd35413 3872 static wxGraphicsRenderer* GetDefaultRenderer() {
70d7cb34
RD
3873 PyErr_SetString(PyExc_NotImplementedError,
3874 "wx.GraphicsRenderer is not available on this platform.");
8bd35413
RD
3875 return NULL;
3876 }
70d7cb34
RD
3877
3878 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3879 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3880 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3881 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
8bd35413 3882 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
70d7cb34 3883
8bd35413 3884 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3885
8bd35413
RD
3886 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3887 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
70d7cb34 3888
8bd35413
RD
3889 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3890 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3891 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3892 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34 3893 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413
RD
3894 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3895 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
72ef6efb
RD
3896};
3897
3898
70d7cb34 3899
72ef6efb
RD
3900class wxGCDC: public wxWindowDC
3901{
3902public:
3903 wxGCDC(const wxWindowDC&) {
3904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3905 PyErr_SetString(PyExc_NotImplementedError,
3906 "wxGCDC is not available on this platform.");
3907 wxPyEndBlockThreads(blocked);
3908 }
70d7cb34 3909
48a0c021
RD
3910 wxGCDC(const wxWindow*) {
3911 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3912 PyErr_SetString(PyExc_NotImplementedError,
3913 "wxGCDC is not available on this platform.");
3914 wxPyEndBlockThreads(blocked);
3915 }
3916
72ef6efb
RD
3917 wxGCDC() {
3918 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3919 PyErr_SetString(PyExc_NotImplementedError,
3920 "wxGCDC is not available on this platform.");
3921 wxPyEndBlockThreads(blocked);
3922 }
70d7cb34 3923
72ef6efb
RD
3924 virtual ~wxGCDC() {}
3925
b876c1e4
RD
3926 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3927 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3928};
3929
3930#endif
3931
f89238b9
RD
3932SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3933 if ( !backgroundBrush.IsNull() )
3934 self->DrawText(str, x, y, backgroundBrush);
3935 else
3936 self->DrawText(str, x, y);
3937 }
3938SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3939 if ( !backgroundBrush.IsNull() )
3940 self->DrawText(str, x, y, angle, backgroundBrush);
3941 else
3942 self->DrawText(str, x, y, angle);
3943 }
be68621e
RD
3944SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3945 wxDouble width = 0.0,
3946 height = 0.0;
3947 self->GetTextExtent(text, &width, &height, NULL, NULL);
3948 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3949 PyObject* rv = PyTuple_New(2);
3950 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3951 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3952 return rv;
3953 }
b39fe951
RD
3954SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3955 wxArrayDouble widths;
3956 self->GetPartialTextExtents(text, widths);
3957 return widths;
3958 }
f8eb59b9 3959SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3960 size_t c1, c2, count;
3961 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3962 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3963
3964 if ( beginP != NULL && endP != NULL )
3965 {
3966 count = wxMin(c1, c2);
3967 self->StrokeLines(count, beginP, endP);
3968 }
3969 delete [] beginP;
3970 delete [] endP;
3971 }
72ef6efb 3972
0a27f394
RD
3973#include "wx/dcgraph.h"
3974
3975
66493fc7
RD
3976#include <wx/overlay.h>
3977
3978
093d3ff1 3979
0085ce49 3980SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3981 self->AddColour(name, wxColour(red, green, blue));
3982 }
3983
50efceee
RD
3984 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3985 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3986 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3987 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3988
3989
093d3ff1
RD
3990#include <wx/effects.h>
3991
8d38bd1d
RD
3992
3993#include "wx/renderer.h"
3994
3995
32fe5131 3996SWIGINTERNINLINE PyObject*
0085ce49 3997 SWIG_From_bool (bool value)
8d38bd1d 3998{
0085ce49 3999 return PyBool_FromLong(value ? 1 : 0);
8d38bd1d
RD
4000}
4001
27e45892
RD
4002
4003#include "wx/wxPython/pseudodc.h"
4004
4005SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4006 wxRect rect;
4007 self->GetIdBounds(id, rect);
4008 return rect;
4009 }
093d3ff1
RD
4010#ifdef __cplusplus
4011extern "C" {
4012#endif
0085ce49
RD
4013SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4014 PyObject *resultobj = 0;
4015 wxGDIObject *result = 0 ;
4016
4017 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4018 {
4019 if (!wxPyCheckForApp()) SWIG_fail;
4020 PyThreadState* __tstate = wxPyBeginAllowThreads();
4021 result = (wxGDIObject *)new wxGDIObject();
4022 wxPyEndAllowThreads(__tstate);
4023 if (PyErr_Occurred()) SWIG_fail;
4024 }
4025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4026 return resultobj;
4027fail:
4028 return NULL;
093d3ff1
RD
4029}
4030
4031
0085ce49
RD
4032SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4033 PyObject *resultobj = 0;
4034 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4035 void *argp1 = 0 ;
4036 int res1 = 0 ;
4037 PyObject *swig_obj[1] ;
4038
4039 if (!args) SWIG_fail;
4040 swig_obj[0] = args;
4041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4042 if (!SWIG_IsOK(res1)) {
4043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4044 }
4045 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4046 {
4047 PyThreadState* __tstate = wxPyBeginAllowThreads();
4048 delete arg1;
093d3ff1 4049
0085ce49
RD
4050 wxPyEndAllowThreads(__tstate);
4051 if (PyErr_Occurred()) SWIG_fail;
4052 }
4053 resultobj = SWIG_Py_Void();
4054 return resultobj;
4055fail:
4056 return NULL;
d14a1e28
RD
4057}
4058
4059
0085ce49
RD
4060SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4061 PyObject *resultobj = 0;
4062 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4063 bool result;
4064 void *argp1 = 0 ;
4065 int res1 = 0 ;
4066 PyObject *swig_obj[1] ;
4067
4068 if (!args) SWIG_fail;
4069 swig_obj[0] = args;
4070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4071 if (!SWIG_IsOK(res1)) {
4072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4073 }
4074 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4075 {
4076 PyThreadState* __tstate = wxPyBeginAllowThreads();
4077 result = (bool)(arg1)->IsNull();
4078 wxPyEndAllowThreads(__tstate);
4079 if (PyErr_Occurred()) SWIG_fail;
4080 }
4081 {
4082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4083 }
4084 return resultobj;
4085fail:
4086 return NULL;
4087}
4088
4089
4090SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4091 PyObject *obj;
4092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4093 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4094 return SWIG_Py_Void();
4095}
4096
4097SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4098 return SWIG_Python_InitShadowInstance(args);
4099}
4100
4101SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4102 PyObject *resultobj = 0;
4103 byte arg1 = (byte) 0 ;
4104 byte arg2 = (byte) 0 ;
4105 byte arg3 = (byte) 0 ;
fc46b7f3 4106 byte arg4 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4107 wxColour *result = 0 ;
4108 unsigned char val1 ;
4109 int ecode1 = 0 ;
4110 unsigned char val2 ;
4111 int ecode2 = 0 ;
4112 unsigned char val3 ;
4113 int ecode3 = 0 ;
fc46b7f3
RD
4114 unsigned char val4 ;
4115 int ecode4 = 0 ;
0085ce49
RD
4116 PyObject * obj0 = 0 ;
4117 PyObject * obj1 = 0 ;
4118 PyObject * obj2 = 0 ;
fc46b7f3 4119 PyObject * obj3 = 0 ;
0085ce49 4120 char * kwnames[] = {
fc46b7f3 4121 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4122 };
4123
fc46b7f3 4124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
4125 if (obj0) {
4126 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4127 if (!SWIG_IsOK(ecode1)) {
4128 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4129 }
4130 arg1 = static_cast< byte >(val1);
4131 }
4132 if (obj1) {
4133 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4134 if (!SWIG_IsOK(ecode2)) {
4135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4136 }
4137 arg2 = static_cast< byte >(val2);
4138 }
4139 if (obj2) {
4140 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4141 if (!SWIG_IsOK(ecode3)) {
4142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4143 }
4144 arg3 = static_cast< byte >(val3);
4145 }
fc46b7f3
RD
4146 if (obj3) {
4147 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4148 if (!SWIG_IsOK(ecode4)) {
4149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4150 }
4151 arg4 = static_cast< byte >(val4);
4152 }
0085ce49
RD
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4155 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
0085ce49
RD
4156 wxPyEndAllowThreads(__tstate);
4157 if (PyErr_Occurred()) SWIG_fail;
4158 }
4159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4160 return resultobj;
4161fail:
4162 return NULL;
d14a1e28
RD
4163}
4164
4165
0085ce49
RD
4166SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4167 PyObject *resultobj = 0;
4168 wxString *arg1 = 0 ;
4169 wxColour *result = 0 ;
4170 bool temp1 = false ;
4171 PyObject * obj0 = 0 ;
4172 char * kwnames[] = {
4173 (char *) "colorName", NULL
4174 };
4175
4176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4177 {
4178 arg1 = wxString_in_helper(obj0);
4179 if (arg1 == NULL) SWIG_fail;
4180 temp1 = true;
4181 }
4182 {
4183 if (!wxPyCheckForApp()) SWIG_fail;
4184 PyThreadState* __tstate = wxPyBeginAllowThreads();
4185 result = (wxColour *)new wxColour((wxString const &)*arg1);
4186 wxPyEndAllowThreads(__tstate);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4190 {
4191 if (temp1)
4192 delete arg1;
4193 }
4194 return resultobj;
4195fail:
4196 {
4197 if (temp1)
4198 delete arg1;
4199 }
4200 return NULL;
d14a1e28
RD
4201}
4202
4203
0085ce49
RD
4204SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4205 PyObject *resultobj = 0;
4206 unsigned long arg1 ;
4207 wxColour *result = 0 ;
4208 unsigned long val1 ;
4209 int ecode1 = 0 ;
4210 PyObject * obj0 = 0 ;
4211 char * kwnames[] = {
4212 (char *) "colRGB", NULL
4213 };
4214
4215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4216 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4217 if (!SWIG_IsOK(ecode1)) {
4218 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4219 }
4220 arg1 = static_cast< unsigned long >(val1);
4221 {
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 result = (wxColour *)new wxColour(arg1);
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4228 return resultobj;
4229fail:
4230 return NULL;
d14a1e28
RD
4231}
4232
4233
0085ce49
RD
4234SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4235 PyObject *resultobj = 0;
4236 wxColour *arg1 = (wxColour *) 0 ;
4237 void *argp1 = 0 ;
4238 int res1 = 0 ;
4239 PyObject *swig_obj[1] ;
4240
4241 if (!args) SWIG_fail;
4242 swig_obj[0] = args;
4243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4244 if (!SWIG_IsOK(res1)) {
4245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4246 }
4247 arg1 = reinterpret_cast< wxColour * >(argp1);
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
4250 delete arg1;
d14a1e28 4251
0085ce49
RD
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = SWIG_Py_Void();
4256 return resultobj;
4257fail:
4258 return NULL;
d14a1e28
RD
4259}
4260
4261
0085ce49
RD
4262SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4263 PyObject *resultobj = 0;
4264 wxColour *arg1 = (wxColour *) 0 ;
4265 byte result;
4266 void *argp1 = 0 ;
4267 int res1 = 0 ;
4268 PyObject *swig_obj[1] ;
4269
4270 if (!args) SWIG_fail;
4271 swig_obj[0] = args;
4272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4273 if (!SWIG_IsOK(res1)) {
4274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4275 }
4276 arg1 = reinterpret_cast< wxColour * >(argp1);
4277 {
4278 PyThreadState* __tstate = wxPyBeginAllowThreads();
4279 result = (byte)(arg1)->Red();
4280 wxPyEndAllowThreads(__tstate);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
4283 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4284 return resultobj;
4285fail:
4286 return NULL;
d14a1e28
RD
4287}
4288
4289
0085ce49
RD
4290SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4291 PyObject *resultobj = 0;
4292 wxColour *arg1 = (wxColour *) 0 ;
4293 byte result;
4294 void *argp1 = 0 ;
4295 int res1 = 0 ;
4296 PyObject *swig_obj[1] ;
4297
4298 if (!args) SWIG_fail;
4299 swig_obj[0] = args;
4300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4301 if (!SWIG_IsOK(res1)) {
4302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4303 }
4304 arg1 = reinterpret_cast< wxColour * >(argp1);
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 result = (byte)(arg1)->Green();
4308 wxPyEndAllowThreads(__tstate);
4309 if (PyErr_Occurred()) SWIG_fail;
4310 }
4311 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4312 return resultobj;
4313fail:
4314 return NULL;
5cbf236d
RD
4315}
4316
4317
0085ce49
RD
4318SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4319 PyObject *resultobj = 0;
4320 wxColour *arg1 = (wxColour *) 0 ;
4321 byte result;
4322 void *argp1 = 0 ;
4323 int res1 = 0 ;
4324 PyObject *swig_obj[1] ;
4325
4326 if (!args) SWIG_fail;
4327 swig_obj[0] = args;
4328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4329 if (!SWIG_IsOK(res1)) {
4330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4331 }
4332 arg1 = reinterpret_cast< wxColour * >(argp1);
4333 {
4334 PyThreadState* __tstate = wxPyBeginAllowThreads();
4335 result = (byte)(arg1)->Blue();
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
4339 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4340 return resultobj;
4341fail:
4342 return NULL;
d14a1e28
RD
4343}
4344
4345
fc46b7f3
RD
4346SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4347 PyObject *resultobj = 0;
4348 wxColour *arg1 = (wxColour *) 0 ;
4349 byte result;
4350 void *argp1 = 0 ;
4351 int res1 = 0 ;
4352 PyObject *swig_obj[1] ;
4353
4354 if (!args) SWIG_fail;
4355 swig_obj[0] = args;
4356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4357 if (!SWIG_IsOK(res1)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4359 }
4360 arg1 = reinterpret_cast< wxColour * >(argp1);
4361 {
4362 PyThreadState* __tstate = wxPyBeginAllowThreads();
4363 result = (byte)(arg1)->Alpha();
4364 wxPyEndAllowThreads(__tstate);
4365 if (PyErr_Occurred()) SWIG_fail;
4366 }
4367 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4368 return resultobj;
4369fail:
4370 return NULL;
4371}
4372
4373
b39fe951 4374SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4375 PyObject *resultobj = 0;
4376 wxColour *arg1 = (wxColour *) 0 ;
4377 bool result;
4378 void *argp1 = 0 ;
4379 int res1 = 0 ;
4380 PyObject *swig_obj[1] ;
4381
4382 if (!args) SWIG_fail;
4383 swig_obj[0] = args;
4384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4385 if (!SWIG_IsOK(res1)) {
b39fe951 4386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4387 }
4388 arg1 = reinterpret_cast< wxColour * >(argp1);
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4391 result = (bool)(arg1)->IsOk();
0085ce49
RD
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 {
4396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4397 }
4398 return resultobj;
4399fail:
4400 return NULL;
4401}
4402
4403
4404SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4405 PyObject *resultobj = 0;
4406 wxColour *arg1 = (wxColour *) 0 ;
4407 byte arg2 ;
4408 byte arg3 ;
4409 byte arg4 ;
fc46b7f3 4410 byte arg5 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4411 void *argp1 = 0 ;
4412 int res1 = 0 ;
4413 unsigned char val2 ;
4414 int ecode2 = 0 ;
4415 unsigned char val3 ;
4416 int ecode3 = 0 ;
4417 unsigned char val4 ;
4418 int ecode4 = 0 ;
fc46b7f3
RD
4419 unsigned char val5 ;
4420 int ecode5 = 0 ;
0085ce49
RD
4421 PyObject * obj0 = 0 ;
4422 PyObject * obj1 = 0 ;
4423 PyObject * obj2 = 0 ;
4424 PyObject * obj3 = 0 ;
fc46b7f3 4425 PyObject * obj4 = 0 ;
0085ce49 4426 char * kwnames[] = {
fc46b7f3 4427 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4428 };
4429
fc46b7f3 4430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
0085ce49
RD
4431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4432 if (!SWIG_IsOK(res1)) {
4433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4434 }
4435 arg1 = reinterpret_cast< wxColour * >(argp1);
4436 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4437 if (!SWIG_IsOK(ecode2)) {
4438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4439 }
4440 arg2 = static_cast< byte >(val2);
4441 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4442 if (!SWIG_IsOK(ecode3)) {
4443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4444 }
4445 arg3 = static_cast< byte >(val3);
4446 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4447 if (!SWIG_IsOK(ecode4)) {
4448 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4449 }
4450 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4451 if (obj4) {
4452 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4453 if (!SWIG_IsOK(ecode5)) {
4454 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4455 }
4456 arg5 = static_cast< byte >(val5);
4457 }
0085ce49
RD
4458 {
4459 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4460 (arg1)->Set(arg2,arg3,arg4,arg5);
0085ce49
RD
4461 wxPyEndAllowThreads(__tstate);
4462 if (PyErr_Occurred()) SWIG_fail;
4463 }
4464 resultobj = SWIG_Py_Void();
4465 return resultobj;
4466fail:
4467 return NULL;
4468}
4469
4470
4471SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4472 PyObject *resultobj = 0;
4473 wxColour *arg1 = (wxColour *) 0 ;
4474 unsigned long arg2 ;
4475 void *argp1 = 0 ;
4476 int res1 = 0 ;
4477 unsigned long val2 ;
4478 int ecode2 = 0 ;
4479 PyObject * obj0 = 0 ;
4480 PyObject * obj1 = 0 ;
4481 char * kwnames[] = {
4482 (char *) "self",(char *) "colRGB", NULL
4483 };
4484
4485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",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_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4489 }
4490 arg1 = reinterpret_cast< wxColour * >(argp1);
4491 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4492 if (!SWIG_IsOK(ecode2)) {
4493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4494 }
4495 arg2 = static_cast< unsigned long >(val2);
4496 {
4497 PyThreadState* __tstate = wxPyBeginAllowThreads();
4498 (arg1)->Set(arg2);
4499 wxPyEndAllowThreads(__tstate);
4500 if (PyErr_Occurred()) SWIG_fail;
4501 }
4502 resultobj = SWIG_Py_Void();
4503 return resultobj;
4504fail:
4505 return NULL;
4506}
4507
4508
4509SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4510 PyObject *resultobj = 0;
4511 wxColour *arg1 = (wxColour *) 0 ;
4512 wxString *arg2 = 0 ;
4513 void *argp1 = 0 ;
4514 int res1 = 0 ;
4515 bool temp2 = false ;
4516 PyObject * obj0 = 0 ;
4517 PyObject * obj1 = 0 ;
4518 char * kwnames[] = {
4519 (char *) "self",(char *) "colourName", NULL
4520 };
4521
4522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4524 if (!SWIG_IsOK(res1)) {
4525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4526 }
4527 arg1 = reinterpret_cast< wxColour * >(argp1);
4528 {
4529 arg2 = wxString_in_helper(obj1);
4530 if (arg2 == NULL) SWIG_fail;
4531 temp2 = true;
4532 }
4533 {
4534 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4535 (arg1)->Set((wxString const &)*arg2);
0085ce49
RD
4536 wxPyEndAllowThreads(__tstate);
4537 if (PyErr_Occurred()) SWIG_fail;
4538 }
4539 resultobj = SWIG_Py_Void();
4540 {
4541 if (temp2)
4542 delete arg2;
4543 }
4544 return resultobj;
4545fail:
4546 {
4547 if (temp2)
4548 delete arg2;
4549 }
4550 return NULL;
d14a1e28
RD
4551}
4552
4553
01f6b6d3
RD
4554SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4555 PyObject *resultobj = 0;
4556 wxColour *arg1 = (wxColour *) 0 ;
4557 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4558 wxString result;
4559 void *argp1 = 0 ;
4560 int res1 = 0 ;
4561 long val2 ;
4562 int ecode2 = 0 ;
4563 PyObject * obj0 = 0 ;
4564 PyObject * obj1 = 0 ;
4565 char * kwnames[] = {
4566 (char *) "self",(char *) "flags", NULL
4567 };
4568
4569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4571 if (!SWIG_IsOK(res1)) {
4572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4573 }
4574 arg1 = reinterpret_cast< wxColour * >(argp1);
4575 if (obj1) {
4576 ecode2 = SWIG_AsVal_long(obj1, &val2);
4577 if (!SWIG_IsOK(ecode2)) {
4578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4579 }
4580 arg2 = static_cast< long >(val2);
4581 }
4582 {
4583 PyThreadState* __tstate = wxPyBeginAllowThreads();
4584 result = ((wxColour const *)arg1)->GetAsString(arg2);
4585 wxPyEndAllowThreads(__tstate);
4586 if (PyErr_Occurred()) SWIG_fail;
4587 }
4588 {
4589#if wxUSE_UNICODE
4590 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4591#else
4592 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4593#endif
4594 }
4595 return resultobj;
4596fail:
4597 return NULL;
4598}
4599
4600
0085ce49
RD
4601SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4602 PyObject *resultobj = 0;
4603 wxColour *arg1 = (wxColour *) 0 ;
4604 long result;
4605 void *argp1 = 0 ;
4606 int res1 = 0 ;
4607 PyObject *swig_obj[1] ;
4608
4609 if (!args) SWIG_fail;
4610 swig_obj[0] = args;
4611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4612 if (!SWIG_IsOK(res1)) {
4613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4614 }
4615 arg1 = reinterpret_cast< wxColour * >(argp1);
4616 {
4617 PyThreadState* __tstate = wxPyBeginAllowThreads();
4618 result = (long)((wxColour const *)arg1)->GetPixel();
4619 wxPyEndAllowThreads(__tstate);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 resultobj = SWIG_From_long(static_cast< long >(result));
4623 return resultobj;
4624fail:
4625 return NULL;
4626}
4627
4628
4629SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4630 PyObject *resultobj = 0;
4631 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4632 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4633 bool result;
4634 void *argp1 = 0 ;
4635 int res1 = 0 ;
0085ce49
RD
4636 PyObject * obj0 = 0 ;
4637 PyObject * obj1 = 0 ;
4638 char * kwnames[] = {
e9d6f3a4 4639 (char *) "self",(char *) "other", NULL
0085ce49
RD
4640 };
4641
4642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4644 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4646 }
4647 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4648 arg2 = obj1;
0085ce49 4649 {
e9d6f3a4 4650 result = (bool)wxColour___eq__(arg1,arg2);
0085ce49
RD
4651 if (PyErr_Occurred()) SWIG_fail;
4652 }
4653 {
4654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4655 }
4656 return resultobj;
4657fail:
4658 return NULL;
4659}
4660
4661
4662SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4663 PyObject *resultobj = 0;
4664 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4665 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4666 bool result;
4667 void *argp1 = 0 ;
4668 int res1 = 0 ;
0085ce49
RD
4669 PyObject * obj0 = 0 ;
4670 PyObject * obj1 = 0 ;
4671 char * kwnames[] = {
e9d6f3a4 4672 (char *) "self",(char *) "other", NULL
0085ce49
RD
4673 };
4674
4675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4677 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4679 }
4680 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4681 arg2 = obj1;
0085ce49 4682 {
e9d6f3a4 4683 result = (bool)wxColour___ne__(arg1,arg2);
0085ce49
RD
4684 if (PyErr_Occurred()) SWIG_fail;
4685 }
4686 {
4687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4688 }
4689 return resultobj;
4690fail:
4691 return NULL;
d14a1e28
RD
4692}
4693
4694
fc46b7f3 4695SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
4696 PyObject *resultobj = 0;
4697 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4698 bool arg2 = (bool) false ;
0085ce49
RD
4699 PyObject *result = 0 ;
4700 void *argp1 = 0 ;
4701 int res1 = 0 ;
fc46b7f3
RD
4702 bool val2 ;
4703 int ecode2 = 0 ;
4704 PyObject * obj0 = 0 ;
4705 PyObject * obj1 = 0 ;
4706 char * kwnames[] = {
4707 (char *) "self",(char *) "includeAlpha", NULL
4708 };
0085ce49 4709
fc46b7f3
RD
4710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
0085ce49
RD
4712 if (!SWIG_IsOK(res1)) {
4713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4714 }
4715 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4716 if (obj1) {
4717 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4718 if (!SWIG_IsOK(ecode2)) {
4719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4720 }
4721 arg2 = static_cast< bool >(val2);
4722 }
0085ce49 4723 {
fc46b7f3 4724 result = (PyObject *)wxColour_Get(arg1,arg2);
0085ce49
RD
4725 if (PyErr_Occurred()) SWIG_fail;
4726 }
4727 resultobj = result;
4728 return resultobj;
4729fail:
4730 return NULL;
d14a1e28
RD
4731}
4732
4733
0085ce49
RD
4734SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4735 PyObject *resultobj = 0;
4736 wxColour *arg1 = (wxColour *) 0 ;
4737 unsigned long result;
4738 void *argp1 = 0 ;
4739 int res1 = 0 ;
4740 PyObject *swig_obj[1] ;
4741
4742 if (!args) SWIG_fail;
4743 swig_obj[0] = args;
4744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4745 if (!SWIG_IsOK(res1)) {
4746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4747 }
4748 arg1 = reinterpret_cast< wxColour * >(argp1);
4749 {
0085ce49 4750 result = (unsigned long)wxColour_GetRGB(arg1);
0085ce49
RD
4751 if (PyErr_Occurred()) SWIG_fail;
4752 }
4753 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4754 return resultobj;
4755fail:
4756 return NULL;
4757}
4758
4759
4760SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4761 PyObject *obj;
4762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4763 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4764 return SWIG_Py_Void();
4765}
4766
4767SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4768 return SWIG_Python_InitShadowInstance(args);
4769}
4770
4771SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4772 PyObject *resultobj = 0;
4773 int arg1 ;
4774 unsigned char *arg2 = (unsigned char *) 0 ;
4775 unsigned char *arg3 = (unsigned char *) 0 ;
4776 unsigned char *arg4 = (unsigned char *) 0 ;
4777 wxPalette *result = 0 ;
4778 int val1 ;
4779 int ecode1 = 0 ;
4780 void *argp2 = 0 ;
4781 int res2 = 0 ;
4782 void *argp3 = 0 ;
4783 int res3 = 0 ;
4784 void *argp4 = 0 ;
4785 int res4 = 0 ;
4786 PyObject * obj0 = 0 ;
4787 PyObject * obj1 = 0 ;
4788 PyObject * obj2 = 0 ;
4789 PyObject * obj3 = 0 ;
4790 char * kwnames[] = {
4791 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4792 };
4793
4794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4795 ecode1 = SWIG_AsVal_int(obj0, &val1);
4796 if (!SWIG_IsOK(ecode1)) {
4797 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4798 }
4799 arg1 = static_cast< int >(val1);
4800 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4801 if (!SWIG_IsOK(res2)) {
4802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4803 }
4804 arg2 = reinterpret_cast< unsigned char * >(argp2);
4805 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4806 if (!SWIG_IsOK(res3)) {
4807 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4808 }
4809 arg3 = reinterpret_cast< unsigned char * >(argp3);
4810 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4811 if (!SWIG_IsOK(res4)) {
4812 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4813 }
4814 arg4 = reinterpret_cast< unsigned char * >(argp4);
4815 {
4816 if (!wxPyCheckForApp()) SWIG_fail;
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4823 return resultobj;
4824fail:
4825 return NULL;
d14a1e28
RD
4826}
4827
4828
0085ce49
RD
4829SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4830 PyObject *resultobj = 0;
4831 wxPalette *arg1 = (wxPalette *) 0 ;
4832 void *argp1 = 0 ;
4833 int res1 = 0 ;
4834 PyObject *swig_obj[1] ;
4835
4836 if (!args) SWIG_fail;
4837 swig_obj[0] = args;
4838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4839 if (!SWIG_IsOK(res1)) {
4840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4841 }
4842 arg1 = reinterpret_cast< wxPalette * >(argp1);
4843 {
4844 PyThreadState* __tstate = wxPyBeginAllowThreads();
4845 delete arg1;
d14a1e28 4846
0085ce49
RD
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 resultobj = SWIG_Py_Void();
4851 return resultobj;
4852fail:
4853 return NULL;
4854}
4855
4856
4857SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4858 PyObject *resultobj = 0;
4859 wxPalette *arg1 = (wxPalette *) 0 ;
4860 byte arg2 ;
4861 byte arg3 ;
4862 byte arg4 ;
4863 int result;
4864 void *argp1 = 0 ;
4865 int res1 = 0 ;
4866 unsigned char val2 ;
4867 int ecode2 = 0 ;
4868 unsigned char val3 ;
4869 int ecode3 = 0 ;
4870 unsigned char val4 ;
4871 int ecode4 = 0 ;
4872 PyObject * obj0 = 0 ;
4873 PyObject * obj1 = 0 ;
4874 PyObject * obj2 = 0 ;
4875 PyObject * obj3 = 0 ;
4876 char * kwnames[] = {
4877 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4878 };
4879
4880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4882 if (!SWIG_IsOK(res1)) {
4883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4884 }
4885 arg1 = reinterpret_cast< wxPalette * >(argp1);
4886 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4887 if (!SWIG_IsOK(ecode2)) {
4888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4889 }
4890 arg2 = static_cast< byte >(val2);
4891 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4892 if (!SWIG_IsOK(ecode3)) {
4893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4894 }
4895 arg3 = static_cast< byte >(val3);
4896 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4897 if (!SWIG_IsOK(ecode4)) {
4898 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4899 }
4900 arg4 = static_cast< byte >(val4);
4901 {
4902 PyThreadState* __tstate = wxPyBeginAllowThreads();
4903 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4904 wxPyEndAllowThreads(__tstate);
4905 if (PyErr_Occurred()) SWIG_fail;
4906 }
4907 resultobj = SWIG_From_int(static_cast< int >(result));
4908 return resultobj;
4909fail:
4910 return NULL;
4911}
4912
4913
4914SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4915 PyObject *resultobj = 0;
4916 wxPalette *arg1 = (wxPalette *) 0 ;
4917 int arg2 ;
4918 byte *arg3 = (byte *) 0 ;
4919 byte *arg4 = (byte *) 0 ;
4920 byte *arg5 = (byte *) 0 ;
4921 bool result;
4922 void *argp1 = 0 ;
4923 int res1 = 0 ;
4924 int val2 ;
4925 int ecode2 = 0 ;
4926 byte temp3 ;
4927 int res3 = SWIG_TMPOBJ ;
4928 byte temp4 ;
4929 int res4 = SWIG_TMPOBJ ;
4930 byte temp5 ;
4931 int res5 = SWIG_TMPOBJ ;
4932 PyObject * obj0 = 0 ;
4933 PyObject * obj1 = 0 ;
4934 char * kwnames[] = {
4935 (char *) "self",(char *) "pixel", NULL
4936 };
4937
4938 arg3 = &temp3;
4939 arg4 = &temp4;
4940 arg5 = &temp5;
4941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4943 if (!SWIG_IsOK(res1)) {
4944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4945 }
4946 arg1 = reinterpret_cast< wxPalette * >(argp1);
4947 ecode2 = SWIG_AsVal_int(obj1, &val2);
4948 if (!SWIG_IsOK(ecode2)) {
4949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4950 }
4951 arg2 = static_cast< int >(val2);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 {
4959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4960 }
4961 if (SWIG_IsTmpObj(res3)) {
4962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4963 } else {
4964 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4966 }
4967 if (SWIG_IsTmpObj(res4)) {
4968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4969 } else {
4970 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4972 }
4973 if (SWIG_IsTmpObj(res5)) {
4974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4975 } else {
4976 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4978 }
4979 return resultobj;
4980fail:
4981 return NULL;
d14a1e28
RD
4982}
4983
4984
0085ce49
RD
4985SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4986 PyObject *resultobj = 0;
4987 wxPalette *arg1 = (wxPalette *) 0 ;
4988 int result;
4989 void *argp1 = 0 ;
4990 int res1 = 0 ;
4991 PyObject *swig_obj[1] ;
4992
4993 if (!args) SWIG_fail;
4994 swig_obj[0] = args;
4995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4996 if (!SWIG_IsOK(res1)) {
4997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4998 }
4999 arg1 = reinterpret_cast< wxPalette * >(argp1);
5000 {
5001 PyThreadState* __tstate = wxPyBeginAllowThreads();
5002 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5003 wxPyEndAllowThreads(__tstate);
5004 if (PyErr_Occurred()) SWIG_fail;
5005 }
5006 resultobj = SWIG_From_int(static_cast< int >(result));
5007 return resultobj;
5008fail:
5009 return NULL;
d14a1e28
RD
5010}
5011
5012
b39fe951 5013SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
5014 PyObject *resultobj = 0;
5015 wxPalette *arg1 = (wxPalette *) 0 ;
5016 bool result;
5017 void *argp1 = 0 ;
5018 int res1 = 0 ;
5019 PyObject *swig_obj[1] ;
5020
5021 if (!args) SWIG_fail;
5022 swig_obj[0] = args;
5023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5024 if (!SWIG_IsOK(res1)) {
b39fe951 5025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
0085ce49
RD
5026 }
5027 arg1 = reinterpret_cast< wxPalette * >(argp1);
5028 {
5029 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5030 result = (bool)(arg1)->IsOk();
0085ce49
RD
5031 wxPyEndAllowThreads(__tstate);
5032 if (PyErr_Occurred()) SWIG_fail;
5033 }
5034 {
5035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5036 }
5037 return resultobj;
5038fail:
5039 return NULL;
5040}
5041
5042
5043SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5044 PyObject *obj;
5045 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5046 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5047 return SWIG_Py_Void();
5048}
5049
5050SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5051 return SWIG_Python_InitShadowInstance(args);
5052}
5053
5054SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5055 PyObject *resultobj = 0;
5056 wxColour *arg1 = 0 ;
5057 int arg2 = (int) 1 ;
5058 int arg3 = (int) wxSOLID ;
5059 wxPen *result = 0 ;
5060 wxColour temp1 ;
5061 int val2 ;
5062 int ecode2 = 0 ;
5063 int val3 ;
5064 int ecode3 = 0 ;
5065 PyObject * obj0 = 0 ;
5066 PyObject * obj1 = 0 ;
5067 PyObject * obj2 = 0 ;
5068 char * kwnames[] = {
5069 (char *) "colour",(char *) "width",(char *) "style", NULL
5070 };
5071
5072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5073 {
5074 arg1 = &temp1;
5075 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5076 }
5077 if (obj1) {
5078 ecode2 = SWIG_AsVal_int(obj1, &val2);
5079 if (!SWIG_IsOK(ecode2)) {
5080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5081 }
5082 arg2 = static_cast< int >(val2);
5083 }
5084 if (obj2) {
5085 ecode3 = SWIG_AsVal_int(obj2, &val3);
5086 if (!SWIG_IsOK(ecode3)) {
5087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5088 }
5089 arg3 = static_cast< int >(val3);
5090 }
5091 {
5092 if (!wxPyCheckForApp()) SWIG_fail;
5093 PyThreadState* __tstate = wxPyBeginAllowThreads();
5094 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5095 wxPyEndAllowThreads(__tstate);
5096 if (PyErr_Occurred()) SWIG_fail;
5097 }
5098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5099 return resultobj;
5100fail:
5101 return NULL;
d14a1e28
RD
5102}
5103
5104
0085ce49
RD
5105SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5106 PyObject *resultobj = 0;
5107 wxPen *arg1 = (wxPen *) 0 ;
5108 void *argp1 = 0 ;
5109 int res1 = 0 ;
5110 PyObject *swig_obj[1] ;
5111
5112 if (!args) SWIG_fail;
5113 swig_obj[0] = args;
5114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5115 if (!SWIG_IsOK(res1)) {
5116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5117 }
5118 arg1 = reinterpret_cast< wxPen * >(argp1);
5119 {
5120 PyThreadState* __tstate = wxPyBeginAllowThreads();
5121 delete arg1;
d14a1e28 5122
0085ce49
RD
5123 wxPyEndAllowThreads(__tstate);
5124 if (PyErr_Occurred()) SWIG_fail;
5125 }
5126 resultobj = SWIG_Py_Void();
5127 return resultobj;
5128fail:
5129 return NULL;
d14a1e28
RD
5130}
5131
5132
0085ce49
RD
5133SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5134 PyObject *resultobj = 0;
5135 wxPen *arg1 = (wxPen *) 0 ;
5136 int result;
5137 void *argp1 = 0 ;
5138 int res1 = 0 ;
5139 PyObject *swig_obj[1] ;
5140
5141 if (!args) SWIG_fail;
5142 swig_obj[0] = args;
5143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5144 if (!SWIG_IsOK(res1)) {
5145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5146 }
5147 arg1 = reinterpret_cast< wxPen * >(argp1);
5148 {
5149 PyThreadState* __tstate = wxPyBeginAllowThreads();
5150 result = (int)(arg1)->GetCap();
5151 wxPyEndAllowThreads(__tstate);
5152 if (PyErr_Occurred()) SWIG_fail;
5153 }
5154 resultobj = SWIG_From_int(static_cast< int >(result));
5155 return resultobj;
5156fail:
5157 return NULL;
d14a1e28
RD
5158}
5159
5160
0085ce49
RD
5161SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5162 PyObject *resultobj = 0;
5163 wxPen *arg1 = (wxPen *) 0 ;
5164 wxColour result;
5165 void *argp1 = 0 ;
5166 int res1 = 0 ;
5167 PyObject *swig_obj[1] ;
5168
5169 if (!args) SWIG_fail;
5170 swig_obj[0] = args;
5171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5172 if (!SWIG_IsOK(res1)) {
5173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5174 }
5175 arg1 = reinterpret_cast< wxPen * >(argp1);
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 result = (arg1)->GetColour();
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 }
5182 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5183 return resultobj;
5184fail:
5185 return NULL;
d14a1e28
RD
5186}
5187
5188
0085ce49
RD
5189SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5190 PyObject *resultobj = 0;
5191 wxPen *arg1 = (wxPen *) 0 ;
5192 int result;
5193 void *argp1 = 0 ;
5194 int res1 = 0 ;
5195 PyObject *swig_obj[1] ;
5196
5197 if (!args) SWIG_fail;
5198 swig_obj[0] = args;
5199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5200 if (!SWIG_IsOK(res1)) {
5201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5202 }
5203 arg1 = reinterpret_cast< wxPen * >(argp1);
5204 {
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = (int)(arg1)->GetJoin();
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 resultobj = SWIG_From_int(static_cast< int >(result));
5211 return resultobj;
5212fail:
5213 return NULL;
d14a1e28
RD
5214}
5215
5216
0085ce49
RD
5217SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5218 PyObject *resultobj = 0;
5219 wxPen *arg1 = (wxPen *) 0 ;
5220 int result;
5221 void *argp1 = 0 ;
5222 int res1 = 0 ;
5223 PyObject *swig_obj[1] ;
5224
5225 if (!args) SWIG_fail;
5226 swig_obj[0] = args;
5227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5228 if (!SWIG_IsOK(res1)) {
5229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5230 }
5231 arg1 = reinterpret_cast< wxPen * >(argp1);
5232 {
5233 PyThreadState* __tstate = wxPyBeginAllowThreads();
5234 result = (int)(arg1)->GetStyle();
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 resultobj = SWIG_From_int(static_cast< int >(result));
5239 return resultobj;
5240fail:
5241 return NULL;
3adfb63b
RD
5242}
5243
5244
0085ce49
RD
5245SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5246 PyObject *resultobj = 0;
5247 wxPen *arg1 = (wxPen *) 0 ;
5248 int result;
5249 void *argp1 = 0 ;
5250 int res1 = 0 ;
5251 PyObject *swig_obj[1] ;
5252
5253 if (!args) SWIG_fail;
5254 swig_obj[0] = args;
5255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5256 if (!SWIG_IsOK(res1)) {
5257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5258 }
5259 arg1 = reinterpret_cast< wxPen * >(argp1);
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (int)(arg1)->GetWidth();
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 resultobj = SWIG_From_int(static_cast< int >(result));
5267 return resultobj;
5268fail:
5269 return NULL;
d14a1e28
RD
5270}
5271
5272
b39fe951 5273SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
5274 PyObject *resultobj = 0;
5275 wxPen *arg1 = (wxPen *) 0 ;
5276 bool result;
5277 void *argp1 = 0 ;
5278 int res1 = 0 ;
5279 PyObject *swig_obj[1] ;
5280
5281 if (!args) SWIG_fail;
5282 swig_obj[0] = args;
5283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5284 if (!SWIG_IsOK(res1)) {
b39fe951 5285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
0085ce49
RD
5286 }
5287 arg1 = reinterpret_cast< wxPen * >(argp1);
5288 {
5289 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5290 result = (bool)(arg1)->IsOk();
0085ce49
RD
5291 wxPyEndAllowThreads(__tstate);
5292 if (PyErr_Occurred()) SWIG_fail;
5293 }
5294 {
5295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5296 }
5297 return resultobj;
5298fail:
5299 return NULL;
5300}
5301
5302
5303SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5304 PyObject *resultobj = 0;
5305 wxPen *arg1 = (wxPen *) 0 ;
5306 int arg2 ;
5307 void *argp1 = 0 ;
5308 int res1 = 0 ;
5309 int val2 ;
5310 int ecode2 = 0 ;
5311 PyObject * obj0 = 0 ;
5312 PyObject * obj1 = 0 ;
5313 char * kwnames[] = {
5314 (char *) "self",(char *) "cap_style", NULL
5315 };
5316
5317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",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_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5321 }
5322 arg1 = reinterpret_cast< wxPen * >(argp1);
5323 ecode2 = SWIG_AsVal_int(obj1, &val2);
5324 if (!SWIG_IsOK(ecode2)) {
5325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5326 }
5327 arg2 = static_cast< int >(val2);
5328 {
5329 PyThreadState* __tstate = wxPyBeginAllowThreads();
5330 (arg1)->SetCap(arg2);
5331 wxPyEndAllowThreads(__tstate);
5332 if (PyErr_Occurred()) SWIG_fail;
5333 }
5334 resultobj = SWIG_Py_Void();
5335 return resultobj;
5336fail:
5337 return NULL;
5338}
5339
5340
5341SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5342 PyObject *resultobj = 0;
5343 wxPen *arg1 = (wxPen *) 0 ;
5344 wxColour *arg2 = 0 ;
5345 void *argp1 = 0 ;
5346 int res1 = 0 ;
5347 wxColour temp2 ;
5348 PyObject * obj0 = 0 ;
5349 PyObject * obj1 = 0 ;
5350 char * kwnames[] = {
5351 (char *) "self",(char *) "colour", NULL
5352 };
5353
5354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",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_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5358 }
5359 arg1 = reinterpret_cast< wxPen * >(argp1);
5360 {
5361 arg2 = &temp2;
5362 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5363 }
5364 {
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 (arg1)->SetColour(*arg2);
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 resultobj = SWIG_Py_Void();
5371 return resultobj;
5372fail:
5373 return NULL;
5374}
5375
5376
5377SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5378 PyObject *resultobj = 0;
5379 wxPen *arg1 = (wxPen *) 0 ;
5380 int arg2 ;
5381 void *argp1 = 0 ;
5382 int res1 = 0 ;
5383 int val2 ;
5384 int ecode2 = 0 ;
5385 PyObject * obj0 = 0 ;
5386 PyObject * obj1 = 0 ;
5387 char * kwnames[] = {
5388 (char *) "self",(char *) "join_style", NULL
5389 };
5390
5391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5393 if (!SWIG_IsOK(res1)) {
5394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5395 }
5396 arg1 = reinterpret_cast< wxPen * >(argp1);
5397 ecode2 = SWIG_AsVal_int(obj1, &val2);
5398 if (!SWIG_IsOK(ecode2)) {
5399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5400 }
5401 arg2 = static_cast< int >(val2);
5402 {
5403 PyThreadState* __tstate = wxPyBeginAllowThreads();
5404 (arg1)->SetJoin(arg2);
5405 wxPyEndAllowThreads(__tstate);
5406 if (PyErr_Occurred()) SWIG_fail;
5407 }
5408 resultobj = SWIG_Py_Void();
5409 return resultobj;
5410fail:
5411 return NULL;
5412}
5413
5414
5415SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5416 PyObject *resultobj = 0;
5417 wxPen *arg1 = (wxPen *) 0 ;
5418 int arg2 ;
5419 void *argp1 = 0 ;
5420 int res1 = 0 ;
5421 int val2 ;
5422 int ecode2 = 0 ;
5423 PyObject * obj0 = 0 ;
5424 PyObject * obj1 = 0 ;
5425 char * kwnames[] = {
5426 (char *) "self",(char *) "style", NULL
5427 };
5428
5429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5431 if (!SWIG_IsOK(res1)) {
5432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5433 }
5434 arg1 = reinterpret_cast< wxPen * >(argp1);
5435 ecode2 = SWIG_AsVal_int(obj1, &val2);
5436 if (!SWIG_IsOK(ecode2)) {
5437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5438 }
5439 arg2 = static_cast< int >(val2);
5440 {
5441 PyThreadState* __tstate = wxPyBeginAllowThreads();
5442 (arg1)->SetStyle(arg2);
5443 wxPyEndAllowThreads(__tstate);
5444 if (PyErr_Occurred()) SWIG_fail;
5445 }
5446 resultobj = SWIG_Py_Void();
5447 return resultobj;
5448fail:
5449 return NULL;
5450}
5451
5452
5453SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5454 PyObject *resultobj = 0;
5455 wxPen *arg1 = (wxPen *) 0 ;
5456 int arg2 ;
5457 void *argp1 = 0 ;
5458 int res1 = 0 ;
5459 int val2 ;
5460 int ecode2 = 0 ;
5461 PyObject * obj0 = 0 ;
5462 PyObject * obj1 = 0 ;
5463 char * kwnames[] = {
5464 (char *) "self",(char *) "width", NULL
5465 };
5466
5467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",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_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5471 }
5472 arg1 = reinterpret_cast< wxPen * >(argp1);
5473 ecode2 = SWIG_AsVal_int(obj1, &val2);
5474 if (!SWIG_IsOK(ecode2)) {
5475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5476 }
5477 arg2 = static_cast< int >(val2);
5478 {
5479 PyThreadState* __tstate = wxPyBeginAllowThreads();
5480 (arg1)->SetWidth(arg2);
5481 wxPyEndAllowThreads(__tstate);
5482 if (PyErr_Occurred()) SWIG_fail;
5483 }
5484 resultobj = SWIG_Py_Void();
5485 return resultobj;
5486fail:
5487 return NULL;
5488}
5489
5490
5491SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5492 PyObject *resultobj = 0;
5493 wxPen *arg1 = (wxPen *) 0 ;
5494 int arg2 ;
5495 wxDash *arg3 = (wxDash *) 0 ;
5496 void *argp1 = 0 ;
5497 int res1 = 0 ;
5498 PyObject * obj0 = 0 ;
5499 PyObject * obj1 = 0 ;
5500 char * kwnames[] = {
5501 (char *) "self",(char *) "dashes", NULL
5502 };
5503
5504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5506 if (!SWIG_IsOK(res1)) {
5507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5508 }
5509 arg1 = reinterpret_cast< wxPen * >(argp1);
5510 {
5511 arg2 = PyList_Size(obj1);
5512 arg3 = (wxDash*)byte_LIST_helper(obj1);
5513 if (arg3 == NULL) SWIG_fail;
5514 }
5515 {
5516 PyThreadState* __tstate = wxPyBeginAllowThreads();
5517 (arg1)->SetDashes(arg2,arg3);
5518 wxPyEndAllowThreads(__tstate);
5519 if (PyErr_Occurred()) SWIG_fail;
5520 }
5521 resultobj = SWIG_Py_Void();
5522 {
5523 if (arg3) delete [] arg3;
5524 }
5525 return resultobj;
5526fail:
5527 {
5528 if (arg3) delete [] arg3;
5529 }
5530 return NULL;
d14a1e28
RD
5531}
5532
5533
0085ce49
RD
5534SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5535 PyObject *resultobj = 0;
5536 wxPen *arg1 = (wxPen *) 0 ;
5537 PyObject *result = 0 ;
5538 void *argp1 = 0 ;
5539 int res1 = 0 ;
5540 PyObject *swig_obj[1] ;
5541
5542 if (!args) SWIG_fail;
5543 swig_obj[0] = args;
5544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5545 if (!SWIG_IsOK(res1)) {
5546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5547 }
5548 arg1 = reinterpret_cast< wxPen * >(argp1);
5549 {
5550 PyThreadState* __tstate = wxPyBeginAllowThreads();
5551 result = (PyObject *)wxPen_GetDashes(arg1);
5552 wxPyEndAllowThreads(__tstate);
5553 if (PyErr_Occurred()) SWIG_fail;
5554 }
5555 resultobj = result;
5556 return resultobj;
5557fail:
5558 return NULL;
5559}
5560
5561
5562SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5563 PyObject *resultobj = 0;
5564 wxPen *arg1 = (wxPen *) 0 ;
5565 PyObject *arg2 = (PyObject *) 0 ;
5566 PyObject *arg3 = (PyObject *) 0 ;
5567 void *argp1 = 0 ;
5568 int res1 = 0 ;
5569 PyObject * obj0 = 0 ;
5570 PyObject * obj1 = 0 ;
5571 PyObject * obj2 = 0 ;
5572 char * kwnames[] = {
5573 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5574 };
5575
5576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5578 if (!SWIG_IsOK(res1)) {
5579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5580 }
5581 arg1 = reinterpret_cast< wxPen * >(argp1);
5582 arg2 = obj1;
5583 arg3 = obj2;
5584 {
5585 PyThreadState* __tstate = wxPyBeginAllowThreads();
5586 wxPen__SetDashes(arg1,arg2,arg3);
5587 wxPyEndAllowThreads(__tstate);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
5590 resultobj = SWIG_Py_Void();
5591 return resultobj;
5592fail:
5593 return NULL;
d14a1e28
RD
5594}
5595
5596
0085ce49
RD
5597SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5598 PyObject *resultobj = 0;
5599 wxPen *arg1 = (wxPen *) 0 ;
5600 int result;
5601 void *argp1 = 0 ;
5602 int res1 = 0 ;
5603 PyObject *swig_obj[1] ;
5604
5605 if (!args) SWIG_fail;
5606 swig_obj[0] = args;
5607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5608 if (!SWIG_IsOK(res1)) {
5609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5610 }
5611 arg1 = reinterpret_cast< wxPen * >(argp1);
5612 {
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 result = (int)((wxPen const *)arg1)->GetDashCount();
5615 wxPyEndAllowThreads(__tstate);
5616 if (PyErr_Occurred()) SWIG_fail;
5617 }
5618 resultobj = SWIG_From_int(static_cast< int >(result));
5619 return resultobj;
5620fail:
5621 return NULL;
5622}
5623
5624
5625SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5626 PyObject *resultobj = 0;
5627 wxPen *arg1 = (wxPen *) 0 ;
5628 wxPen *arg2 = (wxPen *) 0 ;
5629 bool result;
5630 void *argp1 = 0 ;
5631 int res1 = 0 ;
5632 void *argp2 = 0 ;
5633 int res2 = 0 ;
5634 PyObject * obj0 = 0 ;
5635 PyObject * obj1 = 0 ;
5636 char * kwnames[] = {
5637 (char *) "self",(char *) "other", NULL
5638 };
5639
5640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5642 if (!SWIG_IsOK(res1)) {
5643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5644 }
5645 arg1 = reinterpret_cast< wxPen * >(argp1);
5646 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5647 if (!SWIG_IsOK(res2)) {
5648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5649 }
5650 arg2 = reinterpret_cast< wxPen * >(argp2);
5651 {
5652 PyThreadState* __tstate = wxPyBeginAllowThreads();
5653 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5654 wxPyEndAllowThreads(__tstate);
5655 if (PyErr_Occurred()) SWIG_fail;
5656 }
5657 {
5658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5659 }
5660 return resultobj;
5661fail:
5662 return NULL;
5663}
5664
5665
5666SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5667 PyObject *resultobj = 0;
5668 wxPen *arg1 = (wxPen *) 0 ;
5669 wxPen *arg2 = (wxPen *) 0 ;
5670 bool result;
5671 void *argp1 = 0 ;
5672 int res1 = 0 ;
5673 void *argp2 = 0 ;
5674 int res2 = 0 ;
5675 PyObject * obj0 = 0 ;
5676 PyObject * obj1 = 0 ;
5677 char * kwnames[] = {
5678 (char *) "self",(char *) "other", NULL
5679 };
5680
5681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5683 if (!SWIG_IsOK(res1)) {
5684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5685 }
5686 arg1 = reinterpret_cast< wxPen * >(argp1);
5687 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5688 if (!SWIG_IsOK(res2)) {
5689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5690 }
5691 arg2 = reinterpret_cast< wxPen * >(argp2);
5692 {
5693 PyThreadState* __tstate = wxPyBeginAllowThreads();
5694 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5695 wxPyEndAllowThreads(__tstate);
5696 if (PyErr_Occurred()) SWIG_fail;
5697 }
5698 {
5699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5700 }
5701 return resultobj;
5702fail:
5703 return NULL;
d14a1e28
RD
5704}
5705
5706
0085ce49
RD
5707SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5708 PyObject *obj;
5709 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5710 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5711 return SWIG_Py_Void();
d14a1e28
RD
5712}
5713
0085ce49
RD
5714SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5715 return SWIG_Python_InitShadowInstance(args);
5716}
d14a1e28 5717
0085ce49
RD
5718SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5719 PyObject *resultobj = 0;
5720 wxColour *arg1 = 0 ;
5721 int arg2 = (int) wxSOLID ;
5722 wxBrush *result = 0 ;
5723 wxColour temp1 ;
5724 int val2 ;
5725 int ecode2 = 0 ;
5726 PyObject * obj0 = 0 ;
5727 PyObject * obj1 = 0 ;
5728 char * kwnames[] = {
5729 (char *) "colour",(char *) "style", NULL
5730 };
5731
5732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5733 {
5734 arg1 = &temp1;
5735 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5736 }
5737 if (obj1) {
5738 ecode2 = SWIG_AsVal_int(obj1, &val2);
5739 if (!SWIG_IsOK(ecode2)) {
5740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5741 }
5742 arg2 = static_cast< int >(val2);
5743 }
5744 {
5745 if (!wxPyCheckForApp()) SWIG_fail;
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5752 return resultobj;
5753fail:
5754 return NULL;
5755}
5756
5757
5758SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5759 PyObject *resultobj = 0;
5760 wxBitmap *arg1 = 0 ;
5761 wxBrush *result = 0 ;
5762 void *argp1 = 0 ;
5763 int res1 = 0 ;
5764 PyObject * obj0 = 0 ;
5765 char * kwnames[] = {
5766 (char *) "stippleBitmap", NULL
5767 };
5768
5769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5770 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5771 if (!SWIG_IsOK(res1)) {
5772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5773 }
5774 if (!argp1) {
5775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5776 }
5777 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5778 {
5779 if (!wxPyCheckForApp()) SWIG_fail;
5780 PyThreadState* __tstate = wxPyBeginAllowThreads();
5781 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5782 wxPyEndAllowThreads(__tstate);
5783 if (PyErr_Occurred()) SWIG_fail;
5784 }
5785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5786 return resultobj;
5787fail:
5788 return NULL;
d14a1e28
RD
5789}
5790
5791
0085ce49
RD
5792SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5793 PyObject *resultobj = 0;
5794 wxBrush *arg1 = (wxBrush *) 0 ;
5795 void *argp1 = 0 ;
5796 int res1 = 0 ;
5797 PyObject *swig_obj[1] ;
5798
5799 if (!args) SWIG_fail;
5800 swig_obj[0] = args;
5801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5802 if (!SWIG_IsOK(res1)) {
5803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5804 }
5805 arg1 = reinterpret_cast< wxBrush * >(argp1);
5806 {
5807 PyThreadState* __tstate = wxPyBeginAllowThreads();
5808 delete arg1;
d14a1e28 5809
0085ce49
RD
5810 wxPyEndAllowThreads(__tstate);
5811 if (PyErr_Occurred()) SWIG_fail;
5812 }
5813 resultobj = SWIG_Py_Void();
5814 return resultobj;
5815fail:
5816 return NULL;
5817}
5818
5819
5820SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5821 PyObject *resultobj = 0;
5822 wxBrush *arg1 = (wxBrush *) 0 ;
5823 wxColour *arg2 = 0 ;
5824 void *argp1 = 0 ;
5825 int res1 = 0 ;
5826 wxColour temp2 ;
5827 PyObject * obj0 = 0 ;
5828 PyObject * obj1 = 0 ;
5829 char * kwnames[] = {
5830 (char *) "self",(char *) "col", NULL
5831 };
5832
5833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",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_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5837 }
5838 arg1 = reinterpret_cast< wxBrush * >(argp1);
5839 {
5840 arg2 = &temp2;
5841 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5842 }
5843 {
5844 PyThreadState* __tstate = wxPyBeginAllowThreads();
5845 (arg1)->SetColour((wxColour const &)*arg2);
5846 wxPyEndAllowThreads(__tstate);
5847 if (PyErr_Occurred()) SWIG_fail;
5848 }
5849 resultobj = SWIG_Py_Void();
5850 return resultobj;
5851fail:
5852 return NULL;
5853}
5854
5855
5856SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5857 PyObject *resultobj = 0;
5858 wxBrush *arg1 = (wxBrush *) 0 ;
5859 int arg2 ;
5860 void *argp1 = 0 ;
5861 int res1 = 0 ;
5862 int val2 ;
5863 int ecode2 = 0 ;
5864 PyObject * obj0 = 0 ;
5865 PyObject * obj1 = 0 ;
5866 char * kwnames[] = {
5867 (char *) "self",(char *) "style", NULL
5868 };
5869
5870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5872 if (!SWIG_IsOK(res1)) {
5873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5874 }
5875 arg1 = reinterpret_cast< wxBrush * >(argp1);
5876 ecode2 = SWIG_AsVal_int(obj1, &val2);
5877 if (!SWIG_IsOK(ecode2)) {
5878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5879 }
5880 arg2 = static_cast< int >(val2);
5881 {
5882 PyThreadState* __tstate = wxPyBeginAllowThreads();
5883 (arg1)->SetStyle(arg2);
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 resultobj = SWIG_Py_Void();
5888 return resultobj;
5889fail:
5890 return NULL;
5891}
5892
5893
5894SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj = 0;
5896 wxBrush *arg1 = (wxBrush *) 0 ;
5897 wxBitmap *arg2 = 0 ;
5898 void *argp1 = 0 ;
5899 int res1 = 0 ;
5900 void *argp2 = 0 ;
5901 int res2 = 0 ;
5902 PyObject * obj0 = 0 ;
5903 PyObject * obj1 = 0 ;
5904 char * kwnames[] = {
5905 (char *) "self",(char *) "stipple", NULL
5906 };
5907
5908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5912 }
5913 arg1 = reinterpret_cast< wxBrush * >(argp1);
5914 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5915 if (!SWIG_IsOK(res2)) {
5916 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5917 }
5918 if (!argp2) {
5919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5920 }
5921 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5922 {
5923 PyThreadState* __tstate = wxPyBeginAllowThreads();
5924 (arg1)->SetStipple((wxBitmap const &)*arg2);
5925 wxPyEndAllowThreads(__tstate);
5926 if (PyErr_Occurred()) SWIG_fail;
5927 }
5928 resultobj = SWIG_Py_Void();
5929 return resultobj;
5930fail:
5931 return NULL;
d14a1e28
RD
5932}
5933
5934
0085ce49
RD
5935SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5936 PyObject *resultobj = 0;
5937 wxBrush *arg1 = (wxBrush *) 0 ;
5938 wxColour result;
5939 void *argp1 = 0 ;
5940 int res1 = 0 ;
5941 PyObject *swig_obj[1] ;
5942
5943 if (!args) SWIG_fail;
5944 swig_obj[0] = args;
5945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5946 if (!SWIG_IsOK(res1)) {
5947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5948 }
5949 arg1 = reinterpret_cast< wxBrush * >(argp1);
5950 {
5951 PyThreadState* __tstate = wxPyBeginAllowThreads();
5952 result = ((wxBrush const *)arg1)->GetColour();
5953 wxPyEndAllowThreads(__tstate);
5954 if (PyErr_Occurred()) SWIG_fail;
5955 }
5956 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5957 return resultobj;
5958fail:
5959 return NULL;
d14a1e28
RD
5960}
5961
5962
0085ce49
RD
5963SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5964 PyObject *resultobj = 0;
5965 wxBrush *arg1 = (wxBrush *) 0 ;
5966 int result;
5967 void *argp1 = 0 ;
5968 int res1 = 0 ;
5969 PyObject *swig_obj[1] ;
5970
5971 if (!args) SWIG_fail;
5972 swig_obj[0] = args;
5973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5974 if (!SWIG_IsOK(res1)) {
5975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5976 }
5977 arg1 = reinterpret_cast< wxBrush * >(argp1);
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 result = (int)((wxBrush const *)arg1)->GetStyle();
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 resultobj = SWIG_From_int(static_cast< int >(result));
5985 return resultobj;
5986fail:
5987 return NULL;
d14a1e28
RD
5988}
5989
5990
0085ce49
RD
5991SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5992 PyObject *resultobj = 0;
5993 wxBrush *arg1 = (wxBrush *) 0 ;
5994 wxBitmap *result = 0 ;
5995 void *argp1 = 0 ;
5996 int res1 = 0 ;
5997 PyObject *swig_obj[1] ;
5998
5999 if (!args) SWIG_fail;
6000 swig_obj[0] = args;
6001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6002 if (!SWIG_IsOK(res1)) {
6003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6004 }
6005 arg1 = reinterpret_cast< wxBrush * >(argp1);
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) SWIG_fail;
6011 }
6012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6013 return resultobj;
6014fail:
6015 return NULL;
d14a1e28
RD
6016}
6017
6018
0085ce49
RD
6019SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6020 PyObject *resultobj = 0;
6021 wxBrush *arg1 = (wxBrush *) 0 ;
6022 bool result;
6023 void *argp1 = 0 ;
6024 int res1 = 0 ;
6025 PyObject *swig_obj[1] ;
6026
6027 if (!args) SWIG_fail;
6028 swig_obj[0] = args;
6029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6030 if (!SWIG_IsOK(res1)) {
6031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6032 }
6033 arg1 = reinterpret_cast< wxBrush * >(argp1);
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (bool)((wxBrush const *)arg1)->IsHatch();
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 {
6041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6042 }
6043 return resultobj;
6044fail:
6045 return NULL;
f78cc896
RD
6046}
6047
6048
b39fe951 6049SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6050 PyObject *resultobj = 0;
6051 wxBrush *arg1 = (wxBrush *) 0 ;
6052 bool result;
6053 void *argp1 = 0 ;
6054 int res1 = 0 ;
6055 PyObject *swig_obj[1] ;
6056
6057 if (!args) SWIG_fail;
6058 swig_obj[0] = args;
6059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6060 if (!SWIG_IsOK(res1)) {
b39fe951 6061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
0085ce49
RD
6062 }
6063 arg1 = reinterpret_cast< wxBrush * >(argp1);
6064 {
6065 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6066 result = (bool)(arg1)->IsOk();
0085ce49
RD
6067 wxPyEndAllowThreads(__tstate);
6068 if (PyErr_Occurred()) SWIG_fail;
6069 }
6070 {
6071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6072 }
6073 return resultobj;
6074fail:
6075 return NULL;
d14a1e28
RD
6076}
6077
6078
0085ce49
RD
6079SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6080 PyObject *obj;
6081 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6082 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6083 return SWIG_Py_Void();
d14a1e28
RD
6084}
6085
0085ce49
RD
6086SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6087 return SWIG_Python_InitShadowInstance(args);
6088}
d14a1e28 6089
0085ce49
RD
6090SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6091 PyObject *resultobj = 0;
6092 wxString *arg1 = 0 ;
6093 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6094 wxBitmap *result = 0 ;
6095 bool temp1 = false ;
6096 int val2 ;
6097 int ecode2 = 0 ;
6098 PyObject * obj0 = 0 ;
6099 PyObject * obj1 = 0 ;
6100 char * kwnames[] = {
6101 (char *) "name",(char *) "type", NULL
6102 };
6103
6104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6105 {
6106 arg1 = wxString_in_helper(obj0);
6107 if (arg1 == NULL) SWIG_fail;
6108 temp1 = true;
6109 }
6110 if (obj1) {
6111 ecode2 = SWIG_AsVal_int(obj1, &val2);
6112 if (!SWIG_IsOK(ecode2)) {
6113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6114 }
6115 arg2 = static_cast< wxBitmapType >(val2);
6116 }
6117 {
6118 if (!wxPyCheckForApp()) SWIG_fail;
6119 PyThreadState* __tstate = wxPyBeginAllowThreads();
6120 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6121 wxPyEndAllowThreads(__tstate);
6122 if (PyErr_Occurred()) SWIG_fail;
6123 }
6124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6125 {
6126 if (temp1)
6127 delete arg1;
6128 }
6129 return resultobj;
6130fail:
6131 {
6132 if (temp1)
6133 delete arg1;
6134 }
6135 return NULL;
d14a1e28
RD
6136}
6137
6138
0085ce49
RD
6139SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6140 PyObject *resultobj = 0;
6141 wxBitmap *arg1 = (wxBitmap *) 0 ;
6142 void *argp1 = 0 ;
6143 int res1 = 0 ;
6144 PyObject *swig_obj[1] ;
6145
6146 if (!args) SWIG_fail;
6147 swig_obj[0] = args;
6148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6149 if (!SWIG_IsOK(res1)) {
6150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6151 }
6152 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6153 {
0085ce49 6154 delete arg1;
66c033b4 6155
0085ce49
RD
6156 if (PyErr_Occurred()) SWIG_fail;
6157 }
6158 resultobj = SWIG_Py_Void();
6159 return resultobj;
6160fail:
6161 return NULL;
6162}
6163
6164
6165SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6166 PyObject *resultobj = 0;
6167 int arg1 ;
6168 int arg2 ;
6169 int arg3 = (int) -1 ;
6170 wxBitmap *result = 0 ;
6171 int val1 ;
6172 int ecode1 = 0 ;
6173 int val2 ;
6174 int ecode2 = 0 ;
6175 int val3 ;
6176 int ecode3 = 0 ;
6177 PyObject * obj0 = 0 ;
6178 PyObject * obj1 = 0 ;
6179 PyObject * obj2 = 0 ;
6180 char * kwnames[] = {
6181 (char *) "width",(char *) "height",(char *) "depth", NULL
6182 };
6183
6184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6185 ecode1 = SWIG_AsVal_int(obj0, &val1);
6186 if (!SWIG_IsOK(ecode1)) {
6187 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6188 }
6189 arg1 = static_cast< int >(val1);
6190 ecode2 = SWIG_AsVal_int(obj1, &val2);
6191 if (!SWIG_IsOK(ecode2)) {
6192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6193 }
6194 arg2 = static_cast< int >(val2);
6195 if (obj2) {
6196 ecode3 = SWIG_AsVal_int(obj2, &val3);
6197 if (!SWIG_IsOK(ecode3)) {
6198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6199 }
6200 arg3 = static_cast< int >(val3);
6201 }
6202 {
6203 if (!wxPyCheckForApp()) SWIG_fail;
6204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6205 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6206 wxPyEndAllowThreads(__tstate);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6210 return resultobj;
6211fail:
6212 return NULL;
6213}
6214
6215
6216SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj = 0;
6218 wxIcon *arg1 = 0 ;
6219 wxBitmap *result = 0 ;
6220 void *argp1 = 0 ;
6221 int res1 = 0 ;
6222 PyObject * obj0 = 0 ;
6223 char * kwnames[] = {
6224 (char *) "icon", NULL
6225 };
6226
6227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6228 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6229 if (!SWIG_IsOK(res1)) {
6230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6231 }
6232 if (!argp1) {
6233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6234 }
6235 arg1 = reinterpret_cast< wxIcon * >(argp1);
6236 {
6237 if (!wxPyCheckForApp()) SWIG_fail;
6238 PyThreadState* __tstate = wxPyBeginAllowThreads();
6239 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6240 wxPyEndAllowThreads(__tstate);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6244 return resultobj;
6245fail:
6246 return NULL;
6247}
6248
6249
6250SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6251 PyObject *resultobj = 0;
6252 wxImage *arg1 = 0 ;
6253 int arg2 = (int) -1 ;
6254 wxBitmap *result = 0 ;
6255 void *argp1 = 0 ;
6256 int res1 = 0 ;
6257 int val2 ;
6258 int ecode2 = 0 ;
6259 PyObject * obj0 = 0 ;
6260 PyObject * obj1 = 0 ;
6261 char * kwnames[] = {
6262 (char *) "image",(char *) "depth", NULL
6263 };
6264
6265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6266 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6267 if (!SWIG_IsOK(res1)) {
6268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6269 }
6270 if (!argp1) {
6271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6272 }
6273 arg1 = reinterpret_cast< wxImage * >(argp1);
6274 if (obj1) {
6275 ecode2 = SWIG_AsVal_int(obj1, &val2);
6276 if (!SWIG_IsOK(ecode2)) {
6277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6278 }
6279 arg2 = static_cast< int >(val2);
6280 }
6281 {
6282 if (!wxPyCheckForApp()) SWIG_fail;
6283 PyThreadState* __tstate = wxPyBeginAllowThreads();
6284 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6285 wxPyEndAllowThreads(__tstate);
6286 if (PyErr_Occurred()) SWIG_fail;
6287 }
6288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6289 return resultobj;
6290fail:
6291 return NULL;
66c033b4
RD
6292}
6293
6294
0085ce49
RD
6295SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6296 PyObject *resultobj = 0;
6297 PyObject *arg1 = (PyObject *) 0 ;
6298 wxBitmap *result = 0 ;
6299 PyObject * obj0 = 0 ;
6300 char * kwnames[] = {
6301 (char *) "listOfStrings", NULL
6302 };
6303
6304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6305 arg1 = obj0;
6306 {
6307 if (!wxPyCheckForApp()) SWIG_fail;
6308 PyThreadState* __tstate = wxPyBeginAllowThreads();
6309 result = (wxBitmap *)new_wxBitmap(arg1);
6310 wxPyEndAllowThreads(__tstate);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 }
6313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6314 return resultobj;
6315fail:
6316 return NULL;
6317}
6318
6319
6320SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6321 PyObject *resultobj = 0;
6322 PyObject *arg1 = (PyObject *) 0 ;
6323 int arg2 ;
6324 int arg3 ;
6325 int arg4 = (int) 1 ;
6326 wxBitmap *result = 0 ;
6327 int val2 ;
6328 int ecode2 = 0 ;
6329 int val3 ;
6330 int ecode3 = 0 ;
6331 int val4 ;
6332 int ecode4 = 0 ;
6333 PyObject * obj0 = 0 ;
6334 PyObject * obj1 = 0 ;
6335 PyObject * obj2 = 0 ;
6336 PyObject * obj3 = 0 ;
6337 char * kwnames[] = {
6338 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6339 };
6340
6341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6342 arg1 = obj0;
6343 ecode2 = SWIG_AsVal_int(obj1, &val2);
6344 if (!SWIG_IsOK(ecode2)) {
6345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6346 }
6347 arg2 = static_cast< int >(val2);
6348 ecode3 = SWIG_AsVal_int(obj2, &val3);
6349 if (!SWIG_IsOK(ecode3)) {
6350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6351 }
6352 arg3 = static_cast< int >(val3);
6353 if (obj3) {
6354 ecode4 = SWIG_AsVal_int(obj3, &val4);
6355 if (!SWIG_IsOK(ecode4)) {
6356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6357 }
6358 arg4 = static_cast< int >(val4);
6359 }
6360 {
6361 if (!wxPyCheckForApp()) SWIG_fail;
6362 PyThreadState* __tstate = wxPyBeginAllowThreads();
6363 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6364 wxPyEndAllowThreads(__tstate);
6365 if (PyErr_Occurred()) SWIG_fail;
6366 }
6367 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6368 return resultobj;
6369fail:
6370 return NULL;
d14a1e28
RD
6371}
6372
6373
b39fe951 6374SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6375 PyObject *resultobj = 0;
6376 wxBitmap *arg1 = (wxBitmap *) 0 ;
6377 bool result;
6378 void *argp1 = 0 ;
6379 int res1 = 0 ;
6380 PyObject *swig_obj[1] ;
6381
6382 if (!args) SWIG_fail;
6383 swig_obj[0] = args;
6384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6385 if (!SWIG_IsOK(res1)) {
b39fe951 6386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
0085ce49
RD
6387 }
6388 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6389 {
b39fe951 6390 result = (bool)(arg1)->IsOk();
0085ce49
RD
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 {
6394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6395 }
6396 return resultobj;
6397fail:
6398 return NULL;
d14a1e28
RD
6399}
6400
6401
0085ce49
RD
6402SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6403 PyObject *resultobj = 0;
6404 wxBitmap *arg1 = (wxBitmap *) 0 ;
6405 int result;
6406 void *argp1 = 0 ;
6407 int res1 = 0 ;
6408 PyObject *swig_obj[1] ;
6409
6410 if (!args) SWIG_fail;
6411 swig_obj[0] = args;
6412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6413 if (!SWIG_IsOK(res1)) {
6414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6415 }
6416 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6417 {
0085ce49 6418 result = (int)(arg1)->GetWidth();
0085ce49
RD
6419 if (PyErr_Occurred()) SWIG_fail;
6420 }
6421 resultobj = SWIG_From_int(static_cast< int >(result));
6422 return resultobj;
6423fail:
6424 return NULL;
d14a1e28
RD
6425}
6426
6427
0085ce49
RD
6428SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6429 PyObject *resultobj = 0;
6430 wxBitmap *arg1 = (wxBitmap *) 0 ;
6431 int result;
6432 void *argp1 = 0 ;
6433 int res1 = 0 ;
6434 PyObject *swig_obj[1] ;
6435
6436 if (!args) SWIG_fail;
6437 swig_obj[0] = args;
6438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6439 if (!SWIG_IsOK(res1)) {
6440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6441 }
6442 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6443 {
0085ce49 6444 result = (int)(arg1)->GetHeight();
0085ce49
RD
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 resultobj = SWIG_From_int(static_cast< int >(result));
6448 return resultobj;
6449fail:
6450 return NULL;
d14a1e28
RD
6451}
6452
6453
0085ce49
RD
6454SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6455 PyObject *resultobj = 0;
6456 wxBitmap *arg1 = (wxBitmap *) 0 ;
6457 int result;
6458 void *argp1 = 0 ;
6459 int res1 = 0 ;
6460 PyObject *swig_obj[1] ;
6461
6462 if (!args) SWIG_fail;
6463 swig_obj[0] = args;
6464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6465 if (!SWIG_IsOK(res1)) {
6466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6467 }
6468 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6469 {
0085ce49 6470 result = (int)(arg1)->GetDepth();
0085ce49
RD
6471 if (PyErr_Occurred()) SWIG_fail;
6472 }
6473 resultobj = SWIG_From_int(static_cast< int >(result));
6474 return resultobj;
6475fail:
6476 return NULL;
d14a1e28
RD
6477}
6478
6479
0085ce49
RD
6480SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6481 PyObject *resultobj = 0;
6482 wxBitmap *arg1 = (wxBitmap *) 0 ;
6483 wxSize result;
6484 void *argp1 = 0 ;
6485 int res1 = 0 ;
6486 PyObject *swig_obj[1] ;
6487
6488 if (!args) SWIG_fail;
6489 swig_obj[0] = args;
6490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6491 if (!SWIG_IsOK(res1)) {
6492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6493 }
6494 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6495 {
0085ce49 6496 result = wxBitmap_GetSize(arg1);
0085ce49
RD
6497 if (PyErr_Occurred()) SWIG_fail;
6498 }
6499 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6500 return resultobj;
6501fail:
6502 return NULL;
d14a1e28
RD
6503}
6504
6505
0085ce49
RD
6506SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6507 PyObject *resultobj = 0;
6508 wxBitmap *arg1 = (wxBitmap *) 0 ;
6509 SwigValueWrapper<wxImage > result;
6510 void *argp1 = 0 ;
6511 int res1 = 0 ;
6512 PyObject *swig_obj[1] ;
6513
6514 if (!args) SWIG_fail;
6515 swig_obj[0] = args;
6516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6517 if (!SWIG_IsOK(res1)) {
6518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6519 }
6520 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6521 {
0085ce49 6522 result = ((wxBitmap const *)arg1)->ConvertToImage();
0085ce49
RD
6523 if (PyErr_Occurred()) SWIG_fail;
6524 }
6525 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6526 return resultobj;
6527fail:
6528 return NULL;
d14a1e28
RD
6529}
6530
6531
0085ce49
RD
6532SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6533 PyObject *resultobj = 0;
6534 wxBitmap *arg1 = (wxBitmap *) 0 ;
6535 wxMask *result = 0 ;
6536 void *argp1 = 0 ;
6537 int res1 = 0 ;
6538 PyObject *swig_obj[1] ;
6539
6540 if (!args) SWIG_fail;
6541 swig_obj[0] = args;
6542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6543 if (!SWIG_IsOK(res1)) {
6544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6545 }
6546 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6547 {
0085ce49 6548 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
0085ce49
RD
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6552 return resultobj;
6553fail:
6554 return NULL;
6555}
6556
6557
6558SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6559 PyObject *resultobj = 0;
6560 wxBitmap *arg1 = (wxBitmap *) 0 ;
6561 wxMask *arg2 = (wxMask *) 0 ;
6562 void *argp1 = 0 ;
6563 int res1 = 0 ;
6564 int res2 = 0 ;
6565 PyObject * obj0 = 0 ;
6566 PyObject * obj1 = 0 ;
6567 char * kwnames[] = {
6568 (char *) "self",(char *) "mask", NULL
6569 };
6570
6571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6573 if (!SWIG_IsOK(res1)) {
6574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6575 }
6576 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6577 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6578 if (!SWIG_IsOK(res2)) {
6579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6580 }
6581 {
0085ce49 6582 (arg1)->SetMask(arg2);
0085ce49
RD
6583 if (PyErr_Occurred()) SWIG_fail;
6584 }
6585 resultobj = SWIG_Py_Void();
6586 return resultobj;
6587fail:
6588 return NULL;
6589}
6590
6591
6592SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6593 PyObject *resultobj = 0;
6594 wxBitmap *arg1 = (wxBitmap *) 0 ;
6595 wxColour *arg2 = 0 ;
6596 void *argp1 = 0 ;
6597 int res1 = 0 ;
6598 wxColour temp2 ;
6599 PyObject * obj0 = 0 ;
6600 PyObject * obj1 = 0 ;
6601 char * kwnames[] = {
6602 (char *) "self",(char *) "colour", NULL
6603 };
6604
6605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6607 if (!SWIG_IsOK(res1)) {
6608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6609 }
6610 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6611 {
6612 arg2 = &temp2;
6613 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6614 }
6615 {
0085ce49 6616 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
0085ce49
RD
6617 if (PyErr_Occurred()) SWIG_fail;
6618 }
6619 resultobj = SWIG_Py_Void();
6620 return resultobj;
6621fail:
6622 return NULL;
6623}
6624
6625
6626SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6627 PyObject *resultobj = 0;
6628 wxBitmap *arg1 = (wxBitmap *) 0 ;
6629 wxRect *arg2 = 0 ;
6630 SwigValueWrapper<wxBitmap > result;
6631 void *argp1 = 0 ;
6632 int res1 = 0 ;
6633 wxRect temp2 ;
6634 PyObject * obj0 = 0 ;
6635 PyObject * obj1 = 0 ;
6636 char * kwnames[] = {
6637 (char *) "self",(char *) "rect", NULL
6638 };
6639
6640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6642 if (!SWIG_IsOK(res1)) {
6643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6644 }
6645 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6646 {
6647 arg2 = &temp2;
6648 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6649 }
6650 {
0085ce49 6651 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
0085ce49
RD
6652 if (PyErr_Occurred()) SWIG_fail;
6653 }
6654 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6655 return resultobj;
6656fail:
6657 return NULL;
6658}
6659
6660
6661SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6662 PyObject *resultobj = 0;
6663 wxBitmap *arg1 = (wxBitmap *) 0 ;
6664 wxString *arg2 = 0 ;
6665 wxBitmapType arg3 ;
6666 wxPalette *arg4 = (wxPalette *) NULL ;
6667 bool result;
6668 void *argp1 = 0 ;
6669 int res1 = 0 ;
6670 bool temp2 = false ;
6671 int val3 ;
6672 int ecode3 = 0 ;
6673 void *argp4 = 0 ;
6674 int res4 = 0 ;
6675 PyObject * obj0 = 0 ;
6676 PyObject * obj1 = 0 ;
6677 PyObject * obj2 = 0 ;
6678 PyObject * obj3 = 0 ;
6679 char * kwnames[] = {
6680 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6681 };
6682
6683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6685 if (!SWIG_IsOK(res1)) {
6686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6687 }
6688 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6689 {
6690 arg2 = wxString_in_helper(obj1);
6691 if (arg2 == NULL) SWIG_fail;
6692 temp2 = true;
6693 }
6694 ecode3 = SWIG_AsVal_int(obj2, &val3);
6695 if (!SWIG_IsOK(ecode3)) {
6696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6697 }
6698 arg3 = static_cast< wxBitmapType >(val3);
6699 if (obj3) {
6700 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6701 if (!SWIG_IsOK(res4)) {
6702 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6703 }
0085ce49
RD
6704 arg4 = reinterpret_cast< wxPalette * >(argp4);
6705 }
6706 {
0085ce49 6707 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
0085ce49
RD
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 {
6711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6712 }
6713 {
6714 if (temp2)
6715 delete arg2;
6716 }
6717 return resultobj;
6718fail:
6719 {
6720 if (temp2)
6721 delete arg2;
6722 }
6723 return NULL;
6724}
6725
6726
6727SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj = 0;
6729 wxBitmap *arg1 = (wxBitmap *) 0 ;
6730 wxString *arg2 = 0 ;
6731 wxBitmapType arg3 ;
6732 bool result;
6733 void *argp1 = 0 ;
6734 int res1 = 0 ;
6735 bool temp2 = false ;
6736 int val3 ;
6737 int ecode3 = 0 ;
6738 PyObject * obj0 = 0 ;
6739 PyObject * obj1 = 0 ;
6740 PyObject * obj2 = 0 ;
6741 char * kwnames[] = {
6742 (char *) "self",(char *) "name",(char *) "type", NULL
6743 };
6744
6745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6747 if (!SWIG_IsOK(res1)) {
6748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6749 }
6750 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6751 {
6752 arg2 = wxString_in_helper(obj1);
6753 if (arg2 == NULL) SWIG_fail;
6754 temp2 = true;
6755 }
6756 ecode3 = SWIG_AsVal_int(obj2, &val3);
6757 if (!SWIG_IsOK(ecode3)) {
6758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6759 }
6760 arg3 = static_cast< wxBitmapType >(val3);
6761 {
0085ce49 6762 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
6763 if (PyErr_Occurred()) SWIG_fail;
6764 }
6765 {
6766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6767 }
6768 {
6769 if (temp2)
6770 delete arg2;
6771 }
6772 return resultobj;
6773fail:
6774 {
6775 if (temp2)
6776 delete arg2;
6777 }
6778 return NULL;
d04418a7
RD
6779}
6780
6781
0085ce49
RD
6782SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6783 PyObject *resultobj = 0;
6784 wxBitmap *arg1 = (wxBitmap *) 0 ;
6785 wxPalette *result = 0 ;
6786 void *argp1 = 0 ;
6787 int res1 = 0 ;
6788 PyObject *swig_obj[1] ;
6789
6790 if (!args) SWIG_fail;
6791 swig_obj[0] = args;
6792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6793 if (!SWIG_IsOK(res1)) {
6794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6795 }
6796 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6797 {
0085ce49 6798 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
0085ce49
RD
6799 if (PyErr_Occurred()) SWIG_fail;
6800 }
6801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6802 return resultobj;
6803fail:
6804 return NULL;
6805}
6806
6807
6808SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6809 PyObject *resultobj = 0;
6810 wxBitmap *arg1 = (wxBitmap *) 0 ;
6811 wxIcon *arg2 = 0 ;
6812 bool result;
6813 void *argp1 = 0 ;
6814 int res1 = 0 ;
6815 void *argp2 = 0 ;
6816 int res2 = 0 ;
6817 PyObject * obj0 = 0 ;
6818 PyObject * obj1 = 0 ;
6819 char * kwnames[] = {
6820 (char *) "self",(char *) "icon", NULL
6821 };
6822
6823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6825 if (!SWIG_IsOK(res1)) {
6826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6827 }
6828 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6830 if (!SWIG_IsOK(res2)) {
6831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6832 }
6833 if (!argp2) {
6834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6835 }
6836 arg2 = reinterpret_cast< wxIcon * >(argp2);
6837 {
0085ce49 6838 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
0085ce49
RD
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 {
6842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6843 }
6844 return resultobj;
6845fail:
6846 return NULL;
6847}
6848
6849
6850SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6851 PyObject *resultobj = 0;
6852 wxBitmap *arg1 = (wxBitmap *) 0 ;
6853 int arg2 ;
6854 void *argp1 = 0 ;
6855 int res1 = 0 ;
6856 int val2 ;
6857 int ecode2 = 0 ;
6858 PyObject * obj0 = 0 ;
6859 PyObject * obj1 = 0 ;
6860 char * kwnames[] = {
6861 (char *) "self",(char *) "height", NULL
6862 };
6863
6864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6866 if (!SWIG_IsOK(res1)) {
6867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6868 }
6869 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6870 ecode2 = SWIG_AsVal_int(obj1, &val2);
6871 if (!SWIG_IsOK(ecode2)) {
6872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6873 }
6874 arg2 = static_cast< int >(val2);
6875 {
0085ce49 6876 (arg1)->SetHeight(arg2);
0085ce49
RD
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 resultobj = SWIG_Py_Void();
6880 return resultobj;
6881fail:
6882 return NULL;
6883}
6884
6885
6886SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6887 PyObject *resultobj = 0;
6888 wxBitmap *arg1 = (wxBitmap *) 0 ;
6889 int arg2 ;
6890 void *argp1 = 0 ;
6891 int res1 = 0 ;
6892 int val2 ;
6893 int ecode2 = 0 ;
6894 PyObject * obj0 = 0 ;
6895 PyObject * obj1 = 0 ;
6896 char * kwnames[] = {
6897 (char *) "self",(char *) "width", NULL
6898 };
6899
6900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6902 if (!SWIG_IsOK(res1)) {
6903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6904 }
6905 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6906 ecode2 = SWIG_AsVal_int(obj1, &val2);
6907 if (!SWIG_IsOK(ecode2)) {
6908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6909 }
6910 arg2 = static_cast< int >(val2);
6911 {
0085ce49 6912 (arg1)->SetWidth(arg2);
0085ce49
RD
6913 if (PyErr_Occurred()) SWIG_fail;
6914 }
6915 resultobj = SWIG_Py_Void();
6916 return resultobj;
6917fail:
6918 return NULL;
6919}
6920
6921
6922SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6923 PyObject *resultobj = 0;
6924 wxBitmap *arg1 = (wxBitmap *) 0 ;
6925 int arg2 ;
6926 void *argp1 = 0 ;
6927 int res1 = 0 ;
6928 int val2 ;
6929 int ecode2 = 0 ;
6930 PyObject * obj0 = 0 ;
6931 PyObject * obj1 = 0 ;
6932 char * kwnames[] = {
6933 (char *) "self",(char *) "depth", NULL
6934 };
6935
6936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6938 if (!SWIG_IsOK(res1)) {
6939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6940 }
6941 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6942 ecode2 = SWIG_AsVal_int(obj1, &val2);
6943 if (!SWIG_IsOK(ecode2)) {
6944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6945 }
6946 arg2 = static_cast< int >(val2);
6947 {
0085ce49 6948 (arg1)->SetDepth(arg2);
0085ce49
RD
6949 if (PyErr_Occurred()) SWIG_fail;
6950 }
6951 resultobj = SWIG_Py_Void();
6952 return resultobj;
6953fail:
6954 return NULL;
6955}
6956
6957
6958SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6959 PyObject *resultobj = 0;
6960 wxBitmap *arg1 = (wxBitmap *) 0 ;
6961 wxSize *arg2 = 0 ;
6962 void *argp1 = 0 ;
6963 int res1 = 0 ;
6964 wxSize temp2 ;
6965 PyObject * obj0 = 0 ;
6966 PyObject * obj1 = 0 ;
6967 char * kwnames[] = {
6968 (char *) "self",(char *) "size", NULL
6969 };
6970
6971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6973 if (!SWIG_IsOK(res1)) {
6974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6975 }
6976 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6977 {
6978 arg2 = &temp2;
6979 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6980 }
6981 {
0085ce49 6982 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
0085ce49
RD
6983 if (PyErr_Occurred()) SWIG_fail;
6984 }
6985 resultobj = SWIG_Py_Void();
6986 return resultobj;
6987fail:
6988 return NULL;
6989}
6990
6991
8f514ab4
RD
6992SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6993 PyObject *resultobj = 0;
6994 wxBitmap *arg1 = (wxBitmap *) 0 ;
6995 buffer arg2 ;
6996 int arg3 ;
6997 void *argp1 = 0 ;
6998 int res1 = 0 ;
6999 Py_ssize_t temp2 ;
7000 PyObject * obj0 = 0 ;
7001 PyObject * obj1 = 0 ;
7002 char * kwnames[] = {
7003 (char *) "self",(char *) "data", NULL
7004 };
7005
7006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7008 if (!SWIG_IsOK(res1)) {
7009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7010 }
7011 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7012 {
7013 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7014 arg3 = (int)temp2;
7015 }
7016 {
7017 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 resultobj = SWIG_Py_Void();
7021 return resultobj;
7022fail:
7023 return NULL;
7024}
7025
7026
7027SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7028 PyObject *resultobj = 0;
7029 wxBitmap *arg1 = (wxBitmap *) 0 ;
7030 buffer arg2 ;
7031 int arg3 ;
7032 void *argp1 = 0 ;
7033 int res1 = 0 ;
7034 Py_ssize_t temp2 ;
7035 PyObject * obj0 = 0 ;
7036 PyObject * obj1 = 0 ;
7037 char * kwnames[] = {
7038 (char *) "self",(char *) "data", NULL
7039 };
7040
7041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7043 if (!SWIG_IsOK(res1)) {
7044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7045 }
7046 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7047 {
7048 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7049 arg3 = (int)temp2;
7050 }
7051 {
7052 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7053 if (PyErr_Occurred()) SWIG_fail;
7054 }
7055 resultobj = SWIG_Py_Void();
7056 return resultobj;
7057fail:
7058 return NULL;
7059}
7060
7061
0085ce49
RD
7062SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7063 PyObject *resultobj = 0;
7064 wxBitmap *arg1 = (wxBitmap *) 0 ;
7065 wxBitmap *arg2 = (wxBitmap *) 0 ;
7066 bool result;
7067 void *argp1 = 0 ;
7068 int res1 = 0 ;
7069 void *argp2 = 0 ;
7070 int res2 = 0 ;
7071 PyObject * obj0 = 0 ;
7072 PyObject * obj1 = 0 ;
7073 char * kwnames[] = {
7074 (char *) "self",(char *) "other", NULL
7075 };
7076
7077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7079 if (!SWIG_IsOK(res1)) {
7080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7081 }
7082 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7083 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7084 if (!SWIG_IsOK(res2)) {
7085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7086 }
7087 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7088 {
0085ce49 7089 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
0085ce49
RD
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 {
fc46b7f3
RD
7093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7094 }
7095 return resultobj;
7096fail:
7097 return NULL;
7098}
7099
7100
7101SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7102 PyObject *resultobj = 0;
7103 wxBitmap *arg1 = (wxBitmap *) 0 ;
7104 wxBitmap *arg2 = (wxBitmap *) 0 ;
7105 bool result;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 void *argp2 = 0 ;
7109 int res2 = 0 ;
7110 PyObject * obj0 = 0 ;
7111 PyObject * obj1 = 0 ;
7112 char * kwnames[] = {
7113 (char *) "self",(char *) "other", NULL
7114 };
7115
7116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7118 if (!SWIG_IsOK(res1)) {
7119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7120 }
7121 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7122 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7123 if (!SWIG_IsOK(res2)) {
7124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7125 }
7126 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7127 {
7128 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7129 if (PyErr_Occurred()) SWIG_fail;
7130 }
7131 {
7132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7133 }
7134 return resultobj;
7135fail:
7136 return NULL;
7137}
7138
7139
7140SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7141 PyObject *obj;
7142 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7143 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7144 return SWIG_Py_Void();
7145}
7146
7147SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7148 return SWIG_Python_InitShadowInstance(args);
7149}
7150
7151SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7152 PyObject *resultobj = 0;
7153 int arg1 ;
7154 int arg2 ;
7155 buffer arg3 ;
7156 int arg4 ;
7157 buffer arg5 ;
7158 int arg6 ;
7159 wxBitmap *result = 0 ;
7160 int val1 ;
7161 int ecode1 = 0 ;
7162 int val2 ;
7163 int ecode2 = 0 ;
c79fdf86
RD
7164 Py_ssize_t temp3 ;
7165 Py_ssize_t temp5 ;
fc46b7f3
RD
7166 PyObject * obj0 = 0 ;
7167 PyObject * obj1 = 0 ;
7168 PyObject * obj2 = 0 ;
7169 PyObject * obj3 = 0 ;
7170 char * kwnames[] = {
7171 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7172 };
7173
7174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7175 ecode1 = SWIG_AsVal_int(obj0, &val1);
7176 if (!SWIG_IsOK(ecode1)) {
7177 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7178 }
7179 arg1 = static_cast< int >(val1);
7180 ecode2 = SWIG_AsVal_int(obj1, &val2);
7181 if (!SWIG_IsOK(ecode2)) {
7182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7183 }
7184 arg2 = static_cast< int >(val2);
7185 {
c79fdf86
RD
7186 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7187 arg4 = (int)temp3;
fc46b7f3
RD
7188 }
7189 {
7190 if (obj3 != Py_None) {
c79fdf86
RD
7191 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7192 arg6 = (int)temp5;
fc46b7f3
RD
7193 }
7194 }
7195 {
7196 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7197 if (PyErr_Occurred()) SWIG_fail;
7198 }
7199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7200 return resultobj;
7201fail:
7202 return NULL;
7203}
7204
7205
7206SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7207 PyObject *resultobj = 0;
7208 int arg1 ;
7209 int arg2 ;
7210 buffer arg3 ;
7211 int arg4 ;
7212 wxBitmap *result = 0 ;
7213 int val1 ;
7214 int ecode1 = 0 ;
7215 int val2 ;
7216 int ecode2 = 0 ;
c79fdf86 7217 Py_ssize_t temp3 ;
fc46b7f3
RD
7218 PyObject * obj0 = 0 ;
7219 PyObject * obj1 = 0 ;
7220 PyObject * obj2 = 0 ;
7221 char * kwnames[] = {
7222 (char *) "width",(char *) "height",(char *) "data", NULL
7223 };
7224
7225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7226 ecode1 = SWIG_AsVal_int(obj0, &val1);
7227 if (!SWIG_IsOK(ecode1)) {
7228 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7229 }
7230 arg1 = static_cast< int >(val1);
7231 ecode2 = SWIG_AsVal_int(obj1, &val2);
7232 if (!SWIG_IsOK(ecode2)) {
7233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7234 }
7235 arg2 = static_cast< int >(val2);
7236 {
c79fdf86
RD
7237 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7238 arg4 = (int)temp3;
fc46b7f3
RD
7239 }
7240 {
7241 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7245 return resultobj;
7246fail:
7247 return NULL;
7248}
7249
7250
7251SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7252 PyObject *resultobj = 0;
7253 int arg1 ;
7254 int arg2 ;
7255 buffer arg3 ;
7256 int arg4 ;
7257 wxBitmap *result = 0 ;
7258 int val1 ;
7259 int ecode1 = 0 ;
7260 int val2 ;
7261 int ecode2 = 0 ;
c79fdf86 7262 Py_ssize_t temp3 ;
fc46b7f3
RD
7263 PyObject * obj0 = 0 ;
7264 PyObject * obj1 = 0 ;
7265 PyObject * obj2 = 0 ;
7266 char * kwnames[] = {
7267 (char *) "width",(char *) "height",(char *) "data", NULL
7268 };
7269
7270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7271 ecode1 = SWIG_AsVal_int(obj0, &val1);
7272 if (!SWIG_IsOK(ecode1)) {
7273 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7274 }
7275 arg1 = static_cast< int >(val1);
7276 ecode2 = SWIG_AsVal_int(obj1, &val2);
7277 if (!SWIG_IsOK(ecode2)) {
7278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7279 }
7280 arg2 = static_cast< int >(val2);
7281 {
c79fdf86
RD
7282 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7283 arg4 = (int)temp3;
fc46b7f3
RD
7284 }
7285 {
7286 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7287 if (PyErr_Occurred()) SWIG_fail;
7288 }
7289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7290 return resultobj;
7291fail:
7292 return NULL;
7293}
7294
7295
7296SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7297 PyObject *resultobj = 0;
7298 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7299 wxPoint result;
7300 void *argp1 = 0 ;
7301 int res1 = 0 ;
7302 PyObject *swig_obj[1] ;
7303
7304 if (!args) SWIG_fail;
7305 swig_obj[0] = args;
7306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7307 if (!SWIG_IsOK(res1)) {
7308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7309 }
7310 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7311 {
7312 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7313 if (PyErr_Occurred()) SWIG_fail;
7314 }
7315 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7316 return resultobj;
7317fail:
7318 return NULL;
7319}
7320
7321
7322SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7323 PyObject *resultobj = 0;
7324 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7325 int result;
7326 void *argp1 = 0 ;
7327 int res1 = 0 ;
7328 PyObject *swig_obj[1] ;
7329
7330 if (!args) SWIG_fail;
7331 swig_obj[0] = args;
7332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7333 if (!SWIG_IsOK(res1)) {
7334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7335 }
7336 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7337 {
7338 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7339 if (PyErr_Occurred()) SWIG_fail;
7340 }
7341 resultobj = SWIG_From_int(static_cast< int >(result));
7342 return resultobj;
7343fail:
7344 return NULL;
7345}
7346
7347
7348SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7349 PyObject *resultobj = 0;
7350 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7351 int result;
7352 void *argp1 = 0 ;
7353 int res1 = 0 ;
7354 PyObject *swig_obj[1] ;
7355
7356 if (!args) SWIG_fail;
7357 swig_obj[0] = args;
7358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7359 if (!SWIG_IsOK(res1)) {
7360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7361 }
7362 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7363 {
7364 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7365 if (PyErr_Occurred()) SWIG_fail;
7366 }
7367 resultobj = SWIG_From_int(static_cast< int >(result));
7368 return resultobj;
7369fail:
7370 return NULL;
7371}
7372
7373
7374SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7375 PyObject *resultobj = 0;
7376 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7377 wxSize result;
7378 void *argp1 = 0 ;
7379 int res1 = 0 ;
7380 PyObject *swig_obj[1] ;
7381
7382 if (!args) SWIG_fail;
7383 swig_obj[0] = args;
7384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7385 if (!SWIG_IsOK(res1)) {
7386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7387 }
7388 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7389 {
7390 result = ((wxPixelDataBase const *)arg1)->GetSize();
7391 if (PyErr_Occurred()) SWIG_fail;
7392 }
7393 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7394 return resultobj;
7395fail:
7396 return NULL;
7397}
7398
7399
7400SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7401 PyObject *resultobj = 0;
7402 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7403 int result;
7404 void *argp1 = 0 ;
7405 int res1 = 0 ;
7406 PyObject *swig_obj[1] ;
7407
7408 if (!args) SWIG_fail;
7409 swig_obj[0] = args;
7410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7411 if (!SWIG_IsOK(res1)) {
7412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7413 }
7414 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7415 {
7416 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7417 if (PyErr_Occurred()) SWIG_fail;
7418 }
7419 resultobj = SWIG_From_int(static_cast< int >(result));
7420 return resultobj;
7421fail:
7422 return NULL;
7423}
7424
7425
7426SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7427 PyObject *obj;
7428 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7429 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7430 return SWIG_Py_Void();
7431}
7432
7433SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7434 PyObject *resultobj = 0;
7435 wxBitmap *arg1 = 0 ;
7436 wxNativePixelData *result = 0 ;
7437 void *argp1 = 0 ;
7438 int res1 = 0 ;
7439
7440 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7442 if (!SWIG_IsOK(res1)) {
7443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7444 }
7445 if (!argp1) {
7446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7447 }
7448 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7449 {
7450 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7451 if (PyErr_Occurred()) SWIG_fail;
7452 }
7453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7454 return resultobj;
7455fail:
7456 return NULL;
7457}
7458
7459
7460SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7461 PyObject *resultobj = 0;
7462 wxBitmap *arg1 = 0 ;
7463 wxRect *arg2 = 0 ;
7464 wxNativePixelData *result = 0 ;
7465 void *argp1 = 0 ;
7466 int res1 = 0 ;
7467 wxRect temp2 ;
7468
7469 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7471 if (!SWIG_IsOK(res1)) {
7472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7473 }
7474 if (!argp1) {
7475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7476 }
7477 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7478 {
7479 arg2 = &temp2;
7480 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7481 }
7482 {
7483 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7487 return resultobj;
7488fail:
7489 return NULL;
7490}
7491
7492
7493SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7494 PyObject *resultobj = 0;
7495 wxBitmap *arg1 = 0 ;
7496 wxPoint *arg2 = 0 ;
7497 wxSize *arg3 = 0 ;
7498 wxNativePixelData *result = 0 ;
7499 void *argp1 = 0 ;
7500 int res1 = 0 ;
7501 wxPoint temp2 ;
7502 wxSize temp3 ;
7503
7504 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7506 if (!SWIG_IsOK(res1)) {
7507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7508 }
7509 if (!argp1) {
7510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7511 }
7512 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7513 {
7514 arg2 = &temp2;
7515 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7516 }
7517 {
7518 arg3 = &temp3;
7519 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7520 }
7521 {
7522 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7526 return resultobj;
7527fail:
7528 return NULL;
7529}
7530
7531
7532SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7533 int argc;
7534 PyObject *argv[4];
7535
7536 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7537 --argc;
7538 if (argc == 1) {
7539 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7540 }
7541 if (argc == 2) {
7542 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7543 }
7544 if (argc == 3) {
7545 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7546 }
7547
7548fail:
7549 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7550 return NULL;
7551}
7552
7553
7554SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7555 PyObject *resultobj = 0;
7556 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7557 void *argp1 = 0 ;
7558 int res1 = 0 ;
7559 PyObject *swig_obj[1] ;
7560
7561 if (!args) SWIG_fail;
7562 swig_obj[0] = args;
7563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7564 if (!SWIG_IsOK(res1)) {
7565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7566 }
7567 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7568 {
7569 delete arg1;
7570
7571 if (PyErr_Occurred()) SWIG_fail;
7572 }
7573 resultobj = SWIG_Py_Void();
7574 return resultobj;
7575fail:
7576 return NULL;
7577}
7578
7579
7580SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7581 PyObject *resultobj = 0;
7582 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7583 wxNativePixelData_Accessor result;
7584 void *argp1 = 0 ;
7585 int res1 = 0 ;
7586 PyObject *swig_obj[1] ;
7587
7588 if (!args) SWIG_fail;
7589 swig_obj[0] = args;
7590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7591 if (!SWIG_IsOK(res1)) {
7592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7593 }
7594 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7595 {
7596 result = ((wxNativePixelData const *)arg1)->GetPixels();
7597 if (PyErr_Occurred()) SWIG_fail;
7598 }
7599 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7600 return resultobj;
7601fail:
7602 return NULL;
7603}
7604
7605
7606SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7607 PyObject *resultobj = 0;
7608 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7609 void *argp1 = 0 ;
7610 int res1 = 0 ;
7611 PyObject *swig_obj[1] ;
7612
7613 if (!args) SWIG_fail;
7614 swig_obj[0] = args;
7615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7616 if (!SWIG_IsOK(res1)) {
7617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7618 }
7619 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7620 {
7621 (arg1)->UseAlpha();
7622 if (PyErr_Occurred()) SWIG_fail;
7623 }
7624 resultobj = SWIG_Py_Void();
7625 return resultobj;
7626fail:
7627 return NULL;
7628}
7629
7630
7631SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7632 PyObject *resultobj = 0;
7633 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7634 bool result;
7635 void *argp1 = 0 ;
7636 int res1 = 0 ;
7637 PyObject *swig_obj[1] ;
7638
7639 if (!args) SWIG_fail;
7640 swig_obj[0] = args;
7641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7642 if (!SWIG_IsOK(res1)) {
7643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7644 }
7645 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7646 {
7647 result = (bool)wxNativePixelData___nonzero__(arg1);
7648 if (PyErr_Occurred()) SWIG_fail;
7649 }
7650 {
7651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7652 }
7653 return resultobj;
7654fail:
7655 return NULL;
7656}
7657
7658
7659SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7660 PyObject *obj;
7661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7662 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7663 return SWIG_Py_Void();
7664}
7665
7666SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7667 return SWIG_Python_InitShadowInstance(args);
7668}
7669
7670SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7671 PyObject *resultobj = 0;
7672 wxNativePixelData *arg1 = 0 ;
7673 wxNativePixelData_Accessor *result = 0 ;
7674 void *argp1 = 0 ;
7675 int res1 = 0 ;
7676
7677 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7679 if (!SWIG_IsOK(res1)) {
7680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7681 }
7682 if (!argp1) {
7683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7684 }
7685 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7686 {
7687 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7688 if (PyErr_Occurred()) SWIG_fail;
7689 }
7690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7691 return resultobj;
7692fail:
7693 return NULL;
7694}
7695
7696
7697SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7698 PyObject *resultobj = 0;
7699 wxBitmap *arg1 = 0 ;
7700 wxNativePixelData *arg2 = 0 ;
7701 wxNativePixelData_Accessor *result = 0 ;
7702 void *argp1 = 0 ;
7703 int res1 = 0 ;
7704 void *argp2 = 0 ;
7705 int res2 = 0 ;
7706
7707 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7709 if (!SWIG_IsOK(res1)) {
7710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7711 }
7712 if (!argp1) {
7713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7714 }
7715 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7716 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7717 if (!SWIG_IsOK(res2)) {
7718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7719 }
7720 if (!argp2) {
7721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7722 }
7723 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7724 {
7725 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7726 if (PyErr_Occurred()) SWIG_fail;
7727 }
7728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7729 return resultobj;
7730fail:
7731 return NULL;
7732}
7733
7734
7735SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7736 PyObject *resultobj = 0;
7737 wxNativePixelData_Accessor *result = 0 ;
7738
7739 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7740 {
7741 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7742 if (PyErr_Occurred()) SWIG_fail;
7743 }
7744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7745 return resultobj;
7746fail:
7747 return NULL;
7748}
7749
7750
7751SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7752 int argc;
7753 PyObject *argv[3];
7754
7755 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7756 --argc;
7757 if (argc == 0) {
7758 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7759 }
7760 if (argc == 1) {
7761 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7762 }
7763 if (argc == 2) {
7764 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7765 }
7766
7767fail:
7768 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7769 return NULL;
7770}
7771
7772
7773SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7774 PyObject *resultobj = 0;
7775 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7776 void *argp1 = 0 ;
7777 int res1 = 0 ;
7778 PyObject *swig_obj[1] ;
7779
7780 if (!args) SWIG_fail;
7781 swig_obj[0] = args;
7782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7783 if (!SWIG_IsOK(res1)) {
7784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7785 }
7786 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7787 {
7788 delete arg1;
7789
7790 if (PyErr_Occurred()) SWIG_fail;
7791 }
7792 resultobj = SWIG_Py_Void();
7793 return resultobj;
7794fail:
7795 return NULL;
7796}
7797
7798
7799SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7800 PyObject *resultobj = 0;
7801 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7802 wxNativePixelData *arg2 = 0 ;
7803 void *argp1 = 0 ;
7804 int res1 = 0 ;
7805 void *argp2 = 0 ;
7806 int res2 = 0 ;
7807 PyObject * obj0 = 0 ;
7808 PyObject * obj1 = 0 ;
7809 char * kwnames[] = {
7810 (char *) "self",(char *) "data", NULL
7811 };
7812
7813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7815 if (!SWIG_IsOK(res1)) {
7816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7817 }
7818 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7820 if (!SWIG_IsOK(res2)) {
7821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7822 }
7823 if (!argp2) {
7824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7825 }
7826 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7827 {
7828 (arg1)->Reset((wxNativePixelData const &)*arg2);
7829 if (PyErr_Occurred()) SWIG_fail;
7830 }
7831 resultobj = SWIG_Py_Void();
7832 return resultobj;
7833fail:
7834 return NULL;
7835}
7836
7837
7838SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7839 PyObject *resultobj = 0;
7840 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7841 bool result;
7842 void *argp1 = 0 ;
7843 int res1 = 0 ;
7844 PyObject *swig_obj[1] ;
7845
7846 if (!args) SWIG_fail;
7847 swig_obj[0] = args;
7848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7849 if (!SWIG_IsOK(res1)) {
7850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7851 }
7852 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7853 {
7854 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 {
7858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7859 }
7860 return resultobj;
7861fail:
7862 return NULL;
7863}
7864
7865
7866SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7867 PyObject *resultobj = 0;
7868 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7869 void *argp1 = 0 ;
7870 int res1 = 0 ;
7871 PyObject *swig_obj[1] ;
7872
7873 if (!args) SWIG_fail;
7874 swig_obj[0] = args;
7875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7876 if (!SWIG_IsOK(res1)) {
7877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7878 }
7879 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7880 {
7881 wxNativePixelData_Accessor_nextPixel(arg1);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 resultobj = SWIG_Py_Void();
7885 return resultobj;
7886fail:
7887 return NULL;
7888}
7889
7890
7891SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7892 PyObject *resultobj = 0;
7893 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7894 wxNativePixelData *arg2 = 0 ;
7895 int arg3 ;
7896 int arg4 ;
7897 void *argp1 = 0 ;
7898 int res1 = 0 ;
7899 void *argp2 = 0 ;
7900 int res2 = 0 ;
7901 int val3 ;
7902 int ecode3 = 0 ;
7903 int val4 ;
7904 int ecode4 = 0 ;
7905 PyObject * obj0 = 0 ;
7906 PyObject * obj1 = 0 ;
7907 PyObject * obj2 = 0 ;
7908 PyObject * obj3 = 0 ;
7909 char * kwnames[] = {
7910 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7911 };
7912
7913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7915 if (!SWIG_IsOK(res1)) {
7916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7917 }
7918 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7919 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7920 if (!SWIG_IsOK(res2)) {
7921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7922 }
7923 if (!argp2) {
7924 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7925 }
7926 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7927 ecode3 = SWIG_AsVal_int(obj2, &val3);
7928 if (!SWIG_IsOK(ecode3)) {
7929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7930 }
7931 arg3 = static_cast< int >(val3);
7932 ecode4 = SWIG_AsVal_int(obj3, &val4);
7933 if (!SWIG_IsOK(ecode4)) {
7934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7935 }
7936 arg4 = static_cast< int >(val4);
7937 {
7938 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7939 if (PyErr_Occurred()) SWIG_fail;
7940 }
7941 resultobj = SWIG_Py_Void();
7942 return resultobj;
7943fail:
7944 return NULL;
7945}
7946
7947
7948SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7949 PyObject *resultobj = 0;
7950 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7951 wxNativePixelData *arg2 = 0 ;
7952 int arg3 ;
7953 void *argp1 = 0 ;
7954 int res1 = 0 ;
7955 void *argp2 = 0 ;
7956 int res2 = 0 ;
7957 int val3 ;
7958 int ecode3 = 0 ;
7959 PyObject * obj0 = 0 ;
7960 PyObject * obj1 = 0 ;
7961 PyObject * obj2 = 0 ;
7962 char * kwnames[] = {
7963 (char *) "self",(char *) "data",(char *) "x", NULL
7964 };
7965
7966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7968 if (!SWIG_IsOK(res1)) {
7969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7970 }
7971 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7972 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7973 if (!SWIG_IsOK(res2)) {
7974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7975 }
7976 if (!argp2) {
7977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7978 }
7979 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7980 ecode3 = SWIG_AsVal_int(obj2, &val3);
7981 if (!SWIG_IsOK(ecode3)) {
7982 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7983 }
7984 arg3 = static_cast< int >(val3);
7985 {
7986 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 resultobj = SWIG_Py_Void();
7990 return resultobj;
7991fail:
7992 return NULL;
7993}
7994
7995
7996SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7997 PyObject *resultobj = 0;
7998 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7999 wxNativePixelData *arg2 = 0 ;
8000 int arg3 ;
8001 void *argp1 = 0 ;
8002 int res1 = 0 ;
8003 void *argp2 = 0 ;
8004 int res2 = 0 ;
8005 int val3 ;
8006 int ecode3 = 0 ;
8007 PyObject * obj0 = 0 ;
8008 PyObject * obj1 = 0 ;
8009 PyObject * obj2 = 0 ;
8010 char * kwnames[] = {
8011 (char *) "self",(char *) "data",(char *) "y", NULL
8012 };
8013
8014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8016 if (!SWIG_IsOK(res1)) {
8017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8018 }
8019 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8020 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8021 if (!SWIG_IsOK(res2)) {
8022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8023 }
8024 if (!argp2) {
8025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8026 }
8027 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8028 ecode3 = SWIG_AsVal_int(obj2, &val3);
8029 if (!SWIG_IsOK(ecode3)) {
8030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8031 }
8032 arg3 = static_cast< int >(val3);
8033 {
8034 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8035 if (PyErr_Occurred()) SWIG_fail;
8036 }
8037 resultobj = SWIG_Py_Void();
8038 return resultobj;
8039fail:
8040 return NULL;
8041}
8042
8043
8044SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8045 PyObject *resultobj = 0;
8046 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8047 wxNativePixelData *arg2 = 0 ;
8048 int arg3 ;
8049 int arg4 ;
8050 void *argp1 = 0 ;
8051 int res1 = 0 ;
8052 void *argp2 = 0 ;
8053 int res2 = 0 ;
8054 int val3 ;
8055 int ecode3 = 0 ;
8056 int val4 ;
8057 int ecode4 = 0 ;
8058 PyObject * obj0 = 0 ;
8059 PyObject * obj1 = 0 ;
8060 PyObject * obj2 = 0 ;
8061 PyObject * obj3 = 0 ;
8062 char * kwnames[] = {
8063 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8064 };
8065
8066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8068 if (!SWIG_IsOK(res1)) {
8069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8070 }
8071 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8072 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8073 if (!SWIG_IsOK(res2)) {
8074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8075 }
8076 if (!argp2) {
8077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8078 }
8079 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8080 ecode3 = SWIG_AsVal_int(obj2, &val3);
8081 if (!SWIG_IsOK(ecode3)) {
8082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8083 }
8084 arg3 = static_cast< int >(val3);
8085 ecode4 = SWIG_AsVal_int(obj3, &val4);
8086 if (!SWIG_IsOK(ecode4)) {
8087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8088 }
8089 arg4 = static_cast< int >(val4);
8090 {
8091 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8092 if (PyErr_Occurred()) SWIG_fail;
8093 }
8094 resultobj = SWIG_Py_Void();
8095 return resultobj;
8096fail:
8097 return NULL;
8098}
8099
8100
8101SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8102 PyObject *resultobj = 0;
8103 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8104 byte arg2 ;
8105 byte arg3 ;
8106 byte arg4 ;
8107 void *argp1 = 0 ;
8108 int res1 = 0 ;
8109 unsigned char val2 ;
8110 int ecode2 = 0 ;
8111 unsigned char val3 ;
8112 int ecode3 = 0 ;
8113 unsigned char val4 ;
8114 int ecode4 = 0 ;
8115 PyObject * obj0 = 0 ;
8116 PyObject * obj1 = 0 ;
8117 PyObject * obj2 = 0 ;
8118 PyObject * obj3 = 0 ;
8119 char * kwnames[] = {
8120 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8121 };
8122
8123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8125 if (!SWIG_IsOK(res1)) {
8126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8127 }
8128 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8129 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8130 if (!SWIG_IsOK(ecode2)) {
8131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8132 }
8133 arg2 = static_cast< byte >(val2);
8134 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8135 if (!SWIG_IsOK(ecode3)) {
8136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8137 }
8138 arg3 = static_cast< byte >(val3);
8139 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8140 if (!SWIG_IsOK(ecode4)) {
8141 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8142 }
8143 arg4 = static_cast< byte >(val4);
8144 {
8145 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 resultobj = SWIG_Py_Void();
8149 return resultobj;
8150fail:
8151 return NULL;
8152}
8153
8154
8155SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8156 PyObject *resultobj = 0;
8157 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8158 PyObject *result = 0 ;
8159 void *argp1 = 0 ;
8160 int res1 = 0 ;
8161 PyObject *swig_obj[1] ;
8162
8163 if (!args) SWIG_fail;
8164 swig_obj[0] = args;
8165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8166 if (!SWIG_IsOK(res1)) {
8167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8168 }
8169 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8170 {
8171 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8172 if (PyErr_Occurred()) SWIG_fail;
8173 }
8174 resultobj = result;
8175 return resultobj;
8176fail:
8177 return NULL;
8178}
8179
8180
8181SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8182 PyObject *obj;
8183 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8184 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8185 return SWIG_Py_Void();
8186}
8187
8188SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8189 return SWIG_Python_InitShadowInstance(args);
8190}
8191
8192SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8193 PyObject *resultobj = 0;
8194 wxBitmap *arg1 = 0 ;
8195 wxAlphaPixelData *result = 0 ;
8196 void *argp1 = 0 ;
8197 int res1 = 0 ;
8198
8199 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8201 if (!SWIG_IsOK(res1)) {
8202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8203 }
8204 if (!argp1) {
8205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8206 }
8207 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8208 {
8209 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8210 if (PyErr_Occurred()) SWIG_fail;
8211 }
8212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8213 return resultobj;
8214fail:
8215 return NULL;
8216}
8217
8218
8219SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8220 PyObject *resultobj = 0;
8221 wxBitmap *arg1 = 0 ;
8222 wxRect *arg2 = 0 ;
8223 wxAlphaPixelData *result = 0 ;
8224 void *argp1 = 0 ;
8225 int res1 = 0 ;
8226 wxRect temp2 ;
8227
8228 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8230 if (!SWIG_IsOK(res1)) {
8231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8232 }
8233 if (!argp1) {
8234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8235 }
8236 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8237 {
8238 arg2 = &temp2;
8239 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8240 }
8241 {
8242 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8243 if (PyErr_Occurred()) SWIG_fail;
8244 }
8245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8246 return resultobj;
8247fail:
8248 return NULL;
8249}
8250
8251
8252SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8253 PyObject *resultobj = 0;
8254 wxBitmap *arg1 = 0 ;
8255 wxPoint *arg2 = 0 ;
8256 wxSize *arg3 = 0 ;
8257 wxAlphaPixelData *result = 0 ;
8258 void *argp1 = 0 ;
8259 int res1 = 0 ;
8260 wxPoint temp2 ;
8261 wxSize temp3 ;
8262
8263 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8265 if (!SWIG_IsOK(res1)) {
8266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8267 }
8268 if (!argp1) {
8269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8270 }
8271 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8272 {
8273 arg2 = &temp2;
8274 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8275 }
8276 {
8277 arg3 = &temp3;
8278 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8279 }
8280 {
8281 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8285 return resultobj;
8286fail:
8287 return NULL;
8288}
8289
8290
8291SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8292 int argc;
8293 PyObject *argv[4];
8294
8295 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8296 --argc;
8297 if (argc == 1) {
8298 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8299 }
8300 if (argc == 2) {
8301 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8302 }
8303 if (argc == 3) {
8304 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8305 }
8306
8307fail:
8308 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8309 return NULL;
8310}
8311
8312
8313SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8314 PyObject *resultobj = 0;
8315 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8316 void *argp1 = 0 ;
8317 int res1 = 0 ;
8318 PyObject *swig_obj[1] ;
8319
8320 if (!args) SWIG_fail;
8321 swig_obj[0] = args;
8322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8323 if (!SWIG_IsOK(res1)) {
8324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8325 }
8326 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8327 {
8328 delete arg1;
8329
8330 if (PyErr_Occurred()) SWIG_fail;
8331 }
8332 resultobj = SWIG_Py_Void();
8333 return resultobj;
8334fail:
8335 return NULL;
8336}
8337
8338
8339SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8340 PyObject *resultobj = 0;
8341 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8342 wxAlphaPixelData_Accessor result;
8343 void *argp1 = 0 ;
8344 int res1 = 0 ;
8345 PyObject *swig_obj[1] ;
8346
8347 if (!args) SWIG_fail;
8348 swig_obj[0] = args;
8349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8350 if (!SWIG_IsOK(res1)) {
8351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8352 }
8353 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8354 {
8355 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8359 return resultobj;
8360fail:
8361 return NULL;
8362}
8363
8364
8365SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8366 PyObject *resultobj = 0;
8367 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8368 void *argp1 = 0 ;
8369 int res1 = 0 ;
8370 PyObject *swig_obj[1] ;
8371
8372 if (!args) SWIG_fail;
8373 swig_obj[0] = args;
8374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8375 if (!SWIG_IsOK(res1)) {
8376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8377 }
8378 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8379 {
8380 (arg1)->UseAlpha();
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 resultobj = SWIG_Py_Void();
8384 return resultobj;
8385fail:
8386 return NULL;
8387}
8388
8389
8390SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8391 PyObject *resultobj = 0;
8392 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8393 bool result;
8394 void *argp1 = 0 ;
8395 int res1 = 0 ;
8396 PyObject *swig_obj[1] ;
8397
8398 if (!args) SWIG_fail;
8399 swig_obj[0] = args;
8400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8401 if (!SWIG_IsOK(res1)) {
8402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8403 }
8404 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8405 {
8406 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8407 if (PyErr_Occurred()) SWIG_fail;
8408 }
8409 {
8410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8411 }
8412 return resultobj;
8413fail:
8414 return NULL;
8415}
8416
8417
8418SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8419 PyObject *obj;
8420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8421 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8422 return SWIG_Py_Void();
8423}
8424
8425SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8426 return SWIG_Python_InitShadowInstance(args);
8427}
8428
8429SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8430 PyObject *resultobj = 0;
8431 wxAlphaPixelData *arg1 = 0 ;
8432 wxAlphaPixelData_Accessor *result = 0 ;
8433 void *argp1 = 0 ;
8434 int res1 = 0 ;
8435
8436 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8438 if (!SWIG_IsOK(res1)) {
8439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8440 }
8441 if (!argp1) {
8442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8443 }
8444 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8445 {
8446 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8447 if (PyErr_Occurred()) SWIG_fail;
8448 }
8449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8450 return resultobj;
8451fail:
8452 return NULL;
8453}
8454
8455
8456SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8457 PyObject *resultobj = 0;
8458 wxBitmap *arg1 = 0 ;
8459 wxAlphaPixelData *arg2 = 0 ;
8460 wxAlphaPixelData_Accessor *result = 0 ;
8461 void *argp1 = 0 ;
8462 int res1 = 0 ;
8463 void *argp2 = 0 ;
8464 int res2 = 0 ;
8465
8466 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8468 if (!SWIG_IsOK(res1)) {
8469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8470 }
8471 if (!argp1) {
8472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8473 }
8474 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8475 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8476 if (!SWIG_IsOK(res2)) {
8477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8478 }
8479 if (!argp2) {
8480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8481 }
8482 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8483 {
8484 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8488 return resultobj;
8489fail:
8490 return NULL;
8491}
8492
8493
8494SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8495 PyObject *resultobj = 0;
8496 wxAlphaPixelData_Accessor *result = 0 ;
8497
8498 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8499 {
8500 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8501 if (PyErr_Occurred()) SWIG_fail;
8502 }
8503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8504 return resultobj;
8505fail:
8506 return NULL;
8507}
8508
8509
8510SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8511 int argc;
8512 PyObject *argv[3];
8513
8514 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8515 --argc;
8516 if (argc == 0) {
8517 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8518 }
8519 if (argc == 1) {
8520 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8521 }
8522 if (argc == 2) {
8523 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8524 }
8525
8526fail:
8527 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8528 return NULL;
8529}
8530
8531
8532SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8533 PyObject *resultobj = 0;
8534 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8535 void *argp1 = 0 ;
8536 int res1 = 0 ;
8537 PyObject *swig_obj[1] ;
8538
8539 if (!args) SWIG_fail;
8540 swig_obj[0] = args;
8541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8542 if (!SWIG_IsOK(res1)) {
8543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8544 }
8545 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8546 {
8547 delete arg1;
8548
8549 if (PyErr_Occurred()) SWIG_fail;
8550 }
8551 resultobj = SWIG_Py_Void();
8552 return resultobj;
8553fail:
8554 return NULL;
8555}
8556
8557
8558SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8559 PyObject *resultobj = 0;
8560 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8561 wxAlphaPixelData *arg2 = 0 ;
8562 void *argp1 = 0 ;
8563 int res1 = 0 ;
8564 void *argp2 = 0 ;
8565 int res2 = 0 ;
8566 PyObject * obj0 = 0 ;
8567 PyObject * obj1 = 0 ;
8568 char * kwnames[] = {
8569 (char *) "self",(char *) "data", NULL
8570 };
8571
8572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8574 if (!SWIG_IsOK(res1)) {
8575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8576 }
8577 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8578 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8579 if (!SWIG_IsOK(res2)) {
8580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8581 }
8582 if (!argp2) {
8583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8584 }
8585 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8586 {
8587 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 resultobj = SWIG_Py_Void();
8591 return resultobj;
8592fail:
8593 return NULL;
8594}
8595
8596
8597SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8598 PyObject *resultobj = 0;
8599 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8600 bool result;
8601 void *argp1 = 0 ;
8602 int res1 = 0 ;
8603 PyObject *swig_obj[1] ;
8604
8605 if (!args) SWIG_fail;
8606 swig_obj[0] = args;
8607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8608 if (!SWIG_IsOK(res1)) {
8609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8610 }
8611 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8612 {
8613 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8614 if (PyErr_Occurred()) SWIG_fail;
8615 }
8616 {
8617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8618 }
8619 return resultobj;
8620fail:
8621 return NULL;
8622}
8623
8624
8625SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8626 PyObject *resultobj = 0;
8627 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8628 void *argp1 = 0 ;
8629 int res1 = 0 ;
8630 PyObject *swig_obj[1] ;
8631
8632 if (!args) SWIG_fail;
8633 swig_obj[0] = args;
8634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8635 if (!SWIG_IsOK(res1)) {
8636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8637 }
8638 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8639 {
8640 wxAlphaPixelData_Accessor_nextPixel(arg1);
8641 if (PyErr_Occurred()) SWIG_fail;
8642 }
8643 resultobj = SWIG_Py_Void();
8644 return resultobj;
8645fail:
8646 return NULL;
8647}
8648
8649
8650SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8651 PyObject *resultobj = 0;
8652 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8653 wxAlphaPixelData *arg2 = 0 ;
8654 int arg3 ;
8655 int arg4 ;
8656 void *argp1 = 0 ;
8657 int res1 = 0 ;
8658 void *argp2 = 0 ;
8659 int res2 = 0 ;
8660 int val3 ;
8661 int ecode3 = 0 ;
8662 int val4 ;
8663 int ecode4 = 0 ;
8664 PyObject * obj0 = 0 ;
8665 PyObject * obj1 = 0 ;
8666 PyObject * obj2 = 0 ;
8667 PyObject * obj3 = 0 ;
8668 char * kwnames[] = {
8669 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8670 };
8671
8672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8674 if (!SWIG_IsOK(res1)) {
8675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8676 }
8677 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8678 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8679 if (!SWIG_IsOK(res2)) {
8680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8681 }
8682 if (!argp2) {
8683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8684 }
8685 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8686 ecode3 = SWIG_AsVal_int(obj2, &val3);
8687 if (!SWIG_IsOK(ecode3)) {
8688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8689 }
8690 arg3 = static_cast< int >(val3);
8691 ecode4 = SWIG_AsVal_int(obj3, &val4);
8692 if (!SWIG_IsOK(ecode4)) {
8693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8694 }
8695 arg4 = static_cast< int >(val4);
8696 {
8697 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 resultobj = SWIG_Py_Void();
8701 return resultobj;
8702fail:
8703 return NULL;
8704}
8705
8706
8707SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj = 0;
8709 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8710 wxAlphaPixelData *arg2 = 0 ;
8711 int arg3 ;
8712 void *argp1 = 0 ;
8713 int res1 = 0 ;
8714 void *argp2 = 0 ;
8715 int res2 = 0 ;
8716 int val3 ;
8717 int ecode3 = 0 ;
8718 PyObject * obj0 = 0 ;
8719 PyObject * obj1 = 0 ;
8720 PyObject * obj2 = 0 ;
8721 char * kwnames[] = {
8722 (char *) "self",(char *) "data",(char *) "x", NULL
8723 };
8724
8725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8727 if (!SWIG_IsOK(res1)) {
8728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8729 }
8730 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8731 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8732 if (!SWIG_IsOK(res2)) {
8733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8734 }
8735 if (!argp2) {
8736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8737 }
8738 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8739 ecode3 = SWIG_AsVal_int(obj2, &val3);
8740 if (!SWIG_IsOK(ecode3)) {
8741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8742 }
8743 arg3 = static_cast< int >(val3);
8744 {
8745 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8746 if (PyErr_Occurred()) SWIG_fail;
8747 }
8748 resultobj = SWIG_Py_Void();
8749 return resultobj;
8750fail:
8751 return NULL;
8752}
8753
8754
8755SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8756 PyObject *resultobj = 0;
8757 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8758 wxAlphaPixelData *arg2 = 0 ;
8759 int arg3 ;
8760 void *argp1 = 0 ;
8761 int res1 = 0 ;
8762 void *argp2 = 0 ;
8763 int res2 = 0 ;
8764 int val3 ;
8765 int ecode3 = 0 ;
8766 PyObject * obj0 = 0 ;
8767 PyObject * obj1 = 0 ;
8768 PyObject * obj2 = 0 ;
8769 char * kwnames[] = {
8770 (char *) "self",(char *) "data",(char *) "y", NULL
8771 };
8772
8773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8775 if (!SWIG_IsOK(res1)) {
8776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8777 }
8778 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8779 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8780 if (!SWIG_IsOK(res2)) {
8781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8782 }
8783 if (!argp2) {
8784 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8785 }
8786 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8787 ecode3 = SWIG_AsVal_int(obj2, &val3);
8788 if (!SWIG_IsOK(ecode3)) {
8789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8790 }
8791 arg3 = static_cast< int >(val3);
8792 {
8793 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8794 if (PyErr_Occurred()) SWIG_fail;
8795 }
8796 resultobj = SWIG_Py_Void();
8797 return resultobj;
8798fail:
8799 return NULL;
8800}
8801
8802
8803SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8804 PyObject *resultobj = 0;
8805 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8806 wxAlphaPixelData *arg2 = 0 ;
8807 int arg3 ;
8808 int arg4 ;
8809 void *argp1 = 0 ;
8810 int res1 = 0 ;
8811 void *argp2 = 0 ;
8812 int res2 = 0 ;
8813 int val3 ;
8814 int ecode3 = 0 ;
8815 int val4 ;
8816 int ecode4 = 0 ;
8817 PyObject * obj0 = 0 ;
8818 PyObject * obj1 = 0 ;
8819 PyObject * obj2 = 0 ;
8820 PyObject * obj3 = 0 ;
8821 char * kwnames[] = {
8822 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8823 };
8824
8825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8827 if (!SWIG_IsOK(res1)) {
8828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8829 }
8830 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8831 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8832 if (!SWIG_IsOK(res2)) {
8833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8834 }
8835 if (!argp2) {
8836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8837 }
8838 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8839 ecode3 = SWIG_AsVal_int(obj2, &val3);
8840 if (!SWIG_IsOK(ecode3)) {
8841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8842 }
8843 arg3 = static_cast< int >(val3);
8844 ecode4 = SWIG_AsVal_int(obj3, &val4);
8845 if (!SWIG_IsOK(ecode4)) {
8846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8847 }
8848 arg4 = static_cast< int >(val4);
8849 {
8850 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8851 if (PyErr_Occurred()) SWIG_fail;
8852 }
8853 resultobj = SWIG_Py_Void();
8854 return resultobj;
8855fail:
8856 return NULL;
8857}
8858
8859
8860SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8861 PyObject *resultobj = 0;
8862 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8863 byte arg2 ;
8864 byte arg3 ;
8865 byte arg4 ;
8866 byte arg5 ;
8867 void *argp1 = 0 ;
8868 int res1 = 0 ;
8869 unsigned char val2 ;
8870 int ecode2 = 0 ;
8871 unsigned char val3 ;
8872 int ecode3 = 0 ;
8873 unsigned char val4 ;
8874 int ecode4 = 0 ;
8875 unsigned char val5 ;
8876 int ecode5 = 0 ;
8877 PyObject * obj0 = 0 ;
8878 PyObject * obj1 = 0 ;
8879 PyObject * obj2 = 0 ;
8880 PyObject * obj3 = 0 ;
8881 PyObject * obj4 = 0 ;
8882 char * kwnames[] = {
8883 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8884 };
8885
8886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8888 if (!SWIG_IsOK(res1)) {
8889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8890 }
8891 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8892 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8893 if (!SWIG_IsOK(ecode2)) {
8894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8895 }
8896 arg2 = static_cast< byte >(val2);
8897 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8898 if (!SWIG_IsOK(ecode3)) {
8899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8900 }
8901 arg3 = static_cast< byte >(val3);
8902 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8903 if (!SWIG_IsOK(ecode4)) {
8904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8905 }
8906 arg4 = static_cast< byte >(val4);
8907 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8908 if (!SWIG_IsOK(ecode5)) {
8909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8910 }
8911 arg5 = static_cast< byte >(val5);
8912 {
8913 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8914 if (PyErr_Occurred()) SWIG_fail;
0085ce49 8915 }
fc46b7f3 8916 resultobj = SWIG_Py_Void();
0085ce49
RD
8917 return resultobj;
8918fail:
8919 return NULL;
8920}
8921
8922
fc46b7f3 8923SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8924 PyObject *resultobj = 0;
fc46b7f3
RD
8925 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8926 PyObject *result = 0 ;
0085ce49
RD
8927 void *argp1 = 0 ;
8928 int res1 = 0 ;
fc46b7f3 8929 PyObject *swig_obj[1] ;
0085ce49 8930
fc46b7f3
RD
8931 if (!args) SWIG_fail;
8932 swig_obj[0] = args;
8933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
0085ce49 8934 if (!SWIG_IsOK(res1)) {
fc46b7f3 8935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
0085ce49 8936 }
fc46b7f3 8937 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
0085ce49 8938 {
fc46b7f3 8939 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
0085ce49
RD
8940 if (PyErr_Occurred()) SWIG_fail;
8941 }
fc46b7f3 8942 resultobj = result;
0085ce49
RD
8943 return resultobj;
8944fail:
8945 return NULL;
d14a1e28
RD
8946}
8947
8948
fc46b7f3 8949SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
8950 PyObject *obj;
8951 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8952 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
0085ce49 8953 return SWIG_Py_Void();
b2df227b
RD
8954}
8955
fc46b7f3 8956SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8957 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
8958}
8959
0085ce49
RD
8960SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8961 PyObject *resultobj = 0;
8962 wxBitmap *arg1 = 0 ;
8963 wxColour const &arg2_defvalue = wxNullColour ;
8964 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8965 wxMask *result = 0 ;
8966 void *argp1 = 0 ;
8967 int res1 = 0 ;
8968 wxColour temp2 ;
8969 PyObject * obj0 = 0 ;
8970 PyObject * obj1 = 0 ;
8971 char * kwnames[] = {
8972 (char *) "bitmap",(char *) "colour", NULL
8973 };
8974
8975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8976 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8977 if (!SWIG_IsOK(res1)) {
8978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8979 }
8980 if (!argp1) {
8981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8982 }
8983 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8984 if (obj1) {
d14a1e28 8985 {
0085ce49
RD
8986 arg2 = &temp2;
8987 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 8988 }
0085ce49
RD
8989 }
8990 {
8991 if (!wxPyCheckForApp()) SWIG_fail;
8992 PyThreadState* __tstate = wxPyBeginAllowThreads();
8993 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8994 wxPyEndAllowThreads(__tstate);
8995 if (PyErr_Occurred()) SWIG_fail;
8996 }
8997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8998 return resultobj;
8999fail:
9000 return NULL;
d14a1e28
RD
9001}
9002
9003
0085ce49
RD
9004SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9005 PyObject *resultobj = 0;
9006 wxMask *arg1 = (wxMask *) 0 ;
9007 void *argp1 = 0 ;
9008 int res1 = 0 ;
9009 PyObject *swig_obj[1] ;
9010
9011 if (!args) SWIG_fail;
9012 swig_obj[0] = args;
9013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9014 if (!SWIG_IsOK(res1)) {
9015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9016 }
9017 arg1 = reinterpret_cast< wxMask * >(argp1);
9018 {
0085ce49 9019 delete arg1;
d14a1e28 9020
0085ce49
RD
9021 if (PyErr_Occurred()) SWIG_fail;
9022 }
9023 resultobj = SWIG_Py_Void();
9024 return resultobj;
9025fail:
9026 return NULL;
9027}
9028
9029
9030SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9031 PyObject *obj;
9032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9033 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9034 return SWIG_Py_Void();
9035}
9036
9037SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9038 return SWIG_Python_InitShadowInstance(args);
9039}
9040
9041SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9042 PyObject *resultobj = 0;
9043 wxString *arg1 = 0 ;
9044 wxBitmapType arg2 ;
9045 int arg3 = (int) -1 ;
9046 int arg4 = (int) -1 ;
9047 wxIcon *result = 0 ;
9048 bool temp1 = false ;
9049 int val2 ;
9050 int ecode2 = 0 ;
9051 int val3 ;
9052 int ecode3 = 0 ;
9053 int val4 ;
9054 int ecode4 = 0 ;
9055 PyObject * obj0 = 0 ;
9056 PyObject * obj1 = 0 ;
9057 PyObject * obj2 = 0 ;
9058 PyObject * obj3 = 0 ;
9059 char * kwnames[] = {
9060 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9061 };
9062
9063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9064 {
9065 arg1 = wxString_in_helper(obj0);
9066 if (arg1 == NULL) SWIG_fail;
9067 temp1 = true;
9068 }
9069 ecode2 = SWIG_AsVal_int(obj1, &val2);
9070 if (!SWIG_IsOK(ecode2)) {
9071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9072 }
9073 arg2 = static_cast< wxBitmapType >(val2);
9074 if (obj2) {
9075 ecode3 = SWIG_AsVal_int(obj2, &val3);
9076 if (!SWIG_IsOK(ecode3)) {
9077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9078 }
9079 arg3 = static_cast< int >(val3);
9080 }
9081 if (obj3) {
9082 ecode4 = SWIG_AsVal_int(obj3, &val4);
9083 if (!SWIG_IsOK(ecode4)) {
9084 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9085 }
9086 arg4 = static_cast< int >(val4);
9087 }
9088 {
9089 if (!wxPyCheckForApp()) SWIG_fail;
9090 PyThreadState* __tstate = wxPyBeginAllowThreads();
9091 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9092 wxPyEndAllowThreads(__tstate);
9093 if (PyErr_Occurred()) SWIG_fail;
9094 }
9095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9096 {
9097 if (temp1)
9098 delete arg1;
9099 }
9100 return resultobj;
9101fail:
9102 {
9103 if (temp1)
9104 delete arg1;
9105 }
9106 return NULL;
d14a1e28
RD
9107}
9108
9109
0085ce49
RD
9110SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9111 PyObject *resultobj = 0;
9112 wxIcon *arg1 = (wxIcon *) 0 ;
9113 void *argp1 = 0 ;
9114 int res1 = 0 ;
9115 PyObject *swig_obj[1] ;
9116
9117 if (!args) SWIG_fail;
9118 swig_obj[0] = args;
9119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9120 if (!SWIG_IsOK(res1)) {
9121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9122 }
9123 arg1 = reinterpret_cast< wxIcon * >(argp1);
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 delete arg1;
d14a1e28 9127
0085ce49
RD
9128 wxPyEndAllowThreads(__tstate);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 }
9131 resultobj = SWIG_Py_Void();
9132 return resultobj;
9133fail:
9134 return NULL;
d14a1e28
RD
9135}
9136
9137
0085ce49
RD
9138SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9139 PyObject *resultobj = 0;
9140 wxIcon *result = 0 ;
9141
9142 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9143 {
9144 if (!wxPyCheckForApp()) SWIG_fail;
9145 PyThreadState* __tstate = wxPyBeginAllowThreads();
9146 result = (wxIcon *)new wxIcon();
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9151 return resultobj;
9152fail:
9153 return NULL;
9154}
9155
9156
9157SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9158 PyObject *resultobj = 0;
9159 wxIconLocation *arg1 = 0 ;
9160 wxIcon *result = 0 ;
9161 void *argp1 = 0 ;
9162 int res1 = 0 ;
9163 PyObject * obj0 = 0 ;
9164 char * kwnames[] = {
9165 (char *) "loc", NULL
9166 };
9167
9168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9169 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9170 if (!SWIG_IsOK(res1)) {
9171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9172 }
9173 if (!argp1) {
9174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9175 }
9176 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9177 {
9178 if (!wxPyCheckForApp()) SWIG_fail;
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 }
9184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9185 return resultobj;
9186fail:
9187 return NULL;
9188}
9189
9190
9191SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9192 PyObject *resultobj = 0;
9193 wxBitmap *arg1 = 0 ;
9194 wxIcon *result = 0 ;
9195 void *argp1 = 0 ;
9196 int res1 = 0 ;
9197 PyObject * obj0 = 0 ;
9198 char * kwnames[] = {
9199 (char *) "bmp", NULL
9200 };
9201
9202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9203 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9204 if (!SWIG_IsOK(res1)) {
9205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9206 }
9207 if (!argp1) {
9208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9209 }
9210 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9211 {
9212 if (!wxPyCheckForApp()) SWIG_fail;
9213 PyThreadState* __tstate = wxPyBeginAllowThreads();
9214 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9215 wxPyEndAllowThreads(__tstate);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9219 return resultobj;
9220fail:
9221 return NULL;
d14a1e28
RD
9222}
9223
9224
0085ce49
RD
9225SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9226 PyObject *resultobj = 0;
9227 PyObject *arg1 = (PyObject *) 0 ;
9228 wxIcon *result = 0 ;
9229 PyObject * obj0 = 0 ;
9230 char * kwnames[] = {
9231 (char *) "listOfStrings", NULL
9232 };
9233
9234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9235 arg1 = obj0;
9236 {
9237 if (!wxPyCheckForApp()) SWIG_fail;
9238 PyThreadState* __tstate = wxPyBeginAllowThreads();
9239 result = (wxIcon *)new_wxIcon(arg1);
9240 wxPyEndAllowThreads(__tstate);
9241 if (PyErr_Occurred()) SWIG_fail;
9242 }
9243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9244 return resultobj;
9245fail:
9246 return NULL;
9247}
9248
9249
9250SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9251 PyObject *resultobj = 0;
9252 wxIcon *arg1 = (wxIcon *) 0 ;
9253 wxString *arg2 = 0 ;
9254 wxBitmapType arg3 ;
9255 bool result;
9256 void *argp1 = 0 ;
9257 int res1 = 0 ;
9258 bool temp2 = false ;
9259 int val3 ;
9260 int ecode3 = 0 ;
9261 PyObject * obj0 = 0 ;
9262 PyObject * obj1 = 0 ;
9263 PyObject * obj2 = 0 ;
9264 char * kwnames[] = {
9265 (char *) "self",(char *) "name",(char *) "type", NULL
9266 };
9267
9268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9270 if (!SWIG_IsOK(res1)) {
9271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9272 }
9273 arg1 = reinterpret_cast< wxIcon * >(argp1);
9274 {
9275 arg2 = wxString_in_helper(obj1);
9276 if (arg2 == NULL) SWIG_fail;
9277 temp2 = true;
9278 }
9279 ecode3 = SWIG_AsVal_int(obj2, &val3);
9280 if (!SWIG_IsOK(ecode3)) {
9281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9282 }
9283 arg3 = static_cast< wxBitmapType >(val3);
9284 {
9285 PyThreadState* __tstate = wxPyBeginAllowThreads();
9286 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9287 wxPyEndAllowThreads(__tstate);
9288 if (PyErr_Occurred()) SWIG_fail;
9289 }
9290 {
9291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9292 }
9293 {
9294 if (temp2)
9295 delete arg2;
9296 }
9297 return resultobj;
9298fail:
9299 {
9300 if (temp2)
9301 delete arg2;
9302 }
9303 return NULL;
d14a1e28
RD
9304}
9305
9306
b39fe951 9307SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
9308 PyObject *resultobj = 0;
9309 wxIcon *arg1 = (wxIcon *) 0 ;
9310 bool result;
9311 void *argp1 = 0 ;
9312 int res1 = 0 ;
9313 PyObject *swig_obj[1] ;
9314
9315 if (!args) SWIG_fail;
9316 swig_obj[0] = args;
9317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9318 if (!SWIG_IsOK(res1)) {
b39fe951 9319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
0085ce49
RD
9320 }
9321 arg1 = reinterpret_cast< wxIcon * >(argp1);
9322 {
9323 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9324 result = (bool)(arg1)->IsOk();
0085ce49
RD
9325 wxPyEndAllowThreads(__tstate);
9326 if (PyErr_Occurred()) SWIG_fail;
9327 }
9328 {
9329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9330 }
9331 return resultobj;
9332fail:
9333 return NULL;
d14a1e28
RD
9334}
9335
9336
0085ce49
RD
9337SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9338 PyObject *resultobj = 0;
9339 wxIcon *arg1 = (wxIcon *) 0 ;
9340 int result;
9341 void *argp1 = 0 ;
9342 int res1 = 0 ;
9343 PyObject *swig_obj[1] ;
9344
9345 if (!args) SWIG_fail;
9346 swig_obj[0] = args;
9347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9348 if (!SWIG_IsOK(res1)) {
9349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9350 }
9351 arg1 = reinterpret_cast< wxIcon * >(argp1);
9352 {
9353 PyThreadState* __tstate = wxPyBeginAllowThreads();
9354 result = (int)(arg1)->GetWidth();
9355 wxPyEndAllowThreads(__tstate);
9356 if (PyErr_Occurred()) SWIG_fail;
9357 }
9358 resultobj = SWIG_From_int(static_cast< int >(result));
9359 return resultobj;
9360fail:
9361 return NULL;
d3b6e4ff
RD
9362}
9363
9364
0085ce49
RD
9365SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9366 PyObject *resultobj = 0;
9367 wxIcon *arg1 = (wxIcon *) 0 ;
9368 int result;
9369 void *argp1 = 0 ;
9370 int res1 = 0 ;
9371 PyObject *swig_obj[1] ;
9372
9373 if (!args) SWIG_fail;
9374 swig_obj[0] = args;
9375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9376 if (!SWIG_IsOK(res1)) {
9377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9378 }
9379 arg1 = reinterpret_cast< wxIcon * >(argp1);
9380 {
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 result = (int)(arg1)->GetHeight();
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 resultobj = SWIG_From_int(static_cast< int >(result));
9387 return resultobj;
9388fail:
9389 return NULL;
d14a1e28
RD
9390}
9391
9392
0085ce49
RD
9393SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9394 PyObject *resultobj = 0;
9395 wxIcon *arg1 = (wxIcon *) 0 ;
9396 int result;
9397 void *argp1 = 0 ;
9398 int res1 = 0 ;
9399 PyObject *swig_obj[1] ;
9400
9401 if (!args) SWIG_fail;
9402 swig_obj[0] = args;
9403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9404 if (!SWIG_IsOK(res1)) {
9405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9406 }
9407 arg1 = reinterpret_cast< wxIcon * >(argp1);
9408 {
9409 PyThreadState* __tstate = wxPyBeginAllowThreads();
9410 result = (int)(arg1)->GetDepth();
9411 wxPyEndAllowThreads(__tstate);
9412 if (PyErr_Occurred()) SWIG_fail;
9413 }
9414 resultobj = SWIG_From_int(static_cast< int >(result));
9415 return resultobj;
9416fail:
9417 return NULL;
9418}
9419
9420
9421SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9422 PyObject *resultobj = 0;
9423 wxIcon *arg1 = (wxIcon *) 0 ;
9424 int arg2 ;
9425 void *argp1 = 0 ;
9426 int res1 = 0 ;
9427 int val2 ;
9428 int ecode2 = 0 ;
9429 PyObject * obj0 = 0 ;
9430 PyObject * obj1 = 0 ;
9431 char * kwnames[] = {
9432 (char *) "self",(char *) "w", NULL
9433 };
9434
9435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9437 if (!SWIG_IsOK(res1)) {
9438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9439 }
9440 arg1 = reinterpret_cast< wxIcon * >(argp1);
9441 ecode2 = SWIG_AsVal_int(obj1, &val2);
9442 if (!SWIG_IsOK(ecode2)) {
9443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9444 }
9445 arg2 = static_cast< int >(val2);
9446 {
9447 PyThreadState* __tstate = wxPyBeginAllowThreads();
9448 (arg1)->SetWidth(arg2);
9449 wxPyEndAllowThreads(__tstate);
9450 if (PyErr_Occurred()) SWIG_fail;
9451 }
9452 resultobj = SWIG_Py_Void();
9453 return resultobj;
9454fail:
9455 return NULL;
9456}
9457
9458
9459SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9460 PyObject *resultobj = 0;
9461 wxIcon *arg1 = (wxIcon *) 0 ;
9462 int arg2 ;
9463 void *argp1 = 0 ;
9464 int res1 = 0 ;
9465 int val2 ;
9466 int ecode2 = 0 ;
9467 PyObject * obj0 = 0 ;
9468 PyObject * obj1 = 0 ;
9469 char * kwnames[] = {
9470 (char *) "self",(char *) "h", NULL
9471 };
9472
9473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9475 if (!SWIG_IsOK(res1)) {
9476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9477 }
9478 arg1 = reinterpret_cast< wxIcon * >(argp1);
9479 ecode2 = SWIG_AsVal_int(obj1, &val2);
9480 if (!SWIG_IsOK(ecode2)) {
9481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9482 }
9483 arg2 = static_cast< int >(val2);
9484 {
9485 PyThreadState* __tstate = wxPyBeginAllowThreads();
9486 (arg1)->SetHeight(arg2);
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
9490 resultobj = SWIG_Py_Void();
9491 return resultobj;
9492fail:
9493 return NULL;
9494}
9495
9496
9497SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9498 PyObject *resultobj = 0;
9499 wxIcon *arg1 = (wxIcon *) 0 ;
9500 int arg2 ;
9501 void *argp1 = 0 ;
9502 int res1 = 0 ;
9503 int val2 ;
9504 int ecode2 = 0 ;
9505 PyObject * obj0 = 0 ;
9506 PyObject * obj1 = 0 ;
9507 char * kwnames[] = {
9508 (char *) "self",(char *) "d", NULL
9509 };
9510
9511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9513 if (!SWIG_IsOK(res1)) {
9514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9515 }
9516 arg1 = reinterpret_cast< wxIcon * >(argp1);
9517 ecode2 = SWIG_AsVal_int(obj1, &val2);
9518 if (!SWIG_IsOK(ecode2)) {
9519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9520 }
9521 arg2 = static_cast< int >(val2);
9522 {
9523 PyThreadState* __tstate = wxPyBeginAllowThreads();
9524 (arg1)->SetDepth(arg2);
9525 wxPyEndAllowThreads(__tstate);
9526 if (PyErr_Occurred()) SWIG_fail;
9527 }
9528 resultobj = SWIG_Py_Void();
9529 return resultobj;
9530fail:
9531 return NULL;
9532}
9533
9534
9535SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9536 PyObject *resultobj = 0;
9537 wxIcon *arg1 = (wxIcon *) 0 ;
9538 wxBitmap *arg2 = 0 ;
9539 void *argp1 = 0 ;
9540 int res1 = 0 ;
9541 void *argp2 = 0 ;
9542 int res2 = 0 ;
9543 PyObject * obj0 = 0 ;
9544 PyObject * obj1 = 0 ;
9545 char * kwnames[] = {
9546 (char *) "self",(char *) "bmp", NULL
9547 };
9548
9549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9551 if (!SWIG_IsOK(res1)) {
9552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9553 }
9554 arg1 = reinterpret_cast< wxIcon * >(argp1);
9555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9556 if (!SWIG_IsOK(res2)) {
9557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9558 }
9559 if (!argp2) {
9560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9561 }
9562 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9563 {
9564 PyThreadState* __tstate = wxPyBeginAllowThreads();
9565 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9566 wxPyEndAllowThreads(__tstate);
9567 if (PyErr_Occurred()) SWIG_fail;
9568 }
9569 resultobj = SWIG_Py_Void();
9570 return resultobj;
9571fail:
9572 return NULL;
d14a1e28
RD
9573}
9574
9575
0085ce49
RD
9576SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9577 PyObject *obj;
9578 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9579 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9580 return SWIG_Py_Void();
d14a1e28
RD
9581}
9582
0085ce49
RD
9583SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9584 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9585}
9586
0085ce49
RD
9587SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9588 PyObject *resultobj = 0;
9589 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9590 int arg2 = (int) 0 ;
9591 wxIconLocation *result = 0 ;
9592 bool temp1 = false ;
9593 int val2 ;
9594 int ecode2 = 0 ;
9595 PyObject * obj0 = 0 ;
9596 PyObject * obj1 = 0 ;
9597 char * kwnames[] = {
9598 (char *) "filename",(char *) "num", NULL
9599 };
9600
9601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9602 if (obj0) {
b2df227b 9603 {
0085ce49
RD
9604 arg1 = wxString_in_helper(obj0);
9605 if (arg1 == NULL) SWIG_fail;
9606 temp1 = true;
b2df227b 9607 }
0085ce49
RD
9608 }
9609 if (obj1) {
9610 ecode2 = SWIG_AsVal_int(obj1, &val2);
9611 if (!SWIG_IsOK(ecode2)) {
9612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9613 }
9614 arg2 = static_cast< int >(val2);
9615 }
9616 {
9617 PyThreadState* __tstate = wxPyBeginAllowThreads();
9618 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
9622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9623 {
9624 if (temp1)
9625 delete arg1;
9626 }
9627 return resultobj;
9628fail:
9629 {
9630 if (temp1)
9631 delete arg1;
9632 }
9633 return NULL;
b2df227b
RD
9634}
9635
9636
0085ce49
RD
9637SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9638 PyObject *resultobj = 0;
9639 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9640 void *argp1 = 0 ;
9641 int res1 = 0 ;
9642 PyObject *swig_obj[1] ;
9643
9644 if (!args) SWIG_fail;
9645 swig_obj[0] = args;
9646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9647 if (!SWIG_IsOK(res1)) {
9648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9649 }
9650 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9651 {
9652 PyThreadState* __tstate = wxPyBeginAllowThreads();
9653 delete arg1;
4276dc52 9654
0085ce49
RD
9655 wxPyEndAllowThreads(__tstate);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 resultobj = SWIG_Py_Void();
9659 return resultobj;
9660fail:
9661 return NULL;
4276dc52
RD
9662}
9663
9664
0085ce49
RD
9665SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9666 PyObject *resultobj = 0;
9667 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9668 bool result;
9669 void *argp1 = 0 ;
9670 int res1 = 0 ;
9671 PyObject *swig_obj[1] ;
9672
9673 if (!args) SWIG_fail;
9674 swig_obj[0] = args;
9675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9676 if (!SWIG_IsOK(res1)) {
9677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9678 }
9679 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9680 {
9681 PyThreadState* __tstate = wxPyBeginAllowThreads();
9682 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9683 wxPyEndAllowThreads(__tstate);
9684 if (PyErr_Occurred()) SWIG_fail;
9685 }
9686 {
9687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9688 }
9689 return resultobj;
9690fail:
9691 return NULL;
9692}
9693
9694
9695SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9696 PyObject *resultobj = 0;
9697 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9698 wxString *arg2 = 0 ;
9699 void *argp1 = 0 ;
9700 int res1 = 0 ;
9701 bool temp2 = false ;
9702 PyObject * obj0 = 0 ;
9703 PyObject * obj1 = 0 ;
9704 char * kwnames[] = {
9705 (char *) "self",(char *) "filename", NULL
9706 };
9707
9708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9710 if (!SWIG_IsOK(res1)) {
9711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9712 }
9713 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9714 {
9715 arg2 = wxString_in_helper(obj1);
9716 if (arg2 == NULL) SWIG_fail;
9717 temp2 = true;
9718 }
9719 {
9720 PyThreadState* __tstate = wxPyBeginAllowThreads();
9721 (arg1)->SetFileName((wxString const &)*arg2);
9722 wxPyEndAllowThreads(__tstate);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 resultobj = SWIG_Py_Void();
9726 {
9727 if (temp2)
9728 delete arg2;
9729 }
9730 return resultobj;
9731fail:
9732 {
9733 if (temp2)
9734 delete arg2;
9735 }
9736 return NULL;
4276dc52
RD
9737}
9738
9739
0085ce49
RD
9740SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9741 PyObject *resultobj = 0;
9742 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9743 wxString *result = 0 ;
9744 void *argp1 = 0 ;
9745 int res1 = 0 ;
9746 PyObject *swig_obj[1] ;
9747
9748 if (!args) SWIG_fail;
9749 swig_obj[0] = args;
9750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9751 if (!SWIG_IsOK(res1)) {
9752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9753 }
9754 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9755 {
9756 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9757 {
0085ce49
RD
9758 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9759 result = (wxString *) &_result_ref;
093d3ff1 9760 }
0085ce49
RD
9761 wxPyEndAllowThreads(__tstate);
9762 if (PyErr_Occurred()) SWIG_fail;
9763 }
9764 {
9765#if wxUSE_UNICODE
9766 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9767#else
9768 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9769#endif
9770 }
9771 return resultobj;
9772fail:
9773 return NULL;
9774}
9775
9776
9777SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9778 PyObject *resultobj = 0;
9779 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9780 int arg2 ;
9781 void *argp1 = 0 ;
9782 int res1 = 0 ;
9783 int val2 ;
9784 int ecode2 = 0 ;
9785 PyObject * obj0 = 0 ;
9786 PyObject * obj1 = 0 ;
9787 char * kwnames[] = {
9788 (char *) "self",(char *) "num", NULL
9789 };
9790
9791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9793 if (!SWIG_IsOK(res1)) {
9794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9795 }
9796 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9797 ecode2 = SWIG_AsVal_int(obj1, &val2);
9798 if (!SWIG_IsOK(ecode2)) {
9799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9800 }
9801 arg2 = static_cast< int >(val2);
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 wxIconLocation_SetIndex(arg1,arg2);
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 resultobj = SWIG_Py_Void();
9809 return resultobj;
9810fail:
9811 return NULL;
d14a1e28
RD
9812}
9813
9814
0085ce49
RD
9815SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9816 PyObject *resultobj = 0;
9817 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9818 int result;
9819 void *argp1 = 0 ;
9820 int res1 = 0 ;
9821 PyObject *swig_obj[1] ;
9822
9823 if (!args) SWIG_fail;
9824 swig_obj[0] = args;
9825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9826 if (!SWIG_IsOK(res1)) {
9827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9828 }
9829 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9830 {
9831 PyThreadState* __tstate = wxPyBeginAllowThreads();
9832 result = (int)wxIconLocation_GetIndex(arg1);
9833 wxPyEndAllowThreads(__tstate);
9834 if (PyErr_Occurred()) SWIG_fail;
9835 }
9836 resultobj = SWIG_From_int(static_cast< int >(result));
9837 return resultobj;
9838fail:
9839 return NULL;
d14a1e28
RD
9840}
9841
9842
0085ce49
RD
9843SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9844 PyObject *obj;
9845 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9846 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9847 return SWIG_Py_Void();
d14a1e28
RD
9848}
9849
0085ce49
RD
9850SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9851 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9852}
9853
0085ce49
RD
9854SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9855 PyObject *resultobj = 0;
9856 wxIconBundle *result = 0 ;
9857
9858 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9859 {
9860 PyThreadState* __tstate = wxPyBeginAllowThreads();
9861 result = (wxIconBundle *)new wxIconBundle();
9862 wxPyEndAllowThreads(__tstate);
9863 if (PyErr_Occurred()) SWIG_fail;
9864 }
9865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9866 return resultobj;
9867fail:
9868 return NULL;
9869}
9870
9871
9872SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9873 PyObject *resultobj = 0;
9874 wxString *arg1 = 0 ;
9875 long arg2 ;
9876 wxIconBundle *result = 0 ;
9877 bool temp1 = false ;
9878 long val2 ;
9879 int ecode2 = 0 ;
9880 PyObject * obj0 = 0 ;
9881 PyObject * obj1 = 0 ;
9882 char * kwnames[] = {
9883 (char *) "file",(char *) "type", NULL
9884 };
9885
9886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9887 {
9888 arg1 = wxString_in_helper(obj0);
9889 if (arg1 == NULL) SWIG_fail;
9890 temp1 = true;
9891 }
9892 ecode2 = SWIG_AsVal_long(obj1, &val2);
9893 if (!SWIG_IsOK(ecode2)) {
9894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9895 }
9896 arg2 = static_cast< long >(val2);
9897 {
9898 PyThreadState* __tstate = wxPyBeginAllowThreads();
9899 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9900 wxPyEndAllowThreads(__tstate);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 }
9903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9904 {
9905 if (temp1)
9906 delete arg1;
9907 }
9908 return resultobj;
9909fail:
9910 {
9911 if (temp1)
9912 delete arg1;
9913 }
9914 return NULL;
d14a1e28
RD
9915}
9916
9917
0085ce49
RD
9918SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj = 0;
9920 wxIcon *arg1 = 0 ;
9921 wxIconBundle *result = 0 ;
9922 void *argp1 = 0 ;
9923 int res1 = 0 ;
9924 PyObject * obj0 = 0 ;
9925 char * kwnames[] = {
9926 (char *) "icon", NULL
9927 };
9928
9929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9930 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9931 if (!SWIG_IsOK(res1)) {
9932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9933 }
9934 if (!argp1) {
9935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9936 }
9937 arg1 = reinterpret_cast< wxIcon * >(argp1);
9938 {
9939 PyThreadState* __tstate = wxPyBeginAllowThreads();
9940 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9941 wxPyEndAllowThreads(__tstate);
9942 if (PyErr_Occurred()) SWIG_fail;
9943 }
9944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9945 return resultobj;
9946fail:
9947 return NULL;
d14a1e28
RD
9948}
9949
9950
0085ce49
RD
9951SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9952 PyObject *resultobj = 0;
9953 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9954 void *argp1 = 0 ;
9955 int res1 = 0 ;
9956 PyObject *swig_obj[1] ;
9957
9958 if (!args) SWIG_fail;
9959 swig_obj[0] = args;
9960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9961 if (!SWIG_IsOK(res1)) {
9962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9963 }
9964 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9965 {
9966 PyThreadState* __tstate = wxPyBeginAllowThreads();
9967 delete arg1;
d14a1e28 9968
0085ce49
RD
9969 wxPyEndAllowThreads(__tstate);
9970 if (PyErr_Occurred()) SWIG_fail;
9971 }
9972 resultobj = SWIG_Py_Void();
9973 return resultobj;
9974fail:
9975 return NULL;
9976}
9977
9978
9979SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9980 PyObject *resultobj = 0;
9981 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9982 wxIcon *arg2 = 0 ;
9983 void *argp1 = 0 ;
9984 int res1 = 0 ;
9985 void *argp2 = 0 ;
9986 int res2 = 0 ;
9987 PyObject * obj0 = 0 ;
9988 PyObject * obj1 = 0 ;
9989 char * kwnames[] = {
9990 (char *) "self",(char *) "icon", NULL
9991 };
9992
9993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9995 if (!SWIG_IsOK(res1)) {
9996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9997 }
9998 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9999 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10000 if (!SWIG_IsOK(res2)) {
10001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10002 }
10003 if (!argp2) {
10004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10005 }
10006 arg2 = reinterpret_cast< wxIcon * >(argp2);
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 (arg1)->AddIcon((wxIcon const &)*arg2);
10010 wxPyEndAllowThreads(__tstate);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 resultobj = SWIG_Py_Void();
10014 return resultobj;
10015fail:
10016 return NULL;
10017}
10018
10019
10020SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10021 PyObject *resultobj = 0;
10022 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10023 wxString *arg2 = 0 ;
10024 long arg3 ;
10025 void *argp1 = 0 ;
10026 int res1 = 0 ;
10027 bool temp2 = false ;
10028 long val3 ;
10029 int ecode3 = 0 ;
10030 PyObject * obj0 = 0 ;
10031 PyObject * obj1 = 0 ;
10032 PyObject * obj2 = 0 ;
10033 char * kwnames[] = {
10034 (char *) "self",(char *) "file",(char *) "type", NULL
10035 };
10036
10037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10039 if (!SWIG_IsOK(res1)) {
10040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10041 }
10042 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10043 {
10044 arg2 = wxString_in_helper(obj1);
10045 if (arg2 == NULL) SWIG_fail;
10046 temp2 = true;
10047 }
10048 ecode3 = SWIG_AsVal_long(obj2, &val3);
10049 if (!SWIG_IsOK(ecode3)) {
10050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10051 }
10052 arg3 = static_cast< long >(val3);
10053 {
10054 PyThreadState* __tstate = wxPyBeginAllowThreads();
10055 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10056 wxPyEndAllowThreads(__tstate);
10057 if (PyErr_Occurred()) SWIG_fail;
10058 }
10059 resultobj = SWIG_Py_Void();
10060 {
10061 if (temp2)
10062 delete arg2;
10063 }
10064 return resultobj;
10065fail:
10066 {
10067 if (temp2)
10068 delete arg2;
10069 }
10070 return NULL;
10071}
10072
10073
10074SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10075 PyObject *resultobj = 0;
10076 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10077 wxSize *arg2 = 0 ;
10078 wxIcon *result = 0 ;
10079 void *argp1 = 0 ;
10080 int res1 = 0 ;
10081 wxSize temp2 ;
10082 PyObject * obj0 = 0 ;
10083 PyObject * obj1 = 0 ;
10084 char * kwnames[] = {
10085 (char *) "self",(char *) "size", NULL
10086 };
10087
10088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10090 if (!SWIG_IsOK(res1)) {
10091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10092 }
10093 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10094 {
10095 arg2 = &temp2;
10096 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10097 }
10098 {
10099 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 10100 {
0085ce49
RD
10101 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10102 result = (wxIcon *) &_result_ref;
d14a1e28 10103 }
0085ce49
RD
10104 wxPyEndAllowThreads(__tstate);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 {
10108 wxIcon* resultptr = new wxIcon(*result);
10109 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10110 }
10111 return resultobj;
10112fail:
10113 return NULL;
10114}
10115
10116
10117SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10118 PyObject *obj;
10119 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10120 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10121 return SWIG_Py_Void();
10122}
10123
10124SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10125 return SWIG_Python_InitShadowInstance(args);
10126}
10127
10128SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10129 PyObject *resultobj = 0;
10130 wxString *arg1 = 0 ;
10131 long arg2 ;
10132 int arg3 = (int) 0 ;
10133 int arg4 = (int) 0 ;
10134 wxCursor *result = 0 ;
10135 bool temp1 = false ;
10136 long val2 ;
10137 int ecode2 = 0 ;
10138 int val3 ;
10139 int ecode3 = 0 ;
10140 int val4 ;
10141 int ecode4 = 0 ;
10142 PyObject * obj0 = 0 ;
10143 PyObject * obj1 = 0 ;
10144 PyObject * obj2 = 0 ;
10145 PyObject * obj3 = 0 ;
10146 char * kwnames[] = {
10147 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10148 };
10149
10150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10151 {
10152 arg1 = wxString_in_helper(obj0);
10153 if (arg1 == NULL) SWIG_fail;
10154 temp1 = true;
10155 }
10156 ecode2 = SWIG_AsVal_long(obj1, &val2);
10157 if (!SWIG_IsOK(ecode2)) {
10158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10159 }
10160 arg2 = static_cast< long >(val2);
10161 if (obj2) {
10162 ecode3 = SWIG_AsVal_int(obj2, &val3);
10163 if (!SWIG_IsOK(ecode3)) {
10164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10165 }
10166 arg3 = static_cast< int >(val3);
10167 }
10168 if (obj3) {
10169 ecode4 = SWIG_AsVal_int(obj3, &val4);
10170 if (!SWIG_IsOK(ecode4)) {
10171 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10172 }
10173 arg4 = static_cast< int >(val4);
10174 }
10175 {
10176 if (!wxPyCheckForApp()) SWIG_fail;
10177 PyThreadState* __tstate = wxPyBeginAllowThreads();
10178 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10179 wxPyEndAllowThreads(__tstate);
10180 if (PyErr_Occurred()) SWIG_fail;
10181 }
10182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10183 {
10184 if (temp1)
10185 delete arg1;
10186 }
10187 return resultobj;
10188fail:
10189 {
10190 if (temp1)
10191 delete arg1;
10192 }
10193 return NULL;
d14a1e28
RD
10194}
10195
10196
0085ce49
RD
10197SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10198 PyObject *resultobj = 0;
10199 wxCursor *arg1 = (wxCursor *) 0 ;
10200 void *argp1 = 0 ;
10201 int res1 = 0 ;
10202 PyObject *swig_obj[1] ;
10203
10204 if (!args) SWIG_fail;
10205 swig_obj[0] = args;
10206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10207 if (!SWIG_IsOK(res1)) {
10208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10209 }
10210 arg1 = reinterpret_cast< wxCursor * >(argp1);
10211 {
10212 PyThreadState* __tstate = wxPyBeginAllowThreads();
10213 delete arg1;
093d3ff1 10214
0085ce49
RD
10215 wxPyEndAllowThreads(__tstate);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 }
10218 resultobj = SWIG_Py_Void();
10219 return resultobj;
10220fail:
10221 return NULL;
10222}
10223
10224
10225SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10226 PyObject *resultobj = 0;
10227 int arg1 ;
10228 wxCursor *result = 0 ;
10229 int val1 ;
10230 int ecode1 = 0 ;
10231 PyObject * obj0 = 0 ;
10232 char * kwnames[] = {
10233 (char *) "id", NULL
10234 };
10235
10236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10237 ecode1 = SWIG_AsVal_int(obj0, &val1);
10238 if (!SWIG_IsOK(ecode1)) {
10239 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10240 }
10241 arg1 = static_cast< int >(val1);
10242 {
10243 if (!wxPyCheckForApp()) SWIG_fail;
10244 PyThreadState* __tstate = wxPyBeginAllowThreads();
10245 result = (wxCursor *)new wxCursor(arg1);
10246 wxPyEndAllowThreads(__tstate);
10247 if (PyErr_Occurred()) SWIG_fail;
10248 }
10249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10250 return resultobj;
10251fail:
10252 return NULL;
10253}
10254
10255
10256SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10257 PyObject *resultobj = 0;
10258 wxImage *arg1 = 0 ;
10259 wxCursor *result = 0 ;
10260 void *argp1 = 0 ;
10261 int res1 = 0 ;
10262 PyObject * obj0 = 0 ;
10263 char * kwnames[] = {
10264 (char *) "image", NULL
10265 };
10266
10267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10268 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10269 if (!SWIG_IsOK(res1)) {
10270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10271 }
10272 if (!argp1) {
10273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10274 }
10275 arg1 = reinterpret_cast< wxImage * >(argp1);
10276 {
10277 if (!wxPyCheckForApp()) SWIG_fail;
10278 PyThreadState* __tstate = wxPyBeginAllowThreads();
10279 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10280 wxPyEndAllowThreads(__tstate);
10281 if (PyErr_Occurred()) SWIG_fail;
10282 }
10283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10284 return resultobj;
10285fail:
10286 return NULL;
093d3ff1
RD
10287}
10288
10289
b39fe951 10290SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
10291 PyObject *resultobj = 0;
10292 wxCursor *arg1 = (wxCursor *) 0 ;
10293 bool result;
10294 void *argp1 = 0 ;
10295 int res1 = 0 ;
10296 PyObject *swig_obj[1] ;
10297
10298 if (!args) SWIG_fail;
10299 swig_obj[0] = args;
10300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10301 if (!SWIG_IsOK(res1)) {
b39fe951 10302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
0085ce49
RD
10303 }
10304 arg1 = reinterpret_cast< wxCursor * >(argp1);
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10307 result = (bool)(arg1)->IsOk();
0085ce49
RD
10308 wxPyEndAllowThreads(__tstate);
10309 if (PyErr_Occurred()) SWIG_fail;
10310 }
10311 {
10312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10313 }
10314 return resultobj;
10315fail:
10316 return NULL;
10317}
10318
10319
10320SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10321 PyObject *obj;
10322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10323 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10324 return SWIG_Py_Void();
10325}
10326
10327SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10328 return SWIG_Python_InitShadowInstance(args);
10329}
10330
10331SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10332 PyObject *resultobj = 0;
10333 int arg1 = (int) 0 ;
10334 int arg2 = (int) 0 ;
10335 int arg3 = (int) 0 ;
10336 int arg4 = (int) 0 ;
10337 wxRegion *result = 0 ;
10338 int val1 ;
10339 int ecode1 = 0 ;
10340 int val2 ;
10341 int ecode2 = 0 ;
10342 int val3 ;
10343 int ecode3 = 0 ;
10344 int val4 ;
10345 int ecode4 = 0 ;
10346 PyObject * obj0 = 0 ;
10347 PyObject * obj1 = 0 ;
10348 PyObject * obj2 = 0 ;
10349 PyObject * obj3 = 0 ;
10350 char * kwnames[] = {
10351 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10352 };
10353
10354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10355 if (obj0) {
10356 ecode1 = SWIG_AsVal_int(obj0, &val1);
10357 if (!SWIG_IsOK(ecode1)) {
10358 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10359 }
10360 arg1 = static_cast< int >(val1);
10361 }
10362 if (obj1) {
10363 ecode2 = SWIG_AsVal_int(obj1, &val2);
10364 if (!SWIG_IsOK(ecode2)) {
10365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10366 }
10367 arg2 = static_cast< int >(val2);
10368 }
10369 if (obj2) {
10370 ecode3 = SWIG_AsVal_int(obj2, &val3);
10371 if (!SWIG_IsOK(ecode3)) {
10372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10373 }
10374 arg3 = static_cast< int >(val3);
10375 }
10376 if (obj3) {
10377 ecode4 = SWIG_AsVal_int(obj3, &val4);
10378 if (!SWIG_IsOK(ecode4)) {
10379 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10380 }
10381 arg4 = static_cast< int >(val4);
10382 }
10383 {
10384 if (!wxPyCheckForApp()) SWIG_fail;
10385 PyThreadState* __tstate = wxPyBeginAllowThreads();
10386 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10387 wxPyEndAllowThreads(__tstate);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10391 return resultobj;
10392fail:
10393 return NULL;
10394}
10395
10396
10397SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10398 PyObject *resultobj = 0;
10399 wxBitmap *arg1 = 0 ;
10400 wxRegion *result = 0 ;
10401 void *argp1 = 0 ;
10402 int res1 = 0 ;
10403 PyObject * obj0 = 0 ;
10404 char * kwnames[] = {
10405 (char *) "bmp", NULL
10406 };
10407
10408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10409 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10410 if (!SWIG_IsOK(res1)) {
10411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10412 }
10413 if (!argp1) {
10414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10415 }
10416 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10417 {
10418 if (!wxPyCheckForApp()) SWIG_fail;
10419 PyThreadState* __tstate = wxPyBeginAllowThreads();
10420 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10421 wxPyEndAllowThreads(__tstate);
10422 if (PyErr_Occurred()) SWIG_fail;
10423 }
10424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10425 return resultobj;
10426fail:
10427 return NULL;
10428}
10429
10430
10431SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10432 PyObject *resultobj = 0;
10433 wxBitmap *arg1 = 0 ;
10434 wxColour *arg2 = 0 ;
10435 int arg3 = (int) 0 ;
10436 wxRegion *result = 0 ;
10437 void *argp1 = 0 ;
10438 int res1 = 0 ;
10439 wxColour temp2 ;
10440 int val3 ;
10441 int ecode3 = 0 ;
10442 PyObject * obj0 = 0 ;
10443 PyObject * obj1 = 0 ;
10444 PyObject * obj2 = 0 ;
10445 char * kwnames[] = {
10446 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10447 };
10448
10449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10450 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10451 if (!SWIG_IsOK(res1)) {
10452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10453 }
10454 if (!argp1) {
10455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10456 }
10457 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10458 {
10459 arg2 = &temp2;
10460 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10461 }
10462 if (obj2) {
10463 ecode3 = SWIG_AsVal_int(obj2, &val3);
10464 if (!SWIG_IsOK(ecode3)) {
10465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10466 }
10467 arg3 = static_cast< int >(val3);
10468 }
10469 {
10470 if (!wxPyCheckForApp()) SWIG_fail;
10471 PyThreadState* __tstate = wxPyBeginAllowThreads();
10472 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10477 return resultobj;
10478fail:
10479 return NULL;
10480}
10481
10482
10483SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10484 PyObject *resultobj = 0;
10485 int arg1 ;
10486 wxPoint *arg2 = (wxPoint *) 0 ;
10487 int arg3 = (int) wxWINDING_RULE ;
10488 wxRegion *result = 0 ;
10489 int val3 ;
10490 int ecode3 = 0 ;
10491 PyObject * obj0 = 0 ;
10492 PyObject * obj1 = 0 ;
10493 char * kwnames[] = {
10494 (char *) "points",(char *) "fillStyle", NULL
10495 };
10496
10497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10498 {
10499 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10500 if (arg2 == NULL) SWIG_fail;
10501 }
10502 if (obj1) {
10503 ecode3 = SWIG_AsVal_int(obj1, &val3);
10504 if (!SWIG_IsOK(ecode3)) {
10505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10506 }
10507 arg3 = static_cast< int >(val3);
10508 }
10509 {
10510 if (!wxPyCheckForApp()) SWIG_fail;
10511 PyThreadState* __tstate = wxPyBeginAllowThreads();
10512 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10513 wxPyEndAllowThreads(__tstate);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 }
10516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10517 {
10518 if (arg2) delete [] arg2;
10519 }
10520 return resultobj;
10521fail:
10522 {
10523 if (arg2) delete [] arg2;
10524 }
10525 return NULL;
d14a1e28
RD
10526}
10527
10528
0085ce49
RD
10529SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10530 PyObject *resultobj = 0;
10531 wxRegion *arg1 = (wxRegion *) 0 ;
10532 void *argp1 = 0 ;
10533 int res1 = 0 ;
10534 PyObject *swig_obj[1] ;
10535
10536 if (!args) SWIG_fail;
10537 swig_obj[0] = args;
10538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10539 if (!SWIG_IsOK(res1)) {
10540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10541 }
10542 arg1 = reinterpret_cast< wxRegion * >(argp1);
10543 {
10544 PyThreadState* __tstate = wxPyBeginAllowThreads();
10545 delete arg1;
d14a1e28 10546
0085ce49
RD
10547 wxPyEndAllowThreads(__tstate);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 resultobj = SWIG_Py_Void();
10551 return resultobj;
10552fail:
10553 return NULL;
d14a1e28
RD
10554}
10555
10556
0085ce49
RD
10557SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10558 PyObject *resultobj = 0;
10559 wxRegion *arg1 = (wxRegion *) 0 ;
10560 void *argp1 = 0 ;
10561 int res1 = 0 ;
10562 PyObject *swig_obj[1] ;
10563
10564 if (!args) SWIG_fail;
10565 swig_obj[0] = args;
10566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10567 if (!SWIG_IsOK(res1)) {
10568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10569 }
10570 arg1 = reinterpret_cast< wxRegion * >(argp1);
10571 {
10572 PyThreadState* __tstate = wxPyBeginAllowThreads();
10573 (arg1)->Clear();
10574 wxPyEndAllowThreads(__tstate);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 resultobj = SWIG_Py_Void();
10578 return resultobj;
10579fail:
10580 return NULL;
10581}
10582
10583
10584SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10585 PyObject *resultobj = 0;
10586 wxRegion *arg1 = (wxRegion *) 0 ;
10587 int arg2 ;
10588 int arg3 ;
10589 bool result;
10590 void *argp1 = 0 ;
10591 int res1 = 0 ;
10592 int val2 ;
10593 int ecode2 = 0 ;
10594 int val3 ;
10595 int ecode3 = 0 ;
10596 PyObject * obj0 = 0 ;
10597 PyObject * obj1 = 0 ;
10598 PyObject * obj2 = 0 ;
10599 char * kwnames[] = {
10600 (char *) "self",(char *) "x",(char *) "y", NULL
10601 };
10602
10603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10605 if (!SWIG_IsOK(res1)) {
10606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10607 }
10608 arg1 = reinterpret_cast< wxRegion * >(argp1);
10609 ecode2 = SWIG_AsVal_int(obj1, &val2);
10610 if (!SWIG_IsOK(ecode2)) {
10611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10612 }
10613 arg2 = static_cast< int >(val2);
10614 ecode3 = SWIG_AsVal_int(obj2, &val3);
10615 if (!SWIG_IsOK(ecode3)) {
10616 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10617 }
10618 arg3 = static_cast< int >(val3);
10619 {
10620 PyThreadState* __tstate = wxPyBeginAllowThreads();
10621 result = (bool)(arg1)->Offset(arg2,arg3);
10622 wxPyEndAllowThreads(__tstate);
10623 if (PyErr_Occurred()) SWIG_fail;
10624 }
10625 {
10626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10627 }
10628 return resultobj;
10629fail:
10630 return NULL;
10631}
10632
10633
10634SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj = 0;
10636 wxRegion *arg1 = (wxRegion *) 0 ;
10637 int arg2 ;
10638 int arg3 ;
10639 wxRegionContain result;
10640 void *argp1 = 0 ;
10641 int res1 = 0 ;
10642 int val2 ;
10643 int ecode2 = 0 ;
10644 int val3 ;
10645 int ecode3 = 0 ;
10646 PyObject * obj0 = 0 ;
10647 PyObject * obj1 = 0 ;
10648 PyObject * obj2 = 0 ;
10649 char * kwnames[] = {
10650 (char *) "self",(char *) "x",(char *) "y", NULL
10651 };
10652
10653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10655 if (!SWIG_IsOK(res1)) {
10656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10657 }
10658 arg1 = reinterpret_cast< wxRegion * >(argp1);
10659 ecode2 = SWIG_AsVal_int(obj1, &val2);
10660 if (!SWIG_IsOK(ecode2)) {
10661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10662 }
10663 arg2 = static_cast< int >(val2);
10664 ecode3 = SWIG_AsVal_int(obj2, &val3);
10665 if (!SWIG_IsOK(ecode3)) {
10666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10667 }
10668 arg3 = static_cast< int >(val3);
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
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_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj = 0;
10684 wxRegion *arg1 = (wxRegion *) 0 ;
10685 wxPoint *arg2 = 0 ;
10686 wxRegionContain result;
10687 void *argp1 = 0 ;
10688 int res1 = 0 ;
10689 wxPoint temp2 ;
10690 PyObject * obj0 = 0 ;
10691 PyObject * obj1 = 0 ;
10692 char * kwnames[] = {
10693 (char *) "self",(char *) "pt", NULL
10694 };
10695
10696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",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_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10700 }
10701 arg1 = reinterpret_cast< wxRegion * >(argp1);
10702 {
10703 arg2 = &temp2;
10704 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10705 }
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 result = (wxRegionContain)(arg1)->Contains((wxPoint 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_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj = 0;
10721 wxRegion *arg1 = (wxRegion *) 0 ;
10722 wxRect *arg2 = 0 ;
10723 wxRegionContain result;
10724 void *argp1 = 0 ;
10725 int res1 = 0 ;
10726 wxRect temp2 ;
10727 PyObject * obj0 = 0 ;
10728 PyObject * obj1 = 0 ;
10729 char * kwnames[] = {
10730 (char *) "self",(char *) "rect", NULL
10731 };
10732
10733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10735 if (!SWIG_IsOK(res1)) {
10736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10737 }
10738 arg1 = reinterpret_cast< wxRegion * >(argp1);
10739 {
10740 arg2 = &temp2;
10741 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10742 }
10743 {
10744 PyThreadState* __tstate = wxPyBeginAllowThreads();
10745 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10746 wxPyEndAllowThreads(__tstate);
10747 if (PyErr_Occurred()) SWIG_fail;
10748 }
10749 resultobj = SWIG_From_int(static_cast< int >(result));
10750 return resultobj;
10751fail:
10752 return NULL;
10753}
10754
10755
10756SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10757 PyObject *resultobj = 0;
10758 wxRegion *arg1 = (wxRegion *) 0 ;
10759 int arg2 ;
10760 int arg3 ;
10761 int arg4 ;
10762 int arg5 ;
10763 wxRegionContain result;
10764 void *argp1 = 0 ;
10765 int res1 = 0 ;
10766 int val2 ;
10767 int ecode2 = 0 ;
10768 int val3 ;
10769 int ecode3 = 0 ;
10770 int val4 ;
10771 int ecode4 = 0 ;
10772 int val5 ;
10773 int ecode5 = 0 ;
10774 PyObject * obj0 = 0 ;
10775 PyObject * obj1 = 0 ;
10776 PyObject * obj2 = 0 ;
10777 PyObject * obj3 = 0 ;
10778 PyObject * obj4 = 0 ;
10779 char * kwnames[] = {
10780 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10781 };
10782
10783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10785 if (!SWIG_IsOK(res1)) {
10786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10787 }
10788 arg1 = reinterpret_cast< wxRegion * >(argp1);
10789 ecode2 = SWIG_AsVal_int(obj1, &val2);
10790 if (!SWIG_IsOK(ecode2)) {
10791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10792 }
10793 arg2 = static_cast< int >(val2);
10794 ecode3 = SWIG_AsVal_int(obj2, &val3);
10795 if (!SWIG_IsOK(ecode3)) {
10796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10797 }
10798 arg3 = static_cast< int >(val3);
10799 ecode4 = SWIG_AsVal_int(obj3, &val4);
10800 if (!SWIG_IsOK(ecode4)) {
10801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10802 }
10803 arg4 = static_cast< int >(val4);
10804 ecode5 = SWIG_AsVal_int(obj4, &val5);
10805 if (!SWIG_IsOK(ecode5)) {
10806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10807 }
10808 arg5 = static_cast< int >(val5);
10809 {
10810 PyThreadState* __tstate = wxPyBeginAllowThreads();
10811 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10812 wxPyEndAllowThreads(__tstate);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 }
10815 resultobj = SWIG_From_int(static_cast< int >(result));
10816 return resultobj;
10817fail:
10818 return NULL;
d14a1e28
RD
10819}
10820
10821
0085ce49
RD
10822SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10823 PyObject *resultobj = 0;
10824 wxRegion *arg1 = (wxRegion *) 0 ;
10825 wxRect result;
10826 void *argp1 = 0 ;
10827 int res1 = 0 ;
10828 PyObject *swig_obj[1] ;
10829
10830 if (!args) SWIG_fail;
10831 swig_obj[0] = args;
10832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10833 if (!SWIG_IsOK(res1)) {
10834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10835 }
10836 arg1 = reinterpret_cast< wxRegion * >(argp1);
10837 {
10838 PyThreadState* __tstate = wxPyBeginAllowThreads();
10839 result = (arg1)->GetBox();
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10844 return resultobj;
10845fail:
10846 return NULL;
10847}
10848
10849
10850SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10851 PyObject *resultobj = 0;
10852 wxRegion *arg1 = (wxRegion *) 0 ;
10853 int arg2 ;
10854 int arg3 ;
10855 int arg4 ;
10856 int arg5 ;
10857 bool result;
10858 void *argp1 = 0 ;
10859 int res1 = 0 ;
10860 int val2 ;
10861 int ecode2 = 0 ;
10862 int val3 ;
10863 int ecode3 = 0 ;
10864 int val4 ;
10865 int ecode4 = 0 ;
10866 int val5 ;
10867 int ecode5 = 0 ;
10868 PyObject * obj0 = 0 ;
10869 PyObject * obj1 = 0 ;
10870 PyObject * obj2 = 0 ;
10871 PyObject * obj3 = 0 ;
10872 PyObject * obj4 = 0 ;
10873 char * kwnames[] = {
10874 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10875 };
10876
10877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10879 if (!SWIG_IsOK(res1)) {
10880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10881 }
10882 arg1 = reinterpret_cast< wxRegion * >(argp1);
10883 ecode2 = SWIG_AsVal_int(obj1, &val2);
10884 if (!SWIG_IsOK(ecode2)) {
10885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10886 }
10887 arg2 = static_cast< int >(val2);
10888 ecode3 = SWIG_AsVal_int(obj2, &val3);
10889 if (!SWIG_IsOK(ecode3)) {
10890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10891 }
10892 arg3 = static_cast< int >(val3);
10893 ecode4 = SWIG_AsVal_int(obj3, &val4);
10894 if (!SWIG_IsOK(ecode4)) {
10895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10896 }
10897 arg4 = static_cast< int >(val4);
10898 ecode5 = SWIG_AsVal_int(obj4, &val5);
10899 if (!SWIG_IsOK(ecode5)) {
10900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10901 }
10902 arg5 = static_cast< int >(val5);
10903 {
10904 PyThreadState* __tstate = wxPyBeginAllowThreads();
10905 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10906 wxPyEndAllowThreads(__tstate);
10907 if (PyErr_Occurred()) SWIG_fail;
10908 }
10909 {
10910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10911 }
10912 return resultobj;
10913fail:
10914 return NULL;
10915}
10916
10917
10918SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10919 PyObject *resultobj = 0;
10920 wxRegion *arg1 = (wxRegion *) 0 ;
10921 wxRect *arg2 = 0 ;
10922 bool result;
10923 void *argp1 = 0 ;
10924 int res1 = 0 ;
10925 wxRect temp2 ;
10926 PyObject * obj0 = 0 ;
10927 PyObject * obj1 = 0 ;
10928 char * kwnames[] = {
10929 (char *) "self",(char *) "rect", NULL
10930 };
10931
10932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10934 if (!SWIG_IsOK(res1)) {
10935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10936 }
10937 arg1 = reinterpret_cast< wxRegion * >(argp1);
10938 {
10939 arg2 = &temp2;
10940 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10941 }
10942 {
10943 PyThreadState* __tstate = wxPyBeginAllowThreads();
10944 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10945 wxPyEndAllowThreads(__tstate);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 }
10948 {
10949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10950 }
10951 return resultobj;
10952fail:
10953 return NULL;
10954}
10955
10956
10957SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10958 PyObject *resultobj = 0;
10959 wxRegion *arg1 = (wxRegion *) 0 ;
10960 wxRegion *arg2 = 0 ;
10961 bool result;
10962 void *argp1 = 0 ;
10963 int res1 = 0 ;
10964 void *argp2 = 0 ;
10965 int res2 = 0 ;
10966 PyObject * obj0 = 0 ;
10967 PyObject * obj1 = 0 ;
10968 char * kwnames[] = {
10969 (char *) "self",(char *) "region", NULL
10970 };
10971
10972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10974 if (!SWIG_IsOK(res1)) {
10975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10976 }
10977 arg1 = reinterpret_cast< wxRegion * >(argp1);
10978 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10979 if (!SWIG_IsOK(res2)) {
10980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10981 }
10982 if (!argp2) {
10983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10984 }
10985 arg2 = reinterpret_cast< wxRegion * >(argp2);
10986 {
10987 PyThreadState* __tstate = wxPyBeginAllowThreads();
10988 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 {
10993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10994 }
10995 return resultobj;
10996fail:
10997 return NULL;
d14a1e28
RD
10998}
10999
11000
0085ce49
RD
11001SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11002 PyObject *resultobj = 0;
11003 wxRegion *arg1 = (wxRegion *) 0 ;
11004 bool result;
11005 void *argp1 = 0 ;
11006 int res1 = 0 ;
11007 PyObject *swig_obj[1] ;
11008
11009 if (!args) SWIG_fail;
11010 swig_obj[0] = args;
11011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11012 if (!SWIG_IsOK(res1)) {
11013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11014 }
11015 arg1 = reinterpret_cast< wxRegion * >(argp1);
11016 {
11017 PyThreadState* __tstate = wxPyBeginAllowThreads();
11018 result = (bool)(arg1)->IsEmpty();
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 {
11023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11024 }
11025 return resultobj;
11026fail:
11027 return NULL;
11028}
11029
11030
f5263701
RD
11031SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11032 PyObject *resultobj = 0;
11033 wxRegion *arg1 = (wxRegion *) 0 ;
11034 wxRegion *arg2 = 0 ;
11035 bool result;
11036 void *argp1 = 0 ;
11037 int res1 = 0 ;
11038 void *argp2 = 0 ;
11039 int res2 = 0 ;
11040 PyObject * obj0 = 0 ;
11041 PyObject * obj1 = 0 ;
11042 char * kwnames[] = {
11043 (char *) "self",(char *) "region", NULL
11044 };
11045
11046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11048 if (!SWIG_IsOK(res1)) {
11049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11050 }
11051 arg1 = reinterpret_cast< wxRegion * >(argp1);
11052 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11053 if (!SWIG_IsOK(res2)) {
11054 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11055 }
11056 if (!argp2) {
11057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11058 }
11059 arg2 = reinterpret_cast< wxRegion * >(argp2);
11060 {
11061 PyThreadState* __tstate = wxPyBeginAllowThreads();
11062 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11063 wxPyEndAllowThreads(__tstate);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 }
11066 {
11067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11068 }
11069 return resultobj;
11070fail:
11071 return NULL;
11072}
11073
11074
0085ce49
RD
11075SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11076 PyObject *resultobj = 0;
11077 wxRegion *arg1 = (wxRegion *) 0 ;
11078 int arg2 ;
11079 int arg3 ;
11080 int arg4 ;
11081 int arg5 ;
11082 bool result;
11083 void *argp1 = 0 ;
11084 int res1 = 0 ;
11085 int val2 ;
11086 int ecode2 = 0 ;
11087 int val3 ;
11088 int ecode3 = 0 ;
11089 int val4 ;
11090 int ecode4 = 0 ;
11091 int val5 ;
11092 int ecode5 = 0 ;
11093 PyObject * obj0 = 0 ;
11094 PyObject * obj1 = 0 ;
11095 PyObject * obj2 = 0 ;
11096 PyObject * obj3 = 0 ;
11097 PyObject * obj4 = 0 ;
11098 char * kwnames[] = {
11099 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11100 };
11101
11102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11104 if (!SWIG_IsOK(res1)) {
11105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11106 }
11107 arg1 = reinterpret_cast< wxRegion * >(argp1);
11108 ecode2 = SWIG_AsVal_int(obj1, &val2);
11109 if (!SWIG_IsOK(ecode2)) {
11110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11111 }
11112 arg2 = static_cast< int >(val2);
11113 ecode3 = SWIG_AsVal_int(obj2, &val3);
11114 if (!SWIG_IsOK(ecode3)) {
11115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11116 }
11117 arg3 = static_cast< int >(val3);
11118 ecode4 = SWIG_AsVal_int(obj3, &val4);
11119 if (!SWIG_IsOK(ecode4)) {
11120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11121 }
11122 arg4 = static_cast< int >(val4);
11123 ecode5 = SWIG_AsVal_int(obj4, &val5);
11124 if (!SWIG_IsOK(ecode5)) {
11125 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11126 }
11127 arg5 = static_cast< int >(val5);
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 {
11135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11136 }
11137 return resultobj;
11138fail:
11139 return NULL;
11140}
11141
11142
11143SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj = 0;
11145 wxRegion *arg1 = (wxRegion *) 0 ;
11146 wxRect *arg2 = 0 ;
11147 bool result;
11148 void *argp1 = 0 ;
11149 int res1 = 0 ;
11150 wxRect temp2 ;
11151 PyObject * obj0 = 0 ;
11152 PyObject * obj1 = 0 ;
11153 char * kwnames[] = {
11154 (char *) "self",(char *) "rect", NULL
11155 };
11156
11157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11159 if (!SWIG_IsOK(res1)) {
11160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11161 }
11162 arg1 = reinterpret_cast< wxRegion * >(argp1);
11163 {
11164 arg2 = &temp2;
11165 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11166 }
11167 {
11168 PyThreadState* __tstate = wxPyBeginAllowThreads();
11169 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11170 wxPyEndAllowThreads(__tstate);
11171 if (PyErr_Occurred()) SWIG_fail;
11172 }
11173 {
11174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11175 }
11176 return resultobj;
11177fail:
11178 return NULL;
11179}
11180
11181
11182SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11183 PyObject *resultobj = 0;
11184 wxRegion *arg1 = (wxRegion *) 0 ;
11185 wxRegion *arg2 = 0 ;
11186 bool result;
11187 void *argp1 = 0 ;
11188 int res1 = 0 ;
11189 void *argp2 = 0 ;
11190 int res2 = 0 ;
11191 PyObject * obj0 = 0 ;
11192 PyObject * obj1 = 0 ;
11193 char * kwnames[] = {
11194 (char *) "self",(char *) "region", NULL
11195 };
11196
11197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11199 if (!SWIG_IsOK(res1)) {
11200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11201 }
11202 arg1 = reinterpret_cast< wxRegion * >(argp1);
11203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11204 if (!SWIG_IsOK(res2)) {
11205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11206 }
11207 if (!argp2) {
11208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11209 }
11210 arg2 = reinterpret_cast< wxRegion * >(argp2);
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
11213 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11214 wxPyEndAllowThreads(__tstate);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 }
11217 {
11218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11219 }
11220 return resultobj;
11221fail:
11222 return NULL;
11223}
11224
11225
11226SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11227 PyObject *resultobj = 0;
11228 wxRegion *arg1 = (wxRegion *) 0 ;
11229 int arg2 ;
11230 int arg3 ;
11231 int arg4 ;
11232 int arg5 ;
11233 bool result;
11234 void *argp1 = 0 ;
11235 int res1 = 0 ;
11236 int val2 ;
11237 int ecode2 = 0 ;
11238 int val3 ;
11239 int ecode3 = 0 ;
11240 int val4 ;
11241 int ecode4 = 0 ;
11242 int val5 ;
11243 int ecode5 = 0 ;
11244 PyObject * obj0 = 0 ;
11245 PyObject * obj1 = 0 ;
11246 PyObject * obj2 = 0 ;
11247 PyObject * obj3 = 0 ;
11248 PyObject * obj4 = 0 ;
11249 char * kwnames[] = {
11250 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11251 };
11252
11253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11255 if (!SWIG_IsOK(res1)) {
11256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11257 }
11258 arg1 = reinterpret_cast< wxRegion * >(argp1);
11259 ecode2 = SWIG_AsVal_int(obj1, &val2);
11260 if (!SWIG_IsOK(ecode2)) {
11261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11262 }
11263 arg2 = static_cast< int >(val2);
11264 ecode3 = SWIG_AsVal_int(obj2, &val3);
11265 if (!SWIG_IsOK(ecode3)) {
11266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11267 }
11268 arg3 = static_cast< int >(val3);
11269 ecode4 = SWIG_AsVal_int(obj3, &val4);
11270 if (!SWIG_IsOK(ecode4)) {
11271 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11272 }
11273 arg4 = static_cast< int >(val4);
11274 ecode5 = SWIG_AsVal_int(obj4, &val5);
11275 if (!SWIG_IsOK(ecode5)) {
11276 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11277 }
11278 arg5 = static_cast< int >(val5);
11279 {
11280 PyThreadState* __tstate = wxPyBeginAllowThreads();
11281 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11282 wxPyEndAllowThreads(__tstate);
11283 if (PyErr_Occurred()) SWIG_fail;
11284 }
11285 {
11286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11287 }
11288 return resultobj;
11289fail:
11290 return NULL;
11291}
11292
11293
11294SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11295 PyObject *resultobj = 0;
11296 wxRegion *arg1 = (wxRegion *) 0 ;
11297 wxRect *arg2 = 0 ;
11298 bool result;
11299 void *argp1 = 0 ;
11300 int res1 = 0 ;
11301 wxRect temp2 ;
11302 PyObject * obj0 = 0 ;
11303 PyObject * obj1 = 0 ;
11304 char * kwnames[] = {
11305 (char *) "self",(char *) "rect", NULL
11306 };
11307
11308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11310 if (!SWIG_IsOK(res1)) {
11311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11312 }
11313 arg1 = reinterpret_cast< wxRegion * >(argp1);
11314 {
11315 arg2 = &temp2;
11316 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11317 }
11318 {
11319 PyThreadState* __tstate = wxPyBeginAllowThreads();
11320 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11321 wxPyEndAllowThreads(__tstate);
11322 if (PyErr_Occurred()) SWIG_fail;
11323 }
11324 {
11325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11326 }
11327 return resultobj;
11328fail:
11329 return NULL;
11330}
11331
11332
11333SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11334 PyObject *resultobj = 0;
11335 wxRegion *arg1 = (wxRegion *) 0 ;
11336 wxRegion *arg2 = 0 ;
11337 bool result;
11338 void *argp1 = 0 ;
11339 int res1 = 0 ;
11340 void *argp2 = 0 ;
11341 int res2 = 0 ;
11342 PyObject * obj0 = 0 ;
11343 PyObject * obj1 = 0 ;
11344 char * kwnames[] = {
11345 (char *) "self",(char *) "region", NULL
11346 };
11347
11348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11350 if (!SWIG_IsOK(res1)) {
11351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11352 }
11353 arg1 = reinterpret_cast< wxRegion * >(argp1);
11354 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11355 if (!SWIG_IsOK(res2)) {
11356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11357 }
11358 if (!argp2) {
11359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11360 }
11361 arg2 = reinterpret_cast< wxRegion * >(argp2);
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 {
11369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11370 }
11371 return resultobj;
11372fail:
11373 return NULL;
11374}
11375
11376
11377SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11378 PyObject *resultobj = 0;
11379 wxRegion *arg1 = (wxRegion *) 0 ;
11380 int arg2 ;
11381 int arg3 ;
11382 int arg4 ;
11383 int arg5 ;
11384 bool result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 int val2 ;
11388 int ecode2 = 0 ;
11389 int val3 ;
11390 int ecode3 = 0 ;
11391 int val4 ;
11392 int ecode4 = 0 ;
11393 int val5 ;
11394 int ecode5 = 0 ;
11395 PyObject * obj0 = 0 ;
11396 PyObject * obj1 = 0 ;
11397 PyObject * obj2 = 0 ;
11398 PyObject * obj3 = 0 ;
11399 PyObject * obj4 = 0 ;
11400 char * kwnames[] = {
11401 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11402 };
11403
11404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11406 if (!SWIG_IsOK(res1)) {
11407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11408 }
11409 arg1 = reinterpret_cast< wxRegion * >(argp1);
11410 ecode2 = SWIG_AsVal_int(obj1, &val2);
11411 if (!SWIG_IsOK(ecode2)) {
11412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11413 }
11414 arg2 = static_cast< int >(val2);
11415 ecode3 = SWIG_AsVal_int(obj2, &val3);
11416 if (!SWIG_IsOK(ecode3)) {
11417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11418 }
11419 arg3 = static_cast< int >(val3);
11420 ecode4 = SWIG_AsVal_int(obj3, &val4);
11421 if (!SWIG_IsOK(ecode4)) {
11422 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11423 }
11424 arg4 = static_cast< int >(val4);
11425 ecode5 = SWIG_AsVal_int(obj4, &val5);
11426 if (!SWIG_IsOK(ecode5)) {
11427 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11428 }
11429 arg5 = static_cast< int >(val5);
11430 {
11431 PyThreadState* __tstate = wxPyBeginAllowThreads();
11432 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11433 wxPyEndAllowThreads(__tstate);
11434 if (PyErr_Occurred()) SWIG_fail;
11435 }
11436 {
11437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11438 }
11439 return resultobj;
11440fail:
11441 return NULL;
11442}
11443
11444
11445SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11446 PyObject *resultobj = 0;
11447 wxRegion *arg1 = (wxRegion *) 0 ;
11448 wxRect *arg2 = 0 ;
11449 bool result;
11450 void *argp1 = 0 ;
11451 int res1 = 0 ;
11452 wxRect temp2 ;
11453 PyObject * obj0 = 0 ;
11454 PyObject * obj1 = 0 ;
11455 char * kwnames[] = {
11456 (char *) "self",(char *) "rect", NULL
11457 };
11458
11459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11461 if (!SWIG_IsOK(res1)) {
11462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11463 }
11464 arg1 = reinterpret_cast< wxRegion * >(argp1);
11465 {
11466 arg2 = &temp2;
11467 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11468 }
11469 {
11470 PyThreadState* __tstate = wxPyBeginAllowThreads();
11471 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11472 wxPyEndAllowThreads(__tstate);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 {
11476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11477 }
11478 return resultobj;
11479fail:
11480 return NULL;
11481}
11482
11483
11484SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11485 PyObject *resultobj = 0;
11486 wxRegion *arg1 = (wxRegion *) 0 ;
11487 wxRegion *arg2 = 0 ;
11488 bool result;
11489 void *argp1 = 0 ;
11490 int res1 = 0 ;
11491 void *argp2 = 0 ;
11492 int res2 = 0 ;
11493 PyObject * obj0 = 0 ;
11494 PyObject * obj1 = 0 ;
11495 char * kwnames[] = {
11496 (char *) "self",(char *) "region", NULL
11497 };
11498
11499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11501 if (!SWIG_IsOK(res1)) {
11502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11503 }
11504 arg1 = reinterpret_cast< wxRegion * >(argp1);
11505 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11506 if (!SWIG_IsOK(res2)) {
11507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11508 }
11509 if (!argp2) {
11510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11511 }
11512 arg2 = reinterpret_cast< wxRegion * >(argp2);
11513 {
11514 PyThreadState* __tstate = wxPyBeginAllowThreads();
11515 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11516 wxPyEndAllowThreads(__tstate);
11517 if (PyErr_Occurred()) SWIG_fail;
11518 }
11519 {
11520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11521 }
11522 return resultobj;
11523fail:
11524 return NULL;
d14a1e28
RD
11525}
11526
11527
0085ce49
RD
11528SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11529 PyObject *resultobj = 0;
11530 wxRegion *arg1 = (wxRegion *) 0 ;
11531 SwigValueWrapper<wxBitmap > result;
11532 void *argp1 = 0 ;
11533 int res1 = 0 ;
11534 PyObject *swig_obj[1] ;
11535
11536 if (!args) SWIG_fail;
11537 swig_obj[0] = args;
11538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11539 if (!SWIG_IsOK(res1)) {
11540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11541 }
11542 arg1 = reinterpret_cast< wxRegion * >(argp1);
11543 {
11544 PyThreadState* __tstate = wxPyBeginAllowThreads();
11545 result = (arg1)->ConvertToBitmap();
11546 wxPyEndAllowThreads(__tstate);
11547 if (PyErr_Occurred()) SWIG_fail;
11548 }
11549 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11550 return resultobj;
11551fail:
11552 return NULL;
11553}
11554
11555
11556SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11557 PyObject *resultobj = 0;
11558 wxRegion *arg1 = (wxRegion *) 0 ;
11559 wxBitmap *arg2 = 0 ;
11560 bool result;
11561 void *argp1 = 0 ;
11562 int res1 = 0 ;
11563 void *argp2 = 0 ;
11564 int res2 = 0 ;
11565 PyObject * obj0 = 0 ;
11566 PyObject * obj1 = 0 ;
11567 char * kwnames[] = {
11568 (char *) "self",(char *) "bmp", NULL
11569 };
11570
11571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11573 if (!SWIG_IsOK(res1)) {
11574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11575 }
11576 arg1 = reinterpret_cast< wxRegion * >(argp1);
11577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11578 if (!SWIG_IsOK(res2)) {
11579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11580 }
11581 if (!argp2) {
11582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11583 }
11584 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11585 {
11586 PyThreadState* __tstate = wxPyBeginAllowThreads();
11587 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11588 wxPyEndAllowThreads(__tstate);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
11591 {
11592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11593 }
11594 return resultobj;
11595fail:
11596 return NULL;
11597}
11598
11599
11600SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11601 PyObject *resultobj = 0;
11602 wxRegion *arg1 = (wxRegion *) 0 ;
11603 wxBitmap *arg2 = 0 ;
11604 wxColour *arg3 = 0 ;
11605 int arg4 = (int) 0 ;
11606 bool result;
11607 void *argp1 = 0 ;
11608 int res1 = 0 ;
11609 void *argp2 = 0 ;
11610 int res2 = 0 ;
11611 wxColour temp3 ;
11612 int val4 ;
11613 int ecode4 = 0 ;
11614 PyObject * obj0 = 0 ;
11615 PyObject * obj1 = 0 ;
11616 PyObject * obj2 = 0 ;
11617 PyObject * obj3 = 0 ;
11618 char * kwnames[] = {
11619 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11620 };
11621
11622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11624 if (!SWIG_IsOK(res1)) {
11625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11626 }
11627 arg1 = reinterpret_cast< wxRegion * >(argp1);
11628 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11629 if (!SWIG_IsOK(res2)) {
11630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11631 }
11632 if (!argp2) {
11633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11634 }
11635 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11636 {
11637 arg3 = &temp3;
11638 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11639 }
11640 if (obj3) {
11641 ecode4 = SWIG_AsVal_int(obj3, &val4);
11642 if (!SWIG_IsOK(ecode4)) {
11643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11644 }
11645 arg4 = static_cast< int >(val4);
11646 }
11647 {
11648 PyThreadState* __tstate = wxPyBeginAllowThreads();
11649 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11650 wxPyEndAllowThreads(__tstate);
11651 if (PyErr_Occurred()) SWIG_fail;
11652 }
11653 {
11654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11655 }
11656 return resultobj;
11657fail:
11658 return NULL;
d14a1e28
RD
11659}
11660
11661
0085ce49
RD
11662SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11663 PyObject *obj;
11664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11665 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11666 return SWIG_Py_Void();
d14a1e28
RD
11667}
11668
0085ce49
RD
11669SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11670 return SWIG_Python_InitShadowInstance(args);
11671}
d14a1e28 11672
0085ce49
RD
11673SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11674 PyObject *resultobj = 0;
11675 wxRegion *arg1 = 0 ;
11676 wxRegionIterator *result = 0 ;
11677 void *argp1 = 0 ;
11678 int res1 = 0 ;
11679 PyObject * obj0 = 0 ;
11680 char * kwnames[] = {
11681 (char *) "region", NULL
11682 };
11683
11684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11685 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11686 if (!SWIG_IsOK(res1)) {
11687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11688 }
11689 if (!argp1) {
11690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11691 }
11692 arg1 = reinterpret_cast< wxRegion * >(argp1);
11693 {
11694 if (!wxPyCheckForApp()) SWIG_fail;
11695 PyThreadState* __tstate = wxPyBeginAllowThreads();
11696 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11697 wxPyEndAllowThreads(__tstate);
11698 if (PyErr_Occurred()) SWIG_fail;
11699 }
11700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11701 return resultobj;
11702fail:
11703 return NULL;
d14a1e28
RD
11704}
11705
11706
0085ce49
RD
11707SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11708 PyObject *resultobj = 0;
11709 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11710 void *argp1 = 0 ;
11711 int res1 = 0 ;
11712 PyObject *swig_obj[1] ;
11713
11714 if (!args) SWIG_fail;
11715 swig_obj[0] = args;
11716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11717 if (!SWIG_IsOK(res1)) {
11718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11719 }
11720 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11721 {
11722 PyThreadState* __tstate = wxPyBeginAllowThreads();
11723 delete arg1;
d14a1e28 11724
0085ce49
RD
11725 wxPyEndAllowThreads(__tstate);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 resultobj = SWIG_Py_Void();
11729 return resultobj;
11730fail:
11731 return NULL;
d14a1e28
RD
11732}
11733
11734
0085ce49
RD
11735SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11736 PyObject *resultobj = 0;
11737 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11738 int result;
11739 void *argp1 = 0 ;
11740 int res1 = 0 ;
11741 PyObject *swig_obj[1] ;
11742
11743 if (!args) SWIG_fail;
11744 swig_obj[0] = args;
11745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11746 if (!SWIG_IsOK(res1)) {
11747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11748 }
11749 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11750 {
11751 PyThreadState* __tstate = wxPyBeginAllowThreads();
11752 result = (int)(arg1)->GetX();
11753 wxPyEndAllowThreads(__tstate);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 resultobj = SWIG_From_int(static_cast< int >(result));
11757 return resultobj;
11758fail:
11759 return NULL;
d14a1e28
RD
11760}
11761
11762
0085ce49
RD
11763SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11764 PyObject *resultobj = 0;
11765 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11766 int result;
11767 void *argp1 = 0 ;
11768 int res1 = 0 ;
11769 PyObject *swig_obj[1] ;
11770
11771 if (!args) SWIG_fail;
11772 swig_obj[0] = args;
11773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11774 if (!SWIG_IsOK(res1)) {
11775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11776 }
11777 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 result = (int)(arg1)->GetY();
11781 wxPyEndAllowThreads(__tstate);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 }
11784 resultobj = SWIG_From_int(static_cast< int >(result));
11785 return resultobj;
11786fail:
11787 return NULL;
d14a1e28
RD
11788}
11789
11790
0085ce49
RD
11791SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11792 PyObject *resultobj = 0;
11793 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11794 int result;
11795 void *argp1 = 0 ;
11796 int res1 = 0 ;
11797 PyObject *swig_obj[1] ;
11798
11799 if (!args) SWIG_fail;
11800 swig_obj[0] = args;
11801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11802 if (!SWIG_IsOK(res1)) {
11803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11804 }
11805 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11806 {
11807 PyThreadState* __tstate = wxPyBeginAllowThreads();
11808 result = (int)(arg1)->GetW();
11809 wxPyEndAllowThreads(__tstate);
11810 if (PyErr_Occurred()) SWIG_fail;
11811 }
11812 resultobj = SWIG_From_int(static_cast< int >(result));
11813 return resultobj;
11814fail:
11815 return NULL;
d14a1e28
RD
11816}
11817
11818
0085ce49
RD
11819SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11820 PyObject *resultobj = 0;
11821 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11822 int result;
11823 void *argp1 = 0 ;
11824 int res1 = 0 ;
11825 PyObject *swig_obj[1] ;
11826
11827 if (!args) SWIG_fail;
11828 swig_obj[0] = args;
11829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11830 if (!SWIG_IsOK(res1)) {
11831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11832 }
11833 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11834 {
11835 PyThreadState* __tstate = wxPyBeginAllowThreads();
11836 result = (int)(arg1)->GetWidth();
11837 wxPyEndAllowThreads(__tstate);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 }
11840 resultobj = SWIG_From_int(static_cast< int >(result));
11841 return resultobj;
11842fail:
11843 return NULL;
093d3ff1
RD
11844}
11845
11846
0085ce49
RD
11847SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11848 PyObject *resultobj = 0;
11849 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11850 int result;
11851 void *argp1 = 0 ;
11852 int res1 = 0 ;
11853 PyObject *swig_obj[1] ;
11854
11855 if (!args) SWIG_fail;
11856 swig_obj[0] = args;
11857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11858 if (!SWIG_IsOK(res1)) {
11859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11860 }
11861 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11862 {
11863 PyThreadState* __tstate = wxPyBeginAllowThreads();
11864 result = (int)(arg1)->GetH();
11865 wxPyEndAllowThreads(__tstate);
11866 if (PyErr_Occurred()) SWIG_fail;
11867 }
11868 resultobj = SWIG_From_int(static_cast< int >(result));
11869 return resultobj;
11870fail:
11871 return NULL;
d14a1e28
RD
11872}
11873
11874
0085ce49
RD
11875SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11876 PyObject *resultobj = 0;
11877 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11878 int result;
11879 void *argp1 = 0 ;
11880 int res1 = 0 ;
11881 PyObject *swig_obj[1] ;
11882
11883 if (!args) SWIG_fail;
11884 swig_obj[0] = args;
11885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11886 if (!SWIG_IsOK(res1)) {
11887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11888 }
11889 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11890 {
11891 PyThreadState* __tstate = wxPyBeginAllowThreads();
11892 result = (int)(arg1)->GetHeight();
11893 wxPyEndAllowThreads(__tstate);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 resultobj = SWIG_From_int(static_cast< int >(result));
11897 return resultobj;
11898fail:
11899 return NULL;
093d3ff1
RD
11900}
11901
11902
0085ce49
RD
11903SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11904 PyObject *resultobj = 0;
11905 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11906 wxRect result;
11907 void *argp1 = 0 ;
11908 int res1 = 0 ;
11909 PyObject *swig_obj[1] ;
11910
11911 if (!args) SWIG_fail;
11912 swig_obj[0] = args;
11913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11914 if (!SWIG_IsOK(res1)) {
11915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11916 }
11917 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 result = (arg1)->GetRect();
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11925 return resultobj;
11926fail:
11927 return NULL;
d14a1e28
RD
11928}
11929
11930
0085ce49
RD
11931SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11932 PyObject *resultobj = 0;
11933 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11934 bool result;
11935 void *argp1 = 0 ;
11936 int res1 = 0 ;
11937 PyObject *swig_obj[1] ;
11938
11939 if (!args) SWIG_fail;
11940 swig_obj[0] = args;
11941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11942 if (!SWIG_IsOK(res1)) {
11943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11944 }
11945 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11946 {
11947 PyThreadState* __tstate = wxPyBeginAllowThreads();
11948 result = (bool)(arg1)->HaveRects();
11949 wxPyEndAllowThreads(__tstate);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 }
11952 {
11953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11954 }
11955 return resultobj;
11956fail:
11957 return NULL;
093d3ff1
RD
11958}
11959
11960
0085ce49
RD
11961SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11962 PyObject *resultobj = 0;
11963 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11964 void *argp1 = 0 ;
11965 int res1 = 0 ;
11966 PyObject *swig_obj[1] ;
11967
11968 if (!args) SWIG_fail;
11969 swig_obj[0] = args;
11970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11971 if (!SWIG_IsOK(res1)) {
11972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11973 }
11974 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 (arg1)->Reset();
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 resultobj = SWIG_Py_Void();
11982 return resultobj;
11983fail:
11984 return NULL;
d14a1e28
RD
11985}
11986
11987
0085ce49
RD
11988SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11989 PyObject *resultobj = 0;
11990 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11991 void *argp1 = 0 ;
11992 int res1 = 0 ;
11993 PyObject *swig_obj[1] ;
11994
11995 if (!args) SWIG_fail;
11996 swig_obj[0] = args;
11997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11998 if (!SWIG_IsOK(res1)) {
11999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12000 }
12001 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 wxRegionIterator_Next(arg1);
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 resultobj = SWIG_Py_Void();
12009 return resultobj;
12010fail:
12011 return NULL;
d14a1e28
RD
12012}
12013
12014
0085ce49
RD
12015SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12016 PyObject *resultobj = 0;
12017 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12018 bool result;
12019 void *argp1 = 0 ;
12020 int res1 = 0 ;
12021 PyObject *swig_obj[1] ;
12022
12023 if (!args) SWIG_fail;
12024 swig_obj[0] = args;
12025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12026 if (!SWIG_IsOK(res1)) {
12027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12028 }
12029 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12030 {
12031 PyThreadState* __tstate = wxPyBeginAllowThreads();
12032 result = (bool)wxRegionIterator___nonzero__(arg1);
12033 wxPyEndAllowThreads(__tstate);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 }
12036 {
12037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12038 }
12039 return resultobj;
12040fail:
12041 return NULL;
d14a1e28
RD
12042}
12043
12044
0085ce49
RD
12045SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12046 PyObject *obj;
12047 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12048 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12049 return SWIG_Py_Void();
d14a1e28
RD
12050}
12051
0085ce49
RD
12052SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12053 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12054}
12055
0085ce49
RD
12056SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12057 PyObject *resultobj = 0;
12058 wxNativeFontInfo *result = 0 ;
12059
12060 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12061 {
12062 PyThreadState* __tstate = wxPyBeginAllowThreads();
12063 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12064 wxPyEndAllowThreads(__tstate);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
12067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12068 return resultobj;
12069fail:
12070 return NULL;
d14a1e28
RD
12071}
12072
12073
0085ce49
RD
12074SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12075 PyObject *resultobj = 0;
12076 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12077 void *argp1 = 0 ;
12078 int res1 = 0 ;
12079 PyObject *swig_obj[1] ;
12080
12081 if (!args) SWIG_fail;
12082 swig_obj[0] = args;
12083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12084 if (!SWIG_IsOK(res1)) {
12085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12086 }
12087 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12088 {
12089 PyThreadState* __tstate = wxPyBeginAllowThreads();
12090 delete arg1;
d14a1e28 12091
0085ce49
RD
12092 wxPyEndAllowThreads(__tstate);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 resultobj = SWIG_Py_Void();
12096 return resultobj;
12097fail:
12098 return NULL;
d14a1e28
RD
12099}
12100
12101
0085ce49
RD
12102SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12103 PyObject *resultobj = 0;
12104 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12105 void *argp1 = 0 ;
12106 int res1 = 0 ;
12107 PyObject *swig_obj[1] ;
12108
12109 if (!args) SWIG_fail;
12110 swig_obj[0] = args;
12111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12112 if (!SWIG_IsOK(res1)) {
12113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12114 }
12115 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 (arg1)->Init();
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 resultobj = SWIG_Py_Void();
12123 return resultobj;
12124fail:
12125 return NULL;
12126}
12127
12128
12129SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12130 PyObject *resultobj = 0;
12131 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12132 wxFont *arg2 = 0 ;
12133 void *argp1 = 0 ;
12134 int res1 = 0 ;
12135 void *argp2 = 0 ;
12136 int res2 = 0 ;
12137 PyObject * obj0 = 0 ;
12138 PyObject * obj1 = 0 ;
12139 char * kwnames[] = {
12140 (char *) "self",(char *) "font", NULL
12141 };
12142
12143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12145 if (!SWIG_IsOK(res1)) {
12146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12147 }
12148 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12150 if (!SWIG_IsOK(res2)) {
12151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12152 }
12153 if (!argp2) {
12154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12155 }
12156 arg2 = reinterpret_cast< wxFont * >(argp2);
12157 {
12158 PyThreadState* __tstate = wxPyBeginAllowThreads();
12159 (arg1)->InitFromFont((wxFont const &)*arg2);
12160 wxPyEndAllowThreads(__tstate);
12161 if (PyErr_Occurred()) SWIG_fail;
12162 }
12163 resultobj = SWIG_Py_Void();
12164 return resultobj;
12165fail:
12166 return NULL;
e6ffcedd
RD
12167}
12168
12169
0085ce49
RD
12170SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12171 PyObject *resultobj = 0;
12172 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12173 int result;
12174 void *argp1 = 0 ;
12175 int res1 = 0 ;
12176 PyObject *swig_obj[1] ;
12177
12178 if (!args) SWIG_fail;
12179 swig_obj[0] = args;
12180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12181 if (!SWIG_IsOK(res1)) {
12182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12183 }
12184 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12185 {
12186 PyThreadState* __tstate = wxPyBeginAllowThreads();
12187 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12188 wxPyEndAllowThreads(__tstate);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 resultobj = SWIG_From_int(static_cast< int >(result));
12192 return resultobj;
12193fail:
12194 return NULL;
d14a1e28
RD
12195}
12196
12197
0085ce49
RD
12198SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12199 PyObject *resultobj = 0;
12200 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12201 wxFontStyle result;
12202 void *argp1 = 0 ;
12203 int res1 = 0 ;
12204 PyObject *swig_obj[1] ;
12205
12206 if (!args) SWIG_fail;
12207 swig_obj[0] = args;
12208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12209 if (!SWIG_IsOK(res1)) {
12210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12211 }
12212 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12213 {
12214 PyThreadState* __tstate = wxPyBeginAllowThreads();
12215 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 resultobj = SWIG_From_int(static_cast< int >(result));
12220 return resultobj;
12221fail:
12222 return NULL;
d14a1e28
RD
12223}
12224
12225
0085ce49
RD
12226SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12227 PyObject *resultobj = 0;
12228 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12229 wxFontWeight result;
12230 void *argp1 = 0 ;
12231 int res1 = 0 ;
12232 PyObject *swig_obj[1] ;
12233
12234 if (!args) SWIG_fail;
12235 swig_obj[0] = args;
12236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12237 if (!SWIG_IsOK(res1)) {
12238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12239 }
12240 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12244 wxPyEndAllowThreads(__tstate);
12245 if (PyErr_Occurred()) SWIG_fail;
12246 }
12247 resultobj = SWIG_From_int(static_cast< int >(result));
12248 return resultobj;
12249fail:
12250 return NULL;
d14a1e28
RD
12251}
12252
12253
0085ce49
RD
12254SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12255 PyObject *resultobj = 0;
12256 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12257 bool result;
12258 void *argp1 = 0 ;
12259 int res1 = 0 ;
12260 PyObject *swig_obj[1] ;
12261
12262 if (!args) SWIG_fail;
12263 swig_obj[0] = args;
12264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12265 if (!SWIG_IsOK(res1)) {
12266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12267 }
12268 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12269 {
12270 PyThreadState* __tstate = wxPyBeginAllowThreads();
12271 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12272 wxPyEndAllowThreads(__tstate);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 }
12275 {
12276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12277 }
12278 return resultobj;
12279fail:
12280 return NULL;
d14a1e28
RD
12281}
12282
12283
0085ce49
RD
12284SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12285 PyObject *resultobj = 0;
12286 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12287 wxString result;
12288 void *argp1 = 0 ;
12289 int res1 = 0 ;
12290 PyObject *swig_obj[1] ;
12291
12292 if (!args) SWIG_fail;
12293 swig_obj[0] = args;
12294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12295 if (!SWIG_IsOK(res1)) {
12296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12297 }
12298 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12299 {
12300 PyThreadState* __tstate = wxPyBeginAllowThreads();
12301 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12302 wxPyEndAllowThreads(__tstate);
12303 if (PyErr_Occurred()) SWIG_fail;
12304 }
12305 {
12306#if wxUSE_UNICODE
12307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12308#else
12309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12310#endif
12311 }
12312 return resultobj;
12313fail:
12314 return NULL;
d14a1e28
RD
12315}
12316
12317
0085ce49
RD
12318SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12319 PyObject *resultobj = 0;
12320 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12321 wxFontFamily result;
12322 void *argp1 = 0 ;
12323 int res1 = 0 ;
12324 PyObject *swig_obj[1] ;
12325
12326 if (!args) SWIG_fail;
12327 swig_obj[0] = args;
12328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12329 if (!SWIG_IsOK(res1)) {
12330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12331 }
12332 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12333 {
12334 PyThreadState* __tstate = wxPyBeginAllowThreads();
12335 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12336 wxPyEndAllowThreads(__tstate);
12337 if (PyErr_Occurred()) SWIG_fail;
12338 }
12339 resultobj = SWIG_From_int(static_cast< int >(result));
12340 return resultobj;
12341fail:
12342 return NULL;
d14a1e28
RD
12343}
12344
12345
0085ce49
RD
12346SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12347 PyObject *resultobj = 0;
12348 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12349 wxFontEncoding result;
12350 void *argp1 = 0 ;
12351 int res1 = 0 ;
12352 PyObject *swig_obj[1] ;
12353
12354 if (!args) SWIG_fail;
12355 swig_obj[0] = args;
12356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12357 if (!SWIG_IsOK(res1)) {
12358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12359 }
12360 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12361 {
12362 PyThreadState* __tstate = wxPyBeginAllowThreads();
12363 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12364 wxPyEndAllowThreads(__tstate);
12365 if (PyErr_Occurred()) SWIG_fail;
12366 }
12367 resultobj = SWIG_From_int(static_cast< int >(result));
12368 return resultobj;
12369fail:
12370 return NULL;
12371}
12372
12373
12374SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12375 PyObject *resultobj = 0;
12376 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12377 int arg2 ;
12378 void *argp1 = 0 ;
12379 int res1 = 0 ;
12380 int val2 ;
12381 int ecode2 = 0 ;
12382 PyObject * obj0 = 0 ;
12383 PyObject * obj1 = 0 ;
12384 char * kwnames[] = {
12385 (char *) "self",(char *) "pointsize", NULL
12386 };
12387
12388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12390 if (!SWIG_IsOK(res1)) {
12391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12392 }
12393 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12394 ecode2 = SWIG_AsVal_int(obj1, &val2);
12395 if (!SWIG_IsOK(ecode2)) {
12396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12397 }
12398 arg2 = static_cast< int >(val2);
12399 {
12400 PyThreadState* __tstate = wxPyBeginAllowThreads();
12401 (arg1)->SetPointSize(arg2);
12402 wxPyEndAllowThreads(__tstate);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 resultobj = SWIG_Py_Void();
12406 return resultobj;
12407fail:
12408 return NULL;
12409}
12410
12411
12412SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12413 PyObject *resultobj = 0;
12414 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12415 wxFontStyle arg2 ;
12416 void *argp1 = 0 ;
12417 int res1 = 0 ;
12418 int val2 ;
12419 int ecode2 = 0 ;
12420 PyObject * obj0 = 0 ;
12421 PyObject * obj1 = 0 ;
12422 char * kwnames[] = {
12423 (char *) "self",(char *) "style", NULL
12424 };
12425
12426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12428 if (!SWIG_IsOK(res1)) {
12429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12430 }
12431 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12432 ecode2 = SWIG_AsVal_int(obj1, &val2);
12433 if (!SWIG_IsOK(ecode2)) {
12434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12435 }
12436 arg2 = static_cast< wxFontStyle >(val2);
12437 {
12438 PyThreadState* __tstate = wxPyBeginAllowThreads();
12439 (arg1)->SetStyle(arg2);
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 resultobj = SWIG_Py_Void();
12444 return resultobj;
12445fail:
12446 return NULL;
12447}
12448
12449
12450SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12451 PyObject *resultobj = 0;
12452 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12453 wxFontWeight arg2 ;
12454 void *argp1 = 0 ;
12455 int res1 = 0 ;
12456 int val2 ;
12457 int ecode2 = 0 ;
12458 PyObject * obj0 = 0 ;
12459 PyObject * obj1 = 0 ;
12460 char * kwnames[] = {
12461 (char *) "self",(char *) "weight", NULL
12462 };
12463
12464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12466 if (!SWIG_IsOK(res1)) {
12467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12468 }
12469 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12470 ecode2 = SWIG_AsVal_int(obj1, &val2);
12471 if (!SWIG_IsOK(ecode2)) {
12472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12473 }
12474 arg2 = static_cast< wxFontWeight >(val2);
12475 {
12476 PyThreadState* __tstate = wxPyBeginAllowThreads();
12477 (arg1)->SetWeight(arg2);
12478 wxPyEndAllowThreads(__tstate);
12479 if (PyErr_Occurred()) SWIG_fail;
12480 }
12481 resultobj = SWIG_Py_Void();
12482 return resultobj;
12483fail:
12484 return NULL;
12485}
12486
12487
12488SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12489 PyObject *resultobj = 0;
12490 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12491 bool arg2 ;
12492 void *argp1 = 0 ;
12493 int res1 = 0 ;
12494 bool val2 ;
12495 int ecode2 = 0 ;
12496 PyObject * obj0 = 0 ;
12497 PyObject * obj1 = 0 ;
12498 char * kwnames[] = {
12499 (char *) "self",(char *) "underlined", NULL
12500 };
12501
12502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",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_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12506 }
12507 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12508 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12509 if (!SWIG_IsOK(ecode2)) {
12510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12511 }
12512 arg2 = static_cast< bool >(val2);
12513 {
12514 PyThreadState* __tstate = wxPyBeginAllowThreads();
12515 (arg1)->SetUnderlined(arg2);
12516 wxPyEndAllowThreads(__tstate);
12517 if (PyErr_Occurred()) SWIG_fail;
12518 }
12519 resultobj = SWIG_Py_Void();
12520 return resultobj;
12521fail:
12522 return NULL;
12523}
12524
12525
12526SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12527 PyObject *resultobj = 0;
12528 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12529 wxString arg2 ;
704eda0c 12530 bool result;
0085ce49
RD
12531 void *argp1 = 0 ;
12532 int res1 = 0 ;
12533 PyObject * obj0 = 0 ;
12534 PyObject * obj1 = 0 ;
12535 char * kwnames[] = {
12536 (char *) "self",(char *) "facename", NULL
12537 };
12538
12539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12541 if (!SWIG_IsOK(res1)) {
12542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12543 }
12544 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12545 {
12546 wxString* sptr = wxString_in_helper(obj1);
12547 if (sptr == NULL) SWIG_fail;
12548 arg2 = *sptr;
12549 delete sptr;
12550 }
12551 {
12552 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12553 result = (bool)(arg1)->SetFaceName(arg2);
0085ce49
RD
12554 wxPyEndAllowThreads(__tstate);
12555 if (PyErr_Occurred()) SWIG_fail;
12556 }
704eda0c
RD
12557 {
12558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12559 }
0085ce49
RD
12560 return resultobj;
12561fail:
12562 return NULL;
12563}
12564
12565
12566SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12567 PyObject *resultobj = 0;
12568 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12569 wxFontFamily arg2 ;
12570 void *argp1 = 0 ;
12571 int res1 = 0 ;
12572 int val2 ;
12573 int ecode2 = 0 ;
12574 PyObject * obj0 = 0 ;
12575 PyObject * obj1 = 0 ;
12576 char * kwnames[] = {
12577 (char *) "self",(char *) "family", NULL
12578 };
12579
12580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12582 if (!SWIG_IsOK(res1)) {
12583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12584 }
12585 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12586 ecode2 = SWIG_AsVal_int(obj1, &val2);
12587 if (!SWIG_IsOK(ecode2)) {
12588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12589 }
12590 arg2 = static_cast< wxFontFamily >(val2);
12591 {
12592 PyThreadState* __tstate = wxPyBeginAllowThreads();
12593 (arg1)->SetFamily(arg2);
12594 wxPyEndAllowThreads(__tstate);
12595 if (PyErr_Occurred()) SWIG_fail;
12596 }
12597 resultobj = SWIG_Py_Void();
12598 return resultobj;
12599fail:
12600 return NULL;
12601}
12602
12603
12604SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12605 PyObject *resultobj = 0;
12606 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12607 wxFontEncoding arg2 ;
12608 void *argp1 = 0 ;
12609 int res1 = 0 ;
12610 int val2 ;
12611 int ecode2 = 0 ;
12612 PyObject * obj0 = 0 ;
12613 PyObject * obj1 = 0 ;
12614 char * kwnames[] = {
12615 (char *) "self",(char *) "encoding", NULL
12616 };
12617
12618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12620 if (!SWIG_IsOK(res1)) {
12621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12622 }
12623 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12624 ecode2 = SWIG_AsVal_int(obj1, &val2);
12625 if (!SWIG_IsOK(ecode2)) {
12626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12627 }
12628 arg2 = static_cast< wxFontEncoding >(val2);
12629 {
12630 PyThreadState* __tstate = wxPyBeginAllowThreads();
12631 (arg1)->SetEncoding(arg2);
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 resultobj = SWIG_Py_Void();
12636 return resultobj;
12637fail:
12638 return NULL;
12639}
12640
12641
12642SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12643 PyObject *resultobj = 0;
12644 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12645 wxString *arg2 = 0 ;
12646 bool result;
12647 void *argp1 = 0 ;
12648 int res1 = 0 ;
12649 bool temp2 = false ;
12650 PyObject * obj0 = 0 ;
12651 PyObject * obj1 = 0 ;
12652 char * kwnames[] = {
12653 (char *) "self",(char *) "s", NULL
12654 };
12655
12656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12658 if (!SWIG_IsOK(res1)) {
12659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12660 }
12661 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12662 {
12663 arg2 = wxString_in_helper(obj1);
12664 if (arg2 == NULL) SWIG_fail;
12665 temp2 = true;
12666 }
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 {
12674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12675 }
12676 {
12677 if (temp2)
12678 delete arg2;
12679 }
12680 return resultobj;
12681fail:
12682 {
12683 if (temp2)
12684 delete arg2;
12685 }
12686 return NULL;
d14a1e28
RD
12687}
12688
12689
0085ce49
RD
12690SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12691 PyObject *resultobj = 0;
12692 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12693 wxString result;
12694 void *argp1 = 0 ;
12695 int res1 = 0 ;
12696 PyObject *swig_obj[1] ;
12697
12698 if (!args) SWIG_fail;
12699 swig_obj[0] = args;
12700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12701 if (!SWIG_IsOK(res1)) {
12702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12703 }
12704 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12705 {
12706 PyThreadState* __tstate = wxPyBeginAllowThreads();
12707 result = ((wxNativeFontInfo const *)arg1)->ToString();
12708 wxPyEndAllowThreads(__tstate);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 }
12711 {
12712#if wxUSE_UNICODE
12713 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12714#else
12715 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12716#endif
12717 }
12718 return resultobj;
12719fail:
12720 return NULL;
d14a1e28
RD
12721}
12722
12723
0085ce49
RD
12724SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12725 PyObject *resultobj = 0;
12726 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12727 wxString result;
12728 void *argp1 = 0 ;
12729 int res1 = 0 ;
12730 PyObject *swig_obj[1] ;
12731
12732 if (!args) SWIG_fail;
12733 swig_obj[0] = args;
12734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12735 if (!SWIG_IsOK(res1)) {
12736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12737 }
12738 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 result = wxNativeFontInfo___str__(arg1);
12742 wxPyEndAllowThreads(__tstate);
12743 if (PyErr_Occurred()) SWIG_fail;
12744 }
12745 {
12746#if wxUSE_UNICODE
12747 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12748#else
12749 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12750#endif
12751 }
12752 return resultobj;
12753fail:
12754 return NULL;
12755}
12756
12757
12758SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12759 PyObject *resultobj = 0;
12760 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12761 wxString *arg2 = 0 ;
12762 bool result;
12763 void *argp1 = 0 ;
12764 int res1 = 0 ;
12765 bool temp2 = false ;
12766 PyObject * obj0 = 0 ;
12767 PyObject * obj1 = 0 ;
12768 char * kwnames[] = {
12769 (char *) "self",(char *) "s", NULL
12770 };
12771
12772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12774 if (!SWIG_IsOK(res1)) {
12775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12776 }
12777 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12778 {
12779 arg2 = wxString_in_helper(obj1);
12780 if (arg2 == NULL) SWIG_fail;
12781 temp2 = true;
12782 }
12783 {
12784 PyThreadState* __tstate = wxPyBeginAllowThreads();
12785 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12786 wxPyEndAllowThreads(__tstate);
12787 if (PyErr_Occurred()) SWIG_fail;
12788 }
12789 {
12790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12791 }
12792 {
12793 if (temp2)
12794 delete arg2;
12795 }
12796 return resultobj;
12797fail:
12798 {
12799 if (temp2)
12800 delete arg2;
12801 }
12802 return NULL;
d14a1e28
RD
12803}
12804
12805
0085ce49
RD
12806SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12807 PyObject *resultobj = 0;
12808 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12809 wxString result;
12810 void *argp1 = 0 ;
12811 int res1 = 0 ;
12812 PyObject *swig_obj[1] ;
12813
12814 if (!args) SWIG_fail;
12815 swig_obj[0] = args;
12816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12817 if (!SWIG_IsOK(res1)) {
12818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12819 }
12820 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12821 {
12822 PyThreadState* __tstate = wxPyBeginAllowThreads();
12823 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12824 wxPyEndAllowThreads(__tstate);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 {
12828#if wxUSE_UNICODE
12829 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12830#else
12831 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12832#endif
12833 }
12834 return resultobj;
12835fail:
12836 return NULL;
d14a1e28
RD
12837}
12838
12839
0085ce49
RD
12840SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12841 PyObject *obj;
12842 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12843 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12844 return SWIG_Py_Void();
d14a1e28
RD
12845}
12846
0085ce49
RD
12847SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12848 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12849}
12850
0085ce49
RD
12851SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12852 PyObject *resultobj = 0;
12853 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12854 wxString *arg2 = (wxString *) 0 ;
12855 void *argp1 = 0 ;
12856 int res1 = 0 ;
12857 bool temp2 = false ;
12858 PyObject *swig_obj[2] ;
12859
12860 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12864 }
12865 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12866 {
12867 arg2 = wxString_in_helper(swig_obj[1]);
12868 if (arg2 == NULL) SWIG_fail;
12869 temp2 = true;
12870 }
12871 if (arg1) (arg1)->facename = *arg2;
12872
12873 resultobj = SWIG_Py_Void();
12874 {
12875 if (temp2)
12876 delete arg2;
12877 }
12878 return resultobj;
12879fail:
12880 {
12881 if (temp2)
12882 delete arg2;
12883 }
12884 return NULL;
d14a1e28
RD
12885}
12886
12887
0085ce49
RD
12888SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12889 PyObject *resultobj = 0;
12890 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12891 wxString *result = 0 ;
12892 void *argp1 = 0 ;
12893 int res1 = 0 ;
12894 PyObject *swig_obj[1] ;
12895
12896 if (!args) SWIG_fail;
12897 swig_obj[0] = args;
12898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12899 if (!SWIG_IsOK(res1)) {
12900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12901 }
12902 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12903 result = (wxString *)& ((arg1)->facename);
12904 {
12905#if wxUSE_UNICODE
12906 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12907#else
12908 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12909#endif
12910 }
12911 return resultobj;
12912fail:
12913 return NULL;
d14a1e28
RD
12914}
12915
12916
0085ce49
RD
12917SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12918 PyObject *resultobj = 0;
12919 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12920 wxFontEncoding arg2 ;
12921 void *argp1 = 0 ;
12922 int res1 = 0 ;
12923 int val2 ;
12924 int ecode2 = 0 ;
12925 PyObject *swig_obj[2] ;
12926
12927 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12929 if (!SWIG_IsOK(res1)) {
12930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12931 }
12932 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12933 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12934 if (!SWIG_IsOK(ecode2)) {
12935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12936 }
12937 arg2 = static_cast< wxFontEncoding >(val2);
12938 if (arg1) (arg1)->encoding = arg2;
12939
12940 resultobj = SWIG_Py_Void();
12941 return resultobj;
12942fail:
12943 return NULL;
d14a1e28
RD
12944}
12945
12946
0085ce49
RD
12947SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12948 PyObject *resultobj = 0;
12949 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12950 wxFontEncoding result;
12951 void *argp1 = 0 ;
12952 int res1 = 0 ;
12953 PyObject *swig_obj[1] ;
12954
12955 if (!args) SWIG_fail;
12956 swig_obj[0] = args;
12957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12958 if (!SWIG_IsOK(res1)) {
12959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12960 }
12961 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12962 result = (wxFontEncoding) ((arg1)->encoding);
12963 resultobj = SWIG_From_int(static_cast< int >(result));
12964 return resultobj;
12965fail:
12966 return NULL;
d14a1e28
RD
12967}
12968
12969
0085ce49
RD
12970SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12971 PyObject *resultobj = 0;
12972 wxNativeEncodingInfo *result = 0 ;
12973
12974 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12975 {
12976 PyThreadState* __tstate = wxPyBeginAllowThreads();
12977 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12978 wxPyEndAllowThreads(__tstate);
12979 if (PyErr_Occurred()) SWIG_fail;
12980 }
12981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12982 return resultobj;
12983fail:
12984 return NULL;
d14a1e28
RD
12985}
12986
12987
0085ce49
RD
12988SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12989 PyObject *resultobj = 0;
12990 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12991 void *argp1 = 0 ;
12992 int res1 = 0 ;
12993 PyObject *swig_obj[1] ;
12994
12995 if (!args) SWIG_fail;
12996 swig_obj[0] = args;
12997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12998 if (!SWIG_IsOK(res1)) {
12999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13000 }
13001 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13002 {
13003 PyThreadState* __tstate = wxPyBeginAllowThreads();
13004 delete arg1;
d14a1e28 13005
0085ce49
RD
13006 wxPyEndAllowThreads(__tstate);
13007 if (PyErr_Occurred()) SWIG_fail;
13008 }
13009 resultobj = SWIG_Py_Void();
13010 return resultobj;
13011fail:
13012 return NULL;
13013}
13014
13015
13016SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13017 PyObject *resultobj = 0;
13018 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13019 wxString *arg2 = 0 ;
13020 bool result;
13021 void *argp1 = 0 ;
13022 int res1 = 0 ;
13023 bool temp2 = false ;
13024 PyObject * obj0 = 0 ;
13025 PyObject * obj1 = 0 ;
13026 char * kwnames[] = {
13027 (char *) "self",(char *) "s", NULL
13028 };
13029
13030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13032 if (!SWIG_IsOK(res1)) {
13033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13034 }
13035 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13036 {
13037 arg2 = wxString_in_helper(obj1);
13038 if (arg2 == NULL) SWIG_fail;
13039 temp2 = true;
13040 }
13041 {
13042 PyThreadState* __tstate = wxPyBeginAllowThreads();
13043 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13044 wxPyEndAllowThreads(__tstate);
13045 if (PyErr_Occurred()) SWIG_fail;
13046 }
13047 {
13048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13049 }
13050 {
13051 if (temp2)
13052 delete arg2;
13053 }
13054 return resultobj;
13055fail:
13056 {
13057 if (temp2)
13058 delete arg2;
13059 }
13060 return NULL;
d14a1e28
RD
13061}
13062
13063
0085ce49
RD
13064SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13065 PyObject *resultobj = 0;
13066 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13067 wxString result;
13068 void *argp1 = 0 ;
13069 int res1 = 0 ;
13070 PyObject *swig_obj[1] ;
13071
13072 if (!args) SWIG_fail;
13073 swig_obj[0] = args;
13074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13075 if (!SWIG_IsOK(res1)) {
13076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13077 }
13078 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13079 {
13080 PyThreadState* __tstate = wxPyBeginAllowThreads();
13081 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13082 wxPyEndAllowThreads(__tstate);
13083 if (PyErr_Occurred()) SWIG_fail;
13084 }
13085 {
13086#if wxUSE_UNICODE
13087 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13088#else
13089 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13090#endif
13091 }
13092 return resultobj;
13093fail:
13094 return NULL;
d14a1e28
RD
13095}
13096
13097
0085ce49
RD
13098SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13099 PyObject *obj;
13100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13101 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13102 return SWIG_Py_Void();
d14a1e28
RD
13103}
13104
0085ce49
RD
13105SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13106 return SWIG_Python_InitShadowInstance(args);
13107}
d14a1e28 13108
0085ce49
RD
13109SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13110 PyObject *resultobj = 0;
13111 wxFontEncoding arg1 ;
13112 wxNativeEncodingInfo *result = 0 ;
13113 int val1 ;
13114 int ecode1 = 0 ;
13115 PyObject * obj0 = 0 ;
13116 char * kwnames[] = {
13117 (char *) "encoding", NULL
13118 };
13119
13120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13121 ecode1 = SWIG_AsVal_int(obj0, &val1);
13122 if (!SWIG_IsOK(ecode1)) {
13123 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13124 }
13125 arg1 = static_cast< wxFontEncoding >(val1);
13126 {
13127 PyThreadState* __tstate = wxPyBeginAllowThreads();
13128 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13129 wxPyEndAllowThreads(__tstate);
13130 if (PyErr_Occurred()) SWIG_fail;
13131 }
13132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13133 return resultobj;
13134fail:
13135 return NULL;
13136}
13137
13138
13139SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13140 PyObject *resultobj = 0;
13141 wxNativeEncodingInfo *arg1 = 0 ;
13142 bool result;
13143 void *argp1 = 0 ;
13144 int res1 = 0 ;
13145 PyObject * obj0 = 0 ;
13146 char * kwnames[] = {
13147 (char *) "info", NULL
13148 };
13149
13150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13151 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13152 if (!SWIG_IsOK(res1)) {
13153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13154 }
13155 if (!argp1) {
13156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13157 }
13158 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13159 {
13160 PyThreadState* __tstate = wxPyBeginAllowThreads();
13161 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13162 wxPyEndAllowThreads(__tstate);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 {
13166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13167 }
13168 return resultobj;
13169fail:
13170 return NULL;
d14a1e28
RD
13171}
13172
13173
0085ce49
RD
13174SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13175 PyObject *resultobj = 0;
13176 wxFontMapper *result = 0 ;
13177
13178 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13179 {
13180 PyThreadState* __tstate = wxPyBeginAllowThreads();
13181 result = (wxFontMapper *)new wxFontMapper();
13182 wxPyEndAllowThreads(__tstate);
13183 if (PyErr_Occurred()) SWIG_fail;
13184 }
13185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13186 return resultobj;
13187fail:
13188 return NULL;
d14a1e28
RD
13189}
13190
13191
0085ce49
RD
13192SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13193 PyObject *resultobj = 0;
13194 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13195 void *argp1 = 0 ;
13196 int res1 = 0 ;
13197 PyObject *swig_obj[1] ;
13198
13199 if (!args) SWIG_fail;
13200 swig_obj[0] = args;
13201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13202 if (!SWIG_IsOK(res1)) {
13203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13204 }
13205 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 delete arg1;
d14a1e28 13209
0085ce49
RD
13210 wxPyEndAllowThreads(__tstate);
13211 if (PyErr_Occurred()) SWIG_fail;
13212 }
13213 resultobj = SWIG_Py_Void();
13214 return resultobj;
13215fail:
13216 return NULL;
d14a1e28
RD
13217}
13218
13219
0085ce49
RD
13220SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13221 PyObject *resultobj = 0;
13222 wxFontMapper *result = 0 ;
13223
13224 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 result = (wxFontMapper *)wxFontMapper::Get();
13228 wxPyEndAllowThreads(__tstate);
13229 if (PyErr_Occurred()) SWIG_fail;
13230 }
13231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13232 return resultobj;
13233fail:
13234 return NULL;
13235}
13236
13237
13238SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13239 PyObject *resultobj = 0;
13240 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13241 wxFontMapper *result = 0 ;
13242 void *argp1 = 0 ;
13243 int res1 = 0 ;
13244 PyObject * obj0 = 0 ;
13245 char * kwnames[] = {
13246 (char *) "mapper", NULL
13247 };
13248
13249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) 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_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13253 }
13254 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13262 return resultobj;
13263fail:
13264 return NULL;
13265}
13266
13267
13268SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13269 PyObject *resultobj = 0;
13270 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13271 wxString *arg2 = 0 ;
13272 bool arg3 = (bool) true ;
13273 wxFontEncoding result;
13274 void *argp1 = 0 ;
13275 int res1 = 0 ;
13276 bool temp2 = false ;
13277 bool val3 ;
13278 int ecode3 = 0 ;
13279 PyObject * obj0 = 0 ;
13280 PyObject * obj1 = 0 ;
13281 PyObject * obj2 = 0 ;
13282 char * kwnames[] = {
13283 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13284 };
13285
13286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13288 if (!SWIG_IsOK(res1)) {
13289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13290 }
13291 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13292 {
13293 arg2 = wxString_in_helper(obj1);
13294 if (arg2 == NULL) SWIG_fail;
13295 temp2 = true;
13296 }
13297 if (obj2) {
13298 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13299 if (!SWIG_IsOK(ecode3)) {
13300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13301 }
13302 arg3 = static_cast< bool >(val3);
13303 }
13304 {
13305 PyThreadState* __tstate = wxPyBeginAllowThreads();
13306 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13307 wxPyEndAllowThreads(__tstate);
13308 if (PyErr_Occurred()) SWIG_fail;
13309 }
13310 resultobj = SWIG_From_int(static_cast< int >(result));
13311 {
13312 if (temp2)
13313 delete arg2;
13314 }
13315 return resultobj;
13316fail:
13317 {
13318 if (temp2)
13319 delete arg2;
13320 }
13321 return NULL;
e6ffcedd
RD
13322}
13323
13324
0085ce49
RD
13325SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13326 PyObject *resultobj = 0;
13327 size_t result;
13328
13329 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13330 {
13331 PyThreadState* __tstate = wxPyBeginAllowThreads();
13332 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13333 wxPyEndAllowThreads(__tstate);
13334 if (PyErr_Occurred()) SWIG_fail;
13335 }
13336 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13337 return resultobj;
13338fail:
13339 return NULL;
13340}
13341
13342
13343SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13344 PyObject *resultobj = 0;
13345 size_t arg1 ;
13346 wxFontEncoding result;
13347 size_t val1 ;
13348 int ecode1 = 0 ;
13349 PyObject * obj0 = 0 ;
13350 char * kwnames[] = {
13351 (char *) "n", NULL
13352 };
13353
13354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13355 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13356 if (!SWIG_IsOK(ecode1)) {
13357 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13358 }
13359 arg1 = static_cast< size_t >(val1);
13360 {
13361 PyThreadState* __tstate = wxPyBeginAllowThreads();
13362 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13363 wxPyEndAllowThreads(__tstate);
13364 if (PyErr_Occurred()) SWIG_fail;
13365 }
13366 resultobj = SWIG_From_int(static_cast< int >(result));
13367 return resultobj;
13368fail:
13369 return NULL;
13370}
13371
13372
13373SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13374 PyObject *resultobj = 0;
13375 wxFontEncoding arg1 ;
13376 wxString result;
13377 int val1 ;
13378 int ecode1 = 0 ;
13379 PyObject * obj0 = 0 ;
13380 char * kwnames[] = {
13381 (char *) "encoding", NULL
13382 };
13383
13384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13385 ecode1 = SWIG_AsVal_int(obj0, &val1);
13386 if (!SWIG_IsOK(ecode1)) {
13387 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13388 }
13389 arg1 = static_cast< wxFontEncoding >(val1);
13390 {
13391 PyThreadState* __tstate = wxPyBeginAllowThreads();
13392 result = wxFontMapper::GetEncodingName(arg1);
13393 wxPyEndAllowThreads(__tstate);
13394 if (PyErr_Occurred()) SWIG_fail;
13395 }
13396 {
13397#if wxUSE_UNICODE
13398 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13399#else
13400 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13401#endif
13402 }
13403 return resultobj;
13404fail:
13405 return NULL;
d14a1e28
RD
13406}
13407
13408
0085ce49
RD
13409SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13410 PyObject *resultobj = 0;
13411 wxFontEncoding arg1 ;
13412 wxString result;
13413 int val1 ;
13414 int ecode1 = 0 ;
13415 PyObject * obj0 = 0 ;
13416 char * kwnames[] = {
13417 (char *) "encoding", NULL
13418 };
13419
13420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13421 ecode1 = SWIG_AsVal_int(obj0, &val1);
13422 if (!SWIG_IsOK(ecode1)) {
13423 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13424 }
13425 arg1 = static_cast< wxFontEncoding >(val1);
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 result = wxFontMapper::GetEncodingDescription(arg1);
13429 wxPyEndAllowThreads(__tstate);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 }
13432 {
13433#if wxUSE_UNICODE
13434 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13435#else
13436 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13437#endif
13438 }
13439 return resultobj;
13440fail:
13441 return NULL;
d14a1e28
RD
13442}
13443
13444
0085ce49
RD
13445SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13446 PyObject *resultobj = 0;
13447 wxString *arg1 = 0 ;
13448 wxFontEncoding result;
13449 bool temp1 = false ;
13450 PyObject * obj0 = 0 ;
13451 char * kwnames[] = {
13452 (char *) "name", NULL
13453 };
13454
13455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13456 {
13457 arg1 = wxString_in_helper(obj0);
13458 if (arg1 == NULL) SWIG_fail;
13459 temp1 = true;
13460 }
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 resultobj = SWIG_From_int(static_cast< int >(result));
13468 {
13469 if (temp1)
13470 delete arg1;
13471 }
13472 return resultobj;
13473fail:
13474 {
13475 if (temp1)
13476 delete arg1;
13477 }
13478 return NULL;
d14a1e28
RD
13479}
13480
13481
0085ce49
RD
13482SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13483 PyObject *resultobj = 0;
13484 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13485 wxString *arg2 = 0 ;
13486 void *argp1 = 0 ;
13487 int res1 = 0 ;
13488 bool temp2 = false ;
13489 PyObject * obj0 = 0 ;
13490 PyObject * obj1 = 0 ;
13491 char * kwnames[] = {
13492 (char *) "self",(char *) "prefix", NULL
13493 };
13494
13495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13497 if (!SWIG_IsOK(res1)) {
13498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13499 }
13500 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13501 {
13502 arg2 = wxString_in_helper(obj1);
13503 if (arg2 == NULL) SWIG_fail;
13504 temp2 = true;
13505 }
13506 {
13507 PyThreadState* __tstate = wxPyBeginAllowThreads();
13508 (arg1)->SetConfigPath((wxString const &)*arg2);
13509 wxPyEndAllowThreads(__tstate);
13510 if (PyErr_Occurred()) SWIG_fail;
13511 }
13512 resultobj = SWIG_Py_Void();
13513 {
13514 if (temp2)
13515 delete arg2;
13516 }
13517 return resultobj;
13518fail:
13519 {
13520 if (temp2)
13521 delete arg2;
13522 }
13523 return NULL;
d14a1e28
RD
13524}
13525
13526
0085ce49
RD
13527SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13528 PyObject *resultobj = 0;
13529 wxString result;
13530
13531 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13532 {
13533 PyThreadState* __tstate = wxPyBeginAllowThreads();
13534 result = wxFontMapper::GetDefaultConfigPath();
13535 wxPyEndAllowThreads(__tstate);
13536 if (PyErr_Occurred()) SWIG_fail;
13537 }
13538 {
13539#if wxUSE_UNICODE
13540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13541#else
13542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13543#endif
13544 }
13545 return resultobj;
13546fail:
13547 return NULL;
13548}
13549
13550
13551SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13552 PyObject *resultobj = 0;
13553 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13554 wxFontEncoding arg2 ;
13555 wxString const &arg3_defvalue = wxPyEmptyString ;
13556 wxString *arg3 = (wxString *) &arg3_defvalue ;
13557 bool arg4 = (bool) true ;
13558 PyObject *result = 0 ;
13559 void *argp1 = 0 ;
13560 int res1 = 0 ;
13561 int val2 ;
13562 int ecode2 = 0 ;
13563 bool temp3 = false ;
13564 bool val4 ;
13565 int ecode4 = 0 ;
13566 PyObject * obj0 = 0 ;
13567 PyObject * obj1 = 0 ;
13568 PyObject * obj2 = 0 ;
13569 PyObject * obj3 = 0 ;
13570 char * kwnames[] = {
13571 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13572 };
13573
13574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13576 if (!SWIG_IsOK(res1)) {
13577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13578 }
13579 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13580 ecode2 = SWIG_AsVal_int(obj1, &val2);
13581 if (!SWIG_IsOK(ecode2)) {
13582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13583 }
13584 arg2 = static_cast< wxFontEncoding >(val2);
13585 if (obj2) {
093d3ff1 13586 {
0085ce49
RD
13587 arg3 = wxString_in_helper(obj2);
13588 if (arg3 == NULL) SWIG_fail;
13589 temp3 = true;
093d3ff1 13590 }
0085ce49
RD
13591 }
13592 if (obj3) {
13593 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13594 if (!SWIG_IsOK(ecode4)) {
13595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13596 }
13597 arg4 = static_cast< bool >(val4);
13598 }
13599 {
13600 PyThreadState* __tstate = wxPyBeginAllowThreads();
13601 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13602 wxPyEndAllowThreads(__tstate);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 }
13605 resultobj = result;
13606 {
13607 if (temp3)
13608 delete arg3;
13609 }
13610 return resultobj;
13611fail:
13612 {
13613 if (temp3)
13614 delete arg3;
13615 }
13616 return NULL;
13617}
13618
13619
13620SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13621 PyObject *resultobj = 0;
13622 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13623 wxFontEncoding arg2 ;
13624 wxString const &arg3_defvalue = wxPyEmptyString ;
13625 wxString *arg3 = (wxString *) &arg3_defvalue ;
13626 bool result;
13627 void *argp1 = 0 ;
13628 int res1 = 0 ;
13629 int val2 ;
13630 int ecode2 = 0 ;
13631 bool temp3 = false ;
13632 PyObject * obj0 = 0 ;
13633 PyObject * obj1 = 0 ;
13634 PyObject * obj2 = 0 ;
13635 char * kwnames[] = {
13636 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13637 };
13638
13639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13641 if (!SWIG_IsOK(res1)) {
13642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13643 }
13644 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13645 ecode2 = SWIG_AsVal_int(obj1, &val2);
13646 if (!SWIG_IsOK(ecode2)) {
13647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13648 }
13649 arg2 = static_cast< wxFontEncoding >(val2);
13650 if (obj2) {
d14a1e28 13651 {
0085ce49
RD
13652 arg3 = wxString_in_helper(obj2);
13653 if (arg3 == NULL) SWIG_fail;
13654 temp3 = true;
d14a1e28 13655 }
0085ce49
RD
13656 }
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13660 wxPyEndAllowThreads(__tstate);
13661 if (PyErr_Occurred()) SWIG_fail;
13662 }
13663 {
13664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13665 }
13666 {
13667 if (temp3)
13668 delete arg3;
13669 }
13670 return resultobj;
13671fail:
13672 {
13673 if (temp3)
13674 delete arg3;
13675 }
13676 return NULL;
13677}
13678
13679
13680SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj = 0;
13682 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13683 wxWindow *arg2 = (wxWindow *) 0 ;
13684 void *argp1 = 0 ;
13685 int res1 = 0 ;
13686 void *argp2 = 0 ;
13687 int res2 = 0 ;
13688 PyObject * obj0 = 0 ;
13689 PyObject * obj1 = 0 ;
13690 char * kwnames[] = {
13691 (char *) "self",(char *) "parent", NULL
13692 };
13693
13694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",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_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13698 }
13699 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13701 if (!SWIG_IsOK(res2)) {
13702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13703 }
13704 arg2 = reinterpret_cast< wxWindow * >(argp2);
13705 {
13706 PyThreadState* __tstate = wxPyBeginAllowThreads();
13707 (arg1)->SetDialogParent(arg2);
13708 wxPyEndAllowThreads(__tstate);
13709 if (PyErr_Occurred()) SWIG_fail;
13710 }
13711 resultobj = SWIG_Py_Void();
13712 return resultobj;
13713fail:
13714 return NULL;
13715}
13716
13717
13718SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13719 PyObject *resultobj = 0;
13720 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13721 wxString *arg2 = 0 ;
13722 void *argp1 = 0 ;
13723 int res1 = 0 ;
13724 bool temp2 = false ;
13725 PyObject * obj0 = 0 ;
13726 PyObject * obj1 = 0 ;
13727 char * kwnames[] = {
13728 (char *) "self",(char *) "title", NULL
13729 };
13730
13731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13733 if (!SWIG_IsOK(res1)) {
13734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13735 }
13736 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13737 {
13738 arg2 = wxString_in_helper(obj1);
13739 if (arg2 == NULL) SWIG_fail;
13740 temp2 = true;
13741 }
13742 {
13743 PyThreadState* __tstate = wxPyBeginAllowThreads();
13744 (arg1)->SetDialogTitle((wxString const &)*arg2);
13745 wxPyEndAllowThreads(__tstate);
13746 if (PyErr_Occurred()) SWIG_fail;
13747 }
13748 resultobj = SWIG_Py_Void();
13749 {
13750 if (temp2)
13751 delete arg2;
13752 }
13753 return resultobj;
13754fail:
13755 {
13756 if (temp2)
13757 delete arg2;
13758 }
13759 return NULL;
13760}
13761
13762
13763SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13764 PyObject *obj;
13765 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13766 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13767 return SWIG_Py_Void();
13768}
13769
13770SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13771 return SWIG_Python_InitShadowInstance(args);
13772}
13773
13774SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13775 PyObject *resultobj = 0;
13776 int arg1 ;
13777 int arg2 ;
13778 int arg3 ;
13779 int arg4 ;
13780 bool arg5 = (bool) false ;
13781 wxString const &arg6_defvalue = wxPyEmptyString ;
13782 wxString *arg6 = (wxString *) &arg6_defvalue ;
13783 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13784 wxFont *result = 0 ;
13785 int val1 ;
13786 int ecode1 = 0 ;
13787 int val2 ;
13788 int ecode2 = 0 ;
13789 int val3 ;
13790 int ecode3 = 0 ;
13791 int val4 ;
13792 int ecode4 = 0 ;
13793 bool val5 ;
13794 int ecode5 = 0 ;
13795 bool temp6 = false ;
13796 int val7 ;
13797 int ecode7 = 0 ;
13798 PyObject * obj0 = 0 ;
13799 PyObject * obj1 = 0 ;
13800 PyObject * obj2 = 0 ;
13801 PyObject * obj3 = 0 ;
13802 PyObject * obj4 = 0 ;
13803 PyObject * obj5 = 0 ;
13804 PyObject * obj6 = 0 ;
13805 char * kwnames[] = {
13806 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13807 };
13808
13809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13810 ecode1 = SWIG_AsVal_int(obj0, &val1);
13811 if (!SWIG_IsOK(ecode1)) {
13812 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13813 }
13814 arg1 = static_cast< int >(val1);
13815 ecode2 = SWIG_AsVal_int(obj1, &val2);
13816 if (!SWIG_IsOK(ecode2)) {
13817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13818 }
13819 arg2 = static_cast< int >(val2);
13820 ecode3 = SWIG_AsVal_int(obj2, &val3);
13821 if (!SWIG_IsOK(ecode3)) {
13822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13823 }
13824 arg3 = static_cast< int >(val3);
13825 ecode4 = SWIG_AsVal_int(obj3, &val4);
13826 if (!SWIG_IsOK(ecode4)) {
13827 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13828 }
13829 arg4 = static_cast< int >(val4);
13830 if (obj4) {
13831 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13832 if (!SWIG_IsOK(ecode5)) {
13833 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13834 }
13835 arg5 = static_cast< bool >(val5);
13836 }
13837 if (obj5) {
093d3ff1 13838 {
0085ce49
RD
13839 arg6 = wxString_in_helper(obj5);
13840 if (arg6 == NULL) SWIG_fail;
13841 temp6 = true;
093d3ff1 13842 }
0085ce49
RD
13843 }
13844 if (obj6) {
13845 ecode7 = SWIG_AsVal_int(obj6, &val7);
13846 if (!SWIG_IsOK(ecode7)) {
13847 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13848 }
13849 arg7 = static_cast< wxFontEncoding >(val7);
13850 }
13851 {
13852 if (!wxPyCheckForApp()) SWIG_fail;
13853 PyThreadState* __tstate = wxPyBeginAllowThreads();
13854 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13855 wxPyEndAllowThreads(__tstate);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 }
13858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13859 {
13860 if (temp6)
13861 delete arg6;
13862 }
13863 return resultobj;
13864fail:
13865 {
13866 if (temp6)
13867 delete arg6;
13868 }
13869 return NULL;
d14a1e28
RD
13870}
13871
13872
0085ce49
RD
13873SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13874 PyObject *resultobj = 0;
13875 wxFont *arg1 = (wxFont *) 0 ;
13876 void *argp1 = 0 ;
13877 int res1 = 0 ;
13878 PyObject *swig_obj[1] ;
13879
13880 if (!args) SWIG_fail;
13881 swig_obj[0] = args;
13882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13883 if (!SWIG_IsOK(res1)) {
13884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13885 }
13886 arg1 = reinterpret_cast< wxFont * >(argp1);
13887 {
13888 PyThreadState* __tstate = wxPyBeginAllowThreads();
13889 delete arg1;
d14a1e28 13890
0085ce49
RD
13891 wxPyEndAllowThreads(__tstate);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 }
13894 resultobj = SWIG_Py_Void();
13895 return resultobj;
13896fail:
13897 return NULL;
13898}
13899
13900
13901SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13902 PyObject *resultobj = 0;
13903 wxNativeFontInfo *arg1 = 0 ;
13904 wxFont *result = 0 ;
13905 void *argp1 = 0 ;
13906 int res1 = 0 ;
13907 PyObject * obj0 = 0 ;
13908 char * kwnames[] = {
13909 (char *) "info", NULL
13910 };
13911
13912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13913 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13914 if (!SWIG_IsOK(res1)) {
13915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13916 }
13917 if (!argp1) {
13918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13919 }
13920 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13921 {
13922 if (!wxPyCheckForApp()) SWIG_fail;
13923 PyThreadState* __tstate = wxPyBeginAllowThreads();
13924 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13925 wxPyEndAllowThreads(__tstate);
13926 if (PyErr_Occurred()) SWIG_fail;
13927 }
13928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13929 return resultobj;
13930fail:
13931 return NULL;
d14a1e28
RD
13932}
13933
13934
0085ce49
RD
13935SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13936 PyObject *resultobj = 0;
13937 wxString *arg1 = 0 ;
13938 wxFont *result = 0 ;
13939 bool temp1 = false ;
13940 PyObject * obj0 = 0 ;
13941 char * kwnames[] = {
13942 (char *) "info", NULL
13943 };
13944
13945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13946 {
13947 arg1 = wxString_in_helper(obj0);
13948 if (arg1 == NULL) SWIG_fail;
13949 temp1 = true;
13950 }
13951 {
13952 if (!wxPyCheckForApp()) SWIG_fail;
13953 PyThreadState* __tstate = wxPyBeginAllowThreads();
13954 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13955 wxPyEndAllowThreads(__tstate);
13956 if (PyErr_Occurred()) SWIG_fail;
13957 }
13958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13959 {
13960 if (temp1)
13961 delete arg1;
13962 }
13963 return resultobj;
13964fail:
13965 {
13966 if (temp1)
13967 delete arg1;
13968 }
13969 return NULL;
13970}
13971
13972
13973SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13974 PyObject *resultobj = 0;
13975 int arg1 ;
13976 wxFontFamily arg2 ;
13977 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13978 wxString const &arg4_defvalue = wxPyEmptyString ;
13979 wxString *arg4 = (wxString *) &arg4_defvalue ;
13980 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13981 wxFont *result = 0 ;
13982 int val1 ;
13983 int ecode1 = 0 ;
13984 int val2 ;
13985 int ecode2 = 0 ;
13986 int val3 ;
13987 int ecode3 = 0 ;
13988 bool temp4 = false ;
13989 int val5 ;
13990 int ecode5 = 0 ;
13991 PyObject * obj0 = 0 ;
13992 PyObject * obj1 = 0 ;
13993 PyObject * obj2 = 0 ;
13994 PyObject * obj3 = 0 ;
13995 PyObject * obj4 = 0 ;
13996 char * kwnames[] = {
13997 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13998 };
13999
14000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14001 ecode1 = SWIG_AsVal_int(obj0, &val1);
14002 if (!SWIG_IsOK(ecode1)) {
14003 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14004 }
14005 arg1 = static_cast< int >(val1);
14006 ecode2 = SWIG_AsVal_int(obj1, &val2);
14007 if (!SWIG_IsOK(ecode2)) {
14008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14009 }
14010 arg2 = static_cast< wxFontFamily >(val2);
14011 if (obj2) {
14012 ecode3 = SWIG_AsVal_int(obj2, &val3);
14013 if (!SWIG_IsOK(ecode3)) {
14014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14015 }
14016 arg3 = static_cast< int >(val3);
14017 }
14018 if (obj3) {
093d3ff1 14019 {
0085ce49
RD
14020 arg4 = wxString_in_helper(obj3);
14021 if (arg4 == NULL) SWIG_fail;
14022 temp4 = true;
093d3ff1 14023 }
0085ce49
RD
14024 }
14025 if (obj4) {
14026 ecode5 = SWIG_AsVal_int(obj4, &val5);
14027 if (!SWIG_IsOK(ecode5)) {
14028 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14029 }
14030 arg5 = static_cast< wxFontEncoding >(val5);
14031 }
14032 {
14033 if (!wxPyCheckForApp()) SWIG_fail;
14034 PyThreadState* __tstate = wxPyBeginAllowThreads();
14035 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14036 wxPyEndAllowThreads(__tstate);
14037 if (PyErr_Occurred()) SWIG_fail;
14038 }
14039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14040 {
14041 if (temp4)
14042 delete arg4;
14043 }
14044 return resultobj;
14045fail:
14046 {
14047 if (temp4)
14048 delete arg4;
14049 }
14050 return NULL;
14051}
14052
14053
14054SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14055 PyObject *resultobj = 0;
14056 wxSize *arg1 = 0 ;
14057 int arg2 ;
14058 int arg3 ;
14059 int arg4 ;
14060 bool arg5 = (bool) false ;
14061 wxString const &arg6_defvalue = wxEmptyString ;
14062 wxString *arg6 = (wxString *) &arg6_defvalue ;
14063 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14064 wxFont *result = 0 ;
14065 wxSize temp1 ;
14066 int val2 ;
14067 int ecode2 = 0 ;
14068 int val3 ;
14069 int ecode3 = 0 ;
14070 int val4 ;
14071 int ecode4 = 0 ;
14072 bool val5 ;
14073 int ecode5 = 0 ;
14074 bool temp6 = false ;
14075 int val7 ;
14076 int ecode7 = 0 ;
14077 PyObject * obj0 = 0 ;
14078 PyObject * obj1 = 0 ;
14079 PyObject * obj2 = 0 ;
14080 PyObject * obj3 = 0 ;
14081 PyObject * obj4 = 0 ;
14082 PyObject * obj5 = 0 ;
14083 PyObject * obj6 = 0 ;
14084 char * kwnames[] = {
14085 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14086 };
14087
14088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14089 {
14090 arg1 = &temp1;
14091 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14092 }
14093 ecode2 = SWIG_AsVal_int(obj1, &val2);
14094 if (!SWIG_IsOK(ecode2)) {
14095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14096 }
14097 arg2 = static_cast< int >(val2);
14098 ecode3 = SWIG_AsVal_int(obj2, &val3);
14099 if (!SWIG_IsOK(ecode3)) {
14100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14101 }
14102 arg3 = static_cast< int >(val3);
14103 ecode4 = SWIG_AsVal_int(obj3, &val4);
14104 if (!SWIG_IsOK(ecode4)) {
14105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14106 }
14107 arg4 = static_cast< int >(val4);
14108 if (obj4) {
14109 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14110 if (!SWIG_IsOK(ecode5)) {
14111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14112 }
14113 arg5 = static_cast< bool >(val5);
14114 }
14115 if (obj5) {
d14a1e28 14116 {
0085ce49
RD
14117 arg6 = wxString_in_helper(obj5);
14118 if (arg6 == NULL) SWIG_fail;
14119 temp6 = true;
d14a1e28 14120 }
0085ce49
RD
14121 }
14122 if (obj6) {
14123 ecode7 = SWIG_AsVal_int(obj6, &val7);
14124 if (!SWIG_IsOK(ecode7)) {
14125 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14126 }
14127 arg7 = static_cast< wxFontEncoding >(val7);
14128 }
14129 {
14130 if (!wxPyCheckForApp()) SWIG_fail;
14131 PyThreadState* __tstate = wxPyBeginAllowThreads();
14132 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14133 wxPyEndAllowThreads(__tstate);
14134 if (PyErr_Occurred()) SWIG_fail;
14135 }
14136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14137 {
14138 if (temp6)
14139 delete arg6;
14140 }
14141 return resultobj;
14142fail:
14143 {
14144 if (temp6)
14145 delete arg6;
14146 }
14147 return NULL;
14148}
14149
14150
14151SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14152 PyObject *resultobj = 0;
14153 wxSize *arg1 = 0 ;
14154 wxFontFamily arg2 ;
14155 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14156 wxString const &arg4_defvalue = wxEmptyString ;
14157 wxString *arg4 = (wxString *) &arg4_defvalue ;
14158 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14159 wxFont *result = 0 ;
14160 wxSize temp1 ;
14161 int val2 ;
14162 int ecode2 = 0 ;
14163 int val3 ;
14164 int ecode3 = 0 ;
14165 bool temp4 = false ;
14166 int val5 ;
14167 int ecode5 = 0 ;
14168 PyObject * obj0 = 0 ;
14169 PyObject * obj1 = 0 ;
14170 PyObject * obj2 = 0 ;
14171 PyObject * obj3 = 0 ;
14172 PyObject * obj4 = 0 ;
14173 char * kwnames[] = {
14174 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14175 };
14176
14177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14178 {
14179 arg1 = &temp1;
14180 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14181 }
14182 ecode2 = SWIG_AsVal_int(obj1, &val2);
14183 if (!SWIG_IsOK(ecode2)) {
14184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14185 }
14186 arg2 = static_cast< wxFontFamily >(val2);
14187 if (obj2) {
14188 ecode3 = SWIG_AsVal_int(obj2, &val3);
14189 if (!SWIG_IsOK(ecode3)) {
14190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14191 }
14192 arg3 = static_cast< int >(val3);
14193 }
14194 if (obj3) {
093d3ff1 14195 {
0085ce49
RD
14196 arg4 = wxString_in_helper(obj3);
14197 if (arg4 == NULL) SWIG_fail;
14198 temp4 = true;
093d3ff1 14199 }
0085ce49
RD
14200 }
14201 if (obj4) {
14202 ecode5 = SWIG_AsVal_int(obj4, &val5);
14203 if (!SWIG_IsOK(ecode5)) {
14204 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14205 }
14206 arg5 = static_cast< wxFontEncoding >(val5);
14207 }
14208 {
14209 if (!wxPyCheckForApp()) SWIG_fail;
14210 PyThreadState* __tstate = wxPyBeginAllowThreads();
14211 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14216 {
14217 if (temp4)
14218 delete arg4;
14219 }
14220 return resultobj;
14221fail:
14222 {
14223 if (temp4)
14224 delete arg4;
14225 }
14226 return NULL;
d14a1e28
RD
14227}
14228
14229
b39fe951 14230SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
14231 PyObject *resultobj = 0;
14232 wxFont *arg1 = (wxFont *) 0 ;
14233 bool result;
14234 void *argp1 = 0 ;
14235 int res1 = 0 ;
14236 PyObject *swig_obj[1] ;
14237
14238 if (!args) SWIG_fail;
14239 swig_obj[0] = args;
14240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14241 if (!SWIG_IsOK(res1)) {
b39fe951 14242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
0085ce49
RD
14243 }
14244 arg1 = reinterpret_cast< wxFont * >(argp1);
14245 {
14246 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14247 result = (bool)((wxFont const *)arg1)->IsOk();
0085ce49
RD
14248 wxPyEndAllowThreads(__tstate);
14249 if (PyErr_Occurred()) SWIG_fail;
14250 }
14251 {
14252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14253 }
14254 return resultobj;
14255fail:
14256 return NULL;
14257}
14258
14259
14260SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14261 PyObject *resultobj = 0;
14262 wxFont *arg1 = (wxFont *) 0 ;
14263 wxFont *arg2 = (wxFont *) 0 ;
14264 bool result;
14265 void *argp1 = 0 ;
14266 int res1 = 0 ;
14267 void *argp2 = 0 ;
14268 int res2 = 0 ;
14269 PyObject * obj0 = 0 ;
14270 PyObject * obj1 = 0 ;
14271 char * kwnames[] = {
14272 (char *) "self",(char *) "other", NULL
14273 };
14274
14275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14277 if (!SWIG_IsOK(res1)) {
14278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14279 }
14280 arg1 = reinterpret_cast< wxFont * >(argp1);
14281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14282 if (!SWIG_IsOK(res2)) {
14283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14284 }
14285 arg2 = reinterpret_cast< wxFont * >(argp2);
14286 {
14287 PyThreadState* __tstate = wxPyBeginAllowThreads();
14288 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14289 wxPyEndAllowThreads(__tstate);
14290 if (PyErr_Occurred()) SWIG_fail;
14291 }
14292 {
14293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14294 }
14295 return resultobj;
14296fail:
14297 return NULL;
14298}
14299
14300
14301SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14302 PyObject *resultobj = 0;
14303 wxFont *arg1 = (wxFont *) 0 ;
14304 wxFont *arg2 = (wxFont *) 0 ;
14305 bool result;
14306 void *argp1 = 0 ;
14307 int res1 = 0 ;
14308 void *argp2 = 0 ;
14309 int res2 = 0 ;
14310 PyObject * obj0 = 0 ;
14311 PyObject * obj1 = 0 ;
14312 char * kwnames[] = {
14313 (char *) "self",(char *) "other", NULL
14314 };
14315
14316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14318 if (!SWIG_IsOK(res1)) {
14319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14320 }
14321 arg1 = reinterpret_cast< wxFont * >(argp1);
14322 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14323 if (!SWIG_IsOK(res2)) {
14324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14325 }
14326 arg2 = reinterpret_cast< wxFont * >(argp2);
14327 {
14328 PyThreadState* __tstate = wxPyBeginAllowThreads();
14329 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14330 wxPyEndAllowThreads(__tstate);
14331 if (PyErr_Occurred()) SWIG_fail;
14332 }
14333 {
14334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14335 }
14336 return resultobj;
14337fail:
14338 return NULL;
d14a1e28
RD
14339}
14340
14341
0085ce49
RD
14342SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14343 PyObject *resultobj = 0;
14344 wxFont *arg1 = (wxFont *) 0 ;
14345 int result;
14346 void *argp1 = 0 ;
14347 int res1 = 0 ;
14348 PyObject *swig_obj[1] ;
14349
14350 if (!args) SWIG_fail;
14351 swig_obj[0] = args;
14352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14353 if (!SWIG_IsOK(res1)) {
14354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14355 }
14356 arg1 = reinterpret_cast< wxFont * >(argp1);
14357 {
14358 PyThreadState* __tstate = wxPyBeginAllowThreads();
14359 result = (int)((wxFont const *)arg1)->GetPointSize();
14360 wxPyEndAllowThreads(__tstate);
14361 if (PyErr_Occurred()) SWIG_fail;
14362 }
14363 resultobj = SWIG_From_int(static_cast< int >(result));
14364 return resultobj;
14365fail:
14366 return NULL;
d14a1e28
RD
14367}
14368
14369
0085ce49
RD
14370SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14371 PyObject *resultobj = 0;
14372 wxFont *arg1 = (wxFont *) 0 ;
14373 wxSize result;
14374 void *argp1 = 0 ;
14375 int res1 = 0 ;
14376 PyObject *swig_obj[1] ;
14377
14378 if (!args) SWIG_fail;
14379 swig_obj[0] = args;
14380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14381 if (!SWIG_IsOK(res1)) {
14382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14383 }
14384 arg1 = reinterpret_cast< wxFont * >(argp1);
14385 {
14386 PyThreadState* __tstate = wxPyBeginAllowThreads();
14387 result = ((wxFont const *)arg1)->GetPixelSize();
14388 wxPyEndAllowThreads(__tstate);
14389 if (PyErr_Occurred()) SWIG_fail;
14390 }
14391 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14392 return resultobj;
14393fail:
14394 return NULL;
d14a1e28
RD
14395}
14396
14397
0085ce49
RD
14398SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14399 PyObject *resultobj = 0;
14400 wxFont *arg1 = (wxFont *) 0 ;
14401 bool result;
14402 void *argp1 = 0 ;
14403 int res1 = 0 ;
14404 PyObject *swig_obj[1] ;
14405
14406 if (!args) SWIG_fail;
14407 swig_obj[0] = args;
14408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14409 if (!SWIG_IsOK(res1)) {
14410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14411 }
14412 arg1 = reinterpret_cast< wxFont * >(argp1);
14413 {
14414 PyThreadState* __tstate = wxPyBeginAllowThreads();
14415 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14416 wxPyEndAllowThreads(__tstate);
14417 if (PyErr_Occurred()) SWIG_fail;
14418 }
14419 {
14420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14421 }
14422 return resultobj;
14423fail:
14424 return NULL;
d14a1e28
RD
14425}
14426
14427
0085ce49
RD
14428SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14429 PyObject *resultobj = 0;
14430 wxFont *arg1 = (wxFont *) 0 ;
14431 int result;
14432 void *argp1 = 0 ;
14433 int res1 = 0 ;
14434 PyObject *swig_obj[1] ;
14435
14436 if (!args) SWIG_fail;
14437 swig_obj[0] = args;
14438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14439 if (!SWIG_IsOK(res1)) {
14440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14441 }
14442 arg1 = reinterpret_cast< wxFont * >(argp1);
14443 {
14444 PyThreadState* __tstate = wxPyBeginAllowThreads();
14445 result = (int)((wxFont const *)arg1)->GetFamily();
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 resultobj = SWIG_From_int(static_cast< int >(result));
14450 return resultobj;
14451fail:
14452 return NULL;
d14a1e28
RD
14453}
14454
14455
0085ce49
RD
14456SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14457 PyObject *resultobj = 0;
14458 wxFont *arg1 = (wxFont *) 0 ;
14459 int result;
14460 void *argp1 = 0 ;
14461 int res1 = 0 ;
14462 PyObject *swig_obj[1] ;
14463
14464 if (!args) SWIG_fail;
14465 swig_obj[0] = args;
14466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14467 if (!SWIG_IsOK(res1)) {
14468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14469 }
14470 arg1 = reinterpret_cast< wxFont * >(argp1);
14471 {
14472 PyThreadState* __tstate = wxPyBeginAllowThreads();
14473 result = (int)((wxFont const *)arg1)->GetStyle();
14474 wxPyEndAllowThreads(__tstate);
14475 if (PyErr_Occurred()) SWIG_fail;
14476 }
14477 resultobj = SWIG_From_int(static_cast< int >(result));
14478 return resultobj;
14479fail:
14480 return NULL;
d14a1e28
RD
14481}
14482
14483
0085ce49
RD
14484SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14485 PyObject *resultobj = 0;
14486 wxFont *arg1 = (wxFont *) 0 ;
14487 int result;
14488 void *argp1 = 0 ;
14489 int res1 = 0 ;
14490 PyObject *swig_obj[1] ;
14491
14492 if (!args) SWIG_fail;
14493 swig_obj[0] = args;
14494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14495 if (!SWIG_IsOK(res1)) {
14496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14497 }
14498 arg1 = reinterpret_cast< wxFont * >(argp1);
14499 {
14500 PyThreadState* __tstate = wxPyBeginAllowThreads();
14501 result = (int)((wxFont const *)arg1)->GetWeight();
14502 wxPyEndAllowThreads(__tstate);
14503 if (PyErr_Occurred()) SWIG_fail;
14504 }
14505 resultobj = SWIG_From_int(static_cast< int >(result));
14506 return resultobj;
14507fail:
14508 return NULL;
d14a1e28
RD
14509}
14510
14511
0085ce49
RD
14512SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14513 PyObject *resultobj = 0;
14514 wxFont *arg1 = (wxFont *) 0 ;
14515 bool result;
14516 void *argp1 = 0 ;
14517 int res1 = 0 ;
14518 PyObject *swig_obj[1] ;
14519
14520 if (!args) SWIG_fail;
14521 swig_obj[0] = args;
14522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14523 if (!SWIG_IsOK(res1)) {
14524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14525 }
14526 arg1 = reinterpret_cast< wxFont * >(argp1);
14527 {
14528 PyThreadState* __tstate = wxPyBeginAllowThreads();
14529 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 {
14534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14535 }
14536 return resultobj;
14537fail:
14538 return NULL;
d14a1e28
RD
14539}
14540
14541
0085ce49
RD
14542SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14543 PyObject *resultobj = 0;
14544 wxFont *arg1 = (wxFont *) 0 ;
14545 wxString result;
14546 void *argp1 = 0 ;
14547 int res1 = 0 ;
14548 PyObject *swig_obj[1] ;
14549
14550 if (!args) SWIG_fail;
14551 swig_obj[0] = args;
14552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14553 if (!SWIG_IsOK(res1)) {
14554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14555 }
14556 arg1 = reinterpret_cast< wxFont * >(argp1);
14557 {
14558 PyThreadState* __tstate = wxPyBeginAllowThreads();
14559 result = ((wxFont const *)arg1)->GetFaceName();
14560 wxPyEndAllowThreads(__tstate);
14561 if (PyErr_Occurred()) SWIG_fail;
14562 }
14563 {
14564#if wxUSE_UNICODE
14565 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14566#else
14567 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14568#endif
14569 }
14570 return resultobj;
14571fail:
14572 return NULL;
d14a1e28
RD
14573}
14574
14575
0085ce49
RD
14576SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14577 PyObject *resultobj = 0;
14578 wxFont *arg1 = (wxFont *) 0 ;
14579 wxFontEncoding result;
14580 void *argp1 = 0 ;
14581 int res1 = 0 ;
14582 PyObject *swig_obj[1] ;
14583
14584 if (!args) SWIG_fail;
14585 swig_obj[0] = args;
14586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14587 if (!SWIG_IsOK(res1)) {
14588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14589 }
14590 arg1 = reinterpret_cast< wxFont * >(argp1);
14591 {
14592 PyThreadState* __tstate = wxPyBeginAllowThreads();
14593 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14594 wxPyEndAllowThreads(__tstate);
14595 if (PyErr_Occurred()) SWIG_fail;
14596 }
14597 resultobj = SWIG_From_int(static_cast< int >(result));
14598 return resultobj;
14599fail:
14600 return NULL;
d14a1e28
RD
14601}
14602
14603
0085ce49
RD
14604SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14605 PyObject *resultobj = 0;
14606 wxFont *arg1 = (wxFont *) 0 ;
14607 wxNativeFontInfo *result = 0 ;
14608 void *argp1 = 0 ;
14609 int res1 = 0 ;
14610 PyObject *swig_obj[1] ;
14611
14612 if (!args) SWIG_fail;
14613 swig_obj[0] = args;
14614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14615 if (!SWIG_IsOK(res1)) {
14616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14617 }
14618 arg1 = reinterpret_cast< wxFont * >(argp1);
14619 {
14620 PyThreadState* __tstate = wxPyBeginAllowThreads();
14621 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14622 wxPyEndAllowThreads(__tstate);
14623 if (PyErr_Occurred()) SWIG_fail;
14624 }
14625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14626 return resultobj;
14627fail:
14628 return NULL;
d14a1e28
RD
14629}
14630
14631
0085ce49
RD
14632SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14633 PyObject *resultobj = 0;
14634 wxFont *arg1 = (wxFont *) 0 ;
14635 bool result;
14636 void *argp1 = 0 ;
14637 int res1 = 0 ;
14638 PyObject *swig_obj[1] ;
14639
14640 if (!args) SWIG_fail;
14641 swig_obj[0] = args;
14642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14643 if (!SWIG_IsOK(res1)) {
14644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14645 }
14646 arg1 = reinterpret_cast< wxFont * >(argp1);
14647 {
14648 PyThreadState* __tstate = wxPyBeginAllowThreads();
14649 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14650 wxPyEndAllowThreads(__tstate);
14651 if (PyErr_Occurred()) SWIG_fail;
14652 }
14653 {
14654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14655 }
14656 return resultobj;
14657fail:
14658 return NULL;
d14a1e28
RD
14659}
14660
14661
0085ce49
RD
14662SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14663 PyObject *resultobj = 0;
14664 wxFont *arg1 = (wxFont *) 0 ;
14665 wxString result;
14666 void *argp1 = 0 ;
14667 int res1 = 0 ;
14668 PyObject *swig_obj[1] ;
14669
14670 if (!args) SWIG_fail;
14671 swig_obj[0] = args;
14672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14673 if (!SWIG_IsOK(res1)) {
14674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14675 }
14676 arg1 = reinterpret_cast< wxFont * >(argp1);
14677 {
14678 PyThreadState* __tstate = wxPyBeginAllowThreads();
14679 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14680 wxPyEndAllowThreads(__tstate);
14681 if (PyErr_Occurred()) SWIG_fail;
14682 }
14683 {
14684#if wxUSE_UNICODE
14685 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14686#else
14687 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14688#endif
14689 }
14690 return resultobj;
14691fail:
14692 return NULL;
d14a1e28
RD
14693}
14694
14695
0085ce49
RD
14696SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14697 PyObject *resultobj = 0;
14698 wxFont *arg1 = (wxFont *) 0 ;
14699 wxString result;
14700 void *argp1 = 0 ;
14701 int res1 = 0 ;
14702 PyObject *swig_obj[1] ;
14703
14704 if (!args) SWIG_fail;
14705 swig_obj[0] = args;
14706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14707 if (!SWIG_IsOK(res1)) {
14708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14709 }
14710 arg1 = reinterpret_cast< wxFont * >(argp1);
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 {
14718#if wxUSE_UNICODE
14719 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14720#else
14721 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14722#endif
14723 }
14724 return resultobj;
14725fail:
14726 return NULL;
14727}
14728
14729
14730SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14731 PyObject *resultobj = 0;
14732 wxFont *arg1 = (wxFont *) 0 ;
14733 int arg2 ;
14734 void *argp1 = 0 ;
14735 int res1 = 0 ;
14736 int val2 ;
14737 int ecode2 = 0 ;
14738 PyObject * obj0 = 0 ;
14739 PyObject * obj1 = 0 ;
14740 char * kwnames[] = {
14741 (char *) "self",(char *) "pointSize", NULL
14742 };
14743
14744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",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_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14748 }
14749 arg1 = reinterpret_cast< wxFont * >(argp1);
14750 ecode2 = SWIG_AsVal_int(obj1, &val2);
14751 if (!SWIG_IsOK(ecode2)) {
14752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14753 }
14754 arg2 = static_cast< int >(val2);
14755 {
14756 PyThreadState* __tstate = wxPyBeginAllowThreads();
14757 (arg1)->SetPointSize(arg2);
14758 wxPyEndAllowThreads(__tstate);
14759 if (PyErr_Occurred()) SWIG_fail;
14760 }
14761 resultobj = SWIG_Py_Void();
14762 return resultobj;
14763fail:
14764 return NULL;
14765}
14766
14767
14768SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14769 PyObject *resultobj = 0;
14770 wxFont *arg1 = (wxFont *) 0 ;
14771 wxSize *arg2 = 0 ;
14772 void *argp1 = 0 ;
14773 int res1 = 0 ;
14774 wxSize temp2 ;
14775 PyObject * obj0 = 0 ;
14776 PyObject * obj1 = 0 ;
14777 char * kwnames[] = {
14778 (char *) "self",(char *) "pixelSize", NULL
14779 };
14780
14781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",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_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14785 }
14786 arg1 = reinterpret_cast< wxFont * >(argp1);
14787 {
14788 arg2 = &temp2;
14789 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14790 }
14791 {
14792 PyThreadState* __tstate = wxPyBeginAllowThreads();
14793 (arg1)->SetPixelSize((wxSize const &)*arg2);
14794 wxPyEndAllowThreads(__tstate);
14795 if (PyErr_Occurred()) SWIG_fail;
14796 }
14797 resultobj = SWIG_Py_Void();
14798 return resultobj;
14799fail:
14800 return NULL;
14801}
14802
14803
14804SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14805 PyObject *resultobj = 0;
14806 wxFont *arg1 = (wxFont *) 0 ;
14807 int arg2 ;
14808 void *argp1 = 0 ;
14809 int res1 = 0 ;
14810 int val2 ;
14811 int ecode2 = 0 ;
14812 PyObject * obj0 = 0 ;
14813 PyObject * obj1 = 0 ;
14814 char * kwnames[] = {
14815 (char *) "self",(char *) "family", NULL
14816 };
14817
14818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14820 if (!SWIG_IsOK(res1)) {
14821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14822 }
14823 arg1 = reinterpret_cast< wxFont * >(argp1);
14824 ecode2 = SWIG_AsVal_int(obj1, &val2);
14825 if (!SWIG_IsOK(ecode2)) {
14826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14827 }
14828 arg2 = static_cast< int >(val2);
14829 {
14830 PyThreadState* __tstate = wxPyBeginAllowThreads();
14831 (arg1)->SetFamily(arg2);
14832 wxPyEndAllowThreads(__tstate);
14833 if (PyErr_Occurred()) SWIG_fail;
14834 }
14835 resultobj = SWIG_Py_Void();
14836 return resultobj;
14837fail:
14838 return NULL;
14839}
14840
14841
14842SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14843 PyObject *resultobj = 0;
14844 wxFont *arg1 = (wxFont *) 0 ;
14845 int arg2 ;
14846 void *argp1 = 0 ;
14847 int res1 = 0 ;
14848 int val2 ;
14849 int ecode2 = 0 ;
14850 PyObject * obj0 = 0 ;
14851 PyObject * obj1 = 0 ;
14852 char * kwnames[] = {
14853 (char *) "self",(char *) "style", NULL
14854 };
14855
14856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14858 if (!SWIG_IsOK(res1)) {
14859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14860 }
14861 arg1 = reinterpret_cast< wxFont * >(argp1);
14862 ecode2 = SWIG_AsVal_int(obj1, &val2);
14863 if (!SWIG_IsOK(ecode2)) {
14864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14865 }
14866 arg2 = static_cast< int >(val2);
14867 {
14868 PyThreadState* __tstate = wxPyBeginAllowThreads();
14869 (arg1)->SetStyle(arg2);
14870 wxPyEndAllowThreads(__tstate);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 }
14873 resultobj = SWIG_Py_Void();
14874 return resultobj;
14875fail:
14876 return NULL;
14877}
14878
14879
14880SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14881 PyObject *resultobj = 0;
14882 wxFont *arg1 = (wxFont *) 0 ;
14883 int arg2 ;
14884 void *argp1 = 0 ;
14885 int res1 = 0 ;
14886 int val2 ;
14887 int ecode2 = 0 ;
14888 PyObject * obj0 = 0 ;
14889 PyObject * obj1 = 0 ;
14890 char * kwnames[] = {
14891 (char *) "self",(char *) "weight", NULL
14892 };
14893
14894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14896 if (!SWIG_IsOK(res1)) {
14897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14898 }
14899 arg1 = reinterpret_cast< wxFont * >(argp1);
14900 ecode2 = SWIG_AsVal_int(obj1, &val2);
14901 if (!SWIG_IsOK(ecode2)) {
14902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14903 }
14904 arg2 = static_cast< int >(val2);
14905 {
14906 PyThreadState* __tstate = wxPyBeginAllowThreads();
14907 (arg1)->SetWeight(arg2);
14908 wxPyEndAllowThreads(__tstate);
14909 if (PyErr_Occurred()) SWIG_fail;
14910 }
14911 resultobj = SWIG_Py_Void();
14912 return resultobj;
14913fail:
14914 return NULL;
14915}
14916
14917
14918SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14919 PyObject *resultobj = 0;
14920 wxFont *arg1 = (wxFont *) 0 ;
14921 wxString *arg2 = 0 ;
704eda0c 14922 bool result;
0085ce49
RD
14923 void *argp1 = 0 ;
14924 int res1 = 0 ;
14925 bool temp2 = false ;
14926 PyObject * obj0 = 0 ;
14927 PyObject * obj1 = 0 ;
14928 char * kwnames[] = {
14929 (char *) "self",(char *) "faceName", NULL
14930 };
14931
14932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14934 if (!SWIG_IsOK(res1)) {
14935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14936 }
14937 arg1 = reinterpret_cast< wxFont * >(argp1);
14938 {
14939 arg2 = wxString_in_helper(obj1);
14940 if (arg2 == NULL) SWIG_fail;
14941 temp2 = true;
14942 }
14943 {
14944 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14945 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
0085ce49
RD
14946 wxPyEndAllowThreads(__tstate);
14947 if (PyErr_Occurred()) SWIG_fail;
14948 }
704eda0c
RD
14949 {
14950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14951 }
0085ce49
RD
14952 {
14953 if (temp2)
14954 delete arg2;
14955 }
14956 return resultobj;
14957fail:
14958 {
14959 if (temp2)
14960 delete arg2;
14961 }
14962 return NULL;
14963}
14964
14965
14966SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14967 PyObject *resultobj = 0;
14968 wxFont *arg1 = (wxFont *) 0 ;
14969 bool arg2 ;
14970 void *argp1 = 0 ;
14971 int res1 = 0 ;
14972 bool val2 ;
14973 int ecode2 = 0 ;
14974 PyObject * obj0 = 0 ;
14975 PyObject * obj1 = 0 ;
14976 char * kwnames[] = {
14977 (char *) "self",(char *) "underlined", NULL
14978 };
14979
14980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14982 if (!SWIG_IsOK(res1)) {
14983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14984 }
14985 arg1 = reinterpret_cast< wxFont * >(argp1);
14986 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14987 if (!SWIG_IsOK(ecode2)) {
14988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14989 }
14990 arg2 = static_cast< bool >(val2);
14991 {
14992 PyThreadState* __tstate = wxPyBeginAllowThreads();
14993 (arg1)->SetUnderlined(arg2);
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 resultobj = SWIG_Py_Void();
14998 return resultobj;
14999fail:
15000 return NULL;
15001}
15002
15003
15004SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15005 PyObject *resultobj = 0;
15006 wxFont *arg1 = (wxFont *) 0 ;
15007 wxFontEncoding arg2 ;
15008 void *argp1 = 0 ;
15009 int res1 = 0 ;
15010 int val2 ;
15011 int ecode2 = 0 ;
15012 PyObject * obj0 = 0 ;
15013 PyObject * obj1 = 0 ;
15014 char * kwnames[] = {
15015 (char *) "self",(char *) "encoding", NULL
15016 };
15017
15018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15020 if (!SWIG_IsOK(res1)) {
15021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15022 }
15023 arg1 = reinterpret_cast< wxFont * >(argp1);
15024 ecode2 = SWIG_AsVal_int(obj1, &val2);
15025 if (!SWIG_IsOK(ecode2)) {
15026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15027 }
15028 arg2 = static_cast< wxFontEncoding >(val2);
15029 {
15030 PyThreadState* __tstate = wxPyBeginAllowThreads();
15031 (arg1)->SetEncoding(arg2);
15032 wxPyEndAllowThreads(__tstate);
15033 if (PyErr_Occurred()) SWIG_fail;
15034 }
15035 resultobj = SWIG_Py_Void();
15036 return resultobj;
15037fail:
15038 return NULL;
15039}
15040
15041
15042SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15043 PyObject *resultobj = 0;
15044 wxFont *arg1 = (wxFont *) 0 ;
15045 wxNativeFontInfo *arg2 = 0 ;
15046 void *argp1 = 0 ;
15047 int res1 = 0 ;
15048 void *argp2 = 0 ;
15049 int res2 = 0 ;
15050 PyObject * obj0 = 0 ;
15051 PyObject * obj1 = 0 ;
15052 char * kwnames[] = {
15053 (char *) "self",(char *) "info", NULL
15054 };
15055
15056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15058 if (!SWIG_IsOK(res1)) {
15059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15060 }
15061 arg1 = reinterpret_cast< wxFont * >(argp1);
15062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15063 if (!SWIG_IsOK(res2)) {
15064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15065 }
15066 if (!argp2) {
15067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15068 }
15069 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15070 {
15071 PyThreadState* __tstate = wxPyBeginAllowThreads();
15072 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15073 wxPyEndAllowThreads(__tstate);
15074 if (PyErr_Occurred()) SWIG_fail;
15075 }
15076 resultobj = SWIG_Py_Void();
15077 return resultobj;
15078fail:
15079 return NULL;
15080}
15081
15082
15083SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15084 PyObject *resultobj = 0;
15085 wxFont *arg1 = (wxFont *) 0 ;
15086 wxString *arg2 = 0 ;
704eda0c 15087 bool result;
0085ce49
RD
15088 void *argp1 = 0 ;
15089 int res1 = 0 ;
15090 bool temp2 = false ;
15091 PyObject * obj0 = 0 ;
15092 PyObject * obj1 = 0 ;
15093 char * kwnames[] = {
15094 (char *) "self",(char *) "info", NULL
15095 };
15096
15097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15099 if (!SWIG_IsOK(res1)) {
15100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15101 }
15102 arg1 = reinterpret_cast< wxFont * >(argp1);
15103 {
15104 arg2 = wxString_in_helper(obj1);
15105 if (arg2 == NULL) SWIG_fail;
15106 temp2 = true;
15107 }
15108 {
15109 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15110 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
0085ce49
RD
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
704eda0c
RD
15114 {
15115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15116 }
0085ce49
RD
15117 {
15118 if (temp2)
15119 delete arg2;
15120 }
15121 return resultobj;
15122fail:
15123 {
15124 if (temp2)
15125 delete arg2;
15126 }
15127 return NULL;
d14a1e28
RD
15128}
15129
15130
0085ce49
RD
15131SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15132 PyObject *resultobj = 0;
15133 wxFont *arg1 = (wxFont *) 0 ;
15134 wxString *arg2 = 0 ;
704eda0c 15135 bool result;
0085ce49
RD
15136 void *argp1 = 0 ;
15137 int res1 = 0 ;
15138 bool temp2 = false ;
15139 PyObject * obj0 = 0 ;
15140 PyObject * obj1 = 0 ;
15141 char * kwnames[] = {
15142 (char *) "self",(char *) "info", NULL
15143 };
15144
15145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15147 if (!SWIG_IsOK(res1)) {
15148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15149 }
15150 arg1 = reinterpret_cast< wxFont * >(argp1);
15151 {
15152 arg2 = wxString_in_helper(obj1);
15153 if (arg2 == NULL) SWIG_fail;
15154 temp2 = true;
15155 }
15156 {
15157 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15158 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
0085ce49
RD
15159 wxPyEndAllowThreads(__tstate);
15160 if (PyErr_Occurred()) SWIG_fail;
15161 }
704eda0c
RD
15162 {
15163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15164 }
0085ce49
RD
15165 {
15166 if (temp2)
15167 delete arg2;
15168 }
15169 return resultobj;
15170fail:
15171 {
15172 if (temp2)
15173 delete arg2;
15174 }
15175 return NULL;
d14a1e28
RD
15176}
15177
15178
0085ce49
RD
15179SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15180 PyObject *resultobj = 0;
15181 wxFont *arg1 = (wxFont *) 0 ;
15182 wxString result;
15183 void *argp1 = 0 ;
15184 int res1 = 0 ;
15185 PyObject *swig_obj[1] ;
15186
15187 if (!args) SWIG_fail;
15188 swig_obj[0] = args;
15189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15190 if (!SWIG_IsOK(res1)) {
15191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15192 }
15193 arg1 = reinterpret_cast< wxFont * >(argp1);
15194 {
15195 PyThreadState* __tstate = wxPyBeginAllowThreads();
15196 result = ((wxFont const *)arg1)->GetFamilyString();
15197 wxPyEndAllowThreads(__tstate);
15198 if (PyErr_Occurred()) SWIG_fail;
15199 }
15200 {
15201#if wxUSE_UNICODE
15202 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15203#else
15204 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15205#endif
15206 }
15207 return resultobj;
15208fail:
15209 return NULL;
d14a1e28
RD
15210}
15211
15212
0085ce49
RD
15213SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15214 PyObject *resultobj = 0;
15215 wxFont *arg1 = (wxFont *) 0 ;
15216 wxString result;
15217 void *argp1 = 0 ;
15218 int res1 = 0 ;
15219 PyObject *swig_obj[1] ;
15220
15221 if (!args) SWIG_fail;
15222 swig_obj[0] = args;
15223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15224 if (!SWIG_IsOK(res1)) {
15225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15226 }
15227 arg1 = reinterpret_cast< wxFont * >(argp1);
15228 {
15229 PyThreadState* __tstate = wxPyBeginAllowThreads();
15230 result = ((wxFont const *)arg1)->GetStyleString();
15231 wxPyEndAllowThreads(__tstate);
15232 if (PyErr_Occurred()) SWIG_fail;
15233 }
15234 {
15235#if wxUSE_UNICODE
15236 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15237#else
15238 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15239#endif
15240 }
15241 return resultobj;
15242fail:
15243 return NULL;
d14a1e28
RD
15244}
15245
15246
0085ce49
RD
15247SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15248 PyObject *resultobj = 0;
15249 wxFont *arg1 = (wxFont *) 0 ;
15250 wxString result;
15251 void *argp1 = 0 ;
15252 int res1 = 0 ;
15253 PyObject *swig_obj[1] ;
15254
15255 if (!args) SWIG_fail;
15256 swig_obj[0] = args;
15257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15258 if (!SWIG_IsOK(res1)) {
15259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15260 }
15261 arg1 = reinterpret_cast< wxFont * >(argp1);
15262 {
15263 PyThreadState* __tstate = wxPyBeginAllowThreads();
15264 result = ((wxFont const *)arg1)->GetWeightString();
15265 wxPyEndAllowThreads(__tstate);
15266 if (PyErr_Occurred()) SWIG_fail;
15267 }
15268 {
d14a1e28 15269#if wxUSE_UNICODE
0085ce49 15270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 15271#else
0085ce49 15272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 15273#endif
0085ce49
RD
15274 }
15275 return resultobj;
15276fail:
15277 return NULL;
15278}
15279
15280
15281SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15282 PyObject *resultobj = 0;
15283 wxFont *arg1 = (wxFont *) 0 ;
15284 bool arg2 = (bool) true ;
15285 void *argp1 = 0 ;
15286 int res1 = 0 ;
15287 bool val2 ;
15288 int ecode2 = 0 ;
15289 PyObject * obj0 = 0 ;
15290 PyObject * obj1 = 0 ;
15291 char * kwnames[] = {
15292 (char *) "self",(char *) "no", NULL
15293 };
15294
15295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15297 if (!SWIG_IsOK(res1)) {
15298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15299 }
15300 arg1 = reinterpret_cast< wxFont * >(argp1);
15301 if (obj1) {
15302 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15303 if (!SWIG_IsOK(ecode2)) {
15304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15305 }
15306 arg2 = static_cast< bool >(val2);
15307 }
15308 {
15309 PyThreadState* __tstate = wxPyBeginAllowThreads();
15310 (arg1)->SetNoAntiAliasing(arg2);
15311 wxPyEndAllowThreads(__tstate);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 resultobj = SWIG_Py_Void();
15315 return resultobj;
15316fail:
15317 return NULL;
d14a1e28
RD
15318}
15319
15320
0085ce49
RD
15321SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15322 PyObject *resultobj = 0;
15323 wxFont *arg1 = (wxFont *) 0 ;
15324 bool result;
15325 void *argp1 = 0 ;
15326 int res1 = 0 ;
15327 PyObject *swig_obj[1] ;
15328
15329 if (!args) SWIG_fail;
15330 swig_obj[0] = args;
15331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15332 if (!SWIG_IsOK(res1)) {
15333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15334 }
15335 arg1 = reinterpret_cast< wxFont * >(argp1);
15336 {
15337 PyThreadState* __tstate = wxPyBeginAllowThreads();
15338 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15339 wxPyEndAllowThreads(__tstate);
15340 if (PyErr_Occurred()) SWIG_fail;
15341 }
15342 {
15343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15344 }
15345 return resultobj;
15346fail:
15347 return NULL;
d14a1e28
RD
15348}
15349
15350
0085ce49
RD
15351SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15352 PyObject *resultobj = 0;
15353 wxFontEncoding result;
15354
15355 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15356 {
15357 if (!wxPyCheckForApp()) SWIG_fail;
15358 PyThreadState* __tstate = wxPyBeginAllowThreads();
15359 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15360 wxPyEndAllowThreads(__tstate);
15361 if (PyErr_Occurred()) SWIG_fail;
15362 }
15363 resultobj = SWIG_From_int(static_cast< int >(result));
15364 return resultobj;
15365fail:
15366 return NULL;
d14a1e28
RD
15367}
15368
15369
0085ce49
RD
15370SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15371 PyObject *resultobj = 0;
15372 wxFontEncoding arg1 ;
15373 int val1 ;
15374 int ecode1 = 0 ;
15375 PyObject * obj0 = 0 ;
15376 char * kwnames[] = {
15377 (char *) "encoding", NULL
15378 };
15379
15380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15381 ecode1 = SWIG_AsVal_int(obj0, &val1);
15382 if (!SWIG_IsOK(ecode1)) {
15383 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15384 }
15385 arg1 = static_cast< wxFontEncoding >(val1);
15386 {
15387 if (!wxPyCheckForApp()) SWIG_fail;
15388 PyThreadState* __tstate = wxPyBeginAllowThreads();
15389 wxFont::SetDefaultEncoding(arg1);
15390 wxPyEndAllowThreads(__tstate);
15391 if (PyErr_Occurred()) SWIG_fail;
15392 }
15393 resultobj = SWIG_Py_Void();
15394 return resultobj;
15395fail:
15396 return NULL;
d14a1e28
RD
15397}
15398
15399
0085ce49
RD
15400SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15401 PyObject *obj;
15402 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15403 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15404 return SWIG_Py_Void();
d14a1e28
RD
15405}
15406
0085ce49
RD
15407SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15408 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15409}
15410
0085ce49
RD
15411SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15412 PyObject *resultobj = 0;
15413 wxPyFontEnumerator *result = 0 ;
15414
15415 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15416 {
15417 if (!wxPyCheckForApp()) SWIG_fail;
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15420 wxPyEndAllowThreads(__tstate);
15421 if (PyErr_Occurred()) SWIG_fail;
15422 }
15423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15424 return resultobj;
15425fail:
15426 return NULL;
d14a1e28
RD
15427}
15428
15429
0085ce49
RD
15430SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15431 PyObject *resultobj = 0;
15432 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15433 void *argp1 = 0 ;
15434 int res1 = 0 ;
15435 PyObject *swig_obj[1] ;
15436
15437 if (!args) SWIG_fail;
15438 swig_obj[0] = args;
15439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15440 if (!SWIG_IsOK(res1)) {
15441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15442 }
15443 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15444 {
15445 PyThreadState* __tstate = wxPyBeginAllowThreads();
15446 delete arg1;
d14a1e28 15447
0085ce49
RD
15448 wxPyEndAllowThreads(__tstate);
15449 if (PyErr_Occurred()) SWIG_fail;
15450 }
15451 resultobj = SWIG_Py_Void();
15452 return resultobj;
15453fail:
15454 return NULL;
15455}
15456
15457
15458SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15459 PyObject *resultobj = 0;
15460 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15461 PyObject *arg2 = (PyObject *) 0 ;
15462 PyObject *arg3 = (PyObject *) 0 ;
15463 bool arg4 ;
15464 void *argp1 = 0 ;
15465 int res1 = 0 ;
15466 bool val4 ;
15467 int ecode4 = 0 ;
15468 PyObject * obj0 = 0 ;
15469 PyObject * obj1 = 0 ;
15470 PyObject * obj2 = 0 ;
15471 PyObject * obj3 = 0 ;
15472 char * kwnames[] = {
15473 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15474 };
15475
15476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15478 if (!SWIG_IsOK(res1)) {
15479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15480 }
15481 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15482 arg2 = obj1;
15483 arg3 = obj2;
15484 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15485 if (!SWIG_IsOK(ecode4)) {
15486 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15487 }
15488 arg4 = static_cast< bool >(val4);
15489 {
15490 PyThreadState* __tstate = wxPyBeginAllowThreads();
15491 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15492 wxPyEndAllowThreads(__tstate);
15493 if (PyErr_Occurred()) SWIG_fail;
15494 }
15495 resultobj = SWIG_Py_Void();
15496 return resultobj;
15497fail:
15498 return NULL;
15499}
15500
15501
15502SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15503 PyObject *resultobj = 0;
15504 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15505 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15506 bool arg3 = (bool) false ;
15507 bool result;
15508 void *argp1 = 0 ;
15509 int res1 = 0 ;
15510 int val2 ;
15511 int ecode2 = 0 ;
15512 bool val3 ;
15513 int ecode3 = 0 ;
15514 PyObject * obj0 = 0 ;
15515 PyObject * obj1 = 0 ;
15516 PyObject * obj2 = 0 ;
15517 char * kwnames[] = {
15518 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15519 };
15520
15521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15523 if (!SWIG_IsOK(res1)) {
15524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15525 }
15526 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15527 if (obj1) {
15528 ecode2 = SWIG_AsVal_int(obj1, &val2);
15529 if (!SWIG_IsOK(ecode2)) {
15530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15531 }
15532 arg2 = static_cast< wxFontEncoding >(val2);
15533 }
15534 if (obj2) {
15535 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15536 if (!SWIG_IsOK(ecode3)) {
15537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15538 }
15539 arg3 = static_cast< bool >(val3);
15540 }
15541 {
15542 PyThreadState* __tstate = wxPyBeginAllowThreads();
15543 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15544 wxPyEndAllowThreads(__tstate);
15545 if (PyErr_Occurred()) SWIG_fail;
15546 }
15547 {
15548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15549 }
15550 return resultobj;
15551fail:
15552 return NULL;
15553}
15554
15555
15556SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15557 PyObject *resultobj = 0;
15558 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15559 wxString const &arg2_defvalue = wxPyEmptyString ;
15560 wxString *arg2 = (wxString *) &arg2_defvalue ;
15561 bool result;
15562 void *argp1 = 0 ;
15563 int res1 = 0 ;
15564 bool temp2 = false ;
15565 PyObject * obj0 = 0 ;
15566 PyObject * obj1 = 0 ;
15567 char * kwnames[] = {
15568 (char *) "self",(char *) "facename", NULL
15569 };
15570
15571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15573 if (!SWIG_IsOK(res1)) {
15574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15575 }
15576 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15577 if (obj1) {
d14a1e28 15578 {
0085ce49
RD
15579 arg2 = wxString_in_helper(obj1);
15580 if (arg2 == NULL) SWIG_fail;
15581 temp2 = true;
d14a1e28 15582 }
0085ce49
RD
15583 }
15584 {
15585 PyThreadState* __tstate = wxPyBeginAllowThreads();
15586 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15587 wxPyEndAllowThreads(__tstate);
15588 if (PyErr_Occurred()) SWIG_fail;
15589 }
15590 {
15591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15592 }
15593 {
15594 if (temp2)
15595 delete arg2;
15596 }
15597 return resultobj;
15598fail:
15599 {
15600 if (temp2)
15601 delete arg2;
15602 }
15603 return NULL;
d14a1e28
RD
15604}
15605
15606
0085ce49
RD
15607SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15608 PyObject *resultobj = 0;
0085ce49 15609 PyObject *result = 0 ;
0085ce49 15610
704eda0c 15611 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
0085ce49
RD
15612 {
15613 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15614 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
0085ce49
RD
15615 wxPyEndAllowThreads(__tstate);
15616 if (PyErr_Occurred()) SWIG_fail;
15617 }
15618 resultobj = result;
15619 return resultobj;
15620fail:
15621 return NULL;
d14a1e28
RD
15622}
15623
15624
0085ce49
RD
15625SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15626 PyObject *resultobj = 0;
0085ce49 15627 PyObject *result = 0 ;
0085ce49 15628
704eda0c 15629 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
0085ce49
RD
15630 {
15631 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15632 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
0085ce49
RD
15633 wxPyEndAllowThreads(__tstate);
15634 if (PyErr_Occurred()) SWIG_fail;
15635 }
15636 resultobj = result;
15637 return resultobj;
15638fail:
15639 return NULL;
d14a1e28
RD
15640}
15641
15642
704eda0c
RD
15643SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15644 PyObject *resultobj = 0;
15645 wxString *arg1 = 0 ;
15646 bool result;
15647 bool temp1 = false ;
15648 PyObject * obj0 = 0 ;
15649 char * kwnames[] = {
15650 (char *) "str", NULL
15651 };
15652
15653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15654 {
15655 arg1 = wxString_in_helper(obj0);
15656 if (arg1 == NULL) SWIG_fail;
15657 temp1 = true;
15658 }
15659 {
15660 PyThreadState* __tstate = wxPyBeginAllowThreads();
15661 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15662 wxPyEndAllowThreads(__tstate);
15663 if (PyErr_Occurred()) SWIG_fail;
15664 }
15665 {
15666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15667 }
15668 {
15669 if (temp1)
15670 delete arg1;
15671 }
15672 return resultobj;
15673fail:
15674 {
15675 if (temp1)
15676 delete arg1;
15677 }
15678 return NULL;
15679}
15680
15681
0085ce49
RD
15682SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15683 PyObject *obj;
15684 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15685 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15686 return SWIG_Py_Void();
d14a1e28
RD
15687}
15688
0085ce49
RD
15689SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15690 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15691}
15692
0085ce49
RD
15693SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15694 PyObject *resultobj = 0;
15695 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15696 int arg2 ;
15697 void *argp1 = 0 ;
15698 int res1 = 0 ;
15699 int val2 ;
15700 int ecode2 = 0 ;
15701 PyObject *swig_obj[2] ;
15702
15703 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15705 if (!SWIG_IsOK(res1)) {
15706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15707 }
15708 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15709 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15710 if (!SWIG_IsOK(ecode2)) {
15711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15712 }
15713 arg2 = static_cast< int >(val2);
15714 if (arg1) (arg1)->Language = arg2;
15715
15716 resultobj = SWIG_Py_Void();
15717 return resultobj;
15718fail:
15719 return NULL;
d14a1e28
RD
15720}
15721
15722
0085ce49
RD
15723SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15724 PyObject *resultobj = 0;
15725 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15726 int result;
15727 void *argp1 = 0 ;
15728 int res1 = 0 ;
15729 PyObject *swig_obj[1] ;
15730
15731 if (!args) SWIG_fail;
15732 swig_obj[0] = args;
15733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15734 if (!SWIG_IsOK(res1)) {
15735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15736 }
15737 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15738 result = (int) ((arg1)->Language);
15739 resultobj = SWIG_From_int(static_cast< int >(result));
15740 return resultobj;
15741fail:
15742 return NULL;
15743}
15744
15745
15746SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15747 PyObject *resultobj = 0;
15748 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15749 wxString *arg2 = (wxString *) 0 ;
15750 void *argp1 = 0 ;
15751 int res1 = 0 ;
15752 bool temp2 = false ;
15753 PyObject *swig_obj[2] ;
15754
15755 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15759 }
15760 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15761 {
15762 arg2 = wxString_in_helper(swig_obj[1]);
15763 if (arg2 == NULL) SWIG_fail;
15764 temp2 = true;
15765 }
15766 if (arg1) (arg1)->CanonicalName = *arg2;
15767
15768 resultobj = SWIG_Py_Void();
15769 {
15770 if (temp2)
15771 delete arg2;
15772 }
15773 return resultobj;
15774fail:
15775 {
15776 if (temp2)
15777 delete arg2;
15778 }
15779 return NULL;
d14a1e28
RD
15780}
15781
15782
0085ce49
RD
15783SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15784 PyObject *resultobj = 0;
15785 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15786 wxString *result = 0 ;
15787 void *argp1 = 0 ;
15788 int res1 = 0 ;
15789 PyObject *swig_obj[1] ;
15790
15791 if (!args) SWIG_fail;
15792 swig_obj[0] = args;
15793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15794 if (!SWIG_IsOK(res1)) {
15795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15796 }
15797 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15798 result = (wxString *)& ((arg1)->CanonicalName);
15799 {
093d3ff1 15800#if wxUSE_UNICODE
0085ce49 15801 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
093d3ff1 15802#else
0085ce49 15803 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
093d3ff1 15804#endif
0085ce49
RD
15805 }
15806 return resultobj;
15807fail:
15808 return NULL;
d14a1e28
RD
15809}
15810
15811
0085ce49
RD
15812SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15813 PyObject *resultobj = 0;
15814 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15815 wxString *arg2 = (wxString *) 0 ;
15816 void *argp1 = 0 ;
15817 int res1 = 0 ;
15818 bool temp2 = false ;
15819 PyObject *swig_obj[2] ;
15820
15821 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
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_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15825 }
15826 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15827 {
15828 arg2 = wxString_in_helper(swig_obj[1]);
15829 if (arg2 == NULL) SWIG_fail;
15830 temp2 = true;
15831 }
15832 if (arg1) (arg1)->Description = *arg2;
15833
15834 resultobj = SWIG_Py_Void();
15835 {
15836 if (temp2)
15837 delete arg2;
15838 }
15839 return resultobj;
15840fail:
15841 {
15842 if (temp2)
15843 delete arg2;
15844 }
15845 return NULL;
d14a1e28
RD
15846}
15847
15848
0085ce49
RD
15849SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15850 PyObject *resultobj = 0;
15851 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15852 wxString *result = 0 ;
15853 void *argp1 = 0 ;
15854 int res1 = 0 ;
15855 PyObject *swig_obj[1] ;
15856
15857 if (!args) SWIG_fail;
15858 swig_obj[0] = args;
15859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15860 if (!SWIG_IsOK(res1)) {
15861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15862 }
15863 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15864 result = (wxString *)& ((arg1)->Description);
15865 {
d14a1e28 15866#if wxUSE_UNICODE
0085ce49 15867 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 15868#else
0085ce49 15869 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 15870#endif
0085ce49
RD
15871 }
15872 return resultobj;
15873fail:
15874 return NULL;
15875}
15876
15877
15878SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15879 PyObject *obj;
15880 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15881 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15882 return SWIG_Py_Void();
15883}
15884
15885SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15886 PyObject *resultobj = 0;
15887 int arg1 = (int) -1 ;
15888 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15889 wxLocale *result = 0 ;
15890 int val1 ;
15891 int ecode1 = 0 ;
15892 int val2 ;
15893 int ecode2 = 0 ;
15894 PyObject * obj0 = 0 ;
15895 PyObject * obj1 = 0 ;
15896 char * kwnames[] = {
15897 (char *) "language",(char *) "flags", NULL
15898 };
15899
15900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15901 if (obj0) {
15902 ecode1 = SWIG_AsVal_int(obj0, &val1);
15903 if (!SWIG_IsOK(ecode1)) {
15904 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15905 }
15906 arg1 = static_cast< int >(val1);
15907 }
15908 if (obj1) {
15909 ecode2 = SWIG_AsVal_int(obj1, &val2);
15910 if (!SWIG_IsOK(ecode2)) {
15911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15912 }
15913 arg2 = static_cast< int >(val2);
15914 }
15915 {
15916 PyThreadState* __tstate = wxPyBeginAllowThreads();
15917 result = (wxLocale *)new_wxLocale(arg1,arg2);
15918 wxPyEndAllowThreads(__tstate);
15919 if (PyErr_Occurred()) SWIG_fail;
15920 }
15921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15922 return resultobj;
15923fail:
15924 return NULL;
d14a1e28
RD
15925}
15926
15927
0085ce49
RD
15928SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15929 PyObject *resultobj = 0;
15930 wxLocale *arg1 = (wxLocale *) 0 ;
15931 void *argp1 = 0 ;
15932 int res1 = 0 ;
15933 PyObject *swig_obj[1] ;
15934
15935 if (!args) SWIG_fail;
15936 swig_obj[0] = args;
15937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15938 if (!SWIG_IsOK(res1)) {
15939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15940 }
15941 arg1 = reinterpret_cast< wxLocale * >(argp1);
15942 {
15943 PyThreadState* __tstate = wxPyBeginAllowThreads();
15944 delete arg1;
d14a1e28 15945
0085ce49
RD
15946 wxPyEndAllowThreads(__tstate);
15947 if (PyErr_Occurred()) SWIG_fail;
15948 }
15949 resultobj = SWIG_Py_Void();
15950 return resultobj;
15951fail:
15952 return NULL;
15953}
15954
15955
15956SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15957 PyObject *resultobj = 0;
15958 wxLocale *arg1 = (wxLocale *) 0 ;
15959 wxString *arg2 = 0 ;
15960 wxString const &arg3_defvalue = wxPyEmptyString ;
15961 wxString *arg3 = (wxString *) &arg3_defvalue ;
15962 wxString const &arg4_defvalue = wxPyEmptyString ;
15963 wxString *arg4 = (wxString *) &arg4_defvalue ;
15964 bool arg5 = (bool) true ;
15965 bool arg6 = (bool) false ;
15966 bool result;
15967 void *argp1 = 0 ;
15968 int res1 = 0 ;
15969 bool temp2 = false ;
15970 bool temp3 = false ;
15971 bool temp4 = false ;
15972 bool val5 ;
15973 int ecode5 = 0 ;
15974 bool val6 ;
15975 int ecode6 = 0 ;
15976 PyObject * obj0 = 0 ;
15977 PyObject * obj1 = 0 ;
15978 PyObject * obj2 = 0 ;
15979 PyObject * obj3 = 0 ;
15980 PyObject * obj4 = 0 ;
15981 PyObject * obj5 = 0 ;
15982 char * kwnames[] = {
15983 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15984 };
15985
15986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15988 if (!SWIG_IsOK(res1)) {
15989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15990 }
15991 arg1 = reinterpret_cast< wxLocale * >(argp1);
15992 {
15993 arg2 = wxString_in_helper(obj1);
15994 if (arg2 == NULL) SWIG_fail;
15995 temp2 = true;
15996 }
15997 if (obj2) {
d14a1e28 15998 {
0085ce49
RD
15999 arg3 = wxString_in_helper(obj2);
16000 if (arg3 == NULL) SWIG_fail;
16001 temp3 = true;
d14a1e28 16002 }
0085ce49
RD
16003 }
16004 if (obj3) {
093d3ff1 16005 {
0085ce49
RD
16006 arg4 = wxString_in_helper(obj3);
16007 if (arg4 == NULL) SWIG_fail;
16008 temp4 = true;
093d3ff1 16009 }
0085ce49
RD
16010 }
16011 if (obj4) {
16012 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16013 if (!SWIG_IsOK(ecode5)) {
16014 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16015 }
16016 arg5 = static_cast< bool >(val5);
16017 }
16018 if (obj5) {
16019 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16020 if (!SWIG_IsOK(ecode6)) {
16021 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16022 }
16023 arg6 = static_cast< bool >(val6);
16024 }
16025 {
16026 PyThreadState* __tstate = wxPyBeginAllowThreads();
16027 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16028 wxPyEndAllowThreads(__tstate);
16029 if (PyErr_Occurred()) SWIG_fail;
16030 }
16031 {
16032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16033 }
16034 {
16035 if (temp2)
16036 delete arg2;
16037 }
16038 {
16039 if (temp3)
16040 delete arg3;
16041 }
16042 {
16043 if (temp4)
16044 delete arg4;
16045 }
16046 return resultobj;
16047fail:
16048 {
16049 if (temp2)
16050 delete arg2;
16051 }
16052 {
16053 if (temp3)
16054 delete arg3;
16055 }
16056 {
16057 if (temp4)
16058 delete arg4;
16059 }
16060 return NULL;
16061}
16062
16063
16064SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16065 PyObject *resultobj = 0;
16066 wxLocale *arg1 = (wxLocale *) 0 ;
16067 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16068 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16069 bool result;
16070 void *argp1 = 0 ;
16071 int res1 = 0 ;
16072 int val2 ;
16073 int ecode2 = 0 ;
16074 int val3 ;
16075 int ecode3 = 0 ;
16076 PyObject * obj0 = 0 ;
16077 PyObject * obj1 = 0 ;
16078 PyObject * obj2 = 0 ;
16079 char * kwnames[] = {
16080 (char *) "self",(char *) "language",(char *) "flags", NULL
16081 };
16082
16083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16085 if (!SWIG_IsOK(res1)) {
16086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16087 }
16088 arg1 = reinterpret_cast< wxLocale * >(argp1);
16089 if (obj1) {
16090 ecode2 = SWIG_AsVal_int(obj1, &val2);
16091 if (!SWIG_IsOK(ecode2)) {
16092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16093 }
16094 arg2 = static_cast< int >(val2);
16095 }
16096 if (obj2) {
16097 ecode3 = SWIG_AsVal_int(obj2, &val3);
16098 if (!SWIG_IsOK(ecode3)) {
16099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16100 }
16101 arg3 = static_cast< int >(val3);
16102 }
16103 {
16104 PyThreadState* __tstate = wxPyBeginAllowThreads();
16105 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16106 wxPyEndAllowThreads(__tstate);
16107 if (PyErr_Occurred()) SWIG_fail;
16108 }
16109 {
16110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16111 }
16112 return resultobj;
16113fail:
16114 return NULL;
093d3ff1
RD
16115}
16116
16117
0085ce49
RD
16118SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16119 PyObject *resultobj = 0;
16120 int result;
16121
16122 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16123 {
16124 PyThreadState* __tstate = wxPyBeginAllowThreads();
16125 result = (int)wxLocale::GetSystemLanguage();
16126 wxPyEndAllowThreads(__tstate);
16127 if (PyErr_Occurred()) SWIG_fail;
16128 }
16129 resultobj = SWIG_From_int(static_cast< int >(result));
16130 return resultobj;
16131fail:
16132 return NULL;
d14a1e28
RD
16133}
16134
16135
0085ce49
RD
16136SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16137 PyObject *resultobj = 0;
16138 wxFontEncoding result;
16139
16140 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16141 {
16142 PyThreadState* __tstate = wxPyBeginAllowThreads();
16143 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16144 wxPyEndAllowThreads(__tstate);
16145 if (PyErr_Occurred()) SWIG_fail;
16146 }
16147 resultobj = SWIG_From_int(static_cast< int >(result));
16148 return resultobj;
16149fail:
16150 return NULL;
d14a1e28
RD
16151}
16152
16153
0085ce49
RD
16154SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16155 PyObject *resultobj = 0;
16156 wxString result;
16157
16158 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16159 {
16160 PyThreadState* __tstate = wxPyBeginAllowThreads();
16161 result = wxLocale::GetSystemEncodingName();
16162 wxPyEndAllowThreads(__tstate);
16163 if (PyErr_Occurred()) SWIG_fail;
16164 }
16165 {
d14a1e28 16166#if wxUSE_UNICODE
0085ce49 16167 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 16168#else
0085ce49 16169 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 16170#endif
0085ce49
RD
16171 }
16172 return resultobj;
16173fail:
16174 return NULL;
d14a1e28
RD
16175}
16176
16177
0085ce49
RD
16178SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16179 PyObject *resultobj = 0;
16180 wxLocale *arg1 = (wxLocale *) 0 ;
16181 bool result;
16182 void *argp1 = 0 ;
16183 int res1 = 0 ;
16184 PyObject *swig_obj[1] ;
16185
16186 if (!args) SWIG_fail;
16187 swig_obj[0] = args;
16188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16189 if (!SWIG_IsOK(res1)) {
16190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16191 }
16192 arg1 = reinterpret_cast< wxLocale * >(argp1);
16193 {
16194 PyThreadState* __tstate = wxPyBeginAllowThreads();
16195 result = (bool)((wxLocale const *)arg1)->IsOk();
16196 wxPyEndAllowThreads(__tstate);
16197 if (PyErr_Occurred()) SWIG_fail;
16198 }
16199 {
16200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16201 }
16202 return resultobj;
16203fail:
16204 return NULL;
093d3ff1 16205}
0085ce49
RD
16206
16207
16208SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16209 PyObject *resultobj = 0;
16210 wxLocale *arg1 = (wxLocale *) 0 ;
16211 wxString result;
16212 void *argp1 = 0 ;
16213 int res1 = 0 ;
16214 PyObject *swig_obj[1] ;
16215
16216 if (!args) SWIG_fail;
16217 swig_obj[0] = args;
16218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16219 if (!SWIG_IsOK(res1)) {
16220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16221 }
16222 arg1 = reinterpret_cast< wxLocale * >(argp1);
16223 {
16224 PyThreadState* __tstate = wxPyBeginAllowThreads();
16225 result = ((wxLocale const *)arg1)->GetLocale();
16226 wxPyEndAllowThreads(__tstate);
16227 if (PyErr_Occurred()) SWIG_fail;
16228 }
16229 {
16230#if wxUSE_UNICODE
16231 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16232#else
16233 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16234#endif
16235 }
16236 return resultobj;
16237fail:
16238 return NULL;
d14a1e28
RD
16239}
16240
16241
0085ce49
RD
16242SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16243 PyObject *resultobj = 0;
16244 wxLocale *arg1 = (wxLocale *) 0 ;
16245 int result;
16246 void *argp1 = 0 ;
16247 int res1 = 0 ;
16248 PyObject *swig_obj[1] ;
16249
16250 if (!args) SWIG_fail;
16251 swig_obj[0] = args;
16252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16253 if (!SWIG_IsOK(res1)) {
16254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16255 }
16256 arg1 = reinterpret_cast< wxLocale * >(argp1);
16257 {
16258 PyThreadState* __tstate = wxPyBeginAllowThreads();
16259 result = (int)((wxLocale const *)arg1)->GetLanguage();
16260 wxPyEndAllowThreads(__tstate);
16261 if (PyErr_Occurred()) SWIG_fail;
16262 }
16263 resultobj = SWIG_From_int(static_cast< int >(result));
16264 return resultobj;
16265fail:
16266 return NULL;
d14a1e28
RD
16267}
16268
16269
0085ce49
RD
16270SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16271 PyObject *resultobj = 0;
16272 wxLocale *arg1 = (wxLocale *) 0 ;
16273 wxString result;
16274 void *argp1 = 0 ;
16275 int res1 = 0 ;
16276 PyObject *swig_obj[1] ;
16277
16278 if (!args) SWIG_fail;
16279 swig_obj[0] = args;
16280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16281 if (!SWIG_IsOK(res1)) {
16282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16283 }
16284 arg1 = reinterpret_cast< wxLocale * >(argp1);
16285 {
16286 PyThreadState* __tstate = wxPyBeginAllowThreads();
16287 result = ((wxLocale const *)arg1)->GetSysName();
16288 wxPyEndAllowThreads(__tstate);
16289 if (PyErr_Occurred()) SWIG_fail;
16290 }
16291 {
16292#if wxUSE_UNICODE
16293 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16294#else
16295 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16296#endif
16297 }
16298 return resultobj;
16299fail:
16300 return NULL;
d14a1e28
RD
16301}
16302
16303
0085ce49
RD
16304SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16305 PyObject *resultobj = 0;
16306 wxLocale *arg1 = (wxLocale *) 0 ;
16307 wxString result;
16308 void *argp1 = 0 ;
16309 int res1 = 0 ;
16310 PyObject *swig_obj[1] ;
16311
16312 if (!args) SWIG_fail;
16313 swig_obj[0] = args;
16314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16315 if (!SWIG_IsOK(res1)) {
16316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16317 }
16318 arg1 = reinterpret_cast< wxLocale * >(argp1);
16319 {
16320 PyThreadState* __tstate = wxPyBeginAllowThreads();
16321 result = ((wxLocale const *)arg1)->GetCanonicalName();
16322 wxPyEndAllowThreads(__tstate);
16323 if (PyErr_Occurred()) SWIG_fail;
16324 }
16325 {
16326#if wxUSE_UNICODE
16327 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16328#else
16329 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16330#endif
16331 }
16332 return resultobj;
16333fail:
16334 return NULL;
d14a1e28
RD
16335}
16336
16337
0085ce49
RD
16338SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16339 PyObject *resultobj = 0;
16340 wxString *arg1 = 0 ;
16341 bool temp1 = false ;
16342 PyObject * obj0 = 0 ;
16343 char * kwnames[] = {
16344 (char *) "prefix", NULL
16345 };
16346
16347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16348 {
16349 arg1 = wxString_in_helper(obj0);
16350 if (arg1 == NULL) SWIG_fail;
16351 temp1 = true;
16352 }
16353 {
16354 PyThreadState* __tstate = wxPyBeginAllowThreads();
16355 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16356 wxPyEndAllowThreads(__tstate);
16357 if (PyErr_Occurred()) SWIG_fail;
16358 }
16359 resultobj = SWIG_Py_Void();
16360 {
16361 if (temp1)
16362 delete arg1;
16363 }
16364 return resultobj;
16365fail:
16366 {
16367 if (temp1)
16368 delete arg1;
16369 }
16370 return NULL;
16371}
16372
16373
16374SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16375 PyObject *resultobj = 0;
16376 wxLocale *arg1 = (wxLocale *) 0 ;
16377 wxString *arg2 = 0 ;
16378 bool result;
16379 void *argp1 = 0 ;
16380 int res1 = 0 ;
16381 bool temp2 = false ;
16382 PyObject * obj0 = 0 ;
16383 PyObject * obj1 = 0 ;
16384 char * kwnames[] = {
16385 (char *) "self",(char *) "szDomain", NULL
16386 };
16387
16388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16390 if (!SWIG_IsOK(res1)) {
16391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16392 }
16393 arg1 = reinterpret_cast< wxLocale * >(argp1);
16394 {
16395 arg2 = wxString_in_helper(obj1);
16396 if (arg2 == NULL) SWIG_fail;
16397 temp2 = true;
16398 }
16399 {
16400 PyThreadState* __tstate = wxPyBeginAllowThreads();
16401 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16402 wxPyEndAllowThreads(__tstate);
16403 if (PyErr_Occurred()) SWIG_fail;
16404 }
16405 {
16406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16407 }
16408 {
16409 if (temp2)
16410 delete arg2;
16411 }
16412 return resultobj;
16413fail:
16414 {
16415 if (temp2)
16416 delete arg2;
16417 }
16418 return NULL;
16419}
16420
16421
33d6fd3b
RD
16422SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16423 PyObject *resultobj = 0;
16424 int arg1 ;
16425 bool result;
16426 int val1 ;
16427 int ecode1 = 0 ;
16428 PyObject * obj0 = 0 ;
16429 char * kwnames[] = {
16430 (char *) "lang", NULL
16431 };
16432
16433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16434 ecode1 = SWIG_AsVal_int(obj0, &val1);
16435 if (!SWIG_IsOK(ecode1)) {
16436 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16437 }
16438 arg1 = static_cast< int >(val1);
16439 {
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 result = (bool)wxLocale::IsAvailable(arg1);
16442 wxPyEndAllowThreads(__tstate);
16443 if (PyErr_Occurred()) SWIG_fail;
16444 }
16445 {
16446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16447 }
16448 return resultobj;
16449fail:
16450 return NULL;
16451}
16452
16453
0085ce49
RD
16454SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16455 PyObject *resultobj = 0;
16456 wxLocale *arg1 = (wxLocale *) 0 ;
16457 wxString *arg2 = 0 ;
16458 bool result;
16459 void *argp1 = 0 ;
16460 int res1 = 0 ;
16461 bool temp2 = false ;
16462 PyObject * obj0 = 0 ;
16463 PyObject * obj1 = 0 ;
16464 char * kwnames[] = {
16465 (char *) "self",(char *) "szDomain", NULL
16466 };
16467
16468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16470 if (!SWIG_IsOK(res1)) {
16471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16472 }
16473 arg1 = reinterpret_cast< wxLocale * >(argp1);
16474 {
16475 arg2 = wxString_in_helper(obj1);
16476 if (arg2 == NULL) SWIG_fail;
16477 temp2 = true;
16478 }
16479 {
16480 PyThreadState* __tstate = wxPyBeginAllowThreads();
16481 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16482 wxPyEndAllowThreads(__tstate);
16483 if (PyErr_Occurred()) SWIG_fail;
16484 }
16485 {
16486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16487 }
16488 {
16489 if (temp2)
16490 delete arg2;
16491 }
16492 return resultobj;
16493fail:
16494 {
16495 if (temp2)
16496 delete arg2;
16497 }
16498 return NULL;
d14a1e28
RD
16499}
16500
16501
0085ce49
RD
16502SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16503 PyObject *resultobj = 0;
16504 int arg1 ;
16505 wxLanguageInfo *result = 0 ;
16506 int val1 ;
16507 int ecode1 = 0 ;
16508 PyObject * obj0 = 0 ;
16509 char * kwnames[] = {
16510 (char *) "lang", NULL
16511 };
16512
16513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16514 ecode1 = SWIG_AsVal_int(obj0, &val1);
16515 if (!SWIG_IsOK(ecode1)) {
16516 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16517 }
16518 arg1 = static_cast< int >(val1);
16519 {
16520 PyThreadState* __tstate = wxPyBeginAllowThreads();
16521 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16522 wxPyEndAllowThreads(__tstate);
16523 if (PyErr_Occurred()) SWIG_fail;
16524 }
16525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16526 return resultobj;
16527fail:
16528 return NULL;
16529}
16530
16531
16532SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16533 PyObject *resultobj = 0;
16534 int arg1 ;
16535 wxString result;
16536 int val1 ;
16537 int ecode1 = 0 ;
16538 PyObject * obj0 = 0 ;
16539 char * kwnames[] = {
16540 (char *) "lang", NULL
16541 };
16542
16543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16544 ecode1 = SWIG_AsVal_int(obj0, &val1);
16545 if (!SWIG_IsOK(ecode1)) {
16546 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16547 }
16548 arg1 = static_cast< int >(val1);
16549 {
16550 PyThreadState* __tstate = wxPyBeginAllowThreads();
16551 result = wxLocale::GetLanguageName(arg1);
16552 wxPyEndAllowThreads(__tstate);
16553 if (PyErr_Occurred()) SWIG_fail;
16554 }
16555 {
16556#if wxUSE_UNICODE
16557 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16558#else
16559 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16560#endif
16561 }
16562 return resultobj;
16563fail:
16564 return NULL;
d14a1e28
RD
16565}
16566
16567
0085ce49
RD
16568SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16569 PyObject *resultobj = 0;
16570 wxString *arg1 = 0 ;
16571 wxLanguageInfo *result = 0 ;
16572 bool temp1 = false ;
16573 PyObject * obj0 = 0 ;
16574 char * kwnames[] = {
16575 (char *) "locale", NULL
16576 };
16577
16578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16579 {
16580 arg1 = wxString_in_helper(obj0);
16581 if (arg1 == NULL) SWIG_fail;
16582 temp1 = true;
16583 }
16584 {
16585 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16586 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16587 wxPyEndAllowThreads(__tstate);
16588 if (PyErr_Occurred()) SWIG_fail;
16589 }
16590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16591 {
16592 if (temp1)
16593 delete arg1;
16594 }
16595 return resultobj;
16596fail:
16597 {
16598 if (temp1)
16599 delete arg1;
16600 }
16601 return NULL;
16602}
16603
16604
16605SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16606 PyObject *resultobj = 0;
16607 wxLanguageInfo *arg1 = 0 ;
16608 void *argp1 = 0 ;
16609 int res1 = 0 ;
16610 PyObject * obj0 = 0 ;
16611 char * kwnames[] = {
16612 (char *) "info", NULL
16613 };
16614
16615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16616 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16617 if (!SWIG_IsOK(res1)) {
16618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16619 }
16620 if (!argp1) {
16621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16622 }
16623 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16624 {
16625 PyThreadState* __tstate = wxPyBeginAllowThreads();
16626 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16627 wxPyEndAllowThreads(__tstate);
16628 if (PyErr_Occurred()) SWIG_fail;
16629 }
16630 resultobj = SWIG_Py_Void();
16631 return resultobj;
16632fail:
16633 return NULL;
16634}
16635
16636
16637SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16638 PyObject *resultobj = 0;
16639 wxLocale *arg1 = (wxLocale *) 0 ;
16640 wxString *arg2 = 0 ;
16641 wxString const &arg3_defvalue = wxPyEmptyString ;
16642 wxString *arg3 = (wxString *) &arg3_defvalue ;
16643 wxString result;
16644 void *argp1 = 0 ;
16645 int res1 = 0 ;
16646 bool temp2 = false ;
16647 bool temp3 = false ;
16648 PyObject * obj0 = 0 ;
16649 PyObject * obj1 = 0 ;
16650 PyObject * obj2 = 0 ;
16651 char * kwnames[] = {
16652 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16653 };
16654
16655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16657 if (!SWIG_IsOK(res1)) {
16658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16659 }
16660 arg1 = reinterpret_cast< wxLocale * >(argp1);
16661 {
16662 arg2 = wxString_in_helper(obj1);
16663 if (arg2 == NULL) SWIG_fail;
16664 temp2 = true;
16665 }
16666 if (obj2) {
16667 {
16668 arg3 = wxString_in_helper(obj2);
16669 if (arg3 == NULL) SWIG_fail;
16670 temp3 = true;
16671 }
16672 }
16673 {
16674 PyThreadState* __tstate = wxPyBeginAllowThreads();
16675 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16676 wxPyEndAllowThreads(__tstate);
16677 if (PyErr_Occurred()) SWIG_fail;
16678 }
16679 {
16680#if wxUSE_UNICODE
16681 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16682#else
16683 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16684#endif
16685 }
16686 {
16687 if (temp2)
16688 delete arg2;
16689 }
16690 {
16691 if (temp3)
16692 delete arg3;
16693 }
16694 return resultobj;
16695fail:
16696 {
16697 if (temp2)
16698 delete arg2;
16699 }
16700 {
16701 if (temp3)
16702 delete arg3;
16703 }
16704 return NULL;
16705}
16706
16707
16708SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16709 PyObject *resultobj = 0;
16710 wxLocale *arg1 = (wxLocale *) 0 ;
16711 wxString *result = 0 ;
16712 void *argp1 = 0 ;
16713 int res1 = 0 ;
16714 PyObject *swig_obj[1] ;
16715
16716 if (!args) SWIG_fail;
16717 swig_obj[0] = args;
16718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16719 if (!SWIG_IsOK(res1)) {
16720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16721 }
16722 arg1 = reinterpret_cast< wxLocale * >(argp1);
16723 {
16724 PyThreadState* __tstate = wxPyBeginAllowThreads();
16725 {
16726 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16727 result = (wxString *) &_result_ref;
16728 }
16729 wxPyEndAllowThreads(__tstate);
16730 if (PyErr_Occurred()) SWIG_fail;
16731 }
16732 {
16733#if wxUSE_UNICODE
16734 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16735#else
16736 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16737#endif
16738 }
16739 return resultobj;
16740fail:
16741 return NULL;
16742}
16743
16744
16745SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16746 PyObject *obj;
16747 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16748 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16749 return SWIG_Py_Void();
16750}
16751
16752SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16753 return SWIG_Python_InitShadowInstance(args);
16754}
16755
16756SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16757 PyObject *resultobj = 0;
16758 int arg1 = (int) -1 ;
16759 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16760 wxPyLocale *result = 0 ;
16761 int val1 ;
16762 int ecode1 = 0 ;
16763 int val2 ;
16764 int ecode2 = 0 ;
16765 PyObject * obj0 = 0 ;
16766 PyObject * obj1 = 0 ;
16767 char * kwnames[] = {
16768 (char *) "language",(char *) "flags", NULL
16769 };
16770
16771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16772 if (obj0) {
16773 ecode1 = SWIG_AsVal_int(obj0, &val1);
16774 if (!SWIG_IsOK(ecode1)) {
16775 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16776 }
16777 arg1 = static_cast< int >(val1);
16778 }
16779 if (obj1) {
16780 ecode2 = SWIG_AsVal_int(obj1, &val2);
16781 if (!SWIG_IsOK(ecode2)) {
16782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16783 }
16784 arg2 = static_cast< int >(val2);
16785 }
16786 {
16787 PyThreadState* __tstate = wxPyBeginAllowThreads();
16788 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16789 wxPyEndAllowThreads(__tstate);
16790 if (PyErr_Occurred()) SWIG_fail;
16791 }
16792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16793 return resultobj;
16794fail:
16795 return NULL;
16796}
16797
16798
16799SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16800 PyObject *resultobj = 0;
16801 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16802 void *argp1 = 0 ;
16803 int res1 = 0 ;
16804 PyObject *swig_obj[1] ;
16805
16806 if (!args) SWIG_fail;
16807 swig_obj[0] = args;
16808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16809 if (!SWIG_IsOK(res1)) {
16810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16811 }
16812 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16813 {
16814 PyThreadState* __tstate = wxPyBeginAllowThreads();
16815 delete arg1;
16816
0085ce49
RD
16817 wxPyEndAllowThreads(__tstate);
16818 if (PyErr_Occurred()) SWIG_fail;
16819 }
fc46b7f3 16820 resultobj = SWIG_Py_Void();
0085ce49
RD
16821 return resultobj;
16822fail:
0085ce49 16823 return NULL;
d14a1e28
RD
16824}
16825
16826
fc46b7f3 16827SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16828 PyObject *resultobj = 0;
fc46b7f3
RD
16829 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16830 PyObject *arg2 = (PyObject *) 0 ;
16831 PyObject *arg3 = (PyObject *) 0 ;
0085ce49
RD
16832 void *argp1 = 0 ;
16833 int res1 = 0 ;
16834 PyObject * obj0 = 0 ;
fc46b7f3
RD
16835 PyObject * obj1 = 0 ;
16836 PyObject * obj2 = 0 ;
0085ce49 16837 char * kwnames[] = {
fc46b7f3 16838 (char *) "self",(char *) "self",(char *) "_class", NULL
0085ce49
RD
16839 };
16840
fc46b7f3
RD
16841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16843 if (!SWIG_IsOK(res1)) {
fc46b7f3 16844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
0085ce49 16845 }
fc46b7f3
RD
16846 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16847 arg2 = obj1;
16848 arg3 = obj2;
0085ce49
RD
16849 {
16850 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16851 (arg1)->_setCallbackInfo(arg2,arg3);
0085ce49
RD
16852 wxPyEndAllowThreads(__tstate);
16853 if (PyErr_Occurred()) SWIG_fail;
16854 }
16855 resultobj = SWIG_Py_Void();
16856 return resultobj;
16857fail:
16858 return NULL;
16859}
16860
16861
fc46b7f3 16862SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16863 PyObject *resultobj = 0;
fc46b7f3
RD
16864 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16865 wxChar *arg2 = (wxChar *) 0 ;
16866 wxChar *arg3 = (wxChar *) NULL ;
16867 wxChar *result = 0 ;
0085ce49
RD
16868 void *argp1 = 0 ;
16869 int res1 = 0 ;
fc46b7f3
RD
16870 void *argp2 = 0 ;
16871 int res2 = 0 ;
16872 void *argp3 = 0 ;
16873 int res3 = 0 ;
0085ce49
RD
16874 PyObject * obj0 = 0 ;
16875 PyObject * obj1 = 0 ;
16876 PyObject * obj2 = 0 ;
16877 char * kwnames[] = {
16878 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16879 };
16880
fc46b7f3
RD
16881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16883 if (!SWIG_IsOK(res1)) {
fc46b7f3 16884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
0085ce49 16885 }
fc46b7f3
RD
16886 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16887 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16888 if (!SWIG_IsOK(res2)) {
16889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
0085ce49 16890 }
fc46b7f3 16891 arg2 = reinterpret_cast< wxChar * >(argp2);
0085ce49 16892 if (obj2) {
fc46b7f3
RD
16893 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16894 if (!SWIG_IsOK(res3)) {
16895 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
b6294124 16896 }
fc46b7f3 16897 arg3 = reinterpret_cast< wxChar * >(argp3);
0085ce49
RD
16898 }
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16901 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
0085ce49
RD
16902 wxPyEndAllowThreads(__tstate);
16903 if (PyErr_Occurred()) SWIG_fail;
16904 }
fc46b7f3 16905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16906 return resultobj;
16907fail:
0085ce49 16908 return NULL;
b6294124
RD
16909}
16910
16911
fc46b7f3 16912SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16913 PyObject *resultobj = 0;
fc46b7f3
RD
16914 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16915 wxChar *arg2 = (wxChar *) 0 ;
16916 wxChar *arg3 = (wxChar *) 0 ;
16917 size_t arg4 ;
16918 wxChar *arg5 = (wxChar *) NULL ;
16919 wxChar *result = 0 ;
0085ce49
RD
16920 void *argp1 = 0 ;
16921 int res1 = 0 ;
fc46b7f3
RD
16922 void *argp2 = 0 ;
16923 int res2 = 0 ;
16924 void *argp3 = 0 ;
16925 int res3 = 0 ;
16926 size_t val4 ;
16927 int ecode4 = 0 ;
16928 void *argp5 = 0 ;
16929 int res5 = 0 ;
16930 PyObject * obj0 = 0 ;
16931 PyObject * obj1 = 0 ;
16932 PyObject * obj2 = 0 ;
16933 PyObject * obj3 = 0 ;
16934 PyObject * obj4 = 0 ;
16935 char * kwnames[] = {
16936 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16937 };
0085ce49 16938
fc46b7f3
RD
16939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16941 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16943 }
16944 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16945 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16946 if (!SWIG_IsOK(res2)) {
16947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16948 }
16949 arg2 = reinterpret_cast< wxChar * >(argp2);
16950 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16951 if (!SWIG_IsOK(res3)) {
16952 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16953 }
16954 arg3 = reinterpret_cast< wxChar * >(argp3);
16955 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16956 if (!SWIG_IsOK(ecode4)) {
16957 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16958 }
16959 arg4 = static_cast< size_t >(val4);
16960 if (obj4) {
16961 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16962 if (!SWIG_IsOK(res5)) {
16963 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16964 }
16965 arg5 = reinterpret_cast< wxChar * >(argp5);
0085ce49 16966 }
0085ce49
RD
16967 {
16968 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16969 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
0085ce49
RD
16970 wxPyEndAllowThreads(__tstate);
16971 if (PyErr_Occurred()) SWIG_fail;
16972 }
fc46b7f3 16973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16974 return resultobj;
16975fail:
16976 return NULL;
d14a1e28
RD
16977}
16978
16979
fc46b7f3 16980SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16981 PyObject *obj;
16982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16983 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
0085ce49 16984 return SWIG_Py_Void();
d14a1e28
RD
16985}
16986
fc46b7f3 16987SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16988 return SWIG_Python_InitShadowInstance(args);
16989}
d14a1e28 16990
0085ce49
RD
16991SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16992 PyObject *resultobj = 0;
16993 wxLocale *result = 0 ;
16994
16995 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16996 {
16997 PyThreadState* __tstate = wxPyBeginAllowThreads();
16998 result = (wxLocale *)wxGetLocale();
16999 wxPyEndAllowThreads(__tstate);
17000 if (PyErr_Occurred()) SWIG_fail;
17001 }
17002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17003 return resultobj;
17004fail:
17005 return NULL;
d14a1e28
RD
17006}
17007
17008
0085ce49
RD
17009SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17010 PyObject *resultobj = 0;
17011 wxString *arg1 = 0 ;
17012 wxString result;
17013 bool temp1 = false ;
17014
17015 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17016 {
17017 arg1 = wxString_in_helper(swig_obj[0]);
17018 if (arg1 == NULL) SWIG_fail;
17019 temp1 = true;
17020 }
17021 {
17022 PyThreadState* __tstate = wxPyBeginAllowThreads();
17023 result = wxGetTranslation((wxString const &)*arg1);
17024 wxPyEndAllowThreads(__tstate);
17025 if (PyErr_Occurred()) SWIG_fail;
17026 }
17027 {
093d3ff1 17028#if wxUSE_UNICODE
0085ce49 17029 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 17030#else
0085ce49 17031 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 17032#endif
0085ce49
RD
17033 }
17034 {
17035 if (temp1)
17036 delete arg1;
17037 }
17038 return resultobj;
17039fail:
17040 {
17041 if (temp1)
17042 delete arg1;
17043 }
17044 return NULL;
b6294124
RD
17045}
17046
17047
0085ce49 17048SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17049 PyObject *resultobj = 0;
17050 wxString *arg1 = 0 ;
17051 wxString *arg2 = 0 ;
17052 wxString result;
17053 bool temp1 = false ;
17054 bool temp2 = false ;
17055
17056 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17057 {
17058 arg1 = wxString_in_helper(swig_obj[0]);
17059 if (arg1 == NULL) SWIG_fail;
17060 temp1 = true;
17061 }
17062 {
17063 arg2 = wxString_in_helper(swig_obj[1]);
17064 if (arg2 == NULL) SWIG_fail;
17065 temp2 = true;
17066 }
17067 {
17068 PyThreadState* __tstate = wxPyBeginAllowThreads();
17069 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17070 wxPyEndAllowThreads(__tstate);
17071 if (PyErr_Occurred()) SWIG_fail;
17072 }
17073 {
17074#if wxUSE_UNICODE
17075 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17076#else
17077 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17078#endif
17079 }
17080 {
17081 if (temp1)
17082 delete arg1;
17083 }
17084 {
17085 if (temp2)
17086 delete arg2;
17087 }
17088 return resultobj;
17089fail:
17090 {
17091 if (temp1)
17092 delete arg1;
17093 }
17094 {
17095 if (temp2)
17096 delete arg2;
17097 }
17098 return NULL;
17099}
17100
17101
17102SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
17103 PyObject *resultobj = 0;
17104 wxString *arg1 = 0 ;
17105 wxString *arg2 = 0 ;
17106 size_t arg3 ;
17107 wxString result;
17108 bool temp1 = false ;
17109 bool temp2 = false ;
17110 size_t val3 ;
17111 int ecode3 = 0 ;
17112
17113 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17114 {
17115 arg1 = wxString_in_helper(swig_obj[0]);
17116 if (arg1 == NULL) SWIG_fail;
17117 temp1 = true;
17118 }
17119 {
17120 arg2 = wxString_in_helper(swig_obj[1]);
17121 if (arg2 == NULL) SWIG_fail;
17122 temp2 = true;
17123 }
17124 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17125 if (!SWIG_IsOK(ecode3)) {
17126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17127 }
17128 arg3 = static_cast< size_t >(val3);
17129 {
17130 PyThreadState* __tstate = wxPyBeginAllowThreads();
17131 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17132 wxPyEndAllowThreads(__tstate);
17133 if (PyErr_Occurred()) SWIG_fail;
17134 }
17135 {
17136#if wxUSE_UNICODE
17137 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17138#else
17139 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17140#endif
17141 }
17142 {
17143 if (temp1)
17144 delete arg1;
17145 }
17146 {
17147 if (temp2)
17148 delete arg2;
17149 }
17150 return resultobj;
17151fail:
17152 {
17153 if (temp1)
17154 delete arg1;
17155 }
17156 {
17157 if (temp2)
17158 delete arg2;
17159 }
17160 return NULL;
d14a1e28
RD
17161}
17162
17163
fc46b7f3
RD
17164SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17165 PyObject *resultobj = 0;
17166 wxString *arg1 = 0 ;
17167 wxString *arg2 = 0 ;
17168 size_t arg3 ;
17169 wxString *arg4 = 0 ;
17170 wxString result;
17171 bool temp1 = false ;
17172 bool temp2 = false ;
17173 size_t val3 ;
17174 int ecode3 = 0 ;
17175 bool temp4 = false ;
17176
17177 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17178 {
17179 arg1 = wxString_in_helper(swig_obj[0]);
17180 if (arg1 == NULL) SWIG_fail;
17181 temp1 = true;
17182 }
17183 {
17184 arg2 = wxString_in_helper(swig_obj[1]);
17185 if (arg2 == NULL) SWIG_fail;
17186 temp2 = true;
17187 }
17188 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17189 if (!SWIG_IsOK(ecode3)) {
17190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17191 }
17192 arg3 = static_cast< size_t >(val3);
17193 {
17194 arg4 = wxString_in_helper(swig_obj[3]);
17195 if (arg4 == NULL) SWIG_fail;
17196 temp4 = true;
17197 }
17198 {
17199 PyThreadState* __tstate = wxPyBeginAllowThreads();
17200 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17201 wxPyEndAllowThreads(__tstate);
17202 if (PyErr_Occurred()) SWIG_fail;
17203 }
17204 {
17205#if wxUSE_UNICODE
17206 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17207#else
17208 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17209#endif
17210 }
17211 {
17212 if (temp1)
17213 delete arg1;
17214 }
17215 {
17216 if (temp2)
17217 delete arg2;
17218 }
17219 {
17220 if (temp4)
17221 delete arg4;
17222 }
17223 return resultobj;
17224fail:
17225 {
17226 if (temp1)
17227 delete arg1;
17228 }
17229 {
17230 if (temp2)
17231 delete arg2;
17232 }
17233 {
17234 if (temp4)
17235 delete arg4;
17236 }
17237 return NULL;
17238}
17239
17240
0085ce49
RD
17241SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17242 int argc;
fc46b7f3 17243 PyObject *argv[5];
0085ce49 17244
fc46b7f3 17245 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
0085ce49
RD
17246 --argc;
17247 if (argc == 1) {
17248 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17249 }
fc46b7f3 17250 if (argc == 2) {
0085ce49
RD
17251 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17252 }
fc46b7f3
RD
17253 if (argc == 3) {
17254 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17255 }
17256 if (argc == 4) {
17257 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17258 }
0085ce49
RD
17259
17260fail:
17261 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17262 return NULL;
d14a1e28
RD
17263}
17264
17265
0085ce49
RD
17266SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17267 PyObject *resultobj = 0;
17268 wxEncodingConverter *result = 0 ;
17269
17270 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17271 {
17272 PyThreadState* __tstate = wxPyBeginAllowThreads();
17273 result = (wxEncodingConverter *)new wxEncodingConverter();
17274 wxPyEndAllowThreads(__tstate);
17275 if (PyErr_Occurred()) SWIG_fail;
17276 }
17277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17278 return resultobj;
17279fail:
17280 return NULL;
d14a1e28
RD
17281}
17282
17283
0085ce49
RD
17284SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17285 PyObject *resultobj = 0;
17286 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17287 void *argp1 = 0 ;
17288 int res1 = 0 ;
17289 PyObject *swig_obj[1] ;
17290
17291 if (!args) SWIG_fail;
17292 swig_obj[0] = args;
17293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17294 if (!SWIG_IsOK(res1)) {
17295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17296 }
17297 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17298 {
17299 PyThreadState* __tstate = wxPyBeginAllowThreads();
17300 delete arg1;
d14a1e28 17301
0085ce49
RD
17302 wxPyEndAllowThreads(__tstate);
17303 if (PyErr_Occurred()) SWIG_fail;
17304 }
17305 resultobj = SWIG_Py_Void();
17306 return resultobj;
17307fail:
17308 return NULL;
17309}
17310
17311
17312SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17313 PyObject *resultobj = 0;
17314 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17315 wxFontEncoding arg2 ;
17316 wxFontEncoding arg3 ;
17317 int arg4 = (int) wxCONVERT_STRICT ;
17318 bool result;
17319 void *argp1 = 0 ;
17320 int res1 = 0 ;
17321 int val2 ;
17322 int ecode2 = 0 ;
17323 int val3 ;
17324 int ecode3 = 0 ;
17325 int val4 ;
17326 int ecode4 = 0 ;
17327 PyObject * obj0 = 0 ;
17328 PyObject * obj1 = 0 ;
17329 PyObject * obj2 = 0 ;
17330 PyObject * obj3 = 0 ;
17331 char * kwnames[] = {
17332 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17333 };
17334
17335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17337 if (!SWIG_IsOK(res1)) {
17338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17339 }
17340 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17341 ecode2 = SWIG_AsVal_int(obj1, &val2);
17342 if (!SWIG_IsOK(ecode2)) {
17343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17344 }
17345 arg2 = static_cast< wxFontEncoding >(val2);
17346 ecode3 = SWIG_AsVal_int(obj2, &val3);
17347 if (!SWIG_IsOK(ecode3)) {
17348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17349 }
17350 arg3 = static_cast< wxFontEncoding >(val3);
17351 if (obj3) {
17352 ecode4 = SWIG_AsVal_int(obj3, &val4);
17353 if (!SWIG_IsOK(ecode4)) {
17354 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17355 }
17356 arg4 = static_cast< int >(val4);
17357 }
17358 {
17359 PyThreadState* __tstate = wxPyBeginAllowThreads();
17360 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17361 wxPyEndAllowThreads(__tstate);
17362 if (PyErr_Occurred()) SWIG_fail;
17363 }
17364 {
17365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17366 }
17367 return resultobj;
17368fail:
17369 return NULL;
17370}
17371
17372
17373SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17374 PyObject *resultobj = 0;
17375 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17376 wxString *arg2 = 0 ;
17377 wxString result;
17378 void *argp1 = 0 ;
17379 int res1 = 0 ;
17380 bool temp2 = false ;
17381 PyObject * obj0 = 0 ;
17382 PyObject * obj1 = 0 ;
17383 char * kwnames[] = {
17384 (char *) "self",(char *) "input", NULL
17385 };
17386
17387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17389 if (!SWIG_IsOK(res1)) {
17390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17391 }
17392 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17393 {
17394 arg2 = wxString_in_helper(obj1);
17395 if (arg2 == NULL) SWIG_fail;
17396 temp2 = true;
17397 }
17398 {
17399 PyThreadState* __tstate = wxPyBeginAllowThreads();
17400 result = (arg1)->Convert((wxString const &)*arg2);
17401 wxPyEndAllowThreads(__tstate);
17402 if (PyErr_Occurred()) SWIG_fail;
17403 }
17404 {
17405#if wxUSE_UNICODE
17406 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17407#else
17408 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17409#endif
17410 }
17411 {
17412 if (temp2)
17413 delete arg2;
17414 }
17415 return resultobj;
17416fail:
17417 {
17418 if (temp2)
17419 delete arg2;
17420 }
17421 return NULL;
17422}
17423
17424
17425SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17426 PyObject *resultobj = 0;
17427 wxFontEncoding arg1 ;
17428 int arg2 = (int) wxPLATFORM_CURRENT ;
17429 wxFontEncodingArray result;
17430 int val1 ;
17431 int ecode1 = 0 ;
17432 int val2 ;
17433 int ecode2 = 0 ;
17434 PyObject * obj0 = 0 ;
17435 PyObject * obj1 = 0 ;
17436 char * kwnames[] = {
17437 (char *) "enc",(char *) "platform", NULL
17438 };
17439
17440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17441 ecode1 = SWIG_AsVal_int(obj0, &val1);
17442 if (!SWIG_IsOK(ecode1)) {
17443 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17444 }
17445 arg1 = static_cast< wxFontEncoding >(val1);
17446 if (obj1) {
17447 ecode2 = SWIG_AsVal_int(obj1, &val2);
17448 if (!SWIG_IsOK(ecode2)) {
17449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17450 }
17451 arg2 = static_cast< int >(val2);
17452 }
17453 {
17454 PyThreadState* __tstate = wxPyBeginAllowThreads();
17455 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
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;
d14a1e28
RD
17470}
17471
17472
0085ce49
RD
17473SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17474 PyObject *resultobj = 0;
17475 wxFontEncoding arg1 ;
17476 wxFontEncodingArray result;
17477 int val1 ;
17478 int ecode1 = 0 ;
17479 PyObject * obj0 = 0 ;
17480 char * kwnames[] = {
17481 (char *) "enc", NULL
17482 };
17483
17484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17485 ecode1 = SWIG_AsVal_int(obj0, &val1);
17486 if (!SWIG_IsOK(ecode1)) {
17487 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17488 }
17489 arg1 = static_cast< wxFontEncoding >(val1);
17490 {
17491 PyThreadState* __tstate = wxPyBeginAllowThreads();
17492 result = wxEncodingConverter::GetAllEquivalents(arg1);
17493 wxPyEndAllowThreads(__tstate);
17494 if (PyErr_Occurred()) SWIG_fail;
17495 }
17496 {
17497 resultobj = PyList_New(0);
17498 for (size_t i=0; i < (&result)->GetCount(); i++) {
17499 PyObject* number = PyInt_FromLong((&result)->Item(i));
17500 PyList_Append(resultobj, number);
17501 Py_DECREF(number);
093d3ff1 17502 }
0085ce49
RD
17503 }
17504 return resultobj;
17505fail:
17506 return NULL;
17507}
17508
17509
17510SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17511 PyObject *resultobj = 0;
17512 wxFontEncoding arg1 ;
17513 wxFontEncoding arg2 ;
17514 bool result;
17515 int val1 ;
17516 int ecode1 = 0 ;
17517 int val2 ;
17518 int ecode2 = 0 ;
17519 PyObject * obj0 = 0 ;
17520 PyObject * obj1 = 0 ;
17521 char * kwnames[] = {
17522 (char *) "encIn",(char *) "encOut", NULL
17523 };
17524
17525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17526 ecode1 = SWIG_AsVal_int(obj0, &val1);
17527 if (!SWIG_IsOK(ecode1)) {
17528 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17529 }
17530 arg1 = static_cast< wxFontEncoding >(val1);
17531 ecode2 = SWIG_AsVal_int(obj1, &val2);
17532 if (!SWIG_IsOK(ecode2)) {
17533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17534 }
17535 arg2 = static_cast< wxFontEncoding >(val2);
17536 {
17537 PyThreadState* __tstate = wxPyBeginAllowThreads();
17538 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17539 wxPyEndAllowThreads(__tstate);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 }
17542 {
17543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17544 }
17545 return resultobj;
17546fail:
17547 return NULL;
d14a1e28
RD
17548}
17549
17550
0085ce49
RD
17551SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17552 PyObject *obj;
17553 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17554 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17555 return SWIG_Py_Void();
d14a1e28
RD
17556}
17557
0085ce49
RD
17558SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17559 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
17560}
17561
0085ce49
RD
17562SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17563 PyObject *resultobj = 0;
17564 wxDC *arg1 = (wxDC *) 0 ;
17565 void *argp1 = 0 ;
17566 int res1 = 0 ;
17567 PyObject *swig_obj[1] ;
17568
17569 if (!args) SWIG_fail;
17570 swig_obj[0] = args;
17571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17572 if (!SWIG_IsOK(res1)) {
17573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17574 }
17575 arg1 = reinterpret_cast< wxDC * >(argp1);
17576 {
17577 PyThreadState* __tstate = wxPyBeginAllowThreads();
17578 delete arg1;
d14a1e28 17579
0085ce49
RD
17580 wxPyEndAllowThreads(__tstate);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 resultobj = SWIG_Py_Void();
17584 return resultobj;
17585fail:
17586 return NULL;
17587}
17588
17589
17590SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17591 PyObject *resultobj = 0;
17592 wxDC *arg1 = (wxDC *) 0 ;
17593 int arg2 ;
17594 int arg3 ;
17595 wxColour *arg4 = 0 ;
17596 int arg5 = (int) wxFLOOD_SURFACE ;
17597 bool result;
17598 void *argp1 = 0 ;
17599 int res1 = 0 ;
17600 int val2 ;
17601 int ecode2 = 0 ;
17602 int val3 ;
17603 int ecode3 = 0 ;
17604 wxColour temp4 ;
17605 int val5 ;
17606 int ecode5 = 0 ;
17607 PyObject * obj0 = 0 ;
17608 PyObject * obj1 = 0 ;
17609 PyObject * obj2 = 0 ;
17610 PyObject * obj3 = 0 ;
17611 PyObject * obj4 = 0 ;
17612 char * kwnames[] = {
17613 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17614 };
17615
17616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17618 if (!SWIG_IsOK(res1)) {
17619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17620 }
17621 arg1 = reinterpret_cast< wxDC * >(argp1);
17622 ecode2 = SWIG_AsVal_int(obj1, &val2);
17623 if (!SWIG_IsOK(ecode2)) {
17624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17625 }
17626 arg2 = static_cast< int >(val2);
17627 ecode3 = SWIG_AsVal_int(obj2, &val3);
17628 if (!SWIG_IsOK(ecode3)) {
17629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17630 }
17631 arg3 = static_cast< int >(val3);
17632 {
17633 arg4 = &temp4;
17634 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17635 }
17636 if (obj4) {
17637 ecode5 = SWIG_AsVal_int(obj4, &val5);
17638 if (!SWIG_IsOK(ecode5)) {
17639 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17640 }
17641 arg5 = static_cast< int >(val5);
17642 }
17643 {
17644 PyThreadState* __tstate = wxPyBeginAllowThreads();
17645 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17646 wxPyEndAllowThreads(__tstate);
17647 if (PyErr_Occurred()) SWIG_fail;
17648 }
17649 {
17650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17651 }
17652 return resultobj;
17653fail:
17654 return NULL;
17655}
17656
17657
17658SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17659 PyObject *resultobj = 0;
17660 wxDC *arg1 = (wxDC *) 0 ;
17661 wxPoint *arg2 = 0 ;
17662 wxColour *arg3 = 0 ;
17663 int arg4 = (int) wxFLOOD_SURFACE ;
17664 bool result;
17665 void *argp1 = 0 ;
17666 int res1 = 0 ;
17667 wxPoint temp2 ;
17668 wxColour temp3 ;
17669 int val4 ;
17670 int ecode4 = 0 ;
17671 PyObject * obj0 = 0 ;
17672 PyObject * obj1 = 0 ;
17673 PyObject * obj2 = 0 ;
17674 PyObject * obj3 = 0 ;
17675 char * kwnames[] = {
17676 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17677 };
17678
17679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17681 if (!SWIG_IsOK(res1)) {
17682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17683 }
17684 arg1 = reinterpret_cast< wxDC * >(argp1);
17685 {
17686 arg2 = &temp2;
17687 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17688 }
17689 {
17690 arg3 = &temp3;
17691 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17692 }
17693 if (obj3) {
17694 ecode4 = SWIG_AsVal_int(obj3, &val4);
17695 if (!SWIG_IsOK(ecode4)) {
17696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17697 }
17698 arg4 = static_cast< int >(val4);
17699 }
17700 {
17701 PyThreadState* __tstate = wxPyBeginAllowThreads();
17702 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17703 wxPyEndAllowThreads(__tstate);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 }
17706 {
17707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17708 }
17709 return resultobj;
17710fail:
17711 return NULL;
17712}
17713
17714
17715SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17716 PyObject *resultobj = 0;
17717 wxDC *arg1 = (wxDC *) 0 ;
17718 wxRect *arg2 = 0 ;
17719 wxColour *arg3 = 0 ;
17720 wxColour *arg4 = 0 ;
17721 wxPoint *arg5 = 0 ;
17722 void *argp1 = 0 ;
17723 int res1 = 0 ;
17724 wxRect temp2 ;
17725 wxColour temp3 ;
17726 wxColour temp4 ;
17727 wxPoint temp5 ;
17728 PyObject * obj0 = 0 ;
17729 PyObject * obj1 = 0 ;
17730 PyObject * obj2 = 0 ;
17731 PyObject * obj3 = 0 ;
17732 PyObject * obj4 = 0 ;
17733 char * kwnames[] = {
17734 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17735 };
17736
17737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17739 if (!SWIG_IsOK(res1)) {
17740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17741 }
17742 arg1 = reinterpret_cast< wxDC * >(argp1);
17743 {
17744 arg2 = &temp2;
17745 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17746 }
17747 {
17748 arg3 = &temp3;
17749 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17750 }
17751 {
17752 arg4 = &temp4;
17753 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17754 }
17755 {
17756 arg5 = &temp5;
17757 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17758 }
17759 {
17760 PyThreadState* __tstate = wxPyBeginAllowThreads();
17761 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17762 wxPyEndAllowThreads(__tstate);
17763 if (PyErr_Occurred()) SWIG_fail;
17764 }
17765 resultobj = SWIG_Py_Void();
17766 return resultobj;
17767fail:
17768 return NULL;
17769}
17770
17771
17772SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17773 PyObject *resultobj = 0;
17774 wxDC *arg1 = (wxDC *) 0 ;
17775 wxRect *arg2 = 0 ;
17776 wxColour *arg3 = 0 ;
17777 wxColour *arg4 = 0 ;
17778 wxDirection arg5 = (wxDirection) wxEAST ;
17779 void *argp1 = 0 ;
17780 int res1 = 0 ;
17781 wxRect temp2 ;
17782 wxColour temp3 ;
17783 wxColour temp4 ;
17784 int val5 ;
17785 int ecode5 = 0 ;
17786 PyObject * obj0 = 0 ;
17787 PyObject * obj1 = 0 ;
17788 PyObject * obj2 = 0 ;
17789 PyObject * obj3 = 0 ;
17790 PyObject * obj4 = 0 ;
17791 char * kwnames[] = {
17792 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17793 };
17794
17795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17797 if (!SWIG_IsOK(res1)) {
17798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17799 }
17800 arg1 = reinterpret_cast< wxDC * >(argp1);
17801 {
17802 arg2 = &temp2;
17803 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17804 }
17805 {
17806 arg3 = &temp3;
17807 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17808 }
17809 {
17810 arg4 = &temp4;
17811 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17812 }
17813 if (obj4) {
17814 ecode5 = SWIG_AsVal_int(obj4, &val5);
17815 if (!SWIG_IsOK(ecode5)) {
17816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17817 }
17818 arg5 = static_cast< wxDirection >(val5);
17819 }
17820 {
17821 PyThreadState* __tstate = wxPyBeginAllowThreads();
17822 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17823 wxPyEndAllowThreads(__tstate);
17824 if (PyErr_Occurred()) SWIG_fail;
17825 }
17826 resultobj = SWIG_Py_Void();
17827 return resultobj;
17828fail:
17829 return NULL;
17830}
17831
17832
17833SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17834 PyObject *resultobj = 0;
17835 wxDC *arg1 = (wxDC *) 0 ;
17836 int arg2 ;
17837 int arg3 ;
17838 wxColour result;
17839 void *argp1 = 0 ;
17840 int res1 = 0 ;
17841 int val2 ;
17842 int ecode2 = 0 ;
17843 int val3 ;
17844 int ecode3 = 0 ;
17845 PyObject * obj0 = 0 ;
17846 PyObject * obj1 = 0 ;
17847 PyObject * obj2 = 0 ;
17848 char * kwnames[] = {
17849 (char *) "self",(char *) "x",(char *) "y", NULL
17850 };
17851
17852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17854 if (!SWIG_IsOK(res1)) {
17855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17856 }
17857 arg1 = reinterpret_cast< wxDC * >(argp1);
17858 ecode2 = SWIG_AsVal_int(obj1, &val2);
17859 if (!SWIG_IsOK(ecode2)) {
17860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17861 }
17862 arg2 = static_cast< int >(val2);
17863 ecode3 = SWIG_AsVal_int(obj2, &val3);
17864 if (!SWIG_IsOK(ecode3)) {
17865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17866 }
17867 arg3 = static_cast< int >(val3);
17868 {
17869 PyThreadState* __tstate = wxPyBeginAllowThreads();
17870 result = wxDC_GetPixel(arg1,arg2,arg3);
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_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17882 PyObject *resultobj = 0;
17883 wxDC *arg1 = (wxDC *) 0 ;
17884 wxPoint *arg2 = 0 ;
17885 wxColour result;
17886 void *argp1 = 0 ;
17887 int res1 = 0 ;
17888 wxPoint temp2 ;
17889 PyObject * obj0 = 0 ;
17890 PyObject * obj1 = 0 ;
17891 char * kwnames[] = {
17892 (char *) "self",(char *) "pt", NULL
17893 };
17894
17895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17897 if (!SWIG_IsOK(res1)) {
17898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17899 }
17900 arg1 = reinterpret_cast< wxDC * >(argp1);
17901 {
17902 arg2 = &temp2;
17903 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17904 }
17905 {
17906 PyThreadState* __tstate = wxPyBeginAllowThreads();
17907 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17908 wxPyEndAllowThreads(__tstate);
17909 if (PyErr_Occurred()) SWIG_fail;
17910 }
17911 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17912 return resultobj;
17913fail:
17914 return NULL;
17915}
17916
17917
17918SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17919 PyObject *resultobj = 0;
17920 wxDC *arg1 = (wxDC *) 0 ;
17921 int arg2 ;
17922 int arg3 ;
17923 int arg4 ;
17924 int arg5 ;
17925 void *argp1 = 0 ;
17926 int res1 = 0 ;
17927 int val2 ;
17928 int ecode2 = 0 ;
17929 int val3 ;
17930 int ecode3 = 0 ;
17931 int val4 ;
17932 int ecode4 = 0 ;
17933 int val5 ;
17934 int ecode5 = 0 ;
17935 PyObject * obj0 = 0 ;
17936 PyObject * obj1 = 0 ;
17937 PyObject * obj2 = 0 ;
17938 PyObject * obj3 = 0 ;
17939 PyObject * obj4 = 0 ;
17940 char * kwnames[] = {
17941 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17942 };
17943
17944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17946 if (!SWIG_IsOK(res1)) {
17947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17948 }
17949 arg1 = reinterpret_cast< wxDC * >(argp1);
17950 ecode2 = SWIG_AsVal_int(obj1, &val2);
17951 if (!SWIG_IsOK(ecode2)) {
17952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17953 }
17954 arg2 = static_cast< int >(val2);
17955 ecode3 = SWIG_AsVal_int(obj2, &val3);
17956 if (!SWIG_IsOK(ecode3)) {
17957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17958 }
17959 arg3 = static_cast< int >(val3);
17960 ecode4 = SWIG_AsVal_int(obj3, &val4);
17961 if (!SWIG_IsOK(ecode4)) {
17962 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17963 }
17964 arg4 = static_cast< int >(val4);
17965 ecode5 = SWIG_AsVal_int(obj4, &val5);
17966 if (!SWIG_IsOK(ecode5)) {
17967 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17968 }
17969 arg5 = static_cast< int >(val5);
17970 {
17971 PyThreadState* __tstate = wxPyBeginAllowThreads();
17972 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17973 wxPyEndAllowThreads(__tstate);
17974 if (PyErr_Occurred()) SWIG_fail;
17975 }
17976 resultobj = SWIG_Py_Void();
17977 return resultobj;
17978fail:
17979 return NULL;
17980}
17981
17982
17983SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17984 PyObject *resultobj = 0;
17985 wxDC *arg1 = (wxDC *) 0 ;
17986 wxPoint *arg2 = 0 ;
17987 wxPoint *arg3 = 0 ;
17988 void *argp1 = 0 ;
17989 int res1 = 0 ;
17990 wxPoint temp2 ;
17991 wxPoint temp3 ;
17992 PyObject * obj0 = 0 ;
17993 PyObject * obj1 = 0 ;
17994 PyObject * obj2 = 0 ;
17995 char * kwnames[] = {
17996 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17997 };
17998
17999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18001 if (!SWIG_IsOK(res1)) {
18002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18003 }
18004 arg1 = reinterpret_cast< wxDC * >(argp1);
18005 {
18006 arg2 = &temp2;
18007 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18008 }
18009 {
18010 arg3 = &temp3;
18011 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18012 }
18013 {
18014 PyThreadState* __tstate = wxPyBeginAllowThreads();
18015 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18016 wxPyEndAllowThreads(__tstate);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 }
18019 resultobj = SWIG_Py_Void();
18020 return resultobj;
18021fail:
18022 return NULL;
18023}
18024
18025
18026SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18027 PyObject *resultobj = 0;
18028 wxDC *arg1 = (wxDC *) 0 ;
18029 int arg2 ;
18030 int arg3 ;
18031 void *argp1 = 0 ;
18032 int res1 = 0 ;
18033 int val2 ;
18034 int ecode2 = 0 ;
18035 int val3 ;
18036 int ecode3 = 0 ;
18037 PyObject * obj0 = 0 ;
18038 PyObject * obj1 = 0 ;
18039 PyObject * obj2 = 0 ;
18040 char * kwnames[] = {
18041 (char *) "self",(char *) "x",(char *) "y", NULL
18042 };
18043
18044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18046 if (!SWIG_IsOK(res1)) {
18047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18048 }
18049 arg1 = reinterpret_cast< wxDC * >(argp1);
18050 ecode2 = SWIG_AsVal_int(obj1, &val2);
18051 if (!SWIG_IsOK(ecode2)) {
18052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18053 }
18054 arg2 = static_cast< int >(val2);
18055 ecode3 = SWIG_AsVal_int(obj2, &val3);
18056 if (!SWIG_IsOK(ecode3)) {
18057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18058 }
18059 arg3 = static_cast< int >(val3);
18060 {
18061 PyThreadState* __tstate = wxPyBeginAllowThreads();
18062 (arg1)->CrossHair(arg2,arg3);
18063 wxPyEndAllowThreads(__tstate);
18064 if (PyErr_Occurred()) SWIG_fail;
18065 }
18066 resultobj = SWIG_Py_Void();
18067 return resultobj;
18068fail:
18069 return NULL;
18070}
18071
18072
18073SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18074 PyObject *resultobj = 0;
18075 wxDC *arg1 = (wxDC *) 0 ;
18076 wxPoint *arg2 = 0 ;
18077 void *argp1 = 0 ;
18078 int res1 = 0 ;
18079 wxPoint temp2 ;
18080 PyObject * obj0 = 0 ;
18081 PyObject * obj1 = 0 ;
18082 char * kwnames[] = {
18083 (char *) "self",(char *) "pt", NULL
18084 };
18085
18086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18088 if (!SWIG_IsOK(res1)) {
18089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18090 }
18091 arg1 = reinterpret_cast< wxDC * >(argp1);
18092 {
18093 arg2 = &temp2;
18094 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18095 }
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 (arg1)->CrossHair((wxPoint const &)*arg2);
18099 wxPyEndAllowThreads(__tstate);
18100 if (PyErr_Occurred()) SWIG_fail;
18101 }
18102 resultobj = SWIG_Py_Void();
18103 return resultobj;
18104fail:
18105 return NULL;
18106}
18107
18108
18109SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18110 PyObject *resultobj = 0;
18111 wxDC *arg1 = (wxDC *) 0 ;
18112 int arg2 ;
18113 int arg3 ;
18114 int arg4 ;
18115 int arg5 ;
18116 int arg6 ;
18117 int arg7 ;
18118 void *argp1 = 0 ;
18119 int res1 = 0 ;
18120 int val2 ;
18121 int ecode2 = 0 ;
18122 int val3 ;
18123 int ecode3 = 0 ;
18124 int val4 ;
18125 int ecode4 = 0 ;
18126 int val5 ;
18127 int ecode5 = 0 ;
18128 int val6 ;
18129 int ecode6 = 0 ;
18130 int val7 ;
18131 int ecode7 = 0 ;
18132 PyObject * obj0 = 0 ;
18133 PyObject * obj1 = 0 ;
18134 PyObject * obj2 = 0 ;
18135 PyObject * obj3 = 0 ;
18136 PyObject * obj4 = 0 ;
18137 PyObject * obj5 = 0 ;
18138 PyObject * obj6 = 0 ;
18139 char * kwnames[] = {
18140 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18141 };
18142
18143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18145 if (!SWIG_IsOK(res1)) {
18146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18147 }
18148 arg1 = reinterpret_cast< wxDC * >(argp1);
18149 ecode2 = SWIG_AsVal_int(obj1, &val2);
18150 if (!SWIG_IsOK(ecode2)) {
18151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18152 }
18153 arg2 = static_cast< int >(val2);
18154 ecode3 = SWIG_AsVal_int(obj2, &val3);
18155 if (!SWIG_IsOK(ecode3)) {
18156 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18157 }
18158 arg3 = static_cast< int >(val3);
18159 ecode4 = SWIG_AsVal_int(obj3, &val4);
18160 if (!SWIG_IsOK(ecode4)) {
18161 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18162 }
18163 arg4 = static_cast< int >(val4);
18164 ecode5 = SWIG_AsVal_int(obj4, &val5);
18165 if (!SWIG_IsOK(ecode5)) {
18166 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18167 }
18168 arg5 = static_cast< int >(val5);
18169 ecode6 = SWIG_AsVal_int(obj5, &val6);
18170 if (!SWIG_IsOK(ecode6)) {
18171 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18172 }
18173 arg6 = static_cast< int >(val6);
18174 ecode7 = SWIG_AsVal_int(obj6, &val7);
18175 if (!SWIG_IsOK(ecode7)) {
18176 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18177 }
18178 arg7 = static_cast< int >(val7);
18179 {
18180 PyThreadState* __tstate = wxPyBeginAllowThreads();
18181 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18182 wxPyEndAllowThreads(__tstate);
18183 if (PyErr_Occurred()) SWIG_fail;
18184 }
18185 resultobj = SWIG_Py_Void();
18186 return resultobj;
18187fail:
18188 return NULL;
18189}
18190
18191
18192SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18193 PyObject *resultobj = 0;
18194 wxDC *arg1 = (wxDC *) 0 ;
18195 wxPoint *arg2 = 0 ;
18196 wxPoint *arg3 = 0 ;
18197 wxPoint *arg4 = 0 ;
18198 void *argp1 = 0 ;
18199 int res1 = 0 ;
18200 wxPoint temp2 ;
18201 wxPoint temp3 ;
18202 wxPoint temp4 ;
18203 PyObject * obj0 = 0 ;
18204 PyObject * obj1 = 0 ;
18205 PyObject * obj2 = 0 ;
18206 PyObject * obj3 = 0 ;
18207 char * kwnames[] = {
18208 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18209 };
18210
18211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18213 if (!SWIG_IsOK(res1)) {
18214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18215 }
18216 arg1 = reinterpret_cast< wxDC * >(argp1);
18217 {
18218 arg2 = &temp2;
18219 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18220 }
18221 {
18222 arg3 = &temp3;
18223 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18224 }
18225 {
18226 arg4 = &temp4;
18227 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18228 }
18229 {
18230 PyThreadState* __tstate = wxPyBeginAllowThreads();
18231 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18232 wxPyEndAllowThreads(__tstate);
18233 if (PyErr_Occurred()) SWIG_fail;
18234 }
18235 resultobj = SWIG_Py_Void();
18236 return resultobj;
18237fail:
18238 return NULL;
18239}
18240
18241
18242SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18243 PyObject *resultobj = 0;
18244 wxDC *arg1 = (wxDC *) 0 ;
18245 int arg2 ;
18246 int arg3 ;
18247 int arg4 ;
18248 int arg5 ;
18249 void *argp1 = 0 ;
18250 int res1 = 0 ;
18251 int val2 ;
18252 int ecode2 = 0 ;
18253 int val3 ;
18254 int ecode3 = 0 ;
18255 int val4 ;
18256 int ecode4 = 0 ;
18257 int val5 ;
18258 int ecode5 = 0 ;
18259 PyObject * obj0 = 0 ;
18260 PyObject * obj1 = 0 ;
18261 PyObject * obj2 = 0 ;
18262 PyObject * obj3 = 0 ;
18263 PyObject * obj4 = 0 ;
18264 char * kwnames[] = {
18265 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18266 };
18267
18268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18270 if (!SWIG_IsOK(res1)) {
18271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18272 }
18273 arg1 = reinterpret_cast< wxDC * >(argp1);
18274 ecode2 = SWIG_AsVal_int(obj1, &val2);
18275 if (!SWIG_IsOK(ecode2)) {
18276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18277 }
18278 arg2 = static_cast< int >(val2);
18279 ecode3 = SWIG_AsVal_int(obj2, &val3);
18280 if (!SWIG_IsOK(ecode3)) {
18281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18282 }
18283 arg3 = static_cast< int >(val3);
18284 ecode4 = SWIG_AsVal_int(obj3, &val4);
18285 if (!SWIG_IsOK(ecode4)) {
18286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18287 }
18288 arg4 = static_cast< int >(val4);
18289 ecode5 = SWIG_AsVal_int(obj4, &val5);
18290 if (!SWIG_IsOK(ecode5)) {
18291 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18292 }
18293 arg5 = static_cast< int >(val5);
18294 {
18295 PyThreadState* __tstate = wxPyBeginAllowThreads();
18296 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18297 wxPyEndAllowThreads(__tstate);
18298 if (PyErr_Occurred()) SWIG_fail;
18299 }
18300 resultobj = SWIG_Py_Void();
18301 return resultobj;
18302fail:
18303 return NULL;
18304}
18305
18306
18307SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18308 PyObject *resultobj = 0;
18309 wxDC *arg1 = (wxDC *) 0 ;
18310 wxRect *arg2 = 0 ;
18311 void *argp1 = 0 ;
18312 int res1 = 0 ;
18313 wxRect temp2 ;
18314 PyObject * obj0 = 0 ;
18315 PyObject * obj1 = 0 ;
18316 char * kwnames[] = {
18317 (char *) "self",(char *) "rect", NULL
18318 };
18319
18320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18322 if (!SWIG_IsOK(res1)) {
18323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18324 }
18325 arg1 = reinterpret_cast< wxDC * >(argp1);
18326 {
18327 arg2 = &temp2;
18328 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18329 }
18330 {
18331 PyThreadState* __tstate = wxPyBeginAllowThreads();
18332 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18333 wxPyEndAllowThreads(__tstate);
18334 if (PyErr_Occurred()) SWIG_fail;
18335 }
18336 resultobj = SWIG_Py_Void();
18337 return resultobj;
18338fail:
18339 return NULL;
18340}
18341
18342
18343SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18344 PyObject *resultobj = 0;
18345 wxDC *arg1 = (wxDC *) 0 ;
18346 int arg2 ;
18347 int arg3 ;
18348 int arg4 ;
18349 int arg5 ;
18350 double arg6 ;
18351 double arg7 ;
18352 void *argp1 = 0 ;
18353 int res1 = 0 ;
18354 int val2 ;
18355 int ecode2 = 0 ;
18356 int val3 ;
18357 int ecode3 = 0 ;
18358 int val4 ;
18359 int ecode4 = 0 ;
18360 int val5 ;
18361 int ecode5 = 0 ;
18362 double val6 ;
18363 int ecode6 = 0 ;
18364 double val7 ;
18365 int ecode7 = 0 ;
18366 PyObject * obj0 = 0 ;
18367 PyObject * obj1 = 0 ;
18368 PyObject * obj2 = 0 ;
18369 PyObject * obj3 = 0 ;
18370 PyObject * obj4 = 0 ;
18371 PyObject * obj5 = 0 ;
18372 PyObject * obj6 = 0 ;
18373 char * kwnames[] = {
18374 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18375 };
18376
18377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18379 if (!SWIG_IsOK(res1)) {
18380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18381 }
18382 arg1 = reinterpret_cast< wxDC * >(argp1);
18383 ecode2 = SWIG_AsVal_int(obj1, &val2);
18384 if (!SWIG_IsOK(ecode2)) {
18385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18386 }
18387 arg2 = static_cast< int >(val2);
18388 ecode3 = SWIG_AsVal_int(obj2, &val3);
18389 if (!SWIG_IsOK(ecode3)) {
18390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18391 }
18392 arg3 = static_cast< int >(val3);
18393 ecode4 = SWIG_AsVal_int(obj3, &val4);
18394 if (!SWIG_IsOK(ecode4)) {
18395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18396 }
18397 arg4 = static_cast< int >(val4);
18398 ecode5 = SWIG_AsVal_int(obj4, &val5);
18399 if (!SWIG_IsOK(ecode5)) {
18400 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18401 }
18402 arg5 = static_cast< int >(val5);
18403 ecode6 = SWIG_AsVal_double(obj5, &val6);
18404 if (!SWIG_IsOK(ecode6)) {
18405 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18406 }
18407 arg6 = static_cast< double >(val6);
18408 ecode7 = SWIG_AsVal_double(obj6, &val7);
18409 if (!SWIG_IsOK(ecode7)) {
18410 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18411 }
18412 arg7 = static_cast< double >(val7);
18413 {
18414 PyThreadState* __tstate = wxPyBeginAllowThreads();
18415 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18416 wxPyEndAllowThreads(__tstate);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 resultobj = SWIG_Py_Void();
18420 return resultobj;
18421fail:
18422 return NULL;
18423}
18424
18425
18426SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18427 PyObject *resultobj = 0;
18428 wxDC *arg1 = (wxDC *) 0 ;
18429 wxPoint *arg2 = 0 ;
18430 wxSize *arg3 = 0 ;
18431 double arg4 ;
18432 double arg5 ;
18433 void *argp1 = 0 ;
18434 int res1 = 0 ;
18435 wxPoint temp2 ;
18436 wxSize temp3 ;
18437 double val4 ;
18438 int ecode4 = 0 ;
18439 double val5 ;
18440 int ecode5 = 0 ;
18441 PyObject * obj0 = 0 ;
18442 PyObject * obj1 = 0 ;
18443 PyObject * obj2 = 0 ;
18444 PyObject * obj3 = 0 ;
18445 PyObject * obj4 = 0 ;
18446 char * kwnames[] = {
18447 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18448 };
18449
18450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18452 if (!SWIG_IsOK(res1)) {
18453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18454 }
18455 arg1 = reinterpret_cast< wxDC * >(argp1);
18456 {
18457 arg2 = &temp2;
18458 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18459 }
18460 {
18461 arg3 = &temp3;
18462 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18463 }
18464 ecode4 = SWIG_AsVal_double(obj3, &val4);
18465 if (!SWIG_IsOK(ecode4)) {
18466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18467 }
18468 arg4 = static_cast< double >(val4);
18469 ecode5 = SWIG_AsVal_double(obj4, &val5);
18470 if (!SWIG_IsOK(ecode5)) {
18471 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18472 }
18473 arg5 = static_cast< double >(val5);
18474 {
18475 PyThreadState* __tstate = wxPyBeginAllowThreads();
18476 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18477 wxPyEndAllowThreads(__tstate);
18478 if (PyErr_Occurred()) SWIG_fail;
18479 }
18480 resultobj = SWIG_Py_Void();
18481 return resultobj;
18482fail:
18483 return NULL;
18484}
18485
18486
18487SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18488 PyObject *resultobj = 0;
18489 wxDC *arg1 = (wxDC *) 0 ;
18490 int arg2 ;
18491 int arg3 ;
18492 void *argp1 = 0 ;
18493 int res1 = 0 ;
18494 int val2 ;
18495 int ecode2 = 0 ;
18496 int val3 ;
18497 int ecode3 = 0 ;
18498 PyObject * obj0 = 0 ;
18499 PyObject * obj1 = 0 ;
18500 PyObject * obj2 = 0 ;
18501 char * kwnames[] = {
18502 (char *) "self",(char *) "x",(char *) "y", NULL
18503 };
18504
18505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18507 if (!SWIG_IsOK(res1)) {
18508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18509 }
18510 arg1 = reinterpret_cast< wxDC * >(argp1);
18511 ecode2 = SWIG_AsVal_int(obj1, &val2);
18512 if (!SWIG_IsOK(ecode2)) {
18513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18514 }
18515 arg2 = static_cast< int >(val2);
18516 ecode3 = SWIG_AsVal_int(obj2, &val3);
18517 if (!SWIG_IsOK(ecode3)) {
18518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18519 }
18520 arg3 = static_cast< int >(val3);
18521 {
18522 PyThreadState* __tstate = wxPyBeginAllowThreads();
18523 (arg1)->DrawPoint(arg2,arg3);
18524 wxPyEndAllowThreads(__tstate);
18525 if (PyErr_Occurred()) SWIG_fail;
18526 }
18527 resultobj = SWIG_Py_Void();
18528 return resultobj;
18529fail:
18530 return NULL;
18531}
18532
18533
18534SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18535 PyObject *resultobj = 0;
18536 wxDC *arg1 = (wxDC *) 0 ;
18537 wxPoint *arg2 = 0 ;
18538 void *argp1 = 0 ;
18539 int res1 = 0 ;
18540 wxPoint temp2 ;
18541 PyObject * obj0 = 0 ;
18542 PyObject * obj1 = 0 ;
18543 char * kwnames[] = {
18544 (char *) "self",(char *) "pt", NULL
18545 };
18546
18547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18549 if (!SWIG_IsOK(res1)) {
18550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18551 }
18552 arg1 = reinterpret_cast< wxDC * >(argp1);
18553 {
18554 arg2 = &temp2;
18555 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18556 }
18557 {
18558 PyThreadState* __tstate = wxPyBeginAllowThreads();
18559 (arg1)->DrawPoint((wxPoint const &)*arg2);
18560 wxPyEndAllowThreads(__tstate);
18561 if (PyErr_Occurred()) SWIG_fail;
18562 }
18563 resultobj = SWIG_Py_Void();
18564 return resultobj;
18565fail:
18566 return NULL;
18567}
18568
18569
18570SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18571 PyObject *resultobj = 0;
18572 wxDC *arg1 = (wxDC *) 0 ;
18573 int arg2 ;
18574 int arg3 ;
18575 int arg4 ;
18576 int arg5 ;
18577 void *argp1 = 0 ;
18578 int res1 = 0 ;
18579 int val2 ;
18580 int ecode2 = 0 ;
18581 int val3 ;
18582 int ecode3 = 0 ;
18583 int val4 ;
18584 int ecode4 = 0 ;
18585 int val5 ;
18586 int ecode5 = 0 ;
18587 PyObject * obj0 = 0 ;
18588 PyObject * obj1 = 0 ;
18589 PyObject * obj2 = 0 ;
18590 PyObject * obj3 = 0 ;
18591 PyObject * obj4 = 0 ;
18592 char * kwnames[] = {
18593 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18594 };
18595
18596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18598 if (!SWIG_IsOK(res1)) {
18599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18600 }
18601 arg1 = reinterpret_cast< wxDC * >(argp1);
18602 ecode2 = SWIG_AsVal_int(obj1, &val2);
18603 if (!SWIG_IsOK(ecode2)) {
18604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18605 }
18606 arg2 = static_cast< int >(val2);
18607 ecode3 = SWIG_AsVal_int(obj2, &val3);
18608 if (!SWIG_IsOK(ecode3)) {
18609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18610 }
18611 arg3 = static_cast< int >(val3);
18612 ecode4 = SWIG_AsVal_int(obj3, &val4);
18613 if (!SWIG_IsOK(ecode4)) {
18614 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18615 }
18616 arg4 = static_cast< int >(val4);
18617 ecode5 = SWIG_AsVal_int(obj4, &val5);
18618 if (!SWIG_IsOK(ecode5)) {
18619 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18620 }
18621 arg5 = static_cast< int >(val5);
18622 {
18623 PyThreadState* __tstate = wxPyBeginAllowThreads();
18624 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18625 wxPyEndAllowThreads(__tstate);
18626 if (PyErr_Occurred()) SWIG_fail;
18627 }
18628 resultobj = SWIG_Py_Void();
18629 return resultobj;
18630fail:
18631 return NULL;
18632}
18633
18634
18635SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18636 PyObject *resultobj = 0;
18637 wxDC *arg1 = (wxDC *) 0 ;
18638 wxRect *arg2 = 0 ;
18639 void *argp1 = 0 ;
18640 int res1 = 0 ;
18641 wxRect temp2 ;
18642 PyObject * obj0 = 0 ;
18643 PyObject * obj1 = 0 ;
18644 char * kwnames[] = {
18645 (char *) "self",(char *) "rect", NULL
18646 };
18647
18648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18650 if (!SWIG_IsOK(res1)) {
18651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18652 }
18653 arg1 = reinterpret_cast< wxDC * >(argp1);
18654 {
18655 arg2 = &temp2;
18656 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18657 }
18658 {
18659 PyThreadState* __tstate = wxPyBeginAllowThreads();
18660 (arg1)->DrawRectangle((wxRect const &)*arg2);
18661 wxPyEndAllowThreads(__tstate);
18662 if (PyErr_Occurred()) SWIG_fail;
18663 }
18664 resultobj = SWIG_Py_Void();
18665 return resultobj;
18666fail:
18667 return NULL;
18668}
18669
18670
18671SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18672 PyObject *resultobj = 0;
18673 wxDC *arg1 = (wxDC *) 0 ;
18674 wxPoint *arg2 = 0 ;
18675 wxSize *arg3 = 0 ;
18676 void *argp1 = 0 ;
18677 int res1 = 0 ;
18678 wxPoint temp2 ;
18679 wxSize temp3 ;
18680 PyObject * obj0 = 0 ;
18681 PyObject * obj1 = 0 ;
18682 PyObject * obj2 = 0 ;
18683 char * kwnames[] = {
18684 (char *) "self",(char *) "pt",(char *) "sz", NULL
18685 };
18686
18687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18689 if (!SWIG_IsOK(res1)) {
18690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18691 }
18692 arg1 = reinterpret_cast< wxDC * >(argp1);
18693 {
18694 arg2 = &temp2;
18695 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18696 }
18697 {
18698 arg3 = &temp3;
18699 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18700 }
18701 {
18702 PyThreadState* __tstate = wxPyBeginAllowThreads();
18703 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18704 wxPyEndAllowThreads(__tstate);
18705 if (PyErr_Occurred()) SWIG_fail;
18706 }
18707 resultobj = SWIG_Py_Void();
18708 return resultobj;
18709fail:
18710 return NULL;
18711}
18712
18713
18714SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18715 PyObject *resultobj = 0;
18716 wxDC *arg1 = (wxDC *) 0 ;
18717 int arg2 ;
18718 int arg3 ;
18719 int arg4 ;
18720 int arg5 ;
18721 double arg6 ;
18722 void *argp1 = 0 ;
18723 int res1 = 0 ;
18724 int val2 ;
18725 int ecode2 = 0 ;
18726 int val3 ;
18727 int ecode3 = 0 ;
18728 int val4 ;
18729 int ecode4 = 0 ;
18730 int val5 ;
18731 int ecode5 = 0 ;
18732 double val6 ;
18733 int ecode6 = 0 ;
18734 PyObject * obj0 = 0 ;
18735 PyObject * obj1 = 0 ;
18736 PyObject * obj2 = 0 ;
18737 PyObject * obj3 = 0 ;
18738 PyObject * obj4 = 0 ;
18739 PyObject * obj5 = 0 ;
18740 char * kwnames[] = {
18741 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18742 };
18743
18744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18746 if (!SWIG_IsOK(res1)) {
18747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18748 }
18749 arg1 = reinterpret_cast< wxDC * >(argp1);
18750 ecode2 = SWIG_AsVal_int(obj1, &val2);
18751 if (!SWIG_IsOK(ecode2)) {
18752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18753 }
18754 arg2 = static_cast< int >(val2);
18755 ecode3 = SWIG_AsVal_int(obj2, &val3);
18756 if (!SWIG_IsOK(ecode3)) {
18757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18758 }
18759 arg3 = static_cast< int >(val3);
18760 ecode4 = SWIG_AsVal_int(obj3, &val4);
18761 if (!SWIG_IsOK(ecode4)) {
18762 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18763 }
18764 arg4 = static_cast< int >(val4);
18765 ecode5 = SWIG_AsVal_int(obj4, &val5);
18766 if (!SWIG_IsOK(ecode5)) {
18767 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18768 }
18769 arg5 = static_cast< int >(val5);
18770 ecode6 = SWIG_AsVal_double(obj5, &val6);
18771 if (!SWIG_IsOK(ecode6)) {
18772 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18773 }
18774 arg6 = static_cast< double >(val6);
18775 {
18776 PyThreadState* __tstate = wxPyBeginAllowThreads();
18777 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18778 wxPyEndAllowThreads(__tstate);
18779 if (PyErr_Occurred()) SWIG_fail;
18780 }
18781 resultobj = SWIG_Py_Void();
18782 return resultobj;
18783fail:
18784 return NULL;
18785}
18786
18787
18788SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18789 PyObject *resultobj = 0;
18790 wxDC *arg1 = (wxDC *) 0 ;
18791 wxRect *arg2 = 0 ;
18792 double arg3 ;
18793 void *argp1 = 0 ;
18794 int res1 = 0 ;
18795 wxRect temp2 ;
18796 double val3 ;
18797 int ecode3 = 0 ;
18798 PyObject * obj0 = 0 ;
18799 PyObject * obj1 = 0 ;
18800 PyObject * obj2 = 0 ;
18801 char * kwnames[] = {
18802 (char *) "self",(char *) "r",(char *) "radius", NULL
18803 };
18804
18805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18807 if (!SWIG_IsOK(res1)) {
18808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18809 }
18810 arg1 = reinterpret_cast< wxDC * >(argp1);
18811 {
18812 arg2 = &temp2;
18813 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18814 }
18815 ecode3 = SWIG_AsVal_double(obj2, &val3);
18816 if (!SWIG_IsOK(ecode3)) {
18817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18818 }
18819 arg3 = static_cast< double >(val3);
18820 {
18821 PyThreadState* __tstate = wxPyBeginAllowThreads();
18822 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18823 wxPyEndAllowThreads(__tstate);
18824 if (PyErr_Occurred()) SWIG_fail;
18825 }
18826 resultobj = SWIG_Py_Void();
18827 return resultobj;
18828fail:
18829 return NULL;
18830}
18831
18832
18833SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18834 PyObject *resultobj = 0;
18835 wxDC *arg1 = (wxDC *) 0 ;
18836 wxPoint *arg2 = 0 ;
18837 wxSize *arg3 = 0 ;
18838 double arg4 ;
18839 void *argp1 = 0 ;
18840 int res1 = 0 ;
18841 wxPoint temp2 ;
18842 wxSize temp3 ;
18843 double val4 ;
18844 int ecode4 = 0 ;
18845 PyObject * obj0 = 0 ;
18846 PyObject * obj1 = 0 ;
18847 PyObject * obj2 = 0 ;
18848 PyObject * obj3 = 0 ;
18849 char * kwnames[] = {
18850 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18851 };
18852
18853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18855 if (!SWIG_IsOK(res1)) {
18856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18857 }
18858 arg1 = reinterpret_cast< wxDC * >(argp1);
18859 {
18860 arg2 = &temp2;
18861 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18862 }
18863 {
18864 arg3 = &temp3;
18865 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18866 }
18867 ecode4 = SWIG_AsVal_double(obj3, &val4);
18868 if (!SWIG_IsOK(ecode4)) {
18869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18870 }
18871 arg4 = static_cast< double >(val4);
18872 {
18873 PyThreadState* __tstate = wxPyBeginAllowThreads();
18874 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18875 wxPyEndAllowThreads(__tstate);
18876 if (PyErr_Occurred()) SWIG_fail;
18877 }
18878 resultobj = SWIG_Py_Void();
18879 return resultobj;
18880fail:
18881 return NULL;
18882}
18883
18884
18885SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18886 PyObject *resultobj = 0;
18887 wxDC *arg1 = (wxDC *) 0 ;
18888 int arg2 ;
18889 int arg3 ;
18890 int arg4 ;
18891 void *argp1 = 0 ;
18892 int res1 = 0 ;
18893 int val2 ;
18894 int ecode2 = 0 ;
18895 int val3 ;
18896 int ecode3 = 0 ;
18897 int val4 ;
18898 int ecode4 = 0 ;
18899 PyObject * obj0 = 0 ;
18900 PyObject * obj1 = 0 ;
18901 PyObject * obj2 = 0 ;
18902 PyObject * obj3 = 0 ;
18903 char * kwnames[] = {
18904 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18905 };
18906
18907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18909 if (!SWIG_IsOK(res1)) {
18910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18911 }
18912 arg1 = reinterpret_cast< wxDC * >(argp1);
18913 ecode2 = SWIG_AsVal_int(obj1, &val2);
18914 if (!SWIG_IsOK(ecode2)) {
18915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18916 }
18917 arg2 = static_cast< int >(val2);
18918 ecode3 = SWIG_AsVal_int(obj2, &val3);
18919 if (!SWIG_IsOK(ecode3)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18921 }
18922 arg3 = static_cast< int >(val3);
18923 ecode4 = SWIG_AsVal_int(obj3, &val4);
18924 if (!SWIG_IsOK(ecode4)) {
18925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18926 }
18927 arg4 = static_cast< int >(val4);
18928 {
18929 PyThreadState* __tstate = wxPyBeginAllowThreads();
18930 (arg1)->DrawCircle(arg2,arg3,arg4);
18931 wxPyEndAllowThreads(__tstate);
18932 if (PyErr_Occurred()) SWIG_fail;
18933 }
18934 resultobj = SWIG_Py_Void();
18935 return resultobj;
18936fail:
18937 return NULL;
18938}
18939
18940
18941SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18942 PyObject *resultobj = 0;
18943 wxDC *arg1 = (wxDC *) 0 ;
18944 wxPoint *arg2 = 0 ;
18945 int arg3 ;
18946 void *argp1 = 0 ;
18947 int res1 = 0 ;
18948 wxPoint temp2 ;
18949 int val3 ;
18950 int ecode3 = 0 ;
18951 PyObject * obj0 = 0 ;
18952 PyObject * obj1 = 0 ;
18953 PyObject * obj2 = 0 ;
18954 char * kwnames[] = {
18955 (char *) "self",(char *) "pt",(char *) "radius", NULL
18956 };
18957
18958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18960 if (!SWIG_IsOK(res1)) {
18961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18962 }
18963 arg1 = reinterpret_cast< wxDC * >(argp1);
18964 {
18965 arg2 = &temp2;
18966 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18967 }
18968 ecode3 = SWIG_AsVal_int(obj2, &val3);
18969 if (!SWIG_IsOK(ecode3)) {
18970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18971 }
18972 arg3 = static_cast< int >(val3);
18973 {
18974 PyThreadState* __tstate = wxPyBeginAllowThreads();
18975 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18976 wxPyEndAllowThreads(__tstate);
18977 if (PyErr_Occurred()) SWIG_fail;
18978 }
18979 resultobj = SWIG_Py_Void();
18980 return resultobj;
18981fail:
18982 return NULL;
18983}
18984
18985
18986SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18987 PyObject *resultobj = 0;
18988 wxDC *arg1 = (wxDC *) 0 ;
18989 int arg2 ;
18990 int arg3 ;
18991 int arg4 ;
18992 int arg5 ;
18993 void *argp1 = 0 ;
18994 int res1 = 0 ;
18995 int val2 ;
18996 int ecode2 = 0 ;
18997 int val3 ;
18998 int ecode3 = 0 ;
18999 int val4 ;
19000 int ecode4 = 0 ;
19001 int val5 ;
19002 int ecode5 = 0 ;
19003 PyObject * obj0 = 0 ;
19004 PyObject * obj1 = 0 ;
19005 PyObject * obj2 = 0 ;
19006 PyObject * obj3 = 0 ;
19007 PyObject * obj4 = 0 ;
19008 char * kwnames[] = {
19009 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19010 };
19011
19012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19014 if (!SWIG_IsOK(res1)) {
19015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19016 }
19017 arg1 = reinterpret_cast< wxDC * >(argp1);
19018 ecode2 = SWIG_AsVal_int(obj1, &val2);
19019 if (!SWIG_IsOK(ecode2)) {
19020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19021 }
19022 arg2 = static_cast< int >(val2);
19023 ecode3 = SWIG_AsVal_int(obj2, &val3);
19024 if (!SWIG_IsOK(ecode3)) {
19025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19026 }
19027 arg3 = static_cast< int >(val3);
19028 ecode4 = SWIG_AsVal_int(obj3, &val4);
19029 if (!SWIG_IsOK(ecode4)) {
19030 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19031 }
19032 arg4 = static_cast< int >(val4);
19033 ecode5 = SWIG_AsVal_int(obj4, &val5);
19034 if (!SWIG_IsOK(ecode5)) {
19035 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19036 }
19037 arg5 = static_cast< int >(val5);
19038 {
19039 PyThreadState* __tstate = wxPyBeginAllowThreads();
19040 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19041 wxPyEndAllowThreads(__tstate);
19042 if (PyErr_Occurred()) SWIG_fail;
19043 }
19044 resultobj = SWIG_Py_Void();
19045 return resultobj;
19046fail:
19047 return NULL;
19048}
19049
19050
19051SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19052 PyObject *resultobj = 0;
19053 wxDC *arg1 = (wxDC *) 0 ;
19054 wxRect *arg2 = 0 ;
19055 void *argp1 = 0 ;
19056 int res1 = 0 ;
19057 wxRect temp2 ;
19058 PyObject * obj0 = 0 ;
19059 PyObject * obj1 = 0 ;
19060 char * kwnames[] = {
19061 (char *) "self",(char *) "rect", NULL
19062 };
19063
19064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19066 if (!SWIG_IsOK(res1)) {
19067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19068 }
19069 arg1 = reinterpret_cast< wxDC * >(argp1);
19070 {
19071 arg2 = &temp2;
19072 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19073 }
19074 {
19075 PyThreadState* __tstate = wxPyBeginAllowThreads();
19076 (arg1)->DrawEllipse((wxRect const &)*arg2);
19077 wxPyEndAllowThreads(__tstate);
19078 if (PyErr_Occurred()) SWIG_fail;
19079 }
19080 resultobj = SWIG_Py_Void();
19081 return resultobj;
19082fail:
19083 return NULL;
19084}
19085
19086
19087SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19088 PyObject *resultobj = 0;
19089 wxDC *arg1 = (wxDC *) 0 ;
19090 wxPoint *arg2 = 0 ;
19091 wxSize *arg3 = 0 ;
19092 void *argp1 = 0 ;
19093 int res1 = 0 ;
19094 wxPoint temp2 ;
19095 wxSize temp3 ;
19096 PyObject * obj0 = 0 ;
19097 PyObject * obj1 = 0 ;
19098 PyObject * obj2 = 0 ;
19099 char * kwnames[] = {
19100 (char *) "self",(char *) "pt",(char *) "sz", NULL
19101 };
19102
19103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19105 if (!SWIG_IsOK(res1)) {
19106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19107 }
19108 arg1 = reinterpret_cast< wxDC * >(argp1);
19109 {
19110 arg2 = &temp2;
19111 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19112 }
19113 {
19114 arg3 = &temp3;
19115 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19116 }
19117 {
19118 PyThreadState* __tstate = wxPyBeginAllowThreads();
19119 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19120 wxPyEndAllowThreads(__tstate);
19121 if (PyErr_Occurred()) SWIG_fail;
19122 }
19123 resultobj = SWIG_Py_Void();
19124 return resultobj;
19125fail:
19126 return NULL;
19127}
19128
19129
19130SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19131 PyObject *resultobj = 0;
19132 wxDC *arg1 = (wxDC *) 0 ;
19133 wxIcon *arg2 = 0 ;
19134 int arg3 ;
19135 int arg4 ;
19136 void *argp1 = 0 ;
19137 int res1 = 0 ;
19138 void *argp2 = 0 ;
19139 int res2 = 0 ;
19140 int val3 ;
19141 int ecode3 = 0 ;
19142 int val4 ;
19143 int ecode4 = 0 ;
19144 PyObject * obj0 = 0 ;
19145 PyObject * obj1 = 0 ;
19146 PyObject * obj2 = 0 ;
19147 PyObject * obj3 = 0 ;
19148 char * kwnames[] = {
19149 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19150 };
19151
19152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19154 if (!SWIG_IsOK(res1)) {
19155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19156 }
19157 arg1 = reinterpret_cast< wxDC * >(argp1);
19158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19159 if (!SWIG_IsOK(res2)) {
19160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19161 }
19162 if (!argp2) {
19163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19164 }
19165 arg2 = reinterpret_cast< wxIcon * >(argp2);
19166 ecode3 = SWIG_AsVal_int(obj2, &val3);
19167 if (!SWIG_IsOK(ecode3)) {
19168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19169 }
19170 arg3 = static_cast< int >(val3);
19171 ecode4 = SWIG_AsVal_int(obj3, &val4);
19172 if (!SWIG_IsOK(ecode4)) {
19173 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19174 }
19175 arg4 = static_cast< int >(val4);
19176 {
19177 PyThreadState* __tstate = wxPyBeginAllowThreads();
19178 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19179 wxPyEndAllowThreads(__tstate);
19180 if (PyErr_Occurred()) SWIG_fail;
19181 }
19182 resultobj = SWIG_Py_Void();
19183 return resultobj;
19184fail:
19185 return NULL;
19186}
19187
19188
19189SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19190 PyObject *resultobj = 0;
19191 wxDC *arg1 = (wxDC *) 0 ;
19192 wxIcon *arg2 = 0 ;
19193 wxPoint *arg3 = 0 ;
19194 void *argp1 = 0 ;
19195 int res1 = 0 ;
19196 void *argp2 = 0 ;
19197 int res2 = 0 ;
19198 wxPoint temp3 ;
19199 PyObject * obj0 = 0 ;
19200 PyObject * obj1 = 0 ;
19201 PyObject * obj2 = 0 ;
19202 char * kwnames[] = {
19203 (char *) "self",(char *) "icon",(char *) "pt", NULL
19204 };
19205
19206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19208 if (!SWIG_IsOK(res1)) {
19209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19210 }
19211 arg1 = reinterpret_cast< wxDC * >(argp1);
19212 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19213 if (!SWIG_IsOK(res2)) {
19214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19215 }
19216 if (!argp2) {
19217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19218 }
19219 arg2 = reinterpret_cast< wxIcon * >(argp2);
19220 {
19221 arg3 = &temp3;
19222 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19223 }
19224 {
19225 PyThreadState* __tstate = wxPyBeginAllowThreads();
19226 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19227 wxPyEndAllowThreads(__tstate);
19228 if (PyErr_Occurred()) SWIG_fail;
19229 }
19230 resultobj = SWIG_Py_Void();
19231 return resultobj;
19232fail:
19233 return NULL;
19234}
19235
19236
19237SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19238 PyObject *resultobj = 0;
19239 wxDC *arg1 = (wxDC *) 0 ;
19240 wxBitmap *arg2 = 0 ;
19241 int arg3 ;
19242 int arg4 ;
19243 bool arg5 = (bool) false ;
19244 void *argp1 = 0 ;
19245 int res1 = 0 ;
19246 void *argp2 = 0 ;
19247 int res2 = 0 ;
19248 int val3 ;
19249 int ecode3 = 0 ;
19250 int val4 ;
19251 int ecode4 = 0 ;
19252 bool val5 ;
19253 int ecode5 = 0 ;
19254 PyObject * obj0 = 0 ;
19255 PyObject * obj1 = 0 ;
19256 PyObject * obj2 = 0 ;
19257 PyObject * obj3 = 0 ;
19258 PyObject * obj4 = 0 ;
19259 char * kwnames[] = {
19260 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19261 };
19262
19263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19265 if (!SWIG_IsOK(res1)) {
19266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19267 }
19268 arg1 = reinterpret_cast< wxDC * >(argp1);
19269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19270 if (!SWIG_IsOK(res2)) {
19271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19272 }
19273 if (!argp2) {
19274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19275 }
19276 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19277 ecode3 = SWIG_AsVal_int(obj2, &val3);
19278 if (!SWIG_IsOK(ecode3)) {
19279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19280 }
19281 arg3 = static_cast< int >(val3);
19282 ecode4 = SWIG_AsVal_int(obj3, &val4);
19283 if (!SWIG_IsOK(ecode4)) {
19284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19285 }
19286 arg4 = static_cast< int >(val4);
19287 if (obj4) {
19288 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19289 if (!SWIG_IsOK(ecode5)) {
19290 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19291 }
19292 arg5 = static_cast< bool >(val5);
19293 }
19294 {
19295 PyThreadState* __tstate = wxPyBeginAllowThreads();
19296 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19297 wxPyEndAllowThreads(__tstate);
19298 if (PyErr_Occurred()) SWIG_fail;
19299 }
19300 resultobj = SWIG_Py_Void();
19301 return resultobj;
19302fail:
19303 return NULL;
19304}
19305
19306
19307SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19308 PyObject *resultobj = 0;
19309 wxDC *arg1 = (wxDC *) 0 ;
19310 wxBitmap *arg2 = 0 ;
19311 wxPoint *arg3 = 0 ;
19312 bool arg4 = (bool) false ;
19313 void *argp1 = 0 ;
19314 int res1 = 0 ;
19315 void *argp2 = 0 ;
19316 int res2 = 0 ;
19317 wxPoint temp3 ;
19318 bool val4 ;
19319 int ecode4 = 0 ;
19320 PyObject * obj0 = 0 ;
19321 PyObject * obj1 = 0 ;
19322 PyObject * obj2 = 0 ;
19323 PyObject * obj3 = 0 ;
19324 char * kwnames[] = {
19325 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19326 };
19327
19328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19330 if (!SWIG_IsOK(res1)) {
19331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19332 }
19333 arg1 = reinterpret_cast< wxDC * >(argp1);
19334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19335 if (!SWIG_IsOK(res2)) {
19336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19337 }
19338 if (!argp2) {
19339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19340 }
19341 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19342 {
19343 arg3 = &temp3;
19344 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19345 }
19346 if (obj3) {
19347 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19348 if (!SWIG_IsOK(ecode4)) {
19349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19350 }
19351 arg4 = static_cast< bool >(val4);
19352 }
19353 {
19354 PyThreadState* __tstate = wxPyBeginAllowThreads();
19355 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19356 wxPyEndAllowThreads(__tstate);
19357 if (PyErr_Occurred()) SWIG_fail;
19358 }
19359 resultobj = SWIG_Py_Void();
19360 return resultobj;
19361fail:
19362 return NULL;
19363}
19364
19365
19366SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19367 PyObject *resultobj = 0;
19368 wxDC *arg1 = (wxDC *) 0 ;
19369 wxString *arg2 = 0 ;
19370 int arg3 ;
19371 int arg4 ;
19372 void *argp1 = 0 ;
19373 int res1 = 0 ;
19374 bool temp2 = false ;
19375 int val3 ;
19376 int ecode3 = 0 ;
19377 int val4 ;
19378 int ecode4 = 0 ;
19379 PyObject * obj0 = 0 ;
19380 PyObject * obj1 = 0 ;
19381 PyObject * obj2 = 0 ;
19382 PyObject * obj3 = 0 ;
19383 char * kwnames[] = {
19384 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19385 };
19386
19387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19389 if (!SWIG_IsOK(res1)) {
19390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19391 }
19392 arg1 = reinterpret_cast< wxDC * >(argp1);
19393 {
19394 arg2 = wxString_in_helper(obj1);
19395 if (arg2 == NULL) SWIG_fail;
19396 temp2 = true;
19397 }
19398 ecode3 = SWIG_AsVal_int(obj2, &val3);
19399 if (!SWIG_IsOK(ecode3)) {
19400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19401 }
19402 arg3 = static_cast< int >(val3);
19403 ecode4 = SWIG_AsVal_int(obj3, &val4);
19404 if (!SWIG_IsOK(ecode4)) {
19405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19406 }
19407 arg4 = static_cast< int >(val4);
19408 {
19409 PyThreadState* __tstate = wxPyBeginAllowThreads();
19410 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19411 wxPyEndAllowThreads(__tstate);
19412 if (PyErr_Occurred()) SWIG_fail;
19413 }
19414 resultobj = SWIG_Py_Void();
19415 {
19416 if (temp2)
19417 delete arg2;
19418 }
19419 return resultobj;
19420fail:
19421 {
19422 if (temp2)
19423 delete arg2;
19424 }
19425 return NULL;
19426}
19427
19428
19429SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19430 PyObject *resultobj = 0;
19431 wxDC *arg1 = (wxDC *) 0 ;
19432 wxString *arg2 = 0 ;
19433 wxPoint *arg3 = 0 ;
19434 void *argp1 = 0 ;
19435 int res1 = 0 ;
19436 bool temp2 = false ;
19437 wxPoint temp3 ;
19438 PyObject * obj0 = 0 ;
19439 PyObject * obj1 = 0 ;
19440 PyObject * obj2 = 0 ;
19441 char * kwnames[] = {
19442 (char *) "self",(char *) "text",(char *) "pt", NULL
19443 };
19444
19445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19447 if (!SWIG_IsOK(res1)) {
19448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19449 }
19450 arg1 = reinterpret_cast< wxDC * >(argp1);
19451 {
19452 arg2 = wxString_in_helper(obj1);
19453 if (arg2 == NULL) SWIG_fail;
19454 temp2 = true;
19455 }
19456 {
19457 arg3 = &temp3;
19458 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19459 }
19460 {
19461 PyThreadState* __tstate = wxPyBeginAllowThreads();
19462 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19463 wxPyEndAllowThreads(__tstate);
19464 if (PyErr_Occurred()) SWIG_fail;
19465 }
19466 resultobj = SWIG_Py_Void();
19467 {
19468 if (temp2)
19469 delete arg2;
19470 }
19471 return resultobj;
19472fail:
19473 {
19474 if (temp2)
19475 delete arg2;
19476 }
19477 return NULL;
19478}
19479
19480
19481SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19482 PyObject *resultobj = 0;
19483 wxDC *arg1 = (wxDC *) 0 ;
19484 wxString *arg2 = 0 ;
19485 int arg3 ;
19486 int arg4 ;
19487 double arg5 ;
19488 void *argp1 = 0 ;
19489 int res1 = 0 ;
19490 bool temp2 = false ;
19491 int val3 ;
19492 int ecode3 = 0 ;
19493 int val4 ;
19494 int ecode4 = 0 ;
19495 double val5 ;
19496 int ecode5 = 0 ;
19497 PyObject * obj0 = 0 ;
19498 PyObject * obj1 = 0 ;
19499 PyObject * obj2 = 0 ;
19500 PyObject * obj3 = 0 ;
19501 PyObject * obj4 = 0 ;
19502 char * kwnames[] = {
19503 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19504 };
19505
19506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19508 if (!SWIG_IsOK(res1)) {
19509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19510 }
19511 arg1 = reinterpret_cast< wxDC * >(argp1);
19512 {
19513 arg2 = wxString_in_helper(obj1);
19514 if (arg2 == NULL) SWIG_fail;
19515 temp2 = true;
19516 }
19517 ecode3 = SWIG_AsVal_int(obj2, &val3);
19518 if (!SWIG_IsOK(ecode3)) {
19519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19520 }
19521 arg3 = static_cast< int >(val3);
19522 ecode4 = SWIG_AsVal_int(obj3, &val4);
19523 if (!SWIG_IsOK(ecode4)) {
19524 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19525 }
19526 arg4 = static_cast< int >(val4);
19527 ecode5 = SWIG_AsVal_double(obj4, &val5);
19528 if (!SWIG_IsOK(ecode5)) {
19529 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19530 }
19531 arg5 = static_cast< double >(val5);
19532 {
19533 PyThreadState* __tstate = wxPyBeginAllowThreads();
19534 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19535 wxPyEndAllowThreads(__tstate);
19536 if (PyErr_Occurred()) SWIG_fail;
19537 }
19538 resultobj = SWIG_Py_Void();
19539 {
19540 if (temp2)
19541 delete arg2;
19542 }
19543 return resultobj;
19544fail:
19545 {
19546 if (temp2)
19547 delete arg2;
19548 }
19549 return NULL;
19550}
19551
19552
19553SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19554 PyObject *resultobj = 0;
19555 wxDC *arg1 = (wxDC *) 0 ;
19556 wxString *arg2 = 0 ;
19557 wxPoint *arg3 = 0 ;
19558 double arg4 ;
19559 void *argp1 = 0 ;
19560 int res1 = 0 ;
19561 bool temp2 = false ;
19562 wxPoint temp3 ;
19563 double val4 ;
19564 int ecode4 = 0 ;
19565 PyObject * obj0 = 0 ;
19566 PyObject * obj1 = 0 ;
19567 PyObject * obj2 = 0 ;
19568 PyObject * obj3 = 0 ;
19569 char * kwnames[] = {
19570 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19571 };
19572
19573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19575 if (!SWIG_IsOK(res1)) {
19576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19577 }
19578 arg1 = reinterpret_cast< wxDC * >(argp1);
19579 {
19580 arg2 = wxString_in_helper(obj1);
19581 if (arg2 == NULL) SWIG_fail;
19582 temp2 = true;
19583 }
19584 {
19585 arg3 = &temp3;
19586 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19587 }
19588 ecode4 = SWIG_AsVal_double(obj3, &val4);
19589 if (!SWIG_IsOK(ecode4)) {
19590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19591 }
19592 arg4 = static_cast< double >(val4);
19593 {
19594 PyThreadState* __tstate = wxPyBeginAllowThreads();
19595 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19596 wxPyEndAllowThreads(__tstate);
19597 if (PyErr_Occurred()) SWIG_fail;
19598 }
19599 resultobj = SWIG_Py_Void();
19600 {
19601 if (temp2)
19602 delete arg2;
19603 }
19604 return resultobj;
19605fail:
19606 {
19607 if (temp2)
19608 delete arg2;
19609 }
19610 return NULL;
19611}
19612
19613
19614SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19615 PyObject *resultobj = 0;
19616 wxDC *arg1 = (wxDC *) 0 ;
19617 int arg2 ;
19618 int arg3 ;
19619 int arg4 ;
19620 int arg5 ;
19621 wxDC *arg6 = (wxDC *) 0 ;
19622 int arg7 ;
19623 int arg8 ;
19624 int arg9 = (int) wxCOPY ;
19625 bool arg10 = (bool) false ;
19626 int arg11 = (int) -1 ;
19627 int arg12 = (int) -1 ;
19628 bool result;
19629 void *argp1 = 0 ;
19630 int res1 = 0 ;
19631 int val2 ;
19632 int ecode2 = 0 ;
19633 int val3 ;
19634 int ecode3 = 0 ;
19635 int val4 ;
19636 int ecode4 = 0 ;
19637 int val5 ;
19638 int ecode5 = 0 ;
19639 void *argp6 = 0 ;
19640 int res6 = 0 ;
19641 int val7 ;
19642 int ecode7 = 0 ;
19643 int val8 ;
19644 int ecode8 = 0 ;
19645 int val9 ;
19646 int ecode9 = 0 ;
19647 bool val10 ;
19648 int ecode10 = 0 ;
19649 int val11 ;
19650 int ecode11 = 0 ;
19651 int val12 ;
19652 int ecode12 = 0 ;
19653 PyObject * obj0 = 0 ;
19654 PyObject * obj1 = 0 ;
19655 PyObject * obj2 = 0 ;
19656 PyObject * obj3 = 0 ;
19657 PyObject * obj4 = 0 ;
19658 PyObject * obj5 = 0 ;
19659 PyObject * obj6 = 0 ;
19660 PyObject * obj7 = 0 ;
19661 PyObject * obj8 = 0 ;
19662 PyObject * obj9 = 0 ;
19663 PyObject * obj10 = 0 ;
19664 PyObject * obj11 = 0 ;
19665 char * kwnames[] = {
19666 (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
19667 };
19668
19669 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;
19670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19671 if (!SWIG_IsOK(res1)) {
19672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19673 }
19674 arg1 = reinterpret_cast< wxDC * >(argp1);
19675 ecode2 = SWIG_AsVal_int(obj1, &val2);
19676 if (!SWIG_IsOK(ecode2)) {
19677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19678 }
19679 arg2 = static_cast< int >(val2);
19680 ecode3 = SWIG_AsVal_int(obj2, &val3);
19681 if (!SWIG_IsOK(ecode3)) {
19682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19683 }
19684 arg3 = static_cast< int >(val3);
19685 ecode4 = SWIG_AsVal_int(obj3, &val4);
19686 if (!SWIG_IsOK(ecode4)) {
19687 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19688 }
19689 arg4 = static_cast< int >(val4);
19690 ecode5 = SWIG_AsVal_int(obj4, &val5);
19691 if (!SWIG_IsOK(ecode5)) {
19692 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19693 }
19694 arg5 = static_cast< int >(val5);
19695 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19696 if (!SWIG_IsOK(res6)) {
19697 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19698 }
19699 arg6 = reinterpret_cast< wxDC * >(argp6);
19700 ecode7 = SWIG_AsVal_int(obj6, &val7);
19701 if (!SWIG_IsOK(ecode7)) {
19702 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19703 }
19704 arg7 = static_cast< int >(val7);
19705 ecode8 = SWIG_AsVal_int(obj7, &val8);
19706 if (!SWIG_IsOK(ecode8)) {
19707 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19708 }
19709 arg8 = static_cast< int >(val8);
19710 if (obj8) {
19711 ecode9 = SWIG_AsVal_int(obj8, &val9);
19712 if (!SWIG_IsOK(ecode9)) {
19713 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19714 }
19715 arg9 = static_cast< int >(val9);
19716 }
19717 if (obj9) {
19718 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19719 if (!SWIG_IsOK(ecode10)) {
19720 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19721 }
19722 arg10 = static_cast< bool >(val10);
19723 }
19724 if (obj10) {
19725 ecode11 = SWIG_AsVal_int(obj10, &val11);
19726 if (!SWIG_IsOK(ecode11)) {
19727 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19728 }
19729 arg11 = static_cast< int >(val11);
19730 }
19731 if (obj11) {
19732 ecode12 = SWIG_AsVal_int(obj11, &val12);
19733 if (!SWIG_IsOK(ecode12)) {
19734 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19735 }
19736 arg12 = static_cast< int >(val12);
19737 }
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19741 wxPyEndAllowThreads(__tstate);
19742 if (PyErr_Occurred()) SWIG_fail;
19743 }
19744 {
19745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19746 }
19747 return resultobj;
19748fail:
19749 return NULL;
19750}
19751
19752
19753SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19754 PyObject *resultobj = 0;
19755 wxDC *arg1 = (wxDC *) 0 ;
19756 wxPoint *arg2 = 0 ;
19757 wxSize *arg3 = 0 ;
19758 wxDC *arg4 = (wxDC *) 0 ;
19759 wxPoint *arg5 = 0 ;
19760 int arg6 = (int) wxCOPY ;
19761 bool arg7 = (bool) false ;
19762 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19763 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19764 bool result;
19765 void *argp1 = 0 ;
19766 int res1 = 0 ;
19767 wxPoint temp2 ;
19768 wxSize temp3 ;
19769 void *argp4 = 0 ;
19770 int res4 = 0 ;
19771 wxPoint temp5 ;
19772 int val6 ;
19773 int ecode6 = 0 ;
19774 bool val7 ;
19775 int ecode7 = 0 ;
19776 wxPoint temp8 ;
19777 PyObject * obj0 = 0 ;
19778 PyObject * obj1 = 0 ;
19779 PyObject * obj2 = 0 ;
19780 PyObject * obj3 = 0 ;
19781 PyObject * obj4 = 0 ;
19782 PyObject * obj5 = 0 ;
19783 PyObject * obj6 = 0 ;
19784 PyObject * obj7 = 0 ;
19785 char * kwnames[] = {
19786 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19787 };
19788
19789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19791 if (!SWIG_IsOK(res1)) {
19792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19793 }
19794 arg1 = reinterpret_cast< wxDC * >(argp1);
19795 {
19796 arg2 = &temp2;
19797 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19798 }
19799 {
19800 arg3 = &temp3;
19801 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19802 }
19803 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19804 if (!SWIG_IsOK(res4)) {
19805 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19806 }
19807 arg4 = reinterpret_cast< wxDC * >(argp4);
19808 {
19809 arg5 = &temp5;
19810 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19811 }
19812 if (obj5) {
19813 ecode6 = SWIG_AsVal_int(obj5, &val6);
19814 if (!SWIG_IsOK(ecode6)) {
19815 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19816 }
19817 arg6 = static_cast< int >(val6);
19818 }
19819 if (obj6) {
19820 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19821 if (!SWIG_IsOK(ecode7)) {
19822 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19823 }
19824 arg7 = static_cast< bool >(val7);
19825 }
19826 if (obj7) {
093d3ff1 19827 {
0085ce49
RD
19828 arg8 = &temp8;
19829 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 19830 }
0085ce49
RD
19831 }
19832 {
19833 PyThreadState* __tstate = wxPyBeginAllowThreads();
19834 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19835 wxPyEndAllowThreads(__tstate);
19836 if (PyErr_Occurred()) SWIG_fail;
19837 }
19838 {
19839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19840 }
19841 return resultobj;
19842fail:
19843 return NULL;
19844}
19845
19846
8f514ab4
RD
19847SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19848 PyObject *resultobj = 0;
19849 wxDC *arg1 = (wxDC *) 0 ;
19850 wxRect *arg2 = (wxRect *) NULL ;
19851 SwigValueWrapper<wxBitmap > result;
19852 void *argp1 = 0 ;
19853 int res1 = 0 ;
19854 void *argp2 = 0 ;
19855 int res2 = 0 ;
19856 PyObject * obj0 = 0 ;
19857 PyObject * obj1 = 0 ;
19858 char * kwnames[] = {
19859 (char *) "self",(char *) "subrect", NULL
19860 };
19861
19862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19864 if (!SWIG_IsOK(res1)) {
19865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19866 }
19867 arg1 = reinterpret_cast< wxDC * >(argp1);
19868 if (obj1) {
19869 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19870 if (!SWIG_IsOK(res2)) {
19871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19872 }
19873 arg2 = reinterpret_cast< wxRect * >(argp2);
19874 }
19875 {
19876 PyThreadState* __tstate = wxPyBeginAllowThreads();
19877 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19878 wxPyEndAllowThreads(__tstate);
19879 if (PyErr_Occurred()) SWIG_fail;
19880 }
19881 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19882 return resultobj;
19883fail:
19884 return NULL;
19885}
19886
19887
0085ce49
RD
19888SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19889 PyObject *resultobj = 0;
19890 wxDC *arg1 = (wxDC *) 0 ;
19891 int arg2 ;
19892 int arg3 ;
19893 int arg4 ;
19894 int arg5 ;
19895 void *argp1 = 0 ;
19896 int res1 = 0 ;
19897 int val2 ;
19898 int ecode2 = 0 ;
19899 int val3 ;
19900 int ecode3 = 0 ;
19901 int val4 ;
19902 int ecode4 = 0 ;
19903 int val5 ;
19904 int ecode5 = 0 ;
19905 PyObject * obj0 = 0 ;
19906 PyObject * obj1 = 0 ;
19907 PyObject * obj2 = 0 ;
19908 PyObject * obj3 = 0 ;
19909 PyObject * obj4 = 0 ;
19910 char * kwnames[] = {
19911 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19912 };
19913
19914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19916 if (!SWIG_IsOK(res1)) {
19917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19918 }
19919 arg1 = reinterpret_cast< wxDC * >(argp1);
19920 ecode2 = SWIG_AsVal_int(obj1, &val2);
19921 if (!SWIG_IsOK(ecode2)) {
19922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19923 }
19924 arg2 = static_cast< int >(val2);
19925 ecode3 = SWIG_AsVal_int(obj2, &val3);
19926 if (!SWIG_IsOK(ecode3)) {
19927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19928 }
19929 arg3 = static_cast< int >(val3);
19930 ecode4 = SWIG_AsVal_int(obj3, &val4);
19931 if (!SWIG_IsOK(ecode4)) {
19932 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19933 }
19934 arg4 = static_cast< int >(val4);
19935 ecode5 = SWIG_AsVal_int(obj4, &val5);
19936 if (!SWIG_IsOK(ecode5)) {
19937 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19938 }
19939 arg5 = static_cast< int >(val5);
19940 {
19941 PyThreadState* __tstate = wxPyBeginAllowThreads();
19942 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19943 wxPyEndAllowThreads(__tstate);
19944 if (PyErr_Occurred()) SWIG_fail;
19945 }
19946 resultobj = SWIG_Py_Void();
19947 return resultobj;
19948fail:
19949 return NULL;
19950}
19951
19952
19953SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19954 PyObject *resultobj = 0;
19955 wxDC *arg1 = (wxDC *) 0 ;
19956 wxPoint *arg2 = 0 ;
19957 wxSize *arg3 = 0 ;
19958 void *argp1 = 0 ;
19959 int res1 = 0 ;
19960 wxPoint temp2 ;
19961 wxSize temp3 ;
19962 PyObject * obj0 = 0 ;
19963 PyObject * obj1 = 0 ;
19964 PyObject * obj2 = 0 ;
19965 char * kwnames[] = {
19966 (char *) "self",(char *) "pt",(char *) "sz", NULL
19967 };
19968
19969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19971 if (!SWIG_IsOK(res1)) {
19972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19973 }
19974 arg1 = reinterpret_cast< wxDC * >(argp1);
19975 {
19976 arg2 = &temp2;
19977 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19978 }
19979 {
19980 arg3 = &temp3;
19981 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19982 }
19983 {
19984 PyThreadState* __tstate = wxPyBeginAllowThreads();
19985 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19986 wxPyEndAllowThreads(__tstate);
19987 if (PyErr_Occurred()) SWIG_fail;
19988 }
19989 resultobj = SWIG_Py_Void();
19990 return resultobj;
19991fail:
19992 return NULL;
19993}
19994
19995
19996SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19997 PyObject *resultobj = 0;
19998 wxDC *arg1 = (wxDC *) 0 ;
19999 wxRegion *arg2 = 0 ;
20000 void *argp1 = 0 ;
20001 int res1 = 0 ;
20002 void *argp2 = 0 ;
20003 int res2 = 0 ;
20004 PyObject * obj0 = 0 ;
20005 PyObject * obj1 = 0 ;
20006 char * kwnames[] = {
20007 (char *) "self",(char *) "region", NULL
20008 };
20009
20010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20012 if (!SWIG_IsOK(res1)) {
20013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20014 }
20015 arg1 = reinterpret_cast< wxDC * >(argp1);
20016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20017 if (!SWIG_IsOK(res2)) {
20018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20019 }
20020 if (!argp2) {
20021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20022 }
20023 arg2 = reinterpret_cast< wxRegion * >(argp2);
20024 {
20025 PyThreadState* __tstate = wxPyBeginAllowThreads();
20026 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20027 wxPyEndAllowThreads(__tstate);
20028 if (PyErr_Occurred()) SWIG_fail;
20029 }
20030 resultobj = SWIG_Py_Void();
20031 return resultobj;
20032fail:
20033 return NULL;
20034}
20035
20036
20037SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20038 PyObject *resultobj = 0;
20039 wxDC *arg1 = (wxDC *) 0 ;
20040 wxRect *arg2 = 0 ;
20041 void *argp1 = 0 ;
20042 int res1 = 0 ;
20043 wxRect temp2 ;
20044 PyObject * obj0 = 0 ;
20045 PyObject * obj1 = 0 ;
20046 char * kwnames[] = {
20047 (char *) "self",(char *) "rect", NULL
20048 };
20049
20050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20052 if (!SWIG_IsOK(res1)) {
20053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20054 }
20055 arg1 = reinterpret_cast< wxDC * >(argp1);
20056 {
20057 arg2 = &temp2;
20058 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20059 }
20060 {
20061 PyThreadState* __tstate = wxPyBeginAllowThreads();
20062 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20063 wxPyEndAllowThreads(__tstate);
20064 if (PyErr_Occurred()) SWIG_fail;
20065 }
20066 resultobj = SWIG_Py_Void();
20067 return resultobj;
20068fail:
20069 return NULL;
20070}
20071
20072
20073SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20074 PyObject *resultobj = 0;
20075 wxDC *arg1 = (wxDC *) 0 ;
20076 int arg2 ;
20077 wxPoint *arg3 = (wxPoint *) 0 ;
20078 int arg4 = (int) 0 ;
20079 int arg5 = (int) 0 ;
20080 void *argp1 = 0 ;
20081 int res1 = 0 ;
20082 int val4 ;
20083 int ecode4 = 0 ;
20084 int val5 ;
20085 int ecode5 = 0 ;
20086 PyObject * obj0 = 0 ;
20087 PyObject * obj1 = 0 ;
20088 PyObject * obj2 = 0 ;
20089 PyObject * obj3 = 0 ;
20090 char * kwnames[] = {
20091 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20092 };
20093
20094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20096 if (!SWIG_IsOK(res1)) {
20097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20098 }
20099 arg1 = reinterpret_cast< wxDC * >(argp1);
20100 {
20101 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20102 if (arg3 == NULL) SWIG_fail;
20103 }
20104 if (obj2) {
20105 ecode4 = SWIG_AsVal_int(obj2, &val4);
20106 if (!SWIG_IsOK(ecode4)) {
20107 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20108 }
20109 arg4 = static_cast< int >(val4);
20110 }
20111 if (obj3) {
20112 ecode5 = SWIG_AsVal_int(obj3, &val5);
20113 if (!SWIG_IsOK(ecode5)) {
20114 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20115 }
20116 arg5 = static_cast< int >(val5);
20117 }
20118 {
20119 PyThreadState* __tstate = wxPyBeginAllowThreads();
20120 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20121 wxPyEndAllowThreads(__tstate);
20122 if (PyErr_Occurred()) SWIG_fail;
20123 }
20124 resultobj = SWIG_Py_Void();
20125 {
20126 if (arg3) delete [] arg3;
20127 }
20128 return resultobj;
20129fail:
20130 {
20131 if (arg3) delete [] arg3;
20132 }
20133 return NULL;
20134}
20135
20136
20137SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20138 PyObject *resultobj = 0;
20139 wxDC *arg1 = (wxDC *) 0 ;
20140 int arg2 ;
20141 wxPoint *arg3 = (wxPoint *) 0 ;
20142 int arg4 = (int) 0 ;
20143 int arg5 = (int) 0 ;
20144 int arg6 = (int) wxODDEVEN_RULE ;
20145 void *argp1 = 0 ;
20146 int res1 = 0 ;
20147 int val4 ;
20148 int ecode4 = 0 ;
20149 int val5 ;
20150 int ecode5 = 0 ;
20151 int val6 ;
20152 int ecode6 = 0 ;
20153 PyObject * obj0 = 0 ;
20154 PyObject * obj1 = 0 ;
20155 PyObject * obj2 = 0 ;
20156 PyObject * obj3 = 0 ;
20157 PyObject * obj4 = 0 ;
20158 char * kwnames[] = {
20159 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20160 };
20161
20162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20164 if (!SWIG_IsOK(res1)) {
20165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20166 }
20167 arg1 = reinterpret_cast< wxDC * >(argp1);
20168 {
20169 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20170 if (arg3 == NULL) SWIG_fail;
20171 }
20172 if (obj2) {
20173 ecode4 = SWIG_AsVal_int(obj2, &val4);
20174 if (!SWIG_IsOK(ecode4)) {
20175 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20176 }
20177 arg4 = static_cast< int >(val4);
20178 }
20179 if (obj3) {
20180 ecode5 = SWIG_AsVal_int(obj3, &val5);
20181 if (!SWIG_IsOK(ecode5)) {
20182 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20183 }
20184 arg5 = static_cast< int >(val5);
20185 }
20186 if (obj4) {
20187 ecode6 = SWIG_AsVal_int(obj4, &val6);
20188 if (!SWIG_IsOK(ecode6)) {
20189 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20190 }
20191 arg6 = static_cast< int >(val6);
20192 }
20193 {
20194 PyThreadState* __tstate = wxPyBeginAllowThreads();
20195 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20196 wxPyEndAllowThreads(__tstate);
20197 if (PyErr_Occurred()) SWIG_fail;
20198 }
20199 resultobj = SWIG_Py_Void();
20200 {
20201 if (arg3) delete [] arg3;
20202 }
20203 return resultobj;
20204fail:
20205 {
20206 if (arg3) delete [] arg3;
20207 }
20208 return NULL;
20209}
20210
20211
20212SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20213 PyObject *resultobj = 0;
20214 wxDC *arg1 = (wxDC *) 0 ;
20215 wxString *arg2 = 0 ;
20216 wxRect *arg3 = 0 ;
20217 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20218 int arg5 = (int) -1 ;
20219 void *argp1 = 0 ;
20220 int res1 = 0 ;
20221 bool temp2 = false ;
20222 wxRect temp3 ;
20223 int val4 ;
20224 int ecode4 = 0 ;
20225 int val5 ;
20226 int ecode5 = 0 ;
20227 PyObject * obj0 = 0 ;
20228 PyObject * obj1 = 0 ;
20229 PyObject * obj2 = 0 ;
20230 PyObject * obj3 = 0 ;
20231 PyObject * obj4 = 0 ;
20232 char * kwnames[] = {
20233 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20234 };
20235
20236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20238 if (!SWIG_IsOK(res1)) {
20239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20240 }
20241 arg1 = reinterpret_cast< wxDC * >(argp1);
20242 {
20243 arg2 = wxString_in_helper(obj1);
20244 if (arg2 == NULL) SWIG_fail;
20245 temp2 = true;
20246 }
20247 {
20248 arg3 = &temp3;
20249 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20250 }
20251 if (obj3) {
20252 ecode4 = SWIG_AsVal_int(obj3, &val4);
20253 if (!SWIG_IsOK(ecode4)) {
20254 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20255 }
20256 arg4 = static_cast< int >(val4);
20257 }
20258 if (obj4) {
20259 ecode5 = SWIG_AsVal_int(obj4, &val5);
20260 if (!SWIG_IsOK(ecode5)) {
20261 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20262 }
20263 arg5 = static_cast< int >(val5);
20264 }
20265 {
20266 PyThreadState* __tstate = wxPyBeginAllowThreads();
20267 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20268 wxPyEndAllowThreads(__tstate);
20269 if (PyErr_Occurred()) SWIG_fail;
20270 }
20271 resultobj = SWIG_Py_Void();
20272 {
20273 if (temp2)
20274 delete arg2;
20275 }
20276 return resultobj;
20277fail:
20278 {
20279 if (temp2)
20280 delete arg2;
20281 }
20282 return NULL;
20283}
20284
20285
20286SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20287 PyObject *resultobj = 0;
20288 wxDC *arg1 = (wxDC *) 0 ;
20289 wxString *arg2 = 0 ;
20290 wxBitmap *arg3 = 0 ;
20291 wxRect *arg4 = 0 ;
20292 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20293 int arg6 = (int) -1 ;
20294 wxRect result;
20295 void *argp1 = 0 ;
20296 int res1 = 0 ;
20297 bool temp2 = false ;
20298 void *argp3 = 0 ;
20299 int res3 = 0 ;
20300 wxRect temp4 ;
20301 int val5 ;
20302 int ecode5 = 0 ;
20303 int val6 ;
20304 int ecode6 = 0 ;
20305 PyObject * obj0 = 0 ;
20306 PyObject * obj1 = 0 ;
20307 PyObject * obj2 = 0 ;
20308 PyObject * obj3 = 0 ;
20309 PyObject * obj4 = 0 ;
20310 PyObject * obj5 = 0 ;
20311 char * kwnames[] = {
20312 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20313 };
20314
20315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20317 if (!SWIG_IsOK(res1)) {
20318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20319 }
20320 arg1 = reinterpret_cast< wxDC * >(argp1);
20321 {
20322 arg2 = wxString_in_helper(obj1);
20323 if (arg2 == NULL) SWIG_fail;
20324 temp2 = true;
20325 }
20326 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20327 if (!SWIG_IsOK(res3)) {
20328 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20329 }
20330 if (!argp3) {
20331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20332 }
20333 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20334 {
20335 arg4 = &temp4;
20336 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20337 }
20338 if (obj4) {
20339 ecode5 = SWIG_AsVal_int(obj4, &val5);
20340 if (!SWIG_IsOK(ecode5)) {
20341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20342 }
20343 arg5 = static_cast< int >(val5);
20344 }
20345 if (obj5) {
20346 ecode6 = SWIG_AsVal_int(obj5, &val6);
20347 if (!SWIG_IsOK(ecode6)) {
20348 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20349 }
20350 arg6 = static_cast< int >(val6);
20351 }
20352 {
20353 PyThreadState* __tstate = wxPyBeginAllowThreads();
20354 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20355 wxPyEndAllowThreads(__tstate);
20356 if (PyErr_Occurred()) SWIG_fail;
20357 }
20358 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20359 {
20360 if (temp2)
20361 delete arg2;
20362 }
20363 return resultobj;
20364fail:
20365 {
20366 if (temp2)
20367 delete arg2;
20368 }
20369 return NULL;
20370}
20371
20372
20373SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20374 PyObject *resultobj = 0;
20375 wxDC *arg1 = (wxDC *) 0 ;
20376 int arg2 ;
20377 wxPoint *arg3 = (wxPoint *) 0 ;
20378 void *argp1 = 0 ;
20379 int res1 = 0 ;
20380 PyObject * obj0 = 0 ;
20381 PyObject * obj1 = 0 ;
20382 char * kwnames[] = {
20383 (char *) "self",(char *) "points", NULL
20384 };
20385
20386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20388 if (!SWIG_IsOK(res1)) {
20389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20390 }
20391 arg1 = reinterpret_cast< wxDC * >(argp1);
20392 {
20393 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20394 if (arg3 == NULL) SWIG_fail;
20395 }
20396 {
20397 PyThreadState* __tstate = wxPyBeginAllowThreads();
20398 (arg1)->DrawSpline(arg2,arg3);
20399 wxPyEndAllowThreads(__tstate);
20400 if (PyErr_Occurred()) SWIG_fail;
20401 }
20402 resultobj = SWIG_Py_Void();
20403 {
20404 if (arg3) delete [] arg3;
20405 }
20406 return resultobj;
20407fail:
20408 {
20409 if (arg3) delete [] arg3;
20410 }
20411 return NULL;
20412}
20413
20414
20415SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20416 PyObject *resultobj = 0;
20417 wxDC *arg1 = (wxDC *) 0 ;
20418 void *argp1 = 0 ;
20419 int res1 = 0 ;
20420 PyObject *swig_obj[1] ;
20421
20422 if (!args) SWIG_fail;
20423 swig_obj[0] = args;
20424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20425 if (!SWIG_IsOK(res1)) {
20426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20427 }
20428 arg1 = reinterpret_cast< wxDC * >(argp1);
20429 {
20430 PyThreadState* __tstate = wxPyBeginAllowThreads();
20431 (arg1)->Clear();
20432 wxPyEndAllowThreads(__tstate);
20433 if (PyErr_Occurred()) SWIG_fail;
20434 }
20435 resultobj = SWIG_Py_Void();
20436 return resultobj;
20437fail:
20438 return NULL;
20439}
20440
20441
20442SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20443 PyObject *resultobj = 0;
20444 wxDC *arg1 = (wxDC *) 0 ;
20445 wxString *arg2 = 0 ;
20446 bool result;
20447 void *argp1 = 0 ;
20448 int res1 = 0 ;
20449 bool temp2 = false ;
20450 PyObject * obj0 = 0 ;
20451 PyObject * obj1 = 0 ;
20452 char * kwnames[] = {
20453 (char *) "self",(char *) "message", NULL
20454 };
20455
20456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20458 if (!SWIG_IsOK(res1)) {
20459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20460 }
20461 arg1 = reinterpret_cast< wxDC * >(argp1);
20462 {
20463 arg2 = wxString_in_helper(obj1);
20464 if (arg2 == NULL) SWIG_fail;
20465 temp2 = true;
20466 }
20467 {
20468 PyThreadState* __tstate = wxPyBeginAllowThreads();
20469 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20470 wxPyEndAllowThreads(__tstate);
20471 if (PyErr_Occurred()) SWIG_fail;
20472 }
20473 {
20474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20475 }
20476 {
20477 if (temp2)
20478 delete arg2;
20479 }
20480 return resultobj;
20481fail:
20482 {
20483 if (temp2)
20484 delete arg2;
20485 }
20486 return NULL;
20487}
20488
20489
20490SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20491 PyObject *resultobj = 0;
20492 wxDC *arg1 = (wxDC *) 0 ;
20493 void *argp1 = 0 ;
20494 int res1 = 0 ;
20495 PyObject *swig_obj[1] ;
20496
20497 if (!args) SWIG_fail;
20498 swig_obj[0] = args;
20499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20500 if (!SWIG_IsOK(res1)) {
20501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20502 }
20503 arg1 = reinterpret_cast< wxDC * >(argp1);
20504 {
20505 PyThreadState* __tstate = wxPyBeginAllowThreads();
20506 (arg1)->EndDoc();
20507 wxPyEndAllowThreads(__tstate);
20508 if (PyErr_Occurred()) SWIG_fail;
20509 }
20510 resultobj = SWIG_Py_Void();
20511 return resultobj;
20512fail:
20513 return NULL;
20514}
20515
20516
20517SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20518 PyObject *resultobj = 0;
20519 wxDC *arg1 = (wxDC *) 0 ;
20520 void *argp1 = 0 ;
20521 int res1 = 0 ;
20522 PyObject *swig_obj[1] ;
20523
20524 if (!args) SWIG_fail;
20525 swig_obj[0] = args;
20526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20527 if (!SWIG_IsOK(res1)) {
20528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20529 }
20530 arg1 = reinterpret_cast< wxDC * >(argp1);
20531 {
20532 PyThreadState* __tstate = wxPyBeginAllowThreads();
20533 (arg1)->StartPage();
20534 wxPyEndAllowThreads(__tstate);
20535 if (PyErr_Occurred()) SWIG_fail;
20536 }
20537 resultobj = SWIG_Py_Void();
20538 return resultobj;
20539fail:
20540 return NULL;
20541}
20542
20543
20544SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20545 PyObject *resultobj = 0;
20546 wxDC *arg1 = (wxDC *) 0 ;
20547 void *argp1 = 0 ;
20548 int res1 = 0 ;
20549 PyObject *swig_obj[1] ;
20550
20551 if (!args) SWIG_fail;
20552 swig_obj[0] = args;
20553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20554 if (!SWIG_IsOK(res1)) {
20555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20556 }
20557 arg1 = reinterpret_cast< wxDC * >(argp1);
20558 {
20559 PyThreadState* __tstate = wxPyBeginAllowThreads();
20560 (arg1)->EndPage();
20561 wxPyEndAllowThreads(__tstate);
20562 if (PyErr_Occurred()) SWIG_fail;
20563 }
20564 resultobj = SWIG_Py_Void();
20565 return resultobj;
20566fail:
20567 return NULL;
20568}
20569
20570
20571SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20572 PyObject *resultobj = 0;
20573 wxDC *arg1 = (wxDC *) 0 ;
20574 wxFont *arg2 = 0 ;
20575 void *argp1 = 0 ;
20576 int res1 = 0 ;
20577 void *argp2 = 0 ;
20578 int res2 = 0 ;
20579 PyObject * obj0 = 0 ;
20580 PyObject * obj1 = 0 ;
20581 char * kwnames[] = {
20582 (char *) "self",(char *) "font", NULL
20583 };
20584
20585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20587 if (!SWIG_IsOK(res1)) {
20588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20589 }
20590 arg1 = reinterpret_cast< wxDC * >(argp1);
20591 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20592 if (!SWIG_IsOK(res2)) {
20593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20594 }
20595 if (!argp2) {
20596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20597 }
20598 arg2 = reinterpret_cast< wxFont * >(argp2);
20599 {
20600 PyThreadState* __tstate = wxPyBeginAllowThreads();
20601 (arg1)->SetFont((wxFont const &)*arg2);
20602 wxPyEndAllowThreads(__tstate);
20603 if (PyErr_Occurred()) SWIG_fail;
20604 }
20605 resultobj = SWIG_Py_Void();
20606 return resultobj;
20607fail:
20608 return NULL;
20609}
20610
20611
20612SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20613 PyObject *resultobj = 0;
20614 wxDC *arg1 = (wxDC *) 0 ;
20615 wxPen *arg2 = 0 ;
20616 void *argp1 = 0 ;
20617 int res1 = 0 ;
20618 void *argp2 = 0 ;
20619 int res2 = 0 ;
20620 PyObject * obj0 = 0 ;
20621 PyObject * obj1 = 0 ;
20622 char * kwnames[] = {
20623 (char *) "self",(char *) "pen", NULL
20624 };
20625
20626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20628 if (!SWIG_IsOK(res1)) {
20629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20630 }
20631 arg1 = reinterpret_cast< wxDC * >(argp1);
20632 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20633 if (!SWIG_IsOK(res2)) {
20634 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20635 }
20636 if (!argp2) {
20637 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20638 }
20639 arg2 = reinterpret_cast< wxPen * >(argp2);
20640 {
20641 PyThreadState* __tstate = wxPyBeginAllowThreads();
20642 (arg1)->SetPen((wxPen const &)*arg2);
20643 wxPyEndAllowThreads(__tstate);
20644 if (PyErr_Occurred()) SWIG_fail;
20645 }
20646 resultobj = SWIG_Py_Void();
20647 return resultobj;
20648fail:
20649 return NULL;
20650}
20651
20652
20653SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20654 PyObject *resultobj = 0;
20655 wxDC *arg1 = (wxDC *) 0 ;
20656 wxBrush *arg2 = 0 ;
20657 void *argp1 = 0 ;
20658 int res1 = 0 ;
20659 void *argp2 = 0 ;
20660 int res2 = 0 ;
20661 PyObject * obj0 = 0 ;
20662 PyObject * obj1 = 0 ;
20663 char * kwnames[] = {
20664 (char *) "self",(char *) "brush", NULL
20665 };
20666
20667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20669 if (!SWIG_IsOK(res1)) {
20670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20671 }
20672 arg1 = reinterpret_cast< wxDC * >(argp1);
20673 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20674 if (!SWIG_IsOK(res2)) {
20675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20676 }
20677 if (!argp2) {
20678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20679 }
20680 arg2 = reinterpret_cast< wxBrush * >(argp2);
20681 {
20682 PyThreadState* __tstate = wxPyBeginAllowThreads();
20683 (arg1)->SetBrush((wxBrush const &)*arg2);
20684 wxPyEndAllowThreads(__tstate);
20685 if (PyErr_Occurred()) SWIG_fail;
20686 }
20687 resultobj = SWIG_Py_Void();
20688 return resultobj;
20689fail:
20690 return NULL;
20691}
20692
20693
20694SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20695 PyObject *resultobj = 0;
20696 wxDC *arg1 = (wxDC *) 0 ;
20697 wxBrush *arg2 = 0 ;
20698 void *argp1 = 0 ;
20699 int res1 = 0 ;
20700 void *argp2 = 0 ;
20701 int res2 = 0 ;
20702 PyObject * obj0 = 0 ;
20703 PyObject * obj1 = 0 ;
20704 char * kwnames[] = {
20705 (char *) "self",(char *) "brush", NULL
20706 };
20707
20708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20710 if (!SWIG_IsOK(res1)) {
20711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20712 }
20713 arg1 = reinterpret_cast< wxDC * >(argp1);
20714 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20715 if (!SWIG_IsOK(res2)) {
20716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20717 }
20718 if (!argp2) {
20719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20720 }
20721 arg2 = reinterpret_cast< wxBrush * >(argp2);
20722 {
20723 PyThreadState* __tstate = wxPyBeginAllowThreads();
20724 (arg1)->SetBackground((wxBrush const &)*arg2);
20725 wxPyEndAllowThreads(__tstate);
20726 if (PyErr_Occurred()) SWIG_fail;
20727 }
20728 resultobj = SWIG_Py_Void();
20729 return resultobj;
20730fail:
20731 return NULL;
20732}
20733
20734
20735SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20736 PyObject *resultobj = 0;
20737 wxDC *arg1 = (wxDC *) 0 ;
20738 int arg2 ;
20739 void *argp1 = 0 ;
20740 int res1 = 0 ;
20741 int val2 ;
20742 int ecode2 = 0 ;
20743 PyObject * obj0 = 0 ;
20744 PyObject * obj1 = 0 ;
20745 char * kwnames[] = {
20746 (char *) "self",(char *) "mode", NULL
20747 };
20748
20749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20751 if (!SWIG_IsOK(res1)) {
20752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20753 }
20754 arg1 = reinterpret_cast< wxDC * >(argp1);
20755 ecode2 = SWIG_AsVal_int(obj1, &val2);
20756 if (!SWIG_IsOK(ecode2)) {
20757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20758 }
20759 arg2 = static_cast< int >(val2);
20760 {
20761 PyThreadState* __tstate = wxPyBeginAllowThreads();
20762 (arg1)->SetBackgroundMode(arg2);
20763 wxPyEndAllowThreads(__tstate);
20764 if (PyErr_Occurred()) SWIG_fail;
20765 }
20766 resultobj = SWIG_Py_Void();
20767 return resultobj;
20768fail:
20769 return NULL;
20770}
20771
20772
20773SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20774 PyObject *resultobj = 0;
20775 wxDC *arg1 = (wxDC *) 0 ;
20776 wxPalette *arg2 = 0 ;
20777 void *argp1 = 0 ;
20778 int res1 = 0 ;
20779 void *argp2 = 0 ;
20780 int res2 = 0 ;
20781 PyObject * obj0 = 0 ;
20782 PyObject * obj1 = 0 ;
20783 char * kwnames[] = {
20784 (char *) "self",(char *) "palette", NULL
20785 };
20786
20787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20789 if (!SWIG_IsOK(res1)) {
20790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20791 }
20792 arg1 = reinterpret_cast< wxDC * >(argp1);
20793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20794 if (!SWIG_IsOK(res2)) {
20795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20796 }
20797 if (!argp2) {
20798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20799 }
20800 arg2 = reinterpret_cast< wxPalette * >(argp2);
20801 {
20802 PyThreadState* __tstate = wxPyBeginAllowThreads();
20803 (arg1)->SetPalette((wxPalette const &)*arg2);
20804 wxPyEndAllowThreads(__tstate);
20805 if (PyErr_Occurred()) SWIG_fail;
20806 }
20807 resultobj = SWIG_Py_Void();
20808 return resultobj;
20809fail:
20810 return NULL;
20811}
20812
20813
20814SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20815 PyObject *resultobj = 0;
20816 wxDC *arg1 = (wxDC *) 0 ;
20817 void *argp1 = 0 ;
20818 int res1 = 0 ;
20819 PyObject *swig_obj[1] ;
20820
20821 if (!args) SWIG_fail;
20822 swig_obj[0] = args;
20823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20824 if (!SWIG_IsOK(res1)) {
20825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20826 }
20827 arg1 = reinterpret_cast< wxDC * >(argp1);
20828 {
20829 PyThreadState* __tstate = wxPyBeginAllowThreads();
20830 (arg1)->DestroyClippingRegion();
20831 wxPyEndAllowThreads(__tstate);
20832 if (PyErr_Occurred()) SWIG_fail;
20833 }
20834 resultobj = SWIG_Py_Void();
20835 return resultobj;
20836fail:
20837 return NULL;
20838}
20839
20840
20841SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20842 PyObject *resultobj = 0;
20843 wxDC *arg1 = (wxDC *) 0 ;
20844 int *arg2 = (int *) 0 ;
20845 int *arg3 = (int *) 0 ;
20846 int *arg4 = (int *) 0 ;
20847 int *arg5 = (int *) 0 ;
20848 void *argp1 = 0 ;
20849 int res1 = 0 ;
20850 int temp2 ;
20851 int res2 = SWIG_TMPOBJ ;
20852 int temp3 ;
20853 int res3 = SWIG_TMPOBJ ;
20854 int temp4 ;
20855 int res4 = SWIG_TMPOBJ ;
20856 int temp5 ;
20857 int res5 = SWIG_TMPOBJ ;
20858 PyObject *swig_obj[1] ;
20859
20860 arg2 = &temp2;
20861 arg3 = &temp3;
20862 arg4 = &temp4;
20863 arg5 = &temp5;
20864 if (!args) SWIG_fail;
20865 swig_obj[0] = args;
20866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20867 if (!SWIG_IsOK(res1)) {
20868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20869 }
20870 arg1 = reinterpret_cast< wxDC * >(argp1);
20871 {
20872 PyThreadState* __tstate = wxPyBeginAllowThreads();
20873 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20874 wxPyEndAllowThreads(__tstate);
20875 if (PyErr_Occurred()) SWIG_fail;
20876 }
20877 resultobj = SWIG_Py_Void();
20878 if (SWIG_IsTmpObj(res2)) {
20879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20880 } else {
20881 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20882 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20883 }
20884 if (SWIG_IsTmpObj(res3)) {
20885 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20886 } else {
20887 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20888 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20889 }
20890 if (SWIG_IsTmpObj(res4)) {
20891 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20892 } else {
20893 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20895 }
20896 if (SWIG_IsTmpObj(res5)) {
20897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20898 } else {
20899 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20901 }
20902 return resultobj;
20903fail:
20904 return NULL;
20905}
20906
20907
20908SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20909 PyObject *resultobj = 0;
20910 wxDC *arg1 = (wxDC *) 0 ;
20911 wxRect result;
20912 void *argp1 = 0 ;
20913 int res1 = 0 ;
20914 PyObject *swig_obj[1] ;
20915
20916 if (!args) SWIG_fail;
20917 swig_obj[0] = args;
20918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20919 if (!SWIG_IsOK(res1)) {
20920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20921 }
20922 arg1 = reinterpret_cast< wxDC * >(argp1);
20923 {
20924 PyThreadState* __tstate = wxPyBeginAllowThreads();
20925 result = wxDC_GetClippingRect(arg1);
20926 wxPyEndAllowThreads(__tstate);
20927 if (PyErr_Occurred()) SWIG_fail;
20928 }
20929 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20930 return resultobj;
20931fail:
20932 return NULL;
20933}
20934
20935
20936SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20937 PyObject *resultobj = 0;
20938 wxDC *arg1 = (wxDC *) 0 ;
20939 int result;
20940 void *argp1 = 0 ;
20941 int res1 = 0 ;
20942 PyObject *swig_obj[1] ;
20943
20944 if (!args) SWIG_fail;
20945 swig_obj[0] = args;
20946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20947 if (!SWIG_IsOK(res1)) {
20948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20949 }
20950 arg1 = reinterpret_cast< wxDC * >(argp1);
20951 {
20952 PyThreadState* __tstate = wxPyBeginAllowThreads();
20953 result = (int)((wxDC const *)arg1)->GetCharHeight();
20954 wxPyEndAllowThreads(__tstate);
20955 if (PyErr_Occurred()) SWIG_fail;
20956 }
20957 resultobj = SWIG_From_int(static_cast< int >(result));
20958 return resultobj;
20959fail:
20960 return NULL;
20961}
20962
20963
20964SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20965 PyObject *resultobj = 0;
20966 wxDC *arg1 = (wxDC *) 0 ;
20967 int result;
20968 void *argp1 = 0 ;
20969 int res1 = 0 ;
20970 PyObject *swig_obj[1] ;
20971
20972 if (!args) SWIG_fail;
20973 swig_obj[0] = args;
20974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20975 if (!SWIG_IsOK(res1)) {
20976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20977 }
20978 arg1 = reinterpret_cast< wxDC * >(argp1);
20979 {
20980 PyThreadState* __tstate = wxPyBeginAllowThreads();
20981 result = (int)((wxDC const *)arg1)->GetCharWidth();
20982 wxPyEndAllowThreads(__tstate);
20983 if (PyErr_Occurred()) SWIG_fail;
20984 }
20985 resultobj = SWIG_From_int(static_cast< int >(result));
20986 return resultobj;
20987fail:
20988 return NULL;
20989}
20990
20991
20992SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20993 PyObject *resultobj = 0;
20994 wxDC *arg1 = (wxDC *) 0 ;
20995 wxString *arg2 = 0 ;
20996 int *arg3 = (int *) 0 ;
20997 int *arg4 = (int *) 0 ;
20998 void *argp1 = 0 ;
20999 int res1 = 0 ;
21000 bool temp2 = false ;
21001 int temp3 ;
21002 int res3 = SWIG_TMPOBJ ;
21003 int temp4 ;
21004 int res4 = SWIG_TMPOBJ ;
21005 PyObject * obj0 = 0 ;
21006 PyObject * obj1 = 0 ;
21007 char * kwnames[] = {
21008 (char *) "self",(char *) "string", NULL
21009 };
21010
21011 arg3 = &temp3;
21012 arg4 = &temp4;
21013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21015 if (!SWIG_IsOK(res1)) {
21016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21017 }
21018 arg1 = reinterpret_cast< wxDC * >(argp1);
21019 {
21020 arg2 = wxString_in_helper(obj1);
21021 if (arg2 == NULL) SWIG_fail;
21022 temp2 = true;
21023 }
21024 {
21025 PyThreadState* __tstate = wxPyBeginAllowThreads();
21026 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21027 wxPyEndAllowThreads(__tstate);
21028 if (PyErr_Occurred()) SWIG_fail;
21029 }
21030 resultobj = SWIG_Py_Void();
21031 if (SWIG_IsTmpObj(res3)) {
21032 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21033 } else {
21034 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21035 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21036 }
21037 if (SWIG_IsTmpObj(res4)) {
21038 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21039 } else {
21040 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21041 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21042 }
21043 {
21044 if (temp2)
21045 delete arg2;
21046 }
21047 return resultobj;
21048fail:
21049 {
21050 if (temp2)
21051 delete arg2;
21052 }
21053 return NULL;
21054}
21055
21056
21057SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21058 PyObject *resultobj = 0;
21059 wxDC *arg1 = (wxDC *) 0 ;
21060 wxString *arg2 = 0 ;
21061 int *arg3 = (int *) 0 ;
21062 int *arg4 = (int *) 0 ;
21063 int *arg5 = (int *) 0 ;
21064 int *arg6 = (int *) 0 ;
21065 wxFont *arg7 = (wxFont *) NULL ;
21066 void *argp1 = 0 ;
21067 int res1 = 0 ;
21068 bool temp2 = false ;
21069 int temp3 ;
21070 int res3 = SWIG_TMPOBJ ;
21071 int temp4 ;
21072 int res4 = SWIG_TMPOBJ ;
21073 int temp5 ;
21074 int res5 = SWIG_TMPOBJ ;
21075 int temp6 ;
21076 int res6 = SWIG_TMPOBJ ;
21077 void *argp7 = 0 ;
21078 int res7 = 0 ;
21079 PyObject * obj0 = 0 ;
21080 PyObject * obj1 = 0 ;
21081 PyObject * obj2 = 0 ;
21082 char * kwnames[] = {
21083 (char *) "self",(char *) "string",(char *) "font", NULL
21084 };
21085
21086 arg3 = &temp3;
21087 arg4 = &temp4;
21088 arg5 = &temp5;
21089 arg6 = &temp6;
21090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21092 if (!SWIG_IsOK(res1)) {
21093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21094 }
21095 arg1 = reinterpret_cast< wxDC * >(argp1);
21096 {
21097 arg2 = wxString_in_helper(obj1);
21098 if (arg2 == NULL) SWIG_fail;
21099 temp2 = true;
21100 }
21101 if (obj2) {
21102 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21103 if (!SWIG_IsOK(res7)) {
21104 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 21105 }
0085ce49
RD
21106 arg7 = reinterpret_cast< wxFont * >(argp7);
21107 }
21108 {
21109 PyThreadState* __tstate = wxPyBeginAllowThreads();
21110 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21111 wxPyEndAllowThreads(__tstate);
21112 if (PyErr_Occurred()) SWIG_fail;
21113 }
21114 resultobj = SWIG_Py_Void();
21115 if (SWIG_IsTmpObj(res3)) {
21116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21117 } else {
21118 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21120 }
21121 if (SWIG_IsTmpObj(res4)) {
21122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21123 } else {
21124 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21126 }
21127 if (SWIG_IsTmpObj(res5)) {
21128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21129 } else {
21130 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21132 }
21133 if (SWIG_IsTmpObj(res6)) {
21134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21135 } else {
21136 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21137 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21138 }
21139 {
21140 if (temp2)
21141 delete arg2;
21142 }
21143 return resultobj;
21144fail:
21145 {
21146 if (temp2)
21147 delete arg2;
21148 }
21149 return NULL;
21150}
21151
21152
21153SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21154 PyObject *resultobj = 0;
21155 wxDC *arg1 = (wxDC *) 0 ;
21156 wxString *arg2 = 0 ;
21157 int *arg3 = (int *) 0 ;
21158 int *arg4 = (int *) 0 ;
21159 int *arg5 = (int *) 0 ;
21160 wxFont *arg6 = (wxFont *) NULL ;
21161 void *argp1 = 0 ;
21162 int res1 = 0 ;
21163 bool temp2 = false ;
21164 int temp3 ;
21165 int res3 = SWIG_TMPOBJ ;
21166 int temp4 ;
21167 int res4 = SWIG_TMPOBJ ;
21168 int temp5 ;
21169 int res5 = SWIG_TMPOBJ ;
21170 void *argp6 = 0 ;
21171 int res6 = 0 ;
21172 PyObject * obj0 = 0 ;
21173 PyObject * obj1 = 0 ;
21174 PyObject * obj2 = 0 ;
21175 char * kwnames[] = {
21176 (char *) "self",(char *) "text",(char *) "font", NULL
21177 };
21178
21179 arg3 = &temp3;
21180 arg4 = &temp4;
21181 arg5 = &temp5;
21182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21184 if (!SWIG_IsOK(res1)) {
21185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21186 }
21187 arg1 = reinterpret_cast< wxDC * >(argp1);
21188 {
21189 arg2 = wxString_in_helper(obj1);
21190 if (arg2 == NULL) SWIG_fail;
21191 temp2 = true;
21192 }
21193 if (obj2) {
21194 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21195 if (!SWIG_IsOK(res6)) {
21196 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 21197 }
0085ce49
RD
21198 arg6 = reinterpret_cast< wxFont * >(argp6);
21199 }
21200 {
21201 PyThreadState* __tstate = wxPyBeginAllowThreads();
21202 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21203 wxPyEndAllowThreads(__tstate);
21204 if (PyErr_Occurred()) SWIG_fail;
21205 }
21206 resultobj = SWIG_Py_Void();
21207 if (SWIG_IsTmpObj(res3)) {
21208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21209 } else {
21210 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21212 }
21213 if (SWIG_IsTmpObj(res4)) {
21214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21215 } else {
21216 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21218 }
21219 if (SWIG_IsTmpObj(res5)) {
21220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21221 } else {
21222 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21223 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21224 }
21225 {
21226 if (temp2)
21227 delete arg2;
21228 }
21229 return resultobj;
21230fail:
21231 {
21232 if (temp2)
21233 delete arg2;
21234 }
21235 return NULL;
21236}
21237
21238
21239SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21240 PyObject *resultobj = 0;
21241 wxDC *arg1 = (wxDC *) 0 ;
21242 wxString *arg2 = 0 ;
21243 wxArrayInt result;
21244 void *argp1 = 0 ;
21245 int res1 = 0 ;
21246 bool temp2 = false ;
21247 PyObject * obj0 = 0 ;
21248 PyObject * obj1 = 0 ;
21249 char * kwnames[] = {
21250 (char *) "self",(char *) "text", NULL
21251 };
21252
21253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21255 if (!SWIG_IsOK(res1)) {
21256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21257 }
21258 arg1 = reinterpret_cast< wxDC * >(argp1);
21259 {
21260 arg2 = wxString_in_helper(obj1);
21261 if (arg2 == NULL) SWIG_fail;
21262 temp2 = true;
21263 }
21264 {
21265 PyThreadState* __tstate = wxPyBeginAllowThreads();
21266 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21267 wxPyEndAllowThreads(__tstate);
21268 if (PyErr_Occurred()) SWIG_fail;
21269 }
21270 {
b39fe951 21271 resultobj = wxArrayInt2PyList_helper(result);
0085ce49
RD
21272 }
21273 {
21274 if (temp2)
21275 delete arg2;
21276 }
21277 return resultobj;
21278fail:
21279 {
21280 if (temp2)
21281 delete arg2;
21282 }
21283 return NULL;
21284}
21285
21286
21287SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21288 PyObject *resultobj = 0;
21289 wxDC *arg1 = (wxDC *) 0 ;
21290 wxSize result;
21291 void *argp1 = 0 ;
21292 int res1 = 0 ;
21293 PyObject *swig_obj[1] ;
21294
21295 if (!args) SWIG_fail;
21296 swig_obj[0] = args;
21297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21298 if (!SWIG_IsOK(res1)) {
21299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21300 }
21301 arg1 = reinterpret_cast< wxDC * >(argp1);
21302 {
21303 PyThreadState* __tstate = wxPyBeginAllowThreads();
21304 result = (arg1)->GetSize();
21305 wxPyEndAllowThreads(__tstate);
21306 if (PyErr_Occurred()) SWIG_fail;
21307 }
21308 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21309 return resultobj;
21310fail:
21311 return NULL;
21312}
21313
21314
21315SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21316 PyObject *resultobj = 0;
21317 wxDC *arg1 = (wxDC *) 0 ;
21318 int *arg2 = (int *) 0 ;
21319 int *arg3 = (int *) 0 ;
21320 void *argp1 = 0 ;
21321 int res1 = 0 ;
21322 int temp2 ;
21323 int res2 = SWIG_TMPOBJ ;
21324 int temp3 ;
21325 int res3 = SWIG_TMPOBJ ;
21326 PyObject *swig_obj[1] ;
21327
21328 arg2 = &temp2;
21329 arg3 = &temp3;
21330 if (!args) SWIG_fail;
21331 swig_obj[0] = args;
21332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21333 if (!SWIG_IsOK(res1)) {
21334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21335 }
21336 arg1 = reinterpret_cast< wxDC * >(argp1);
21337 {
21338 PyThreadState* __tstate = wxPyBeginAllowThreads();
21339 (arg1)->GetSize(arg2,arg3);
21340 wxPyEndAllowThreads(__tstate);
21341 if (PyErr_Occurred()) SWIG_fail;
21342 }
21343 resultobj = SWIG_Py_Void();
21344 if (SWIG_IsTmpObj(res2)) {
21345 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21346 } else {
21347 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21348 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21349 }
21350 if (SWIG_IsTmpObj(res3)) {
21351 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21352 } else {
21353 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21354 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21355 }
21356 return resultobj;
21357fail:
21358 return NULL;
21359}
21360
21361
21362SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21363 PyObject *resultobj = 0;
21364 wxDC *arg1 = (wxDC *) 0 ;
21365 wxSize result;
21366 void *argp1 = 0 ;
21367 int res1 = 0 ;
21368 PyObject *swig_obj[1] ;
21369
21370 if (!args) SWIG_fail;
21371 swig_obj[0] = args;
21372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21373 if (!SWIG_IsOK(res1)) {
21374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21375 }
21376 arg1 = reinterpret_cast< wxDC * >(argp1);
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 result = ((wxDC const *)arg1)->GetSizeMM();
21380 wxPyEndAllowThreads(__tstate);
21381 if (PyErr_Occurred()) SWIG_fail;
21382 }
21383 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21384 return resultobj;
21385fail:
21386 return NULL;
21387}
21388
21389
21390SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21391 PyObject *resultobj = 0;
21392 wxDC *arg1 = (wxDC *) 0 ;
21393 int *arg2 = (int *) 0 ;
21394 int *arg3 = (int *) 0 ;
21395 void *argp1 = 0 ;
21396 int res1 = 0 ;
21397 int temp2 ;
21398 int res2 = SWIG_TMPOBJ ;
21399 int temp3 ;
21400 int res3 = SWIG_TMPOBJ ;
21401 PyObject *swig_obj[1] ;
21402
21403 arg2 = &temp2;
21404 arg3 = &temp3;
21405 if (!args) SWIG_fail;
21406 swig_obj[0] = args;
21407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21408 if (!SWIG_IsOK(res1)) {
21409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21410 }
21411 arg1 = reinterpret_cast< wxDC * >(argp1);
21412 {
21413 PyThreadState* __tstate = wxPyBeginAllowThreads();
21414 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21415 wxPyEndAllowThreads(__tstate);
21416 if (PyErr_Occurred()) SWIG_fail;
21417 }
21418 resultobj = SWIG_Py_Void();
21419 if (SWIG_IsTmpObj(res2)) {
21420 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21421 } else {
21422 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21424 }
21425 if (SWIG_IsTmpObj(res3)) {
21426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21427 } else {
21428 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21430 }
21431 return resultobj;
21432fail:
21433 return NULL;
21434}
21435
21436
21437SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21438 PyObject *resultobj = 0;
21439 wxDC *arg1 = (wxDC *) 0 ;
21440 int arg2 ;
21441 int result;
21442 void *argp1 = 0 ;
21443 int res1 = 0 ;
21444 int val2 ;
21445 int ecode2 = 0 ;
21446 PyObject * obj0 = 0 ;
21447 PyObject * obj1 = 0 ;
21448 char * kwnames[] = {
21449 (char *) "self",(char *) "x", NULL
21450 };
21451
21452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21454 if (!SWIG_IsOK(res1)) {
21455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21456 }
21457 arg1 = reinterpret_cast< wxDC * >(argp1);
21458 ecode2 = SWIG_AsVal_int(obj1, &val2);
21459 if (!SWIG_IsOK(ecode2)) {
21460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21461 }
21462 arg2 = static_cast< int >(val2);
21463 {
21464 PyThreadState* __tstate = wxPyBeginAllowThreads();
21465 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21466 wxPyEndAllowThreads(__tstate);
21467 if (PyErr_Occurred()) SWIG_fail;
21468 }
21469 resultobj = SWIG_From_int(static_cast< int >(result));
21470 return resultobj;
21471fail:
21472 return NULL;
21473}
21474
21475
21476SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21477 PyObject *resultobj = 0;
21478 wxDC *arg1 = (wxDC *) 0 ;
21479 int arg2 ;
21480 int result;
21481 void *argp1 = 0 ;
21482 int res1 = 0 ;
21483 int val2 ;
21484 int ecode2 = 0 ;
21485 PyObject * obj0 = 0 ;
21486 PyObject * obj1 = 0 ;
21487 char * kwnames[] = {
21488 (char *) "self",(char *) "y", NULL
21489 };
21490
21491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21493 if (!SWIG_IsOK(res1)) {
21494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21495 }
21496 arg1 = reinterpret_cast< wxDC * >(argp1);
21497 ecode2 = SWIG_AsVal_int(obj1, &val2);
21498 if (!SWIG_IsOK(ecode2)) {
21499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21500 }
21501 arg2 = static_cast< int >(val2);
21502 {
21503 PyThreadState* __tstate = wxPyBeginAllowThreads();
21504 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21505 wxPyEndAllowThreads(__tstate);
21506 if (PyErr_Occurred()) SWIG_fail;
21507 }
21508 resultobj = SWIG_From_int(static_cast< int >(result));
21509 return resultobj;
21510fail:
21511 return NULL;
21512}
21513
21514
21515SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21516 PyObject *resultobj = 0;
21517 wxDC *arg1 = (wxDC *) 0 ;
21518 int arg2 ;
21519 int result;
21520 void *argp1 = 0 ;
21521 int res1 = 0 ;
21522 int val2 ;
21523 int ecode2 = 0 ;
21524 PyObject * obj0 = 0 ;
21525 PyObject * obj1 = 0 ;
21526 char * kwnames[] = {
21527 (char *) "self",(char *) "x", NULL
21528 };
21529
21530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21532 if (!SWIG_IsOK(res1)) {
21533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21534 }
21535 arg1 = reinterpret_cast< wxDC * >(argp1);
21536 ecode2 = SWIG_AsVal_int(obj1, &val2);
21537 if (!SWIG_IsOK(ecode2)) {
21538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21539 }
21540 arg2 = static_cast< int >(val2);
21541 {
21542 PyThreadState* __tstate = wxPyBeginAllowThreads();
21543 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21544 wxPyEndAllowThreads(__tstate);
21545 if (PyErr_Occurred()) SWIG_fail;
21546 }
21547 resultobj = SWIG_From_int(static_cast< int >(result));
21548 return resultobj;
21549fail:
21550 return NULL;
21551}
21552
21553
21554SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21555 PyObject *resultobj = 0;
21556 wxDC *arg1 = (wxDC *) 0 ;
21557 int arg2 ;
21558 int result;
21559 void *argp1 = 0 ;
21560 int res1 = 0 ;
21561 int val2 ;
21562 int ecode2 = 0 ;
21563 PyObject * obj0 = 0 ;
21564 PyObject * obj1 = 0 ;
21565 char * kwnames[] = {
21566 (char *) "self",(char *) "y", NULL
21567 };
21568
21569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21571 if (!SWIG_IsOK(res1)) {
21572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21573 }
21574 arg1 = reinterpret_cast< wxDC * >(argp1);
21575 ecode2 = SWIG_AsVal_int(obj1, &val2);
21576 if (!SWIG_IsOK(ecode2)) {
21577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21578 }
21579 arg2 = static_cast< int >(val2);
21580 {
21581 PyThreadState* __tstate = wxPyBeginAllowThreads();
21582 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21583 wxPyEndAllowThreads(__tstate);
21584 if (PyErr_Occurred()) SWIG_fail;
21585 }
21586 resultobj = SWIG_From_int(static_cast< int >(result));
21587 return resultobj;
21588fail:
21589 return NULL;
21590}
21591
21592
21593SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21594 PyObject *resultobj = 0;
21595 wxDC *arg1 = (wxDC *) 0 ;
21596 int arg2 ;
21597 int result;
21598 void *argp1 = 0 ;
21599 int res1 = 0 ;
21600 int val2 ;
21601 int ecode2 = 0 ;
21602 PyObject * obj0 = 0 ;
21603 PyObject * obj1 = 0 ;
21604 char * kwnames[] = {
21605 (char *) "self",(char *) "x", NULL
21606 };
21607
21608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21610 if (!SWIG_IsOK(res1)) {
21611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21612 }
21613 arg1 = reinterpret_cast< wxDC * >(argp1);
21614 ecode2 = SWIG_AsVal_int(obj1, &val2);
21615 if (!SWIG_IsOK(ecode2)) {
21616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21617 }
21618 arg2 = static_cast< int >(val2);
21619 {
21620 PyThreadState* __tstate = wxPyBeginAllowThreads();
21621 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21622 wxPyEndAllowThreads(__tstate);
21623 if (PyErr_Occurred()) SWIG_fail;
21624 }
21625 resultobj = SWIG_From_int(static_cast< int >(result));
21626 return resultobj;
21627fail:
21628 return NULL;
21629}
21630
21631
21632SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21633 PyObject *resultobj = 0;
21634 wxDC *arg1 = (wxDC *) 0 ;
21635 int arg2 ;
21636 int result;
21637 void *argp1 = 0 ;
21638 int res1 = 0 ;
21639 int val2 ;
21640 int ecode2 = 0 ;
21641 PyObject * obj0 = 0 ;
21642 PyObject * obj1 = 0 ;
21643 char * kwnames[] = {
21644 (char *) "self",(char *) "y", NULL
21645 };
21646
21647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21649 if (!SWIG_IsOK(res1)) {
21650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21651 }
21652 arg1 = reinterpret_cast< wxDC * >(argp1);
21653 ecode2 = SWIG_AsVal_int(obj1, &val2);
21654 if (!SWIG_IsOK(ecode2)) {
21655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21656 }
21657 arg2 = static_cast< int >(val2);
21658 {
21659 PyThreadState* __tstate = wxPyBeginAllowThreads();
21660 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21661 wxPyEndAllowThreads(__tstate);
21662 if (PyErr_Occurred()) SWIG_fail;
21663 }
21664 resultobj = SWIG_From_int(static_cast< int >(result));
21665 return resultobj;
21666fail:
21667 return NULL;
21668}
21669
21670
21671SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21672 PyObject *resultobj = 0;
21673 wxDC *arg1 = (wxDC *) 0 ;
21674 int arg2 ;
21675 int result;
21676 void *argp1 = 0 ;
21677 int res1 = 0 ;
21678 int val2 ;
21679 int ecode2 = 0 ;
21680 PyObject * obj0 = 0 ;
21681 PyObject * obj1 = 0 ;
21682 char * kwnames[] = {
21683 (char *) "self",(char *) "x", NULL
21684 };
21685
21686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21688 if (!SWIG_IsOK(res1)) {
21689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21690 }
21691 arg1 = reinterpret_cast< wxDC * >(argp1);
21692 ecode2 = SWIG_AsVal_int(obj1, &val2);
21693 if (!SWIG_IsOK(ecode2)) {
21694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21695 }
21696 arg2 = static_cast< int >(val2);
21697 {
21698 PyThreadState* __tstate = wxPyBeginAllowThreads();
21699 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21700 wxPyEndAllowThreads(__tstate);
21701 if (PyErr_Occurred()) SWIG_fail;
21702 }
21703 resultobj = SWIG_From_int(static_cast< int >(result));
21704 return resultobj;
21705fail:
21706 return NULL;
21707}
21708
21709
21710SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21711 PyObject *resultobj = 0;
21712 wxDC *arg1 = (wxDC *) 0 ;
21713 int arg2 ;
21714 int result;
21715 void *argp1 = 0 ;
21716 int res1 = 0 ;
21717 int val2 ;
21718 int ecode2 = 0 ;
21719 PyObject * obj0 = 0 ;
21720 PyObject * obj1 = 0 ;
21721 char * kwnames[] = {
21722 (char *) "self",(char *) "y", NULL
21723 };
21724
21725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21727 if (!SWIG_IsOK(res1)) {
21728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21729 }
21730 arg1 = reinterpret_cast< wxDC * >(argp1);
21731 ecode2 = SWIG_AsVal_int(obj1, &val2);
21732 if (!SWIG_IsOK(ecode2)) {
21733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21734 }
21735 arg2 = static_cast< int >(val2);
21736 {
21737 PyThreadState* __tstate = wxPyBeginAllowThreads();
21738 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21739 wxPyEndAllowThreads(__tstate);
21740 if (PyErr_Occurred()) SWIG_fail;
21741 }
21742 resultobj = SWIG_From_int(static_cast< int >(result));
21743 return resultobj;
21744fail:
21745 return NULL;
21746}
21747
21748
21749SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21750 PyObject *resultobj = 0;
21751 wxDC *arg1 = (wxDC *) 0 ;
21752 bool result;
21753 void *argp1 = 0 ;
21754 int res1 = 0 ;
21755 PyObject *swig_obj[1] ;
21756
21757 if (!args) SWIG_fail;
21758 swig_obj[0] = args;
21759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21760 if (!SWIG_IsOK(res1)) {
21761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21762 }
21763 arg1 = reinterpret_cast< wxDC * >(argp1);
21764 {
21765 PyThreadState* __tstate = wxPyBeginAllowThreads();
21766 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21767 wxPyEndAllowThreads(__tstate);
21768 if (PyErr_Occurred()) SWIG_fail;
21769 }
21770 {
21771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21772 }
21773 return resultobj;
21774fail:
21775 return NULL;
21776}
21777
21778
21779SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21780 PyObject *resultobj = 0;
21781 wxDC *arg1 = (wxDC *) 0 ;
21782 bool result;
21783 void *argp1 = 0 ;
21784 int res1 = 0 ;
21785 PyObject *swig_obj[1] ;
21786
21787 if (!args) SWIG_fail;
21788 swig_obj[0] = args;
21789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21790 if (!SWIG_IsOK(res1)) {
21791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21792 }
21793 arg1 = reinterpret_cast< wxDC * >(argp1);
21794 {
21795 PyThreadState* __tstate = wxPyBeginAllowThreads();
21796 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21797 wxPyEndAllowThreads(__tstate);
21798 if (PyErr_Occurred()) SWIG_fail;
21799 }
21800 {
21801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21802 }
21803 return resultobj;
21804fail:
21805 return NULL;
21806}
21807
21808
21809SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21810 PyObject *resultobj = 0;
21811 wxDC *arg1 = (wxDC *) 0 ;
21812 int result;
21813 void *argp1 = 0 ;
21814 int res1 = 0 ;
21815 PyObject *swig_obj[1] ;
21816
21817 if (!args) SWIG_fail;
21818 swig_obj[0] = args;
21819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21820 if (!SWIG_IsOK(res1)) {
21821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21822 }
21823 arg1 = reinterpret_cast< wxDC * >(argp1);
21824 {
21825 PyThreadState* __tstate = wxPyBeginAllowThreads();
21826 result = (int)((wxDC const *)arg1)->GetDepth();
21827 wxPyEndAllowThreads(__tstate);
21828 if (PyErr_Occurred()) SWIG_fail;
21829 }
21830 resultobj = SWIG_From_int(static_cast< int >(result));
21831 return resultobj;
21832fail:
21833 return NULL;
21834}
21835
21836
21837SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21838 PyObject *resultobj = 0;
21839 wxDC *arg1 = (wxDC *) 0 ;
21840 wxSize result;
21841 void *argp1 = 0 ;
21842 int res1 = 0 ;
21843 PyObject *swig_obj[1] ;
21844
21845 if (!args) SWIG_fail;
21846 swig_obj[0] = args;
21847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21848 if (!SWIG_IsOK(res1)) {
21849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21850 }
21851 arg1 = reinterpret_cast< wxDC * >(argp1);
21852 {
21853 PyThreadState* __tstate = wxPyBeginAllowThreads();
21854 result = ((wxDC const *)arg1)->GetPPI();
21855 wxPyEndAllowThreads(__tstate);
21856 if (PyErr_Occurred()) SWIG_fail;
21857 }
21858 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21859 return resultobj;
21860fail:
21861 return NULL;
21862}
21863
21864
b39fe951 21865SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
21866 PyObject *resultobj = 0;
21867 wxDC *arg1 = (wxDC *) 0 ;
21868 bool result;
21869 void *argp1 = 0 ;
21870 int res1 = 0 ;
21871 PyObject *swig_obj[1] ;
21872
21873 if (!args) SWIG_fail;
21874 swig_obj[0] = args;
21875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21876 if (!SWIG_IsOK(res1)) {
b39fe951 21877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
0085ce49
RD
21878 }
21879 arg1 = reinterpret_cast< wxDC * >(argp1);
21880 {
21881 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21882 result = (bool)((wxDC const *)arg1)->IsOk();
0085ce49
RD
21883 wxPyEndAllowThreads(__tstate);
21884 if (PyErr_Occurred()) SWIG_fail;
21885 }
21886 {
21887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21888 }
21889 return resultobj;
21890fail:
21891 return NULL;
21892}
21893
21894
21895SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21896 PyObject *resultobj = 0;
21897 wxDC *arg1 = (wxDC *) 0 ;
21898 int result;
21899 void *argp1 = 0 ;
21900 int res1 = 0 ;
21901 PyObject *swig_obj[1] ;
21902
21903 if (!args) SWIG_fail;
21904 swig_obj[0] = args;
21905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21906 if (!SWIG_IsOK(res1)) {
21907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21908 }
21909 arg1 = reinterpret_cast< wxDC * >(argp1);
21910 {
21911 PyThreadState* __tstate = wxPyBeginAllowThreads();
21912 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21913 wxPyEndAllowThreads(__tstate);
21914 if (PyErr_Occurred()) SWIG_fail;
21915 }
21916 resultobj = SWIG_From_int(static_cast< int >(result));
21917 return resultobj;
21918fail:
21919 return NULL;
21920}
21921
21922
21923SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21924 PyObject *resultobj = 0;
21925 wxDC *arg1 = (wxDC *) 0 ;
21926 wxBrush *result = 0 ;
21927 void *argp1 = 0 ;
21928 int res1 = 0 ;
21929 PyObject *swig_obj[1] ;
21930
21931 if (!args) SWIG_fail;
21932 swig_obj[0] = args;
21933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21934 if (!SWIG_IsOK(res1)) {
21935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21936 }
21937 arg1 = reinterpret_cast< wxDC * >(argp1);
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21940 {
0085ce49
RD
21941 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21942 result = (wxBrush *) &_result_ref;
093d3ff1 21943 }
0085ce49
RD
21944 wxPyEndAllowThreads(__tstate);
21945 if (PyErr_Occurred()) SWIG_fail;
21946 }
21947 {
21948 wxBrush* resultptr = new wxBrush(*result);
21949 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21950 }
21951 return resultobj;
21952fail:
21953 return NULL;
21954}
21955
21956
21957SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21958 PyObject *resultobj = 0;
21959 wxDC *arg1 = (wxDC *) 0 ;
21960 wxBrush *result = 0 ;
21961 void *argp1 = 0 ;
21962 int res1 = 0 ;
21963 PyObject *swig_obj[1] ;
21964
21965 if (!args) SWIG_fail;
21966 swig_obj[0] = args;
21967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21968 if (!SWIG_IsOK(res1)) {
21969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21970 }
21971 arg1 = reinterpret_cast< wxDC * >(argp1);
21972 {
21973 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21974 {
0085ce49
RD
21975 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21976 result = (wxBrush *) &_result_ref;
093d3ff1 21977 }
0085ce49
RD
21978 wxPyEndAllowThreads(__tstate);
21979 if (PyErr_Occurred()) SWIG_fail;
21980 }
21981 {
21982 wxBrush* resultptr = new wxBrush(*result);
21983 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21984 }
21985 return resultobj;
21986fail:
21987 return NULL;
21988}
21989
21990
21991SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21992 PyObject *resultobj = 0;
21993 wxDC *arg1 = (wxDC *) 0 ;
21994 wxFont *result = 0 ;
21995 void *argp1 = 0 ;
21996 int res1 = 0 ;
21997 PyObject *swig_obj[1] ;
21998
21999 if (!args) SWIG_fail;
22000 swig_obj[0] = args;
22001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22002 if (!SWIG_IsOK(res1)) {
22003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22004 }
22005 arg1 = reinterpret_cast< wxDC * >(argp1);
22006 {
22007 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22008 {
0085ce49
RD
22009 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22010 result = (wxFont *) &_result_ref;
093d3ff1 22011 }
0085ce49
RD
22012 wxPyEndAllowThreads(__tstate);
22013 if (PyErr_Occurred()) SWIG_fail;
22014 }
22015 {
22016 wxFont* resultptr = new wxFont(*result);
22017 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22018 }
22019 return resultobj;
22020fail:
22021 return NULL;
22022}
22023
22024
22025SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22026 PyObject *resultobj = 0;
22027 wxDC *arg1 = (wxDC *) 0 ;
22028 wxPen *result = 0 ;
22029 void *argp1 = 0 ;
22030 int res1 = 0 ;
22031 PyObject *swig_obj[1] ;
22032
22033 if (!args) SWIG_fail;
22034 swig_obj[0] = args;
22035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22036 if (!SWIG_IsOK(res1)) {
22037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22038 }
22039 arg1 = reinterpret_cast< wxDC * >(argp1);
22040 {
22041 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22042 {
0085ce49
RD
22043 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22044 result = (wxPen *) &_result_ref;
093d3ff1 22045 }
0085ce49
RD
22046 wxPyEndAllowThreads(__tstate);
22047 if (PyErr_Occurred()) SWIG_fail;
22048 }
22049 {
22050 wxPen* resultptr = new wxPen(*result);
22051 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22052 }
22053 return resultobj;
22054fail:
22055 return NULL;
22056}
22057
22058
22059SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22060 PyObject *resultobj = 0;
22061 wxDC *arg1 = (wxDC *) 0 ;
22062 wxColour *result = 0 ;
22063 void *argp1 = 0 ;
22064 int res1 = 0 ;
22065 PyObject *swig_obj[1] ;
22066
22067 if (!args) SWIG_fail;
22068 swig_obj[0] = args;
22069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22070 if (!SWIG_IsOK(res1)) {
22071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22072 }
22073 arg1 = reinterpret_cast< wxDC * >(argp1);
22074 {
22075 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22076 {
0085ce49
RD
22077 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22078 result = (wxColour *) &_result_ref;
093d3ff1 22079 }
0085ce49
RD
22080 wxPyEndAllowThreads(__tstate);
22081 if (PyErr_Occurred()) SWIG_fail;
22082 }
22083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22084 return resultobj;
22085fail:
22086 return NULL;
22087}
22088
22089
22090SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22091 PyObject *resultobj = 0;
22092 wxDC *arg1 = (wxDC *) 0 ;
22093 wxColour *result = 0 ;
22094 void *argp1 = 0 ;
22095 int res1 = 0 ;
22096 PyObject *swig_obj[1] ;
22097
22098 if (!args) SWIG_fail;
22099 swig_obj[0] = args;
22100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22101 if (!SWIG_IsOK(res1)) {
22102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22103 }
22104 arg1 = reinterpret_cast< wxDC * >(argp1);
22105 {
22106 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 22107 {
0085ce49
RD
22108 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22109 result = (wxColour *) &_result_ref;
093d3ff1 22110 }
0085ce49
RD
22111 wxPyEndAllowThreads(__tstate);
22112 if (PyErr_Occurred()) SWIG_fail;
22113 }
22114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22115 return resultobj;
22116fail:
22117 return NULL;
22118}
22119
22120
22121SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22122 PyObject *resultobj = 0;
22123 wxDC *arg1 = (wxDC *) 0 ;
22124 wxColour *arg2 = 0 ;
22125 void *argp1 = 0 ;
22126 int res1 = 0 ;
22127 wxColour temp2 ;
22128 PyObject * obj0 = 0 ;
22129 PyObject * obj1 = 0 ;
22130 char * kwnames[] = {
22131 (char *) "self",(char *) "colour", NULL
22132 };
22133
22134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22136 if (!SWIG_IsOK(res1)) {
22137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22138 }
22139 arg1 = reinterpret_cast< wxDC * >(argp1);
22140 {
22141 arg2 = &temp2;
22142 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22143 }
22144 {
22145 PyThreadState* __tstate = wxPyBeginAllowThreads();
22146 (arg1)->SetTextForeground((wxColour const &)*arg2);
22147 wxPyEndAllowThreads(__tstate);
22148 if (PyErr_Occurred()) SWIG_fail;
22149 }
22150 resultobj = SWIG_Py_Void();
22151 return resultobj;
22152fail:
22153 return NULL;
22154}
22155
22156
22157SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22158 PyObject *resultobj = 0;
22159 wxDC *arg1 = (wxDC *) 0 ;
22160 wxColour *arg2 = 0 ;
22161 void *argp1 = 0 ;
22162 int res1 = 0 ;
22163 wxColour temp2 ;
22164 PyObject * obj0 = 0 ;
22165 PyObject * obj1 = 0 ;
22166 char * kwnames[] = {
22167 (char *) "self",(char *) "colour", NULL
22168 };
22169
22170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22172 if (!SWIG_IsOK(res1)) {
22173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22174 }
22175 arg1 = reinterpret_cast< wxDC * >(argp1);
22176 {
22177 arg2 = &temp2;
22178 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22179 }
22180 {
22181 PyThreadState* __tstate = wxPyBeginAllowThreads();
22182 (arg1)->SetTextBackground((wxColour const &)*arg2);
22183 wxPyEndAllowThreads(__tstate);
22184 if (PyErr_Occurred()) SWIG_fail;
22185 }
22186 resultobj = SWIG_Py_Void();
22187 return resultobj;
22188fail:
22189 return NULL;
22190}
22191
22192
22193SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22194 PyObject *resultobj = 0;
22195 wxDC *arg1 = (wxDC *) 0 ;
22196 int result;
22197 void *argp1 = 0 ;
22198 int res1 = 0 ;
22199 PyObject *swig_obj[1] ;
22200
22201 if (!args) SWIG_fail;
22202 swig_obj[0] = args;
22203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22204 if (!SWIG_IsOK(res1)) {
22205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22206 }
22207 arg1 = reinterpret_cast< wxDC * >(argp1);
22208 {
22209 PyThreadState* __tstate = wxPyBeginAllowThreads();
22210 result = (int)((wxDC const *)arg1)->GetMapMode();
22211 wxPyEndAllowThreads(__tstate);
22212 if (PyErr_Occurred()) SWIG_fail;
22213 }
22214 resultobj = SWIG_From_int(static_cast< int >(result));
22215 return resultobj;
22216fail:
22217 return NULL;
22218}
22219
22220
22221SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22222 PyObject *resultobj = 0;
22223 wxDC *arg1 = (wxDC *) 0 ;
22224 int arg2 ;
22225 void *argp1 = 0 ;
22226 int res1 = 0 ;
22227 int val2 ;
22228 int ecode2 = 0 ;
22229 PyObject * obj0 = 0 ;
22230 PyObject * obj1 = 0 ;
22231 char * kwnames[] = {
22232 (char *) "self",(char *) "mode", NULL
22233 };
22234
22235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22237 if (!SWIG_IsOK(res1)) {
22238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22239 }
22240 arg1 = reinterpret_cast< wxDC * >(argp1);
22241 ecode2 = SWIG_AsVal_int(obj1, &val2);
22242 if (!SWIG_IsOK(ecode2)) {
22243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22244 }
22245 arg2 = static_cast< int >(val2);
22246 {
22247 PyThreadState* __tstate = wxPyBeginAllowThreads();
22248 (arg1)->SetMapMode(arg2);
22249 wxPyEndAllowThreads(__tstate);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 }
22252 resultobj = SWIG_Py_Void();
22253 return resultobj;
22254fail:
22255 return NULL;
22256}
22257
22258
22259SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22260 PyObject *resultobj = 0;
22261 wxDC *arg1 = (wxDC *) 0 ;
22262 double *arg2 = (double *) 0 ;
22263 double *arg3 = (double *) 0 ;
22264 void *argp1 = 0 ;
22265 int res1 = 0 ;
22266 double temp2 ;
22267 int res2 = SWIG_TMPOBJ ;
22268 double temp3 ;
22269 int res3 = SWIG_TMPOBJ ;
22270 PyObject *swig_obj[1] ;
22271
22272 arg2 = &temp2;
22273 arg3 = &temp3;
22274 if (!args) SWIG_fail;
22275 swig_obj[0] = args;
22276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22277 if (!SWIG_IsOK(res1)) {
22278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22279 }
22280 arg1 = reinterpret_cast< wxDC * >(argp1);
22281 {
22282 PyThreadState* __tstate = wxPyBeginAllowThreads();
22283 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22284 wxPyEndAllowThreads(__tstate);
22285 if (PyErr_Occurred()) SWIG_fail;
22286 }
22287 resultobj = SWIG_Py_Void();
22288 if (SWIG_IsTmpObj(res2)) {
22289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22290 } else {
22291 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22293 }
22294 if (SWIG_IsTmpObj(res3)) {
22295 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22296 } else {
22297 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22298 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22299 }
22300 return resultobj;
22301fail:
22302 return NULL;
22303}
22304
22305
22306SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22307 PyObject *resultobj = 0;
22308 wxDC *arg1 = (wxDC *) 0 ;
22309 double arg2 ;
22310 double arg3 ;
22311 void *argp1 = 0 ;
22312 int res1 = 0 ;
22313 double val2 ;
22314 int ecode2 = 0 ;
22315 double val3 ;
22316 int ecode3 = 0 ;
22317 PyObject * obj0 = 0 ;
22318 PyObject * obj1 = 0 ;
22319 PyObject * obj2 = 0 ;
22320 char * kwnames[] = {
22321 (char *) "self",(char *) "x",(char *) "y", NULL
22322 };
22323
22324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22326 if (!SWIG_IsOK(res1)) {
22327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22328 }
22329 arg1 = reinterpret_cast< wxDC * >(argp1);
22330 ecode2 = SWIG_AsVal_double(obj1, &val2);
22331 if (!SWIG_IsOK(ecode2)) {
22332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22333 }
22334 arg2 = static_cast< double >(val2);
22335 ecode3 = SWIG_AsVal_double(obj2, &val3);
22336 if (!SWIG_IsOK(ecode3)) {
22337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22338 }
22339 arg3 = static_cast< double >(val3);
22340 {
22341 PyThreadState* __tstate = wxPyBeginAllowThreads();
22342 (arg1)->SetUserScale(arg2,arg3);
22343 wxPyEndAllowThreads(__tstate);
22344 if (PyErr_Occurred()) SWIG_fail;
22345 }
22346 resultobj = SWIG_Py_Void();
22347 return resultobj;
22348fail:
22349 return NULL;
22350}
22351
22352
22353SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22354 PyObject *resultobj = 0;
22355 wxDC *arg1 = (wxDC *) 0 ;
22356 double *arg2 = (double *) 0 ;
22357 double *arg3 = (double *) 0 ;
22358 void *argp1 = 0 ;
22359 int res1 = 0 ;
22360 double temp2 ;
22361 int res2 = SWIG_TMPOBJ ;
22362 double temp3 ;
22363 int res3 = SWIG_TMPOBJ ;
22364 PyObject *swig_obj[1] ;
22365
22366 arg2 = &temp2;
22367 arg3 = &temp3;
22368 if (!args) SWIG_fail;
22369 swig_obj[0] = args;
22370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22371 if (!SWIG_IsOK(res1)) {
22372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22373 }
22374 arg1 = reinterpret_cast< wxDC * >(argp1);
22375 {
22376 PyThreadState* __tstate = wxPyBeginAllowThreads();
22377 (arg1)->GetLogicalScale(arg2,arg3);
22378 wxPyEndAllowThreads(__tstate);
22379 if (PyErr_Occurred()) SWIG_fail;
22380 }
22381 resultobj = SWIG_Py_Void();
22382 if (SWIG_IsTmpObj(res2)) {
22383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22384 } else {
22385 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22386 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22387 }
22388 if (SWIG_IsTmpObj(res3)) {
22389 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22390 } else {
22391 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22392 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22393 }
22394 return resultobj;
22395fail:
22396 return NULL;
22397}
22398
22399
22400SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22401 PyObject *resultobj = 0;
22402 wxDC *arg1 = (wxDC *) 0 ;
22403 double arg2 ;
22404 double arg3 ;
22405 void *argp1 = 0 ;
22406 int res1 = 0 ;
22407 double val2 ;
22408 int ecode2 = 0 ;
22409 double val3 ;
22410 int ecode3 = 0 ;
22411 PyObject * obj0 = 0 ;
22412 PyObject * obj1 = 0 ;
22413 PyObject * obj2 = 0 ;
22414 char * kwnames[] = {
22415 (char *) "self",(char *) "x",(char *) "y", NULL
22416 };
22417
22418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22420 if (!SWIG_IsOK(res1)) {
22421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22422 }
22423 arg1 = reinterpret_cast< wxDC * >(argp1);
22424 ecode2 = SWIG_AsVal_double(obj1, &val2);
22425 if (!SWIG_IsOK(ecode2)) {
22426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22427 }
22428 arg2 = static_cast< double >(val2);
22429 ecode3 = SWIG_AsVal_double(obj2, &val3);
22430 if (!SWIG_IsOK(ecode3)) {
22431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22432 }
22433 arg3 = static_cast< double >(val3);
22434 {
22435 PyThreadState* __tstate = wxPyBeginAllowThreads();
22436 (arg1)->SetLogicalScale(arg2,arg3);
22437 wxPyEndAllowThreads(__tstate);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 }
22440 resultobj = SWIG_Py_Void();
22441 return resultobj;
22442fail:
22443 return NULL;
22444}
22445
22446
22447SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22448 PyObject *resultobj = 0;
22449 wxDC *arg1 = (wxDC *) 0 ;
22450 wxPoint result;
22451 void *argp1 = 0 ;
22452 int res1 = 0 ;
22453 PyObject *swig_obj[1] ;
22454
22455 if (!args) SWIG_fail;
22456 swig_obj[0] = args;
22457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22458 if (!SWIG_IsOK(res1)) {
22459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22460 }
22461 arg1 = reinterpret_cast< wxDC * >(argp1);
22462 {
22463 PyThreadState* __tstate = wxPyBeginAllowThreads();
22464 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22465 wxPyEndAllowThreads(__tstate);
22466 if (PyErr_Occurred()) SWIG_fail;
22467 }
22468 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22469 return resultobj;
22470fail:
22471 return NULL;
22472}
22473
22474
22475SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22476 PyObject *resultobj = 0;
22477 wxDC *arg1 = (wxDC *) 0 ;
22478 int *arg2 = (int *) 0 ;
22479 int *arg3 = (int *) 0 ;
22480 void *argp1 = 0 ;
22481 int res1 = 0 ;
22482 int temp2 ;
22483 int res2 = SWIG_TMPOBJ ;
22484 int temp3 ;
22485 int res3 = SWIG_TMPOBJ ;
22486 PyObject *swig_obj[1] ;
22487
22488 arg2 = &temp2;
22489 arg3 = &temp3;
22490 if (!args) SWIG_fail;
22491 swig_obj[0] = args;
22492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22493 if (!SWIG_IsOK(res1)) {
22494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22495 }
22496 arg1 = reinterpret_cast< wxDC * >(argp1);
22497 {
22498 PyThreadState* __tstate = wxPyBeginAllowThreads();
22499 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22500 wxPyEndAllowThreads(__tstate);
22501 if (PyErr_Occurred()) SWIG_fail;
22502 }
22503 resultobj = SWIG_Py_Void();
22504 if (SWIG_IsTmpObj(res2)) {
22505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22506 } else {
22507 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22509 }
22510 if (SWIG_IsTmpObj(res3)) {
22511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22512 } else {
22513 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22514 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22515 }
22516 return resultobj;
22517fail:
22518 return NULL;
22519}
22520
22521
22522SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22523 PyObject *resultobj = 0;
22524 wxDC *arg1 = (wxDC *) 0 ;
22525 int arg2 ;
22526 int arg3 ;
22527 void *argp1 = 0 ;
22528 int res1 = 0 ;
22529 int val2 ;
22530 int ecode2 = 0 ;
22531 int val3 ;
22532 int ecode3 = 0 ;
22533 PyObject * obj0 = 0 ;
22534 PyObject * obj1 = 0 ;
22535 PyObject * obj2 = 0 ;
22536 char * kwnames[] = {
22537 (char *) "self",(char *) "x",(char *) "y", NULL
22538 };
22539
22540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22542 if (!SWIG_IsOK(res1)) {
22543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22544 }
22545 arg1 = reinterpret_cast< wxDC * >(argp1);
22546 ecode2 = SWIG_AsVal_int(obj1, &val2);
22547 if (!SWIG_IsOK(ecode2)) {
22548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22549 }
22550 arg2 = static_cast< int >(val2);
22551 ecode3 = SWIG_AsVal_int(obj2, &val3);
22552 if (!SWIG_IsOK(ecode3)) {
22553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22554 }
22555 arg3 = static_cast< int >(val3);
22556 {
22557 PyThreadState* __tstate = wxPyBeginAllowThreads();
22558 (arg1)->SetLogicalOrigin(arg2,arg3);
22559 wxPyEndAllowThreads(__tstate);
22560 if (PyErr_Occurred()) SWIG_fail;
22561 }
22562 resultobj = SWIG_Py_Void();
22563 return resultobj;
22564fail:
22565 return NULL;
22566}
22567
22568
22569SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22570 PyObject *resultobj = 0;
22571 wxDC *arg1 = (wxDC *) 0 ;
22572 wxPoint *arg2 = 0 ;
22573 void *argp1 = 0 ;
22574 int res1 = 0 ;
22575 wxPoint temp2 ;
22576 PyObject * obj0 = 0 ;
22577 PyObject * obj1 = 0 ;
22578 char * kwnames[] = {
22579 (char *) "self",(char *) "point", NULL
22580 };
22581
22582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22584 if (!SWIG_IsOK(res1)) {
22585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22586 }
22587 arg1 = reinterpret_cast< wxDC * >(argp1);
22588 {
22589 arg2 = &temp2;
22590 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22591 }
22592 {
22593 PyThreadState* __tstate = wxPyBeginAllowThreads();
22594 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22595 wxPyEndAllowThreads(__tstate);
22596 if (PyErr_Occurred()) SWIG_fail;
22597 }
22598 resultobj = SWIG_Py_Void();
22599 return resultobj;
22600fail:
22601 return NULL;
22602}
22603
22604
22605SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22606 PyObject *resultobj = 0;
22607 wxDC *arg1 = (wxDC *) 0 ;
22608 wxPoint result;
22609 void *argp1 = 0 ;
22610 int res1 = 0 ;
22611 PyObject *swig_obj[1] ;
22612
22613 if (!args) SWIG_fail;
22614 swig_obj[0] = args;
22615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22616 if (!SWIG_IsOK(res1)) {
22617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22618 }
22619 arg1 = reinterpret_cast< wxDC * >(argp1);
22620 {
22621 PyThreadState* __tstate = wxPyBeginAllowThreads();
22622 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22623 wxPyEndAllowThreads(__tstate);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22627 return resultobj;
22628fail:
22629 return NULL;
22630}
22631
22632
22633SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22634 PyObject *resultobj = 0;
22635 wxDC *arg1 = (wxDC *) 0 ;
22636 int *arg2 = (int *) 0 ;
22637 int *arg3 = (int *) 0 ;
22638 void *argp1 = 0 ;
22639 int res1 = 0 ;
22640 int temp2 ;
22641 int res2 = SWIG_TMPOBJ ;
22642 int temp3 ;
22643 int res3 = SWIG_TMPOBJ ;
22644 PyObject *swig_obj[1] ;
22645
22646 arg2 = &temp2;
22647 arg3 = &temp3;
22648 if (!args) SWIG_fail;
22649 swig_obj[0] = args;
22650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22651 if (!SWIG_IsOK(res1)) {
22652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22653 }
22654 arg1 = reinterpret_cast< wxDC * >(argp1);
22655 {
22656 PyThreadState* __tstate = wxPyBeginAllowThreads();
22657 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22658 wxPyEndAllowThreads(__tstate);
22659 if (PyErr_Occurred()) SWIG_fail;
22660 }
22661 resultobj = SWIG_Py_Void();
22662 if (SWIG_IsTmpObj(res2)) {
22663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22664 } else {
22665 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22667 }
22668 if (SWIG_IsTmpObj(res3)) {
22669 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22670 } else {
22671 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22672 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22673 }
22674 return resultobj;
22675fail:
22676 return NULL;
22677}
22678
22679
22680SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22681 PyObject *resultobj = 0;
22682 wxDC *arg1 = (wxDC *) 0 ;
22683 int arg2 ;
22684 int arg3 ;
22685 void *argp1 = 0 ;
22686 int res1 = 0 ;
22687 int val2 ;
22688 int ecode2 = 0 ;
22689 int val3 ;
22690 int ecode3 = 0 ;
22691 PyObject * obj0 = 0 ;
22692 PyObject * obj1 = 0 ;
22693 PyObject * obj2 = 0 ;
22694 char * kwnames[] = {
22695 (char *) "self",(char *) "x",(char *) "y", NULL
22696 };
22697
22698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22700 if (!SWIG_IsOK(res1)) {
22701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22702 }
22703 arg1 = reinterpret_cast< wxDC * >(argp1);
22704 ecode2 = SWIG_AsVal_int(obj1, &val2);
22705 if (!SWIG_IsOK(ecode2)) {
22706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22707 }
22708 arg2 = static_cast< int >(val2);
22709 ecode3 = SWIG_AsVal_int(obj2, &val3);
22710 if (!SWIG_IsOK(ecode3)) {
22711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22712 }
22713 arg3 = static_cast< int >(val3);
22714 {
22715 PyThreadState* __tstate = wxPyBeginAllowThreads();
22716 (arg1)->SetDeviceOrigin(arg2,arg3);
22717 wxPyEndAllowThreads(__tstate);
22718 if (PyErr_Occurred()) SWIG_fail;
22719 }
22720 resultobj = SWIG_Py_Void();
22721 return resultobj;
22722fail:
22723 return NULL;
22724}
22725
22726
22727SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22728 PyObject *resultobj = 0;
22729 wxDC *arg1 = (wxDC *) 0 ;
22730 wxPoint *arg2 = 0 ;
22731 void *argp1 = 0 ;
22732 int res1 = 0 ;
22733 wxPoint temp2 ;
22734 PyObject * obj0 = 0 ;
22735 PyObject * obj1 = 0 ;
22736 char * kwnames[] = {
22737 (char *) "self",(char *) "point", NULL
22738 };
22739
22740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22742 if (!SWIG_IsOK(res1)) {
22743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22744 }
22745 arg1 = reinterpret_cast< wxDC * >(argp1);
22746 {
22747 arg2 = &temp2;
22748 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22749 }
22750 {
22751 PyThreadState* __tstate = wxPyBeginAllowThreads();
22752 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22753 wxPyEndAllowThreads(__tstate);
22754 if (PyErr_Occurred()) SWIG_fail;
22755 }
22756 resultobj = SWIG_Py_Void();
22757 return resultobj;
22758fail:
22759 return NULL;
22760}
22761
22762
22763SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22764 PyObject *resultobj = 0;
22765 wxDC *arg1 = (wxDC *) 0 ;
22766 bool arg2 ;
22767 bool arg3 ;
22768 void *argp1 = 0 ;
22769 int res1 = 0 ;
22770 bool val2 ;
22771 int ecode2 = 0 ;
22772 bool val3 ;
22773 int ecode3 = 0 ;
22774 PyObject * obj0 = 0 ;
22775 PyObject * obj1 = 0 ;
22776 PyObject * obj2 = 0 ;
22777 char * kwnames[] = {
22778 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22779 };
22780
22781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22783 if (!SWIG_IsOK(res1)) {
22784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22785 }
22786 arg1 = reinterpret_cast< wxDC * >(argp1);
22787 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22788 if (!SWIG_IsOK(ecode2)) {
22789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22790 }
22791 arg2 = static_cast< bool >(val2);
22792 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22793 if (!SWIG_IsOK(ecode3)) {
22794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22795 }
22796 arg3 = static_cast< bool >(val3);
22797 {
22798 PyThreadState* __tstate = wxPyBeginAllowThreads();
22799 (arg1)->SetAxisOrientation(arg2,arg3);
22800 wxPyEndAllowThreads(__tstate);
22801 if (PyErr_Occurred()) SWIG_fail;
22802 }
22803 resultobj = SWIG_Py_Void();
22804 return resultobj;
22805fail:
22806 return NULL;
22807}
22808
22809
22810SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22811 PyObject *resultobj = 0;
22812 wxDC *arg1 = (wxDC *) 0 ;
22813 int result;
22814 void *argp1 = 0 ;
22815 int res1 = 0 ;
22816 PyObject *swig_obj[1] ;
22817
22818 if (!args) SWIG_fail;
22819 swig_obj[0] = args;
22820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22821 if (!SWIG_IsOK(res1)) {
22822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22823 }
22824 arg1 = reinterpret_cast< wxDC * >(argp1);
22825 {
22826 PyThreadState* __tstate = wxPyBeginAllowThreads();
22827 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22828 wxPyEndAllowThreads(__tstate);
22829 if (PyErr_Occurred()) SWIG_fail;
22830 }
22831 resultobj = SWIG_From_int(static_cast< int >(result));
22832 return resultobj;
22833fail:
22834 return NULL;
22835}
22836
22837
22838SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22839 PyObject *resultobj = 0;
22840 wxDC *arg1 = (wxDC *) 0 ;
22841 int arg2 ;
22842 void *argp1 = 0 ;
22843 int res1 = 0 ;
22844 int val2 ;
22845 int ecode2 = 0 ;
22846 PyObject * obj0 = 0 ;
22847 PyObject * obj1 = 0 ;
22848 char * kwnames[] = {
22849 (char *) "self",(char *) "function", NULL
22850 };
22851
22852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22854 if (!SWIG_IsOK(res1)) {
22855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22856 }
22857 arg1 = reinterpret_cast< wxDC * >(argp1);
22858 ecode2 = SWIG_AsVal_int(obj1, &val2);
22859 if (!SWIG_IsOK(ecode2)) {
22860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22861 }
22862 arg2 = static_cast< int >(val2);
22863 {
22864 PyThreadState* __tstate = wxPyBeginAllowThreads();
22865 (arg1)->SetLogicalFunction(arg2);
22866 wxPyEndAllowThreads(__tstate);
22867 if (PyErr_Occurred()) SWIG_fail;
22868 }
22869 resultobj = SWIG_Py_Void();
22870 return resultobj;
22871fail:
22872 return NULL;
22873}
22874
22875
22876SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22877 PyObject *resultobj = 0;
22878 wxDC *arg1 = (wxDC *) 0 ;
22879 void *argp1 = 0 ;
22880 int res1 = 0 ;
22881 PyObject *swig_obj[1] ;
22882
22883 if (!args) SWIG_fail;
22884 swig_obj[0] = args;
22885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22886 if (!SWIG_IsOK(res1)) {
22887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22888 }
22889 arg1 = reinterpret_cast< wxDC * >(argp1);
22890 {
22891 PyThreadState* __tstate = wxPyBeginAllowThreads();
22892 (arg1)->ComputeScaleAndOrigin();
22893 wxPyEndAllowThreads(__tstate);
22894 if (PyErr_Occurred()) SWIG_fail;
22895 }
22896 resultobj = SWIG_Py_Void();
22897 return resultobj;
22898fail:
22899 return NULL;
22900}
22901
22902
22903SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22904 PyObject *resultobj = 0;
22905 wxDC *arg1 = (wxDC *) 0 ;
22906 int arg2 ;
22907 int arg3 ;
22908 void *argp1 = 0 ;
22909 int res1 = 0 ;
22910 int val2 ;
22911 int ecode2 = 0 ;
22912 int val3 ;
22913 int ecode3 = 0 ;
22914 PyObject * obj0 = 0 ;
22915 PyObject * obj1 = 0 ;
22916 PyObject * obj2 = 0 ;
22917 char * kwnames[] = {
22918 (char *) "self",(char *) "x",(char *) "y", NULL
22919 };
22920
22921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22923 if (!SWIG_IsOK(res1)) {
22924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22925 }
22926 arg1 = reinterpret_cast< wxDC * >(argp1);
22927 ecode2 = SWIG_AsVal_int(obj1, &val2);
22928 if (!SWIG_IsOK(ecode2)) {
22929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22930 }
22931 arg2 = static_cast< int >(val2);
22932 ecode3 = SWIG_AsVal_int(obj2, &val3);
22933 if (!SWIG_IsOK(ecode3)) {
22934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22935 }
22936 arg3 = static_cast< int >(val3);
22937 {
22938 PyThreadState* __tstate = wxPyBeginAllowThreads();
22939 (arg1)->CalcBoundingBox(arg2,arg3);
22940 wxPyEndAllowThreads(__tstate);
22941 if (PyErr_Occurred()) SWIG_fail;
22942 }
22943 resultobj = SWIG_Py_Void();
22944 return resultobj;
22945fail:
22946 return NULL;
22947}
22948
22949
22950SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22951 PyObject *resultobj = 0;
22952 wxDC *arg1 = (wxDC *) 0 ;
22953 wxPoint *arg2 = 0 ;
22954 void *argp1 = 0 ;
22955 int res1 = 0 ;
22956 wxPoint temp2 ;
22957 PyObject * obj0 = 0 ;
22958 PyObject * obj1 = 0 ;
22959 char * kwnames[] = {
22960 (char *) "self",(char *) "point", NULL
22961 };
22962
22963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22965 if (!SWIG_IsOK(res1)) {
22966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22967 }
22968 arg1 = reinterpret_cast< wxDC * >(argp1);
22969 {
22970 arg2 = &temp2;
22971 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22972 }
22973 {
22974 PyThreadState* __tstate = wxPyBeginAllowThreads();
22975 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 resultobj = SWIG_Py_Void();
22980 return resultobj;
22981fail:
22982 return NULL;
22983}
22984
22985
22986SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22987 PyObject *resultobj = 0;
22988 wxDC *arg1 = (wxDC *) 0 ;
22989 void *argp1 = 0 ;
22990 int res1 = 0 ;
22991 PyObject *swig_obj[1] ;
22992
22993 if (!args) SWIG_fail;
22994 swig_obj[0] = args;
22995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22996 if (!SWIG_IsOK(res1)) {
22997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22998 }
22999 arg1 = reinterpret_cast< wxDC * >(argp1);
23000 {
23001 PyThreadState* __tstate = wxPyBeginAllowThreads();
23002 (arg1)->ResetBoundingBox();
23003 wxPyEndAllowThreads(__tstate);
23004 if (PyErr_Occurred()) SWIG_fail;
23005 }
23006 resultobj = SWIG_Py_Void();
23007 return resultobj;
23008fail:
23009 return NULL;
23010}
23011
23012
23013SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23014 PyObject *resultobj = 0;
23015 wxDC *arg1 = (wxDC *) 0 ;
23016 int result;
23017 void *argp1 = 0 ;
23018 int res1 = 0 ;
23019 PyObject *swig_obj[1] ;
23020
23021 if (!args) SWIG_fail;
23022 swig_obj[0] = args;
23023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23024 if (!SWIG_IsOK(res1)) {
23025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23026 }
23027 arg1 = reinterpret_cast< wxDC * >(argp1);
23028 {
23029 PyThreadState* __tstate = wxPyBeginAllowThreads();
23030 result = (int)((wxDC const *)arg1)->MinX();
23031 wxPyEndAllowThreads(__tstate);
23032 if (PyErr_Occurred()) SWIG_fail;
23033 }
23034 resultobj = SWIG_From_int(static_cast< int >(result));
23035 return resultobj;
23036fail:
23037 return NULL;
23038}
23039
23040
23041SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23042 PyObject *resultobj = 0;
23043 wxDC *arg1 = (wxDC *) 0 ;
23044 int result;
23045 void *argp1 = 0 ;
23046 int res1 = 0 ;
23047 PyObject *swig_obj[1] ;
23048
23049 if (!args) SWIG_fail;
23050 swig_obj[0] = args;
23051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23052 if (!SWIG_IsOK(res1)) {
23053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23054 }
23055 arg1 = reinterpret_cast< wxDC * >(argp1);
23056 {
23057 PyThreadState* __tstate = wxPyBeginAllowThreads();
23058 result = (int)((wxDC const *)arg1)->MaxX();
23059 wxPyEndAllowThreads(__tstate);
23060 if (PyErr_Occurred()) SWIG_fail;
23061 }
23062 resultobj = SWIG_From_int(static_cast< int >(result));
23063 return resultobj;
23064fail:
23065 return NULL;
23066}
23067
23068
23069SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23070 PyObject *resultobj = 0;
23071 wxDC *arg1 = (wxDC *) 0 ;
23072 int result;
23073 void *argp1 = 0 ;
23074 int res1 = 0 ;
23075 PyObject *swig_obj[1] ;
23076
23077 if (!args) SWIG_fail;
23078 swig_obj[0] = args;
23079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23080 if (!SWIG_IsOK(res1)) {
23081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23082 }
23083 arg1 = reinterpret_cast< wxDC * >(argp1);
23084 {
23085 PyThreadState* __tstate = wxPyBeginAllowThreads();
23086 result = (int)((wxDC const *)arg1)->MinY();
23087 wxPyEndAllowThreads(__tstate);
23088 if (PyErr_Occurred()) SWIG_fail;
23089 }
23090 resultobj = SWIG_From_int(static_cast< int >(result));
23091 return resultobj;
23092fail:
23093 return NULL;
23094}
23095
23096
23097SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23098 PyObject *resultobj = 0;
23099 wxDC *arg1 = (wxDC *) 0 ;
23100 int result;
23101 void *argp1 = 0 ;
23102 int res1 = 0 ;
23103 PyObject *swig_obj[1] ;
23104
23105 if (!args) SWIG_fail;
23106 swig_obj[0] = args;
23107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23108 if (!SWIG_IsOK(res1)) {
23109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23110 }
23111 arg1 = reinterpret_cast< wxDC * >(argp1);
23112 {
23113 PyThreadState* __tstate = wxPyBeginAllowThreads();
23114 result = (int)((wxDC const *)arg1)->MaxY();
23115 wxPyEndAllowThreads(__tstate);
23116 if (PyErr_Occurred()) SWIG_fail;
23117 }
23118 resultobj = SWIG_From_int(static_cast< int >(result));
23119 return resultobj;
23120fail:
23121 return NULL;
23122}
23123
23124
23125SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23126 PyObject *resultobj = 0;
23127 wxDC *arg1 = (wxDC *) 0 ;
23128 int *arg2 = (int *) 0 ;
23129 int *arg3 = (int *) 0 ;
23130 int *arg4 = (int *) 0 ;
23131 int *arg5 = (int *) 0 ;
23132 void *argp1 = 0 ;
23133 int res1 = 0 ;
23134 int temp2 ;
23135 int res2 = SWIG_TMPOBJ ;
23136 int temp3 ;
23137 int res3 = SWIG_TMPOBJ ;
23138 int temp4 ;
23139 int res4 = SWIG_TMPOBJ ;
23140 int temp5 ;
23141 int res5 = SWIG_TMPOBJ ;
23142 PyObject *swig_obj[1] ;
23143
23144 arg2 = &temp2;
23145 arg3 = &temp3;
23146 arg4 = &temp4;
23147 arg5 = &temp5;
23148 if (!args) SWIG_fail;
23149 swig_obj[0] = args;
23150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23151 if (!SWIG_IsOK(res1)) {
23152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23153 }
23154 arg1 = reinterpret_cast< wxDC * >(argp1);
23155 {
23156 PyThreadState* __tstate = wxPyBeginAllowThreads();
23157 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23158 wxPyEndAllowThreads(__tstate);
23159 if (PyErr_Occurred()) SWIG_fail;
23160 }
23161 resultobj = SWIG_Py_Void();
23162 if (SWIG_IsTmpObj(res2)) {
23163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23164 } else {
23165 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23167 }
23168 if (SWIG_IsTmpObj(res3)) {
23169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23170 } else {
23171 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23173 }
23174 if (SWIG_IsTmpObj(res4)) {
23175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23176 } else {
23177 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23178 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23179 }
23180 if (SWIG_IsTmpObj(res5)) {
23181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23182 } else {
23183 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23185 }
23186 return resultobj;
23187fail:
23188 return NULL;
23189}
23190
23191
b39fe951
RD
23192SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23193 PyObject *resultobj = 0;
23194 wxDC *arg1 = (wxDC *) 0 ;
23195 wxLayoutDirection result;
23196 void *argp1 = 0 ;
23197 int res1 = 0 ;
23198 PyObject *swig_obj[1] ;
23199
23200 if (!args) SWIG_fail;
23201 swig_obj[0] = args;
23202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23203 if (!SWIG_IsOK(res1)) {
23204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23205 }
23206 arg1 = reinterpret_cast< wxDC * >(argp1);
23207 {
23208 PyThreadState* __tstate = wxPyBeginAllowThreads();
23209 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23210 wxPyEndAllowThreads(__tstate);
23211 if (PyErr_Occurred()) SWIG_fail;
23212 }
23213 resultobj = SWIG_From_int(static_cast< int >(result));
23214 return resultobj;
23215fail:
23216 return NULL;
23217}
23218
23219
23220SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23221 PyObject *resultobj = 0;
23222 wxDC *arg1 = (wxDC *) 0 ;
23223 wxLayoutDirection arg2 ;
23224 void *argp1 = 0 ;
23225 int res1 = 0 ;
23226 int val2 ;
23227 int ecode2 = 0 ;
23228 PyObject * obj0 = 0 ;
23229 PyObject * obj1 = 0 ;
23230 char * kwnames[] = {
23231 (char *) "self",(char *) "dir", NULL
23232 };
23233
23234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23236 if (!SWIG_IsOK(res1)) {
23237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23238 }
23239 arg1 = reinterpret_cast< wxDC * >(argp1);
23240 ecode2 = SWIG_AsVal_int(obj1, &val2);
23241 if (!SWIG_IsOK(ecode2)) {
23242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23243 }
23244 arg2 = static_cast< wxLayoutDirection >(val2);
23245 {
23246 PyThreadState* __tstate = wxPyBeginAllowThreads();
23247 (arg1)->SetLayoutDirection(arg2);
23248 wxPyEndAllowThreads(__tstate);
23249 if (PyErr_Occurred()) SWIG_fail;
23250 }
23251 resultobj = SWIG_Py_Void();
23252 return resultobj;
23253fail:
23254 return NULL;
23255}
23256
23257
0085ce49
RD
23258SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23259 PyObject *resultobj = 0;
23260 wxDC *arg1 = (wxDC *) 0 ;
23261 PyObject *arg2 = (PyObject *) 0 ;
23262 PyObject *arg3 = (PyObject *) 0 ;
23263 PyObject *arg4 = (PyObject *) 0 ;
23264 PyObject *result = 0 ;
23265 void *argp1 = 0 ;
23266 int res1 = 0 ;
23267 PyObject * obj0 = 0 ;
23268 PyObject * obj1 = 0 ;
23269 PyObject * obj2 = 0 ;
23270 PyObject * obj3 = 0 ;
23271 char * kwnames[] = {
23272 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23273 };
23274
23275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23277 if (!SWIG_IsOK(res1)) {
23278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23279 }
23280 arg1 = reinterpret_cast< wxDC * >(argp1);
23281 arg2 = obj1;
23282 arg3 = obj2;
23283 arg4 = obj3;
23284 {
23285 PyThreadState* __tstate = wxPyBeginAllowThreads();
23286 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23287 wxPyEndAllowThreads(__tstate);
23288 if (PyErr_Occurred()) SWIG_fail;
23289 }
23290 resultobj = result;
23291 return resultobj;
23292fail:
23293 return NULL;
23294}
23295
23296
23297SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23298 PyObject *resultobj = 0;
23299 wxDC *arg1 = (wxDC *) 0 ;
23300 PyObject *arg2 = (PyObject *) 0 ;
23301 PyObject *arg3 = (PyObject *) 0 ;
23302 PyObject *arg4 = (PyObject *) 0 ;
23303 PyObject *result = 0 ;
23304 void *argp1 = 0 ;
23305 int res1 = 0 ;
23306 PyObject * obj0 = 0 ;
23307 PyObject * obj1 = 0 ;
23308 PyObject * obj2 = 0 ;
23309 PyObject * obj3 = 0 ;
23310 char * kwnames[] = {
23311 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23312 };
23313
23314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23316 if (!SWIG_IsOK(res1)) {
23317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23318 }
23319 arg1 = reinterpret_cast< wxDC * >(argp1);
23320 arg2 = obj1;
23321 arg3 = obj2;
23322 arg4 = obj3;
23323 {
23324 PyThreadState* __tstate = wxPyBeginAllowThreads();
23325 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23326 wxPyEndAllowThreads(__tstate);
23327 if (PyErr_Occurred()) SWIG_fail;
23328 }
23329 resultobj = result;
23330 return resultobj;
23331fail:
23332 return NULL;
23333}
23334
23335
23336SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23337 PyObject *resultobj = 0;
23338 wxDC *arg1 = (wxDC *) 0 ;
23339 PyObject *arg2 = (PyObject *) 0 ;
23340 PyObject *arg3 = (PyObject *) 0 ;
23341 PyObject *arg4 = (PyObject *) 0 ;
23342 PyObject *result = 0 ;
23343 void *argp1 = 0 ;
23344 int res1 = 0 ;
23345 PyObject * obj0 = 0 ;
23346 PyObject * obj1 = 0 ;
23347 PyObject * obj2 = 0 ;
23348 PyObject * obj3 = 0 ;
23349 char * kwnames[] = {
23350 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23351 };
23352
23353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23355 if (!SWIG_IsOK(res1)) {
23356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23357 }
23358 arg1 = reinterpret_cast< wxDC * >(argp1);
23359 arg2 = obj1;
23360 arg3 = obj2;
23361 arg4 = obj3;
23362 {
23363 PyThreadState* __tstate = wxPyBeginAllowThreads();
23364 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23365 wxPyEndAllowThreads(__tstate);
23366 if (PyErr_Occurred()) SWIG_fail;
23367 }
23368 resultobj = result;
23369 return resultobj;
23370fail:
23371 return NULL;
23372}
23373
23374
23375SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23376 PyObject *resultobj = 0;
23377 wxDC *arg1 = (wxDC *) 0 ;
23378 PyObject *arg2 = (PyObject *) 0 ;
23379 PyObject *arg3 = (PyObject *) 0 ;
23380 PyObject *arg4 = (PyObject *) 0 ;
23381 PyObject *result = 0 ;
23382 void *argp1 = 0 ;
23383 int res1 = 0 ;
23384 PyObject * obj0 = 0 ;
23385 PyObject * obj1 = 0 ;
23386 PyObject * obj2 = 0 ;
23387 PyObject * obj3 = 0 ;
23388 char * kwnames[] = {
23389 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23390 };
23391
23392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23394 if (!SWIG_IsOK(res1)) {
23395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23396 }
23397 arg1 = reinterpret_cast< wxDC * >(argp1);
23398 arg2 = obj1;
23399 arg3 = obj2;
23400 arg4 = obj3;
23401 {
23402 PyThreadState* __tstate = wxPyBeginAllowThreads();
23403 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23404 wxPyEndAllowThreads(__tstate);
23405 if (PyErr_Occurred()) SWIG_fail;
23406 }
23407 resultobj = result;
23408 return resultobj;
23409fail:
23410 return NULL;
23411}
23412
23413
23414SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23415 PyObject *resultobj = 0;
23416 wxDC *arg1 = (wxDC *) 0 ;
23417 PyObject *arg2 = (PyObject *) 0 ;
23418 PyObject *arg3 = (PyObject *) 0 ;
23419 PyObject *arg4 = (PyObject *) 0 ;
23420 PyObject *result = 0 ;
23421 void *argp1 = 0 ;
23422 int res1 = 0 ;
23423 PyObject * obj0 = 0 ;
23424 PyObject * obj1 = 0 ;
23425 PyObject * obj2 = 0 ;
23426 PyObject * obj3 = 0 ;
23427 char * kwnames[] = {
23428 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23429 };
23430
23431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23433 if (!SWIG_IsOK(res1)) {
23434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23435 }
23436 arg1 = reinterpret_cast< wxDC * >(argp1);
23437 arg2 = obj1;
23438 arg3 = obj2;
23439 arg4 = obj3;
23440 {
23441 PyThreadState* __tstate = wxPyBeginAllowThreads();
23442 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23443 wxPyEndAllowThreads(__tstate);
23444 if (PyErr_Occurred()) SWIG_fail;
23445 }
23446 resultobj = result;
23447 return resultobj;
23448fail:
23449 return NULL;
23450}
23451
23452
23453SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23454 PyObject *resultobj = 0;
23455 wxDC *arg1 = (wxDC *) 0 ;
23456 PyObject *arg2 = (PyObject *) 0 ;
23457 PyObject *arg3 = (PyObject *) 0 ;
23458 PyObject *arg4 = (PyObject *) 0 ;
23459 PyObject *arg5 = (PyObject *) 0 ;
23460 PyObject *result = 0 ;
23461 void *argp1 = 0 ;
23462 int res1 = 0 ;
23463 PyObject * obj0 = 0 ;
23464 PyObject * obj1 = 0 ;
23465 PyObject * obj2 = 0 ;
23466 PyObject * obj3 = 0 ;
23467 PyObject * obj4 = 0 ;
23468 char * kwnames[] = {
23469 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23470 };
23471
23472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23474 if (!SWIG_IsOK(res1)) {
23475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23476 }
23477 arg1 = reinterpret_cast< wxDC * >(argp1);
23478 arg2 = obj1;
23479 arg3 = obj2;
23480 arg4 = obj3;
23481 arg5 = obj4;
23482 {
23483 PyThreadState* __tstate = wxPyBeginAllowThreads();
23484 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23485 wxPyEndAllowThreads(__tstate);
23486 if (PyErr_Occurred()) SWIG_fail;
23487 }
23488 resultobj = result;
23489 return resultobj;
23490fail:
23491 return NULL;
23492}
23493
23494
23495SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23496 PyObject *obj;
23497 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23498 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23499 return SWIG_Py_Void();
23500}
23501
70d7cb34
RD
23502SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23503 PyObject *resultobj = 0;
23504 wxDC *arg1 = 0 ;
23505 wxColour *arg2 = 0 ;
23506 wxDCTextColourChanger *result = 0 ;
23507 void *argp1 = 0 ;
23508 int res1 = 0 ;
23509 wxColour temp2 ;
23510 PyObject * obj0 = 0 ;
23511 PyObject * obj1 = 0 ;
23512 char * kwnames[] = {
23513 (char *) "dc",(char *) "col", NULL
23514 };
23515
23516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23517 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23518 if (!SWIG_IsOK(res1)) {
23519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23520 }
23521 if (!argp1) {
23522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23523 }
23524 arg1 = reinterpret_cast< wxDC * >(argp1);
23525 {
23526 arg2 = &temp2;
23527 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23528 }
23529 {
23530 PyThreadState* __tstate = wxPyBeginAllowThreads();
23531 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23532 wxPyEndAllowThreads(__tstate);
23533 if (PyErr_Occurred()) SWIG_fail;
23534 }
23535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23536 return resultobj;
23537fail:
23538 return NULL;
23539}
23540
23541
23542SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23543 PyObject *resultobj = 0;
23544 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23545 void *argp1 = 0 ;
23546 int res1 = 0 ;
23547 PyObject *swig_obj[1] ;
23548
23549 if (!args) SWIG_fail;
23550 swig_obj[0] = args;
23551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23552 if (!SWIG_IsOK(res1)) {
23553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23554 }
23555 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23556 {
23557 PyThreadState* __tstate = wxPyBeginAllowThreads();
23558 delete arg1;
23559
23560 wxPyEndAllowThreads(__tstate);
23561 if (PyErr_Occurred()) SWIG_fail;
23562 }
23563 resultobj = SWIG_Py_Void();
23564 return resultobj;
23565fail:
23566 return NULL;
23567}
23568
23569
23570SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23571 PyObject *obj;
23572 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23573 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23574 return SWIG_Py_Void();
23575}
23576
23577SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23578 return SWIG_Python_InitShadowInstance(args);
23579}
23580
23581SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23582 PyObject *resultobj = 0;
23583 wxDC *arg1 = 0 ;
23584 wxPen *arg2 = 0 ;
23585 wxDCPenChanger *result = 0 ;
23586 void *argp1 = 0 ;
23587 int res1 = 0 ;
23588 void *argp2 = 0 ;
23589 int res2 = 0 ;
23590 PyObject * obj0 = 0 ;
23591 PyObject * obj1 = 0 ;
23592 char * kwnames[] = {
23593 (char *) "dc",(char *) "pen", NULL
23594 };
23595
23596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23597 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23598 if (!SWIG_IsOK(res1)) {
23599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23600 }
23601 if (!argp1) {
23602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23603 }
23604 arg1 = reinterpret_cast< wxDC * >(argp1);
23605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23606 if (!SWIG_IsOK(res2)) {
23607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23608 }
23609 if (!argp2) {
23610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23611 }
23612 arg2 = reinterpret_cast< wxPen * >(argp2);
23613 {
23614 PyThreadState* __tstate = wxPyBeginAllowThreads();
23615 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23616 wxPyEndAllowThreads(__tstate);
23617 if (PyErr_Occurred()) SWIG_fail;
23618 }
23619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23620 return resultobj;
23621fail:
23622 return NULL;
23623}
23624
23625
23626SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23627 PyObject *resultobj = 0;
23628 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23629 void *argp1 = 0 ;
23630 int res1 = 0 ;
23631 PyObject *swig_obj[1] ;
23632
23633 if (!args) SWIG_fail;
23634 swig_obj[0] = args;
23635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23636 if (!SWIG_IsOK(res1)) {
23637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23638 }
23639 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23640 {
23641 PyThreadState* __tstate = wxPyBeginAllowThreads();
23642 delete arg1;
23643
23644 wxPyEndAllowThreads(__tstate);
23645 if (PyErr_Occurred()) SWIG_fail;
23646 }
23647 resultobj = SWIG_Py_Void();
23648 return resultobj;
23649fail:
23650 return NULL;
23651}
23652
23653
23654SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23655 PyObject *obj;
23656 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23657 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23658 return SWIG_Py_Void();
23659}
23660
23661SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23662 return SWIG_Python_InitShadowInstance(args);
23663}
23664
23665SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23666 PyObject *resultobj = 0;
23667 wxDC *arg1 = 0 ;
23668 wxBrush *arg2 = 0 ;
23669 wxDCBrushChanger *result = 0 ;
23670 void *argp1 = 0 ;
23671 int res1 = 0 ;
23672 void *argp2 = 0 ;
23673 int res2 = 0 ;
23674 PyObject * obj0 = 0 ;
23675 PyObject * obj1 = 0 ;
23676 char * kwnames[] = {
23677 (char *) "dc",(char *) "brush", NULL
23678 };
23679
23680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23681 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23682 if (!SWIG_IsOK(res1)) {
23683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23684 }
23685 if (!argp1) {
23686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23687 }
23688 arg1 = reinterpret_cast< wxDC * >(argp1);
23689 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23690 if (!SWIG_IsOK(res2)) {
23691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23692 }
23693 if (!argp2) {
23694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23695 }
23696 arg2 = reinterpret_cast< wxBrush * >(argp2);
23697 {
23698 PyThreadState* __tstate = wxPyBeginAllowThreads();
23699 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23700 wxPyEndAllowThreads(__tstate);
23701 if (PyErr_Occurred()) SWIG_fail;
23702 }
23703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23704 return resultobj;
23705fail:
23706 return NULL;
23707}
23708
23709
23710SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23711 PyObject *resultobj = 0;
23712 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23713 void *argp1 = 0 ;
23714 int res1 = 0 ;
23715 PyObject *swig_obj[1] ;
23716
23717 if (!args) SWIG_fail;
23718 swig_obj[0] = args;
23719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23720 if (!SWIG_IsOK(res1)) {
23721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23722 }
23723 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23724 {
23725 PyThreadState* __tstate = wxPyBeginAllowThreads();
23726 delete arg1;
23727
23728 wxPyEndAllowThreads(__tstate);
23729 if (PyErr_Occurred()) SWIG_fail;
23730 }
23731 resultobj = SWIG_Py_Void();
23732 return resultobj;
23733fail:
23734 return NULL;
23735}
23736
23737
23738SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23739 PyObject *obj;
23740 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23741 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23742 return SWIG_Py_Void();
23743}
23744
23745SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23746 return SWIG_Python_InitShadowInstance(args);
23747}
23748
23749SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23750 PyObject *resultobj = 0;
23751 wxDC *arg1 = 0 ;
23752 wxRegion *arg2 = 0 ;
23753 wxDCClipper *result = 0 ;
23754 void *argp1 = 0 ;
23755 int res1 = 0 ;
23756 void *argp2 = 0 ;
23757 int res2 = 0 ;
23758
23759 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23761 if (!SWIG_IsOK(res1)) {
23762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23763 }
23764 if (!argp1) {
23765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23766 }
23767 arg1 = reinterpret_cast< wxDC * >(argp1);
23768 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23769 if (!SWIG_IsOK(res2)) {
23770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23771 }
23772 if (!argp2) {
23773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23774 }
23775 arg2 = reinterpret_cast< wxRegion * >(argp2);
23776 {
23777 PyThreadState* __tstate = wxPyBeginAllowThreads();
23778 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23779 wxPyEndAllowThreads(__tstate);
23780 if (PyErr_Occurred()) SWIG_fail;
23781 }
23782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23783 return resultobj;
23784fail:
23785 return NULL;
23786}
23787
23788
23789SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23790 PyObject *resultobj = 0;
23791 wxDC *arg1 = 0 ;
23792 wxRect *arg2 = 0 ;
23793 wxDCClipper *result = 0 ;
23794 void *argp1 = 0 ;
23795 int res1 = 0 ;
23796 wxRect temp2 ;
23797
23798 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23800 if (!SWIG_IsOK(res1)) {
23801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23802 }
23803 if (!argp1) {
23804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23805 }
23806 arg1 = reinterpret_cast< wxDC * >(argp1);
23807 {
23808 arg2 = &temp2;
23809 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23810 }
23811 {
23812 PyThreadState* __tstate = wxPyBeginAllowThreads();
23813 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23814 wxPyEndAllowThreads(__tstate);
23815 if (PyErr_Occurred()) SWIG_fail;
23816 }
23817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23818 return resultobj;
23819fail:
23820 return NULL;
23821}
23822
23823
23824SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23825 PyObject *resultobj = 0;
23826 wxDC *arg1 = 0 ;
23827 int arg2 ;
23828 int arg3 ;
23829 int arg4 ;
23830 int arg5 ;
23831 wxDCClipper *result = 0 ;
23832 void *argp1 = 0 ;
23833 int res1 = 0 ;
23834 int val2 ;
23835 int ecode2 = 0 ;
23836 int val3 ;
23837 int ecode3 = 0 ;
23838 int val4 ;
23839 int ecode4 = 0 ;
23840 int val5 ;
23841 int ecode5 = 0 ;
23842
23843 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23845 if (!SWIG_IsOK(res1)) {
23846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23847 }
23848 if (!argp1) {
23849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23850 }
23851 arg1 = reinterpret_cast< wxDC * >(argp1);
23852 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23853 if (!SWIG_IsOK(ecode2)) {
23854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23855 }
23856 arg2 = static_cast< int >(val2);
23857 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23858 if (!SWIG_IsOK(ecode3)) {
23859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23860 }
23861 arg3 = static_cast< int >(val3);
23862 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23863 if (!SWIG_IsOK(ecode4)) {
23864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23865 }
23866 arg4 = static_cast< int >(val4);
23867 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23868 if (!SWIG_IsOK(ecode5)) {
23869 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23870 }
23871 arg5 = static_cast< int >(val5);
23872 {
23873 PyThreadState* __tstate = wxPyBeginAllowThreads();
23874 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23875 wxPyEndAllowThreads(__tstate);
23876 if (PyErr_Occurred()) SWIG_fail;
23877 }
23878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23879 return resultobj;
23880fail:
23881 return NULL;
23882}
23883
23884
23885SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23886 int argc;
23887 PyObject *argv[6];
23888
23889 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23890 --argc;
23891 if (argc == 2) {
23892 int _v = 0;
23893 {
23894 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23895 _v = SWIG_CheckState(res);
23896 }
23897 if (!_v) goto check_1;
23898 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23899 }
23900check_1:
23901
23902 if (argc == 2) {
23903 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23904 }
23905 if (argc == 5) {
23906 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23907 }
23908
23909fail:
23910 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23911 return NULL;
23912}
23913
23914
23915SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23916 PyObject *resultobj = 0;
23917 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23918 void *argp1 = 0 ;
23919 int res1 = 0 ;
23920 PyObject *swig_obj[1] ;
23921
23922 if (!args) SWIG_fail;
23923 swig_obj[0] = args;
23924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23925 if (!SWIG_IsOK(res1)) {
23926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23927 }
23928 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23929 {
23930 PyThreadState* __tstate = wxPyBeginAllowThreads();
23931 delete arg1;
23932
23933 wxPyEndAllowThreads(__tstate);
23934 if (PyErr_Occurred()) SWIG_fail;
23935 }
23936 resultobj = SWIG_Py_Void();
23937 return resultobj;
23938fail:
23939 return NULL;
23940}
23941
23942
23943SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23944 PyObject *obj;
23945 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23946 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23947 return SWIG_Py_Void();
23948}
23949
23950SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23951 return SWIG_Python_InitShadowInstance(args);
23952}
23953
24f6c4e8
RD
23954SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23955 PyObject *resultobj = 0;
23956 wxScreenDC *result = 0 ;
23957
23958 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23959 {
23960 if (!wxPyCheckForApp()) SWIG_fail;
23961 PyThreadState* __tstate = wxPyBeginAllowThreads();
23962 result = (wxScreenDC *)new wxScreenDC();
23963 wxPyEndAllowThreads(__tstate);
23964 if (PyErr_Occurred()) SWIG_fail;
23965 }
23966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23967 return resultobj;
23968fail:
23969 return NULL;
23970}
23971
23972
23973SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23974 PyObject *resultobj = 0;
23975 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23976 wxWindow *arg2 = (wxWindow *) 0 ;
23977 bool result;
23978 void *argp1 = 0 ;
23979 int res1 = 0 ;
23980 void *argp2 = 0 ;
23981 int res2 = 0 ;
23982 PyObject * obj0 = 0 ;
23983 PyObject * obj1 = 0 ;
23984 char * kwnames[] = {
23985 (char *) "self",(char *) "window", NULL
23986 };
23987
23988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23990 if (!SWIG_IsOK(res1)) {
23991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23992 }
23993 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23994 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23995 if (!SWIG_IsOK(res2)) {
23996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23997 }
23998 arg2 = reinterpret_cast< wxWindow * >(argp2);
23999 {
24000 PyThreadState* __tstate = wxPyBeginAllowThreads();
24001 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24002 wxPyEndAllowThreads(__tstate);
24003 if (PyErr_Occurred()) SWIG_fail;
24004 }
24005 {
24006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24007 }
24008 return resultobj;
24009fail:
24010 return NULL;
24011}
24012
24013
24014SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24015 PyObject *resultobj = 0;
24016 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24017 wxRect *arg2 = (wxRect *) NULL ;
24018 bool result;
24019 void *argp1 = 0 ;
24020 int res1 = 0 ;
24021 void *argp2 = 0 ;
24022 int res2 = 0 ;
24023 PyObject * obj0 = 0 ;
24024 PyObject * obj1 = 0 ;
24025 char * kwnames[] = {
24026 (char *) "self",(char *) "rect", NULL
24027 };
24028
24029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24031 if (!SWIG_IsOK(res1)) {
24032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24033 }
24034 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24035 if (obj1) {
24036 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24037 if (!SWIG_IsOK(res2)) {
24038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24039 }
24040 arg2 = reinterpret_cast< wxRect * >(argp2);
24041 }
24042 {
24043 PyThreadState* __tstate = wxPyBeginAllowThreads();
24044 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24045 wxPyEndAllowThreads(__tstate);
24046 if (PyErr_Occurred()) SWIG_fail;
24047 }
24048 {
24049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24050 }
24051 return resultobj;
24052fail:
24053 return NULL;
24054}
24055
24056
24057SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24058 PyObject *resultobj = 0;
24059 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24060 bool result;
24061 void *argp1 = 0 ;
24062 int res1 = 0 ;
24063 PyObject *swig_obj[1] ;
24064
24065 if (!args) SWIG_fail;
24066 swig_obj[0] = args;
24067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24068 if (!SWIG_IsOK(res1)) {
24069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24070 }
24071 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24072 {
24073 PyThreadState* __tstate = wxPyBeginAllowThreads();
24074 result = (bool)(arg1)->EndDrawingOnTop();
24075 wxPyEndAllowThreads(__tstate);
24076 if (PyErr_Occurred()) SWIG_fail;
24077 }
24078 {
24079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24080 }
24081 return resultobj;
24082fail:
24083 return NULL;
24084}
24085
24086
24087SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24088 PyObject *obj;
24089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24090 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24091 return SWIG_Py_Void();
24092}
24093
24094SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24095 return SWIG_Python_InitShadowInstance(args);
24096}
24097
24098SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24099 PyObject *resultobj = 0;
24100 wxWindow *arg1 = (wxWindow *) 0 ;
24101 wxWindowDC *result = 0 ;
24102 void *argp1 = 0 ;
24103 int res1 = 0 ;
24104 PyObject * obj0 = 0 ;
24105 char * kwnames[] = {
24106 (char *) "win", NULL
24107 };
24108
24109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24111 if (!SWIG_IsOK(res1)) {
24112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24113 }
24114 arg1 = reinterpret_cast< wxWindow * >(argp1);
24115 {
24116 if (!wxPyCheckForApp()) SWIG_fail;
24117 PyThreadState* __tstate = wxPyBeginAllowThreads();
24118 result = (wxWindowDC *)new wxWindowDC(arg1);
24119 wxPyEndAllowThreads(__tstate);
24120 if (PyErr_Occurred()) SWIG_fail;
24121 }
24122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24123 return resultobj;
24124fail:
24125 return NULL;
24126}
24127
24128
24129SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24130 PyObject *obj;
24131 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24132 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24133 return SWIG_Py_Void();
24134}
24135
24136SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24137 return SWIG_Python_InitShadowInstance(args);
24138}
24139
24140SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24141 PyObject *resultobj = 0;
24142 wxWindow *arg1 = (wxWindow *) 0 ;
24143 wxClientDC *result = 0 ;
24144 void *argp1 = 0 ;
24145 int res1 = 0 ;
24146 PyObject * obj0 = 0 ;
24147 char * kwnames[] = {
24148 (char *) "win", NULL
24149 };
24150
24151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24153 if (!SWIG_IsOK(res1)) {
24154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24155 }
24156 arg1 = reinterpret_cast< wxWindow * >(argp1);
24157 {
24158 if (!wxPyCheckForApp()) SWIG_fail;
24159 PyThreadState* __tstate = wxPyBeginAllowThreads();
24160 result = (wxClientDC *)new wxClientDC(arg1);
24161 wxPyEndAllowThreads(__tstate);
24162 if (PyErr_Occurred()) SWIG_fail;
24163 }
24164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24165 return resultobj;
24166fail:
24167 return NULL;
24168}
24169
24170
24171SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24172 PyObject *obj;
24173 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24174 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24175 return SWIG_Py_Void();
24176}
24177
24178SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24179 return SWIG_Python_InitShadowInstance(args);
24180}
24181
24182SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24183 PyObject *resultobj = 0;
24184 wxWindow *arg1 = (wxWindow *) 0 ;
24185 wxPaintDC *result = 0 ;
24186 void *argp1 = 0 ;
24187 int res1 = 0 ;
24188 PyObject * obj0 = 0 ;
24189 char * kwnames[] = {
24190 (char *) "win", NULL
24191 };
24192
24193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24195 if (!SWIG_IsOK(res1)) {
24196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24197 }
24198 arg1 = reinterpret_cast< wxWindow * >(argp1);
24199 {
24200 if (!wxPyCheckForApp()) SWIG_fail;
24201 PyThreadState* __tstate = wxPyBeginAllowThreads();
24202 result = (wxPaintDC *)new wxPaintDC(arg1);
24203 wxPyEndAllowThreads(__tstate);
24204 if (PyErr_Occurred()) SWIG_fail;
24205 }
24206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24207 return resultobj;
24208fail:
24209 return NULL;
24210}
24211
24212
24213SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24214 PyObject *obj;
24215 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24216 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24217 return SWIG_Py_Void();
24218}
24219
24220SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24221 return SWIG_Python_InitShadowInstance(args);
24222}
24223
26c4d26f
RD
24224SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24225 PyObject *resultobj = 0;
24226 wxBitmap &arg1_defvalue = wxNullBitmap ;
24227 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24228 wxMemoryDC *result = 0 ;
24229 void *argp1 = 0 ;
24230 int res1 = 0 ;
24231 PyObject * obj0 = 0 ;
24232 char * kwnames[] = {
24233 (char *) "bitmap", NULL
24234 };
24235
24236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24237 if (obj0) {
24238 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24239 if (!SWIG_IsOK(res1)) {
24240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24241 }
24242 if (!argp1) {
24243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24244 }
24245 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24246 }
24247 {
24248 if (!wxPyCheckForApp()) SWIG_fail;
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24251 wxPyEndAllowThreads(__tstate);
24252 if (PyErr_Occurred()) SWIG_fail;
24253 }
24254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24255 return resultobj;
24256fail:
24257 return NULL;
24258}
24259
24260
24261SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24262 PyObject *resultobj = 0;
24263 wxDC *arg1 = (wxDC *) 0 ;
24264 wxMemoryDC *result = 0 ;
24265 void *argp1 = 0 ;
24266 int res1 = 0 ;
24267 PyObject * obj0 = 0 ;
24268 char * kwnames[] = {
24269 (char *) "oldDC", NULL
24270 };
24271
24272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24274 if (!SWIG_IsOK(res1)) {
24275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24276 }
24277 arg1 = reinterpret_cast< wxDC * >(argp1);
24278 {
24279 if (!wxPyCheckForApp()) SWIG_fail;
24280 PyThreadState* __tstate = wxPyBeginAllowThreads();
24281 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24282 wxPyEndAllowThreads(__tstate);
24283 if (PyErr_Occurred()) SWIG_fail;
24284 }
24285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24286 return resultobj;
24287fail:
24288 return NULL;
24289}
24290
24291
24292SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24293 PyObject *resultobj = 0;
24294 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24295 wxBitmap *arg2 = 0 ;
24296 void *argp1 = 0 ;
24297 int res1 = 0 ;
24298 void *argp2 = 0 ;
24299 int res2 = 0 ;
24300 PyObject * obj0 = 0 ;
24301 PyObject * obj1 = 0 ;
24302 char * kwnames[] = {
24303 (char *) "self",(char *) "bitmap", NULL
24304 };
24305
24306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24308 if (!SWIG_IsOK(res1)) {
24309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24310 }
24311 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24312 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24313 if (!SWIG_IsOK(res2)) {
24314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24315 }
24316 if (!argp2) {
24317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24318 }
24319 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24320 {
24321 PyThreadState* __tstate = wxPyBeginAllowThreads();
24322 (arg1)->SelectObject(*arg2);
24323 wxPyEndAllowThreads(__tstate);
24324 if (PyErr_Occurred()) SWIG_fail;
24325 }
24326 resultobj = SWIG_Py_Void();
24327 return resultobj;
24328fail:
24329 return NULL;
24330}
24331
24332
24333SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24334 PyObject *resultobj = 0;
24335 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24336 wxBitmap *arg2 = 0 ;
24337 void *argp1 = 0 ;
24338 int res1 = 0 ;
24339 void *argp2 = 0 ;
24340 int res2 = 0 ;
24341 PyObject * obj0 = 0 ;
24342 PyObject * obj1 = 0 ;
24343 char * kwnames[] = {
24344 (char *) "self",(char *) "bmp", NULL
24345 };
24346
24347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24349 if (!SWIG_IsOK(res1)) {
24350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24351 }
24352 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24353 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24354 if (!SWIG_IsOK(res2)) {
24355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24356 }
24357 if (!argp2) {
24358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24359 }
24360 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24361 {
24362 PyThreadState* __tstate = wxPyBeginAllowThreads();
24363 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24364 wxPyEndAllowThreads(__tstate);
24365 if (PyErr_Occurred()) SWIG_fail;
24366 }
24367 resultobj = SWIG_Py_Void();
24368 return resultobj;
24369fail:
24370 return NULL;
24371}
24372
24373
24374SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24375 PyObject *obj;
24376 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24377 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24378 return SWIG_Py_Void();
24379}
24380
24381SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24382 return SWIG_Python_InitShadowInstance(args);
24383}
24384
0085ce49
RD
24385SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24386 PyObject *resultobj = 0;
24387 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24388 wxBitmap &arg2_defvalue = wxNullBitmap ;
0085ce49
RD
24389 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24390 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24391 wxBufferedDC *result = 0 ;
24392 void *argp1 = 0 ;
24393 int res1 = 0 ;
24394 void *argp2 = 0 ;
24395 int res2 = 0 ;
24396 int val3 ;
24397 int ecode3 = 0 ;
24398
24399 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24401 if (!SWIG_IsOK(res1)) {
24402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24403 }
24404 arg1 = reinterpret_cast< wxDC * >(argp1);
24405 if (swig_obj[1]) {
b6df5cf9 24406 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
0085ce49 24407 if (!SWIG_IsOK(res2)) {
b6df5cf9 24408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24409 }
0085ce49 24410 if (!argp2) {
b6df5cf9 24411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24412 }
0085ce49
RD
24413 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24414 }
24415 if (swig_obj[2]) {
24416 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24417 if (!SWIG_IsOK(ecode3)) {
24418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24419 }
24420 arg3 = static_cast< int >(val3);
24421 }
24422 {
24423 if (!wxPyCheckForApp()) SWIG_fail;
24424 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24425 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
0085ce49
RD
24426 wxPyEndAllowThreads(__tstate);
24427 if (PyErr_Occurred()) SWIG_fail;
24428 }
24429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24430 return resultobj;
24431fail:
24432 return NULL;
24433}
24434
24435
24436SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24437 PyObject *resultobj = 0;
24438 wxDC *arg1 = (wxDC *) 0 ;
24439 wxSize *arg2 = 0 ;
24440 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24441 wxBufferedDC *result = 0 ;
24442 void *argp1 = 0 ;
24443 int res1 = 0 ;
24444 wxSize temp2 ;
24445 int val3 ;
24446 int ecode3 = 0 ;
24447
24448 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24450 if (!SWIG_IsOK(res1)) {
24451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24452 }
24453 arg1 = reinterpret_cast< wxDC * >(argp1);
24454 {
24455 arg2 = &temp2;
24456 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24457 }
24458 if (swig_obj[2]) {
24459 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24460 if (!SWIG_IsOK(ecode3)) {
24461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24462 }
24463 arg3 = static_cast< int >(val3);
24464 }
24465 {
24466 if (!wxPyCheckForApp()) SWIG_fail;
24467 PyThreadState* __tstate = wxPyBeginAllowThreads();
24468 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24469 wxPyEndAllowThreads(__tstate);
24470 if (PyErr_Occurred()) SWIG_fail;
24471 }
24472 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24473 return resultobj;
24474fail:
24475 return NULL;
24476}
24477
24478
24479SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24480 int argc;
8e99bda9 24481 PyObject *argv[4];
0085ce49 24482
8e99bda9 24483 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
0085ce49
RD
24484 --argc;
24485 if ((argc >= 1) && (argc <= 3)) {
24486 int _v = 0;
24487 if (argc > 1) {
24488 {
b6df5cf9
RD
24489 void *vptr = 0;
24490 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
0085ce49
RD
24491 _v = SWIG_CheckState(res);
24492 }
24493 if (!_v) goto check_1;
093d3ff1 24494 }
0085ce49
RD
24495 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24496 }
24497check_1:
24498
24499 if ((argc >= 2) && (argc <= 3)) {
24500 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24501 }
24502
24503fail:
24504 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24505 return NULL;
24506}
24507
24508
24509SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24510 PyObject *resultobj = 0;
24511 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24512 void *argp1 = 0 ;
24513 int res1 = 0 ;
24514 PyObject *swig_obj[1] ;
24515
24516 if (!args) SWIG_fail;
24517 swig_obj[0] = args;
24518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24519 if (!SWIG_IsOK(res1)) {
24520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24521 }
24522 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24523 {
24524 PyThreadState* __tstate = wxPyBeginAllowThreads();
24525 delete arg1;
24526
24527 wxPyEndAllowThreads(__tstate);
24528 if (PyErr_Occurred()) SWIG_fail;
24529 }
24530 resultobj = SWIG_Py_Void();
24531 return resultobj;
24532fail:
24533 return NULL;
24534}
24535
24536
24537SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24538 PyObject *resultobj = 0;
24539 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24540 void *argp1 = 0 ;
24541 int res1 = 0 ;
24542 PyObject *swig_obj[1] ;
24543
24544 if (!args) SWIG_fail;
24545 swig_obj[0] = args;
24546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24547 if (!SWIG_IsOK(res1)) {
24548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24549 }
24550 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24551 {
24552 PyThreadState* __tstate = wxPyBeginAllowThreads();
24553 (arg1)->UnMask();
24554 wxPyEndAllowThreads(__tstate);
24555 if (PyErr_Occurred()) SWIG_fail;
24556 }
24557 resultobj = SWIG_Py_Void();
24558 return resultobj;
24559fail:
24560 return NULL;
24561}
24562
24563
b6df5cf9
RD
24564SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24565 PyObject *resultobj = 0;
24566 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24567 int arg2 ;
24568 void *argp1 = 0 ;
24569 int res1 = 0 ;
24570 int val2 ;
24571 int ecode2 = 0 ;
24572 PyObject * obj0 = 0 ;
24573 PyObject * obj1 = 0 ;
24574 char * kwnames[] = {
24575 (char *) "self",(char *) "style", NULL
24576 };
24577
24578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24580 if (!SWIG_IsOK(res1)) {
24581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24582 }
24583 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24584 ecode2 = SWIG_AsVal_int(obj1, &val2);
24585 if (!SWIG_IsOK(ecode2)) {
24586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24587 }
24588 arg2 = static_cast< int >(val2);
24589 {
24590 PyThreadState* __tstate = wxPyBeginAllowThreads();
24591 (arg1)->SetStyle(arg2);
24592 wxPyEndAllowThreads(__tstate);
24593 if (PyErr_Occurred()) SWIG_fail;
24594 }
24595 resultobj = SWIG_Py_Void();
24596 return resultobj;
24597fail:
24598 return NULL;
24599}
24600
24601
24602SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24603 PyObject *resultobj = 0;
24604 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24605 int result;
24606 void *argp1 = 0 ;
24607 int res1 = 0 ;
24608 PyObject *swig_obj[1] ;
24609
24610 if (!args) SWIG_fail;
24611 swig_obj[0] = args;
24612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24613 if (!SWIG_IsOK(res1)) {
24614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24615 }
24616 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24617 {
24618 PyThreadState* __tstate = wxPyBeginAllowThreads();
24619 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24620 wxPyEndAllowThreads(__tstate);
24621 if (PyErr_Occurred()) SWIG_fail;
24622 }
24623 resultobj = SWIG_From_int(static_cast< int >(result));
24624 return resultobj;
24625fail:
24626 return NULL;
24627}
24628
24629
0085ce49
RD
24630SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24631 PyObject *obj;
24632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24633 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24634 return SWIG_Py_Void();
24635}
24636
24637SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24638 return SWIG_Python_InitShadowInstance(args);
24639}
24640
24641SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24642 PyObject *resultobj = 0;
24643 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 24644 wxBitmap &arg2_defvalue = wxNullBitmap ;
0085ce49
RD
24645 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24646 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24647 wxBufferedPaintDC *result = 0 ;
24648 void *argp1 = 0 ;
24649 int res1 = 0 ;
24650 void *argp2 = 0 ;
24651 int res2 = 0 ;
24652 int val3 ;
24653 int ecode3 = 0 ;
24654 PyObject * obj0 = 0 ;
24655 PyObject * obj1 = 0 ;
24656 PyObject * obj2 = 0 ;
24657 char * kwnames[] = {
24658 (char *) "window",(char *) "buffer",(char *) "style", NULL
24659 };
24660
24661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24663 if (!SWIG_IsOK(res1)) {
24664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24665 }
24666 arg1 = reinterpret_cast< wxWindow * >(argp1);
24667 if (obj1) {
b6df5cf9 24668 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
0085ce49 24669 if (!SWIG_IsOK(res2)) {
b6df5cf9 24670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24671 }
0085ce49 24672 if (!argp2) {
b6df5cf9 24673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
093d3ff1 24674 }
0085ce49
RD
24675 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24676 }
24677 if (obj2) {
24678 ecode3 = SWIG_AsVal_int(obj2, &val3);
24679 if (!SWIG_IsOK(ecode3)) {
24680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24681 }
24682 arg3 = static_cast< int >(val3);
24683 }
24684 {
24685 if (!wxPyCheckForApp()) SWIG_fail;
24686 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24687 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
0085ce49
RD
24688 wxPyEndAllowThreads(__tstate);
24689 if (PyErr_Occurred()) SWIG_fail;
24690 }
24691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24692 return resultobj;
24693fail:
24694 return NULL;
24695}
24696
24697
24698SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24699 PyObject *obj;
24700 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24701 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24702 return SWIG_Py_Void();
24703}
24704
24705SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24706 return SWIG_Python_InitShadowInstance(args);
24707}
24708
24f6c4e8 24709SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
24710 PyObject *resultobj = 0;
24711 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24712 wxAutoBufferedPaintDC *result = 0 ;
0085ce49
RD
24713 void *argp1 = 0 ;
24714 int res1 = 0 ;
24715 PyObject * obj0 = 0 ;
24716 char * kwnames[] = {
24717 (char *) "win", NULL
24718 };
24719
24f6c4e8 24720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
24721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24722 if (!SWIG_IsOK(res1)) {
24f6c4e8 24723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
24724 }
24725 arg1 = reinterpret_cast< wxWindow * >(argp1);
24726 {
0085ce49 24727 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24728 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
0085ce49
RD
24729 wxPyEndAllowThreads(__tstate);
24730 if (PyErr_Occurred()) SWIG_fail;
24731 }
24f6c4e8 24732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
24733 return resultobj;
24734fail:
24735 return NULL;
24736}
24737
24738
24f6c4e8 24739SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
24740 PyObject *obj;
24741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24742 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
0085ce49
RD
24743 return SWIG_Py_Void();
24744}
24745
24f6c4e8 24746SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
24747 return SWIG_Python_InitShadowInstance(args);
24748}
24749
8e99bda9
RD
24750SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24751 PyObject *resultobj = 0;
24752 wxWindow *arg1 = (wxWindow *) 0 ;
24753 wxDC *result = 0 ;
24754 void *argp1 = 0 ;
24755 int res1 = 0 ;
24756 PyObject * obj0 = 0 ;
24757 char * kwnames[] = {
24758 (char *) "window", NULL
24759 };
24760
24761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24763 if (!SWIG_IsOK(res1)) {
24764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24765 }
24766 arg1 = reinterpret_cast< wxWindow * >(argp1);
24767 {
24768 PyThreadState* __tstate = wxPyBeginAllowThreads();
24769 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24770 wxPyEndAllowThreads(__tstate);
24771 if (PyErr_Occurred()) SWIG_fail;
24772 }
24773 {
24774 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24775 }
24776 return resultobj;
24777fail:
24778 return NULL;
24779}
24780
24781
0085ce49
RD
24782SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24783 PyObject *resultobj = 0;
24784 wxDC *arg1 = 0 ;
24785 bool arg2 ;
24786 wxMirrorDC *result = 0 ;
24787 void *argp1 = 0 ;
24788 int res1 = 0 ;
24789 bool val2 ;
24790 int ecode2 = 0 ;
24791 PyObject * obj0 = 0 ;
24792 PyObject * obj1 = 0 ;
24793 char * kwnames[] = {
24794 (char *) "dc",(char *) "mirror", NULL
24795 };
24796
24797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24798 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24799 if (!SWIG_IsOK(res1)) {
24800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24801 }
24802 if (!argp1) {
24803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24804 }
24805 arg1 = reinterpret_cast< wxDC * >(argp1);
24806 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24807 if (!SWIG_IsOK(ecode2)) {
24808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24809 }
24810 arg2 = static_cast< bool >(val2);
24811 {
24812 if (!wxPyCheckForApp()) SWIG_fail;
24813 PyThreadState* __tstate = wxPyBeginAllowThreads();
24814 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24815 wxPyEndAllowThreads(__tstate);
24816 if (PyErr_Occurred()) SWIG_fail;
24817 }
24818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24819 return resultobj;
24820fail:
24821 return NULL;
24822}
24823
24824
24825SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24826 PyObject *obj;
24827 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24828 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24829 return SWIG_Py_Void();
24830}
24831
24832SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24833 return SWIG_Python_InitShadowInstance(args);
24834}
24835
24836SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24837 PyObject *resultobj = 0;
24838 wxPrintData *arg1 = 0 ;
24839 wxPostScriptDC *result = 0 ;
24840 void *argp1 = 0 ;
24841 int res1 = 0 ;
24842 PyObject * obj0 = 0 ;
24843 char * kwnames[] = {
24844 (char *) "printData", NULL
24845 };
24846
24847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24848 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24849 if (!SWIG_IsOK(res1)) {
24850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24851 }
24852 if (!argp1) {
24853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24854 }
24855 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24856 {
24857 if (!wxPyCheckForApp()) SWIG_fail;
24858 PyThreadState* __tstate = wxPyBeginAllowThreads();
24859 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24860 wxPyEndAllowThreads(__tstate);
24861 if (PyErr_Occurred()) SWIG_fail;
24862 }
24863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24864 return resultobj;
24865fail:
24866 return NULL;
24867}
24868
24869
24870SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24871 PyObject *resultobj = 0;
24872 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24873 wxPrintData *result = 0 ;
24874 void *argp1 = 0 ;
24875 int res1 = 0 ;
24876 PyObject *swig_obj[1] ;
24877
24878 if (!args) SWIG_fail;
24879 swig_obj[0] = args;
24880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24881 if (!SWIG_IsOK(res1)) {
24882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24883 }
24884 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24885 {
24886 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24887 {
0085ce49
RD
24888 wxPrintData &_result_ref = (arg1)->GetPrintData();
24889 result = (wxPrintData *) &_result_ref;
e2950dbb 24890 }
0085ce49
RD
24891 wxPyEndAllowThreads(__tstate);
24892 if (PyErr_Occurred()) SWIG_fail;
24893 }
24894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24895 return resultobj;
24896fail:
24897 return NULL;
24898}
24899
24900
24901SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24902 PyObject *resultobj = 0;
24903 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24904 wxPrintData *arg2 = 0 ;
24905 void *argp1 = 0 ;
24906 int res1 = 0 ;
24907 void *argp2 = 0 ;
24908 int res2 = 0 ;
24909 PyObject * obj0 = 0 ;
24910 PyObject * obj1 = 0 ;
24911 char * kwnames[] = {
24912 (char *) "self",(char *) "data", NULL
24913 };
24914
24915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24917 if (!SWIG_IsOK(res1)) {
24918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24919 }
24920 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24921 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24922 if (!SWIG_IsOK(res2)) {
24923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24924 }
24925 if (!argp2) {
24926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24927 }
24928 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24929 {
24930 PyThreadState* __tstate = wxPyBeginAllowThreads();
24931 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24932 wxPyEndAllowThreads(__tstate);
24933 if (PyErr_Occurred()) SWIG_fail;
24934 }
24935 resultobj = SWIG_Py_Void();
24936 return resultobj;
24937fail:
24938 return NULL;
24939}
24940
24941
24942SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24943 PyObject *resultobj = 0;
24944 int arg1 ;
24945 int val1 ;
24946 int ecode1 = 0 ;
24947 PyObject * obj0 = 0 ;
24948 char * kwnames[] = {
24949 (char *) "ppi", NULL
24950 };
24951
24952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24953 ecode1 = SWIG_AsVal_int(obj0, &val1);
24954 if (!SWIG_IsOK(ecode1)) {
24955 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24956 }
24957 arg1 = static_cast< int >(val1);
24958 {
24959 PyThreadState* __tstate = wxPyBeginAllowThreads();
24960 wxPostScriptDC::SetResolution(arg1);
24961 wxPyEndAllowThreads(__tstate);
24962 if (PyErr_Occurred()) SWIG_fail;
24963 }
24964 resultobj = SWIG_Py_Void();
24965 return resultobj;
24966fail:
24967 return NULL;
24968}
24969
24970
24971SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24972 PyObject *resultobj = 0;
24973 int result;
24974
24975 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24976 {
24977 PyThreadState* __tstate = wxPyBeginAllowThreads();
24978 result = (int)wxPostScriptDC::GetResolution();
24979 wxPyEndAllowThreads(__tstate);
24980 if (PyErr_Occurred()) SWIG_fail;
24981 }
24982 resultobj = SWIG_From_int(static_cast< int >(result));
24983 return resultobj;
24984fail:
24985 return NULL;
24986}
24987
24988
24989SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24990 PyObject *obj;
24991 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24992 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24993 return SWIG_Py_Void();
24994}
24995
24996SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24997 return SWIG_Python_InitShadowInstance(args);
24998}
24999
25000SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25001 PyObject *resultobj = 0;
25002 wxString const &arg1_defvalue = wxPyEmptyString ;
25003 wxString *arg1 = (wxString *) &arg1_defvalue ;
25004 wxMetaFile *result = 0 ;
25005 bool temp1 = false ;
25006 PyObject * obj0 = 0 ;
25007 char * kwnames[] = {
25008 (char *) "filename", NULL
25009 };
25010
25011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25012 if (obj0) {
093d3ff1 25013 {
0085ce49
RD
25014 arg1 = wxString_in_helper(obj0);
25015 if (arg1 == NULL) SWIG_fail;
25016 temp1 = true;
093d3ff1 25017 }
0085ce49
RD
25018 }
25019 {
25020 if (!wxPyCheckForApp()) SWIG_fail;
25021 PyThreadState* __tstate = wxPyBeginAllowThreads();
25022 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25023 wxPyEndAllowThreads(__tstate);
25024 if (PyErr_Occurred()) SWIG_fail;
25025 }
25026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25027 {
25028 if (temp1)
25029 delete arg1;
25030 }
25031 return resultobj;
25032fail:
25033 {
25034 if (temp1)
25035 delete arg1;
25036 }
25037 return NULL;
25038}
25039
25040
25041SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25042 PyObject *obj;
25043 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25044 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25045 return SWIG_Py_Void();
25046}
25047
25048SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25049 return SWIG_Python_InitShadowInstance(args);
25050}
25051
25052SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25053 PyObject *resultobj = 0;
25054 wxString const &arg1_defvalue = wxPyEmptyString ;
25055 wxString *arg1 = (wxString *) &arg1_defvalue ;
25056 int arg2 = (int) 0 ;
25057 int arg3 = (int) 0 ;
25058 wxString const &arg4_defvalue = wxPyEmptyString ;
25059 wxString *arg4 = (wxString *) &arg4_defvalue ;
25060 wxMetaFileDC *result = 0 ;
25061 bool temp1 = false ;
25062 int val2 ;
25063 int ecode2 = 0 ;
25064 int val3 ;
25065 int ecode3 = 0 ;
25066 bool temp4 = false ;
25067 PyObject * obj0 = 0 ;
25068 PyObject * obj1 = 0 ;
25069 PyObject * obj2 = 0 ;
25070 PyObject * obj3 = 0 ;
25071 char * kwnames[] = {
25072 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25073 };
25074
25075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25076 if (obj0) {
093d3ff1 25077 {
0085ce49
RD
25078 arg1 = wxString_in_helper(obj0);
25079 if (arg1 == NULL) SWIG_fail;
25080 temp1 = true;
093d3ff1 25081 }
0085ce49
RD
25082 }
25083 if (obj1) {
25084 ecode2 = SWIG_AsVal_int(obj1, &val2);
25085 if (!SWIG_IsOK(ecode2)) {
25086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25087 }
25088 arg2 = static_cast< int >(val2);
25089 }
25090 if (obj2) {
25091 ecode3 = SWIG_AsVal_int(obj2, &val3);
25092 if (!SWIG_IsOK(ecode3)) {
25093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25094 }
25095 arg3 = static_cast< int >(val3);
25096 }
25097 if (obj3) {
093d3ff1 25098 {
0085ce49
RD
25099 arg4 = wxString_in_helper(obj3);
25100 if (arg4 == NULL) SWIG_fail;
25101 temp4 = true;
093d3ff1 25102 }
0085ce49
RD
25103 }
25104 {
25105 if (!wxPyCheckForApp()) SWIG_fail;
25106 PyThreadState* __tstate = wxPyBeginAllowThreads();
25107 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25108 wxPyEndAllowThreads(__tstate);
25109 if (PyErr_Occurred()) SWIG_fail;
25110 }
25111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25112 {
25113 if (temp1)
25114 delete arg1;
25115 }
25116 {
25117 if (temp4)
25118 delete arg4;
25119 }
25120 return resultobj;
25121fail:
25122 {
25123 if (temp1)
25124 delete arg1;
25125 }
25126 {
25127 if (temp4)
25128 delete arg4;
25129 }
25130 return NULL;
25131}
25132
25133
25134SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25135 PyObject *obj;
25136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25137 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25138 return SWIG_Py_Void();
25139}
25140
25141SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25142 return SWIG_Python_InitShadowInstance(args);
25143}
25144
25145SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25146 PyObject *resultobj = 0;
25147 wxPrintData *arg1 = 0 ;
25148 wxPrinterDC *result = 0 ;
25149 void *argp1 = 0 ;
25150 int res1 = 0 ;
25151 PyObject * obj0 = 0 ;
25152 char * kwnames[] = {
25153 (char *) "printData", NULL
25154 };
25155
25156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25157 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25158 if (!SWIG_IsOK(res1)) {
25159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25160 }
25161 if (!argp1) {
25162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25163 }
25164 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25165 {
25166 if (!wxPyCheckForApp()) SWIG_fail;
25167 PyThreadState* __tstate = wxPyBeginAllowThreads();
25168 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25169 wxPyEndAllowThreads(__tstate);
25170 if (PyErr_Occurred()) SWIG_fail;
25171 }
25172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25173 return resultobj;
25174fail:
25175 return NULL;
25176}
25177
25178
25179SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25180 PyObject *obj;
25181 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25182 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25183 return SWIG_Py_Void();
25184}
25185
25186SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25187 return SWIG_Python_InitShadowInstance(args);
25188}
25189
70d7cb34
RD
25190SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25191 PyObject *resultobj = 0;
25192 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25193 wxGraphicsObject *result = 0 ;
25194 void *argp1 = 0 ;
25195 int res1 = 0 ;
25196 PyObject * obj0 = 0 ;
25197 char * kwnames[] = {
25198 (char *) "renderer", NULL
25199 };
25200
25201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25202 if (obj0) {
25203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25204 if (!SWIG_IsOK(res1)) {
25205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25206 }
25207 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25208 }
25209 {
25210 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25211 if (PyErr_Occurred()) SWIG_fail;
25212 }
25213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25214 return resultobj;
25215fail:
25216 return NULL;
25217}
25218
25219
25220SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25221 PyObject *resultobj = 0;
25222 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25223 void *argp1 = 0 ;
25224 int res1 = 0 ;
25225 PyObject *swig_obj[1] ;
25226
25227 if (!args) SWIG_fail;
25228 swig_obj[0] = args;
25229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25230 if (!SWIG_IsOK(res1)) {
25231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25232 }
25233 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25234 {
25235 delete arg1;
25236
25237 if (PyErr_Occurred()) SWIG_fail;
25238 }
25239 resultobj = SWIG_Py_Void();
25240 return resultobj;
25241fail:
25242 return NULL;
25243}
25244
25245
25246SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25247 PyObject *resultobj = 0;
25248 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25249 bool result;
25250 void *argp1 = 0 ;
25251 int res1 = 0 ;
25252 PyObject *swig_obj[1] ;
25253
25254 if (!args) SWIG_fail;
25255 swig_obj[0] = args;
25256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25257 if (!SWIG_IsOK(res1)) {
25258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25259 }
25260 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25261 {
25262 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25263 if (PyErr_Occurred()) SWIG_fail;
25264 }
25265 {
25266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25267 }
25268 return resultobj;
25269fail:
25270 return NULL;
25271}
25272
25273
25274SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25275 PyObject *resultobj = 0;
25276 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25277 wxGraphicsRenderer *result = 0 ;
25278 void *argp1 = 0 ;
25279 int res1 = 0 ;
25280 PyObject *swig_obj[1] ;
25281
25282 if (!args) SWIG_fail;
25283 swig_obj[0] = args;
25284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25285 if (!SWIG_IsOK(res1)) {
25286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25287 }
25288 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25289 {
25290 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25291 if (PyErr_Occurred()) SWIG_fail;
25292 }
25293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25294 return resultobj;
25295fail:
25296 return NULL;
25297}
25298
25299
25300SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25301 PyObject *obj;
25302 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25303 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25304 return SWIG_Py_Void();
25305}
25306
25307SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25308 return SWIG_Python_InitShadowInstance(args);
25309}
25310
25311SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25312 PyObject *resultobj = 0;
25313 wxGraphicsPen *result = 0 ;
25314
25315 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25316 {
25317 result = (wxGraphicsPen *)new wxGraphicsPen();
25318 if (PyErr_Occurred()) SWIG_fail;
25319 }
25320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25321 return resultobj;
25322fail:
25323 return NULL;
25324}
25325
25326
25327SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25328 PyObject *resultobj = 0;
25329 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25330 void *argp1 = 0 ;
25331 int res1 = 0 ;
25332 PyObject *swig_obj[1] ;
25333
25334 if (!args) SWIG_fail;
25335 swig_obj[0] = args;
25336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25337 if (!SWIG_IsOK(res1)) {
25338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25339 }
25340 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25341 {
25342 delete arg1;
25343
25344 if (PyErr_Occurred()) SWIG_fail;
25345 }
25346 resultobj = SWIG_Py_Void();
25347 return resultobj;
25348fail:
25349 return NULL;
25350}
25351
25352
25353SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25354 PyObject *obj;
25355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25356 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25357 return SWIG_Py_Void();
25358}
25359
25360SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25361 return SWIG_Python_InitShadowInstance(args);
25362}
25363
25364SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25365 PyObject *resultobj = 0;
25366 wxGraphicsBrush *result = 0 ;
25367
25368 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25369 {
25370 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25371 if (PyErr_Occurred()) SWIG_fail;
25372 }
25373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25374 return resultobj;
25375fail:
25376 return NULL;
25377}
25378
25379
25380SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25381 PyObject *resultobj = 0;
25382 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25383 void *argp1 = 0 ;
25384 int res1 = 0 ;
25385 PyObject *swig_obj[1] ;
25386
25387 if (!args) SWIG_fail;
25388 swig_obj[0] = args;
25389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25390 if (!SWIG_IsOK(res1)) {
25391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25392 }
25393 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25394 {
25395 delete arg1;
25396
25397 if (PyErr_Occurred()) SWIG_fail;
25398 }
25399 resultobj = SWIG_Py_Void();
25400 return resultobj;
25401fail:
25402 return NULL;
25403}
25404
25405
25406SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25407 PyObject *obj;
25408 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25409 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25410 return SWIG_Py_Void();
25411}
25412
25413SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25414 return SWIG_Python_InitShadowInstance(args);
25415}
25416
25417SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25418 PyObject *resultobj = 0;
25419 wxGraphicsFont *result = 0 ;
25420
25421 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25422 {
25423 result = (wxGraphicsFont *)new wxGraphicsFont();
25424 if (PyErr_Occurred()) SWIG_fail;
25425 }
25426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25427 return resultobj;
25428fail:
25429 return NULL;
25430}
25431
25432
25433SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25434 PyObject *resultobj = 0;
25435 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25436 void *argp1 = 0 ;
25437 int res1 = 0 ;
25438 PyObject *swig_obj[1] ;
25439
25440 if (!args) SWIG_fail;
25441 swig_obj[0] = args;
25442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25443 if (!SWIG_IsOK(res1)) {
25444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25445 }
25446 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25447 {
25448 delete arg1;
25449
25450 if (PyErr_Occurred()) SWIG_fail;
25451 }
25452 resultobj = SWIG_Py_Void();
25453 return resultobj;
25454fail:
25455 return NULL;
25456}
25457
25458
25459SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25460 PyObject *obj;
25461 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25462 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25463 return SWIG_Py_Void();
25464}
25465
25466SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25467 return SWIG_Python_InitShadowInstance(args);
25468}
25469
8f514ab4
RD
25470SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25471 PyObject *resultobj = 0;
25472 wxGraphicsMatrix *result = 0 ;
25473
25474 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25475 {
25476 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25477 if (PyErr_Occurred()) SWIG_fail;
25478 }
25479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25480 return resultobj;
25481fail:
25482 return NULL;
25483}
25484
25485
5c8c7dd3 25486SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25487 PyObject *resultobj = 0;
5c8c7dd3 25488 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
0085ce49
RD
25489 void *argp1 = 0 ;
25490 int res1 = 0 ;
25491 PyObject *swig_obj[1] ;
25492
25493 if (!args) SWIG_fail;
25494 swig_obj[0] = args;
5c8c7dd3 25495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
0085ce49 25496 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25498 }
5c8c7dd3 25499 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
0085ce49 25500 {
0085ce49
RD
25501 delete arg1;
25502
0085ce49
RD
25503 if (PyErr_Occurred()) SWIG_fail;
25504 }
25505 resultobj = SWIG_Py_Void();
25506 return resultobj;
25507fail:
25508 return NULL;
25509}
25510
25511
5c8c7dd3 25512SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25513 PyObject *resultobj = 0;
5c8c7dd3
RD
25514 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25515 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25516 void *argp1 = 0 ;
25517 int res1 = 0 ;
5c8c7dd3
RD
25518 void *argp2 = 0 ;
25519 int res2 = 0 ;
25520 PyObject * obj0 = 0 ;
25521 PyObject * obj1 = 0 ;
25522 char * kwnames[] = {
25523 (char *) "self",(char *) "t", NULL
25524 };
70d7cb34 25525
5c8c7dd3
RD
25526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25528 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25530 }
5c8c7dd3
RD
25531 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25532 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25533 if (!SWIG_IsOK(res2)) {
25534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25535 }
25536 if (!argp2) {
25537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25538 }
25539 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25540 {
5c8c7dd3 25541 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25542 if (PyErr_Occurred()) SWIG_fail;
25543 }
5c8c7dd3 25544 resultobj = SWIG_Py_Void();
70d7cb34
RD
25545 return resultobj;
25546fail:
25547 return NULL;
25548}
25549
25550
5c8c7dd3 25551SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25552 PyObject *resultobj = 0;
5c8c7dd3
RD
25553 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25554 wxDouble arg2 = (wxDouble) 1.0 ;
25555 wxDouble arg3 = (wxDouble) 0.0 ;
25556 wxDouble arg4 = (wxDouble) 0.0 ;
25557 wxDouble arg5 = (wxDouble) 1.0 ;
25558 wxDouble arg6 = (wxDouble) 0.0 ;
25559 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25560 void *argp1 = 0 ;
25561 int res1 = 0 ;
5c8c7dd3
RD
25562 double val2 ;
25563 int ecode2 = 0 ;
25564 double val3 ;
25565 int ecode3 = 0 ;
25566 double val4 ;
25567 int ecode4 = 0 ;
25568 double val5 ;
25569 int ecode5 = 0 ;
25570 double val6 ;
25571 int ecode6 = 0 ;
25572 double val7 ;
25573 int ecode7 = 0 ;
25574 PyObject * obj0 = 0 ;
25575 PyObject * obj1 = 0 ;
25576 PyObject * obj2 = 0 ;
25577 PyObject * obj3 = 0 ;
25578 PyObject * obj4 = 0 ;
25579 PyObject * obj5 = 0 ;
25580 PyObject * obj6 = 0 ;
25581 char * kwnames[] = {
25582 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25583 };
70d7cb34 25584
5c8c7dd3
RD
25585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25587 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25589 }
5c8c7dd3
RD
25590 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25591 if (obj1) {
25592 ecode2 = SWIG_AsVal_double(obj1, &val2);
25593 if (!SWIG_IsOK(ecode2)) {
25594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25595 }
25596 arg2 = static_cast< wxDouble >(val2);
25597 }
25598 if (obj2) {
25599 ecode3 = SWIG_AsVal_double(obj2, &val3);
25600 if (!SWIG_IsOK(ecode3)) {
25601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25602 }
25603 arg3 = static_cast< wxDouble >(val3);
25604 }
25605 if (obj3) {
25606 ecode4 = SWIG_AsVal_double(obj3, &val4);
25607 if (!SWIG_IsOK(ecode4)) {
25608 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25609 }
25610 arg4 = static_cast< wxDouble >(val4);
25611 }
25612 if (obj4) {
25613 ecode5 = SWIG_AsVal_double(obj4, &val5);
25614 if (!SWIG_IsOK(ecode5)) {
25615 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25616 }
25617 arg5 = static_cast< wxDouble >(val5);
25618 }
25619 if (obj5) {
25620 ecode6 = SWIG_AsVal_double(obj5, &val6);
25621 if (!SWIG_IsOK(ecode6)) {
25622 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25623 }
25624 arg6 = static_cast< wxDouble >(val6);
25625 }
25626 if (obj6) {
25627 ecode7 = SWIG_AsVal_double(obj6, &val7);
25628 if (!SWIG_IsOK(ecode7)) {
25629 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25630 }
25631 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25632 }
25633 {
5c8c7dd3 25634 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25635 if (PyErr_Occurred()) SWIG_fail;
25636 }
25637 resultobj = SWIG_Py_Void();
25638 return resultobj;
25639fail:
25640 return NULL;
25641}
25642
25643
5c8c7dd3 25644SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 25645 PyObject *resultobj = 0;
5c8c7dd3 25646 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
0085ce49
RD
25647 void *argp1 = 0 ;
25648 int res1 = 0 ;
5c8c7dd3 25649 PyObject *swig_obj[1] ;
0085ce49 25650
5c8c7dd3
RD
25651 if (!args) SWIG_fail;
25652 swig_obj[0] = args;
25653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
0085ce49 25654 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
0085ce49 25656 }
5c8c7dd3 25657 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
0085ce49 25658 {
5c8c7dd3 25659 (arg1)->Invert();
0085ce49
RD
25660 if (PyErr_Occurred()) SWIG_fail;
25661 }
72ef6efb 25662 resultobj = SWIG_Py_Void();
0085ce49
RD
25663 return resultobj;
25664fail:
25665 return NULL;
25666}
25667
25668
5c8c7dd3 25669SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25670 PyObject *resultobj = 0;
5c8c7dd3
RD
25671 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25672 wxGraphicsMatrix *arg2 = 0 ;
25673 bool result;
70d7cb34
RD
25674 void *argp1 = 0 ;
25675 int res1 = 0 ;
5c8c7dd3
RD
25676 void *argp2 = 0 ;
25677 int res2 = 0 ;
25678 PyObject * obj0 = 0 ;
25679 PyObject * obj1 = 0 ;
25680 char * kwnames[] = {
25681 (char *) "self",(char *) "t", NULL
25682 };
70d7cb34 25683
5c8c7dd3
RD
25684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25686 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25688 }
5c8c7dd3
RD
25689 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25690 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25691 if (!SWIG_IsOK(res2)) {
25692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25693 }
25694 if (!argp2) {
25695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25696 }
5c8c7dd3 25697 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25698 {
5c8c7dd3 25699 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25700 if (PyErr_Occurred()) SWIG_fail;
25701 }
5c8c7dd3
RD
25702 {
25703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25704 }
70d7cb34
RD
25705 return resultobj;
25706fail:
25707 return NULL;
25708}
25709
25710
5c8c7dd3
RD
25711SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25712 PyObject *resultobj = 0;
25713 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25714 bool result;
25715 void *argp1 = 0 ;
25716 int res1 = 0 ;
25717 PyObject *swig_obj[1] ;
70d7cb34 25718
5c8c7dd3
RD
25719 if (!args) SWIG_fail;
25720 swig_obj[0] = args;
25721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25722 if (!SWIG_IsOK(res1)) {
25723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25724 }
5c8c7dd3
RD
25725 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25726 {
25727 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
25728 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 25729 }
5c8c7dd3
RD
25730 {
25731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25732 }
25733 return resultobj;
70d7cb34 25734fail:
70d7cb34
RD
25735 return NULL;
25736}
25737
25738
5c8c7dd3 25739SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 25740 PyObject *resultobj = 0;
5c8c7dd3 25741 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
25742 wxDouble arg2 ;
25743 wxDouble arg3 ;
0085ce49
RD
25744 void *argp1 = 0 ;
25745 int res1 = 0 ;
72ef6efb
RD
25746 double val2 ;
25747 int ecode2 = 0 ;
25748 double val3 ;
25749 int ecode3 = 0 ;
5c8c7dd3
RD
25750 PyObject * obj0 = 0 ;
25751 PyObject * obj1 = 0 ;
25752 PyObject * obj2 = 0 ;
25753 char * kwnames[] = {
25754 (char *) "self",(char *) "dx",(char *) "dy", NULL
25755 };
72ef6efb 25756
5c8c7dd3
RD
25757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25759 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25761 }
5c8c7dd3
RD
25762 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25763 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 25764 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
25766 }
25767 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 25768 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25769 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25771 }
25772 arg3 = static_cast< wxDouble >(val3);
72ef6efb 25773 {
5c8c7dd3 25774 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25775 if (PyErr_Occurred()) SWIG_fail;
25776 }
25777 resultobj = SWIG_Py_Void();
25778 return resultobj;
25779fail:
25780 return NULL;
25781}
25782
25783
5c8c7dd3 25784SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25785 PyObject *resultobj = 0;
5c8c7dd3
RD
25786 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25787 wxDouble arg2 ;
25788 wxDouble arg3 ;
70d7cb34
RD
25789 void *argp1 = 0 ;
25790 int res1 = 0 ;
5c8c7dd3
RD
25791 double val2 ;
25792 int ecode2 = 0 ;
25793 double val3 ;
25794 int ecode3 = 0 ;
25795 PyObject * obj0 = 0 ;
25796 PyObject * obj1 = 0 ;
25797 PyObject * obj2 = 0 ;
25798 char * kwnames[] = {
25799 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25800 };
70d7cb34 25801
5c8c7dd3
RD
25802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25804 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25806 }
5c8c7dd3
RD
25807 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25808 ecode2 = SWIG_AsVal_double(obj1, &val2);
25809 if (!SWIG_IsOK(ecode2)) {
25810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25811 }
25812 arg2 = static_cast< wxDouble >(val2);
25813 ecode3 = SWIG_AsVal_double(obj2, &val3);
25814 if (!SWIG_IsOK(ecode3)) {
25815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25816 }
25817 arg3 = static_cast< wxDouble >(val3);
70d7cb34 25818 {
5c8c7dd3 25819 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
25820 if (PyErr_Occurred()) SWIG_fail;
25821 }
25822 resultobj = SWIG_Py_Void();
25823 return resultobj;
25824fail:
25825 return NULL;
25826}
25827
25828
5c8c7dd3 25829SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25830 PyObject *resultobj = 0;
5c8c7dd3
RD
25831 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25832 wxDouble arg2 ;
70d7cb34
RD
25833 void *argp1 = 0 ;
25834 int res1 = 0 ;
5c8c7dd3
RD
25835 double val2 ;
25836 int ecode2 = 0 ;
70d7cb34
RD
25837 PyObject * obj0 = 0 ;
25838 PyObject * obj1 = 0 ;
25839 char * kwnames[] = {
5c8c7dd3 25840 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
25841 };
25842
5c8c7dd3
RD
25843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25845 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25847 }
5c8c7dd3
RD
25848 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25849 ecode2 = SWIG_AsVal_double(obj1, &val2);
25850 if (!SWIG_IsOK(ecode2)) {
25851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25852 }
25853 arg2 = static_cast< wxDouble >(val2);
70d7cb34 25854 {
5c8c7dd3 25855 (arg1)->Rotate(arg2);
70d7cb34
RD
25856 if (PyErr_Occurred()) SWIG_fail;
25857 }
25858 resultobj = SWIG_Py_Void();
25859 return resultobj;
25860fail:
25861 return NULL;
25862}
25863
25864
5c8c7dd3 25865SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 25866 PyObject *resultobj = 0;
5c8c7dd3
RD
25867 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25868 wxDouble *arg2 = (wxDouble *) 0 ;
25869 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
25870 void *argp1 = 0 ;
25871 int res1 = 0 ;
5c8c7dd3
RD
25872 wxDouble temp2 ;
25873 int res2 = 0 ;
25874 wxDouble temp3 ;
25875 int res3 = 0 ;
25876 PyObject * obj0 = 0 ;
25877 PyObject * obj1 = 0 ;
25878 PyObject * obj2 = 0 ;
25879 char * kwnames[] = {
25880 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25881 };
72ef6efb 25882
5c8c7dd3
RD
25883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25885 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
25886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25887 }
25888 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25889 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25890 double val;
25891 int ecode = SWIG_AsVal_double(obj1, &val);
25892 if (!SWIG_IsOK(ecode)) {
25893 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25894 }
25895 temp2 = static_cast< wxDouble >(val);
25896 arg2 = &temp2;
25897 res2 = SWIG_AddTmpMask(ecode);
25898 }
25899 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25900 double val;
25901 int ecode = SWIG_AsVal_double(obj2, &val);
25902 if (!SWIG_IsOK(ecode)) {
25903 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25904 }
25905 temp3 = static_cast< wxDouble >(val);
25906 arg3 = &temp3;
25907 res3 = SWIG_AddTmpMask(ecode);
25908 }
25909 {
25910 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
25911 if (PyErr_Occurred()) SWIG_fail;
72ef6efb
RD
25912 }
25913 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
25914 if (SWIG_IsTmpObj(res2)) {
25915 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25916 } else {
25917 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25918 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25919 }
25920 if (SWIG_IsTmpObj(res3)) {
25921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25922 } else {
25923 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25925 }
72ef6efb
RD
25926 return resultobj;
25927fail:
25928 return NULL;
25929}
25930
25931
5c8c7dd3
RD
25932SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25933 PyObject *resultobj = 0;
25934 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25935 wxDouble *arg2 = (wxDouble *) 0 ;
25936 wxDouble *arg3 = (wxDouble *) 0 ;
25937 void *argp1 = 0 ;
25938 int res1 = 0 ;
25939 wxDouble temp2 ;
25940 int res2 = 0 ;
25941 wxDouble temp3 ;
25942 int res3 = 0 ;
25943 PyObject * obj0 = 0 ;
25944 PyObject * obj1 = 0 ;
25945 PyObject * obj2 = 0 ;
25946 char * kwnames[] = {
25947 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
25948 };
25949
25950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25952 if (!SWIG_IsOK(res1)) {
25953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
25954 }
25955 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25956 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
25957 double val;
25958 int ecode = SWIG_AsVal_double(obj1, &val);
25959 if (!SWIG_IsOK(ecode)) {
25960 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
25961 }
25962 temp2 = static_cast< wxDouble >(val);
25963 arg2 = &temp2;
25964 res2 = SWIG_AddTmpMask(ecode);
25965 }
25966 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
25967 double val;
25968 int ecode = SWIG_AsVal_double(obj2, &val);
25969 if (!SWIG_IsOK(ecode)) {
25970 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
25971 }
25972 temp3 = static_cast< wxDouble >(val);
25973 arg3 = &temp3;
25974 res3 = SWIG_AddTmpMask(ecode);
25975 }
25976 {
25977 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
25978 if (PyErr_Occurred()) SWIG_fail;
25979 }
25980 resultobj = SWIG_Py_Void();
25981 if (SWIG_IsTmpObj(res2)) {
25982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25983 } else {
25984 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25986 }
25987 if (SWIG_IsTmpObj(res3)) {
25988 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25989 } else {
25990 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25992 }
25993 return resultobj;
25994fail:
25995 return NULL;
25996}
25997
25998
25999SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26000 PyObject *resultobj = 0;
26001 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26002 void *result = 0 ;
26003 void *argp1 = 0 ;
26004 int res1 = 0 ;
26005 PyObject *swig_obj[1] ;
26006
26007 if (!args) SWIG_fail;
26008 swig_obj[0] = args;
26009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26010 if (!SWIG_IsOK(res1)) {
26011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26012 }
26013 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26014 {
26015 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26016 if (PyErr_Occurred()) SWIG_fail;
26017 }
26018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26019 return resultobj;
26020fail:
26021 return NULL;
26022}
26023
26024
26025SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26026 PyObject *obj;
26027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26028 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26029 return SWIG_Py_Void();
26030}
26031
8f514ab4
RD
26032SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26033 return SWIG_Python_InitShadowInstance(args);
26034}
26035
26036SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26037 PyObject *resultobj = 0;
26038 wxGraphicsPath *result = 0 ;
26039
26040 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26041 {
26042 if (!wxPyCheckForApp()) SWIG_fail;
26043 PyThreadState* __tstate = wxPyBeginAllowThreads();
26044 result = (wxGraphicsPath *)new wxGraphicsPath();
26045 wxPyEndAllowThreads(__tstate);
26046 if (PyErr_Occurred()) SWIG_fail;
26047 }
26048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26049 return resultobj;
26050fail:
26051 return NULL;
26052}
26053
26054
5c8c7dd3 26055SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26056 PyObject *resultobj = 0;
26057 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26058 void *argp1 = 0 ;
26059 int res1 = 0 ;
26060 PyObject *swig_obj[1] ;
26061
26062 if (!args) SWIG_fail;
26063 swig_obj[0] = args;
5c8c7dd3 26064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26065 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26067 }
26068 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26069 {
5c8c7dd3
RD
26070 delete arg1;
26071
72ef6efb
RD
26072 if (PyErr_Occurred()) SWIG_fail;
26073 }
5c8c7dd3 26074 resultobj = SWIG_Py_Void();
70d7cb34
RD
26075 return resultobj;
26076fail:
26077 return NULL;
26078}
26079
26080
5c8c7dd3 26081SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26082 PyObject *resultobj = 0;
26083 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26084 wxDouble arg2 ;
26085 wxDouble arg3 ;
70d7cb34
RD
26086 void *argp1 = 0 ;
26087 int res1 = 0 ;
26088 double val2 ;
26089 int ecode2 = 0 ;
26090 double val3 ;
26091 int ecode3 = 0 ;
70d7cb34 26092
5c8c7dd3 26093 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26095 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26097 }
26098 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26099 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26100 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26102 }
26103 arg2 = static_cast< wxDouble >(val2);
26104 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26105 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26107 }
26108 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26109 {
5c8c7dd3 26110 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26111 if (PyErr_Occurred()) SWIG_fail;
26112 }
26113 resultobj = SWIG_Py_Void();
26114 return resultobj;
26115fail:
26116 return NULL;
26117}
26118
26119
5c8c7dd3 26120SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26121 PyObject *resultobj = 0;
26122 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26123 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26124 void *argp1 = 0 ;
26125 int res1 = 0 ;
26126 wxPoint2D temp2 ;
70d7cb34 26127
5c8c7dd3 26128 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26130 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26132 }
26133 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26134 {
26135 arg2 = &temp2;
26136 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26137 }
70d7cb34 26138 {
5c8c7dd3 26139 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26140 if (PyErr_Occurred()) SWIG_fail;
26141 }
26142 resultobj = SWIG_Py_Void();
26143 return resultobj;
26144fail:
26145 return NULL;
26146}
26147
26148
5c8c7dd3 26149SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26150 int argc;
5c8c7dd3 26151 PyObject *argv[4];
70d7cb34 26152
5c8c7dd3 26153 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26154 --argc;
5c8c7dd3
RD
26155 if (argc == 2) {
26156 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26157 }
5c8c7dd3
RD
26158 if (argc == 3) {
26159 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26160 }
26161
26162fail:
5c8c7dd3 26163 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26164 return NULL;
26165}
26166
26167
5c8c7dd3 26168SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26169 PyObject *resultobj = 0;
26170 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26171 wxDouble arg2 ;
26172 wxDouble arg3 ;
70d7cb34
RD
26173 void *argp1 = 0 ;
26174 int res1 = 0 ;
26175 double val2 ;
26176 int ecode2 = 0 ;
26177 double val3 ;
26178 int ecode3 = 0 ;
70d7cb34 26179
5c8c7dd3
RD
26180 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26182 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26184 }
26185 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26186 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26187 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26189 }
26190 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26191 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26192 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26194 }
26195 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26196 {
5c8c7dd3 26197 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26198 if (PyErr_Occurred()) SWIG_fail;
26199 }
26200 resultobj = SWIG_Py_Void();
26201 return resultobj;
26202fail:
26203 return NULL;
26204}
26205
26206
5c8c7dd3 26207SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26208 PyObject *resultobj = 0;
26209 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26210 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26211 void *argp1 = 0 ;
26212 int res1 = 0 ;
5c8c7dd3 26213 wxPoint2D temp2 ;
70d7cb34 26214
5c8c7dd3
RD
26215 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26217 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26219 }
26220 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26221 {
5c8c7dd3
RD
26222 arg2 = &temp2;
26223 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26224 }
26225 {
26226 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = SWIG_Py_Void();
26230 return resultobj;
26231fail:
26232 return NULL;
26233}
26234
26235
5c8c7dd3
RD
26236SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26237 int argc;
26238 PyObject *argv[4];
70d7cb34 26239
5c8c7dd3
RD
26240 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26241 --argc;
26242 if (argc == 2) {
26243 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26244 }
5c8c7dd3
RD
26245 if (argc == 3) {
26246 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26247 }
5c8c7dd3 26248
70d7cb34 26249fail:
5c8c7dd3 26250 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26251 return NULL;
26252}
26253
26254
5c8c7dd3 26255SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26256 PyObject *resultobj = 0;
26257 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26258 wxDouble arg2 ;
26259 wxDouble arg3 ;
26260 wxDouble arg4 ;
26261 wxDouble arg5 ;
26262 wxDouble arg6 ;
5c8c7dd3 26263 wxDouble arg7 ;
70d7cb34
RD
26264 void *argp1 = 0 ;
26265 int res1 = 0 ;
26266 double val2 ;
26267 int ecode2 = 0 ;
26268 double val3 ;
26269 int ecode3 = 0 ;
26270 double val4 ;
26271 int ecode4 = 0 ;
26272 double val5 ;
26273 int ecode5 = 0 ;
26274 double val6 ;
26275 int ecode6 = 0 ;
5c8c7dd3
RD
26276 double val7 ;
26277 int ecode7 = 0 ;
70d7cb34 26278
5c8c7dd3
RD
26279 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26281 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26283 }
26284 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26285 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26286 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26288 }
26289 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26290 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26291 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26293 }
26294 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26295 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26296 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26297 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26298 }
26299 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26300 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26301 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26302 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26303 }
26304 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26305 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26306 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26307 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26308 }
26309 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26310 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26311 if (!SWIG_IsOK(ecode7)) {
26312 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26313 }
26314 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26315 {
5c8c7dd3 26316 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26317 if (PyErr_Occurred()) SWIG_fail;
26318 }
26319 resultobj = SWIG_Py_Void();
26320 return resultobj;
26321fail:
26322 return NULL;
26323}
26324
26325
5c8c7dd3 26326SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26327 PyObject *resultobj = 0;
26328 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26329 wxPoint2D *arg2 = 0 ;
26330 wxPoint2D *arg3 = 0 ;
26331 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
5c8c7dd3
RD
26334 wxPoint2D temp2 ;
26335 wxPoint2D temp3 ;
26336 wxPoint2D temp4 ;
70d7cb34 26337
5c8c7dd3
RD
26338 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26340 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26342 }
26343 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26344 {
5c8c7dd3
RD
26345 arg2 = &temp2;
26346 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26347 }
5c8c7dd3
RD
26348 {
26349 arg3 = &temp3;
26350 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26351 }
70d7cb34 26352 {
5c8c7dd3
RD
26353 arg4 = &temp4;
26354 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26355 }
26356 {
26357 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26358 if (PyErr_Occurred()) SWIG_fail;
26359 }
26360 resultobj = SWIG_Py_Void();
26361 return resultobj;
26362fail:
26363 return NULL;
26364}
26365
26366
5c8c7dd3
RD
26367SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26368 int argc;
26369 PyObject *argv[8];
70d7cb34 26370
5c8c7dd3
RD
26371 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26372 --argc;
26373 if (argc == 4) {
26374 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26375 }
5c8c7dd3
RD
26376 if (argc == 7) {
26377 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26378 }
5c8c7dd3 26379
70d7cb34 26380fail:
5c8c7dd3 26381 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26382 return NULL;
26383}
26384
26385
5c8c7dd3 26386SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26387 PyObject *resultobj = 0;
26388 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26389 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26390 void *argp1 = 0 ;
26391 int res1 = 0 ;
5c8c7dd3
RD
26392 void *argp2 = 0 ;
26393 int res2 = 0 ;
70d7cb34
RD
26394 PyObject * obj0 = 0 ;
26395 PyObject * obj1 = 0 ;
26396 char * kwnames[] = {
5c8c7dd3 26397 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26398 };
26399
5c8c7dd3 26400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26402 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26404 }
26405 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26406 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26407 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26409 }
26410 if (!argp2) {
26411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26412 }
5c8c7dd3 26413 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26414 {
5c8c7dd3 26415 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26416 if (PyErr_Occurred()) SWIG_fail;
26417 }
26418 resultobj = SWIG_Py_Void();
26419 return resultobj;
26420fail:
26421 return NULL;
26422}
26423
26424
5c8c7dd3 26425SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26426 PyObject *resultobj = 0;
26427 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26428 void *argp1 = 0 ;
26429 int res1 = 0 ;
5c8c7dd3 26430 PyObject *swig_obj[1] ;
70d7cb34 26431
5c8c7dd3
RD
26432 if (!args) SWIG_fail;
26433 swig_obj[0] = args;
26434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26435 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26437 }
26438 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26439 {
5c8c7dd3 26440 (arg1)->CloseSubpath();
70d7cb34
RD
26441 if (PyErr_Occurred()) SWIG_fail;
26442 }
26443 resultobj = SWIG_Py_Void();
26444 return resultobj;
26445fail:
26446 return NULL;
26447}
26448
26449
5c8c7dd3 26450SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26451 PyObject *resultobj = 0;
26452 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26453 wxPoint2D result;
70d7cb34
RD
26454 void *argp1 = 0 ;
26455 int res1 = 0 ;
26456 PyObject *swig_obj[1] ;
26457
26458 if (!args) SWIG_fail;
26459 swig_obj[0] = args;
26460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26461 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26463 }
26464 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26465 {
5c8c7dd3 26466 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26467 if (PyErr_Occurred()) SWIG_fail;
26468 }
5c8c7dd3 26469 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26470 return resultobj;
26471fail:
26472 return NULL;
26473}
26474
26475
5c8c7dd3 26476SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26477 PyObject *resultobj = 0;
26478 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26479 wxDouble arg2 ;
26480 wxDouble arg3 ;
5c8c7dd3
RD
26481 wxDouble arg4 ;
26482 wxDouble arg5 ;
26483 wxDouble arg6 ;
26484 bool arg7 ;
70d7cb34
RD
26485 void *argp1 = 0 ;
26486 int res1 = 0 ;
26487 double val2 ;
26488 int ecode2 = 0 ;
26489 double val3 ;
26490 int ecode3 = 0 ;
5c8c7dd3 26491 double val4 ;
70d7cb34 26492 int ecode4 = 0 ;
5c8c7dd3
RD
26493 double val5 ;
26494 int ecode5 = 0 ;
26495 double val6 ;
26496 int ecode6 = 0 ;
26497 bool val7 ;
26498 int ecode7 = 0 ;
70d7cb34 26499
5c8c7dd3 26500 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26502 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26504 }
26505 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26506 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26507 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26509 }
26510 arg2 = static_cast< wxDouble >(val2);
26511 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26512 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26514 }
26515 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26516 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26517 if (!SWIG_IsOK(ecode4)) {
26518 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26519 }
26520 arg4 = static_cast< wxDouble >(val4);
26521 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26522 if (!SWIG_IsOK(ecode5)) {
26523 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26524 }
26525 arg5 = static_cast< wxDouble >(val5);
26526 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26527 if (!SWIG_IsOK(ecode6)) {
26528 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26529 }
26530 arg6 = static_cast< wxDouble >(val6);
26531 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26532 if (!SWIG_IsOK(ecode7)) {
26533 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26534 }
26535 arg7 = static_cast< bool >(val7);
70d7cb34 26536 {
5c8c7dd3 26537 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26538 if (PyErr_Occurred()) SWIG_fail;
26539 }
5c8c7dd3 26540 resultobj = SWIG_Py_Void();
70d7cb34
RD
26541 return resultobj;
26542fail:
26543 return NULL;
26544}
26545
26546
5c8c7dd3 26547SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26548 PyObject *resultobj = 0;
26549 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26550 wxPoint2D *arg2 = 0 ;
26551 wxDouble arg3 ;
26552 wxDouble arg4 ;
26553 wxDouble arg5 ;
26554 bool arg6 ;
70d7cb34
RD
26555 void *argp1 = 0 ;
26556 int res1 = 0 ;
5c8c7dd3
RD
26557 wxPoint2D temp2 ;
26558 double val3 ;
70d7cb34 26559 int ecode3 = 0 ;
5c8c7dd3
RD
26560 double val4 ;
26561 int ecode4 = 0 ;
26562 double val5 ;
26563 int ecode5 = 0 ;
26564 bool val6 ;
26565 int ecode6 = 0 ;
70d7cb34 26566
5c8c7dd3 26567 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26569 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26571 }
26572 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26573 {
5c8c7dd3
RD
26574 arg2 = &temp2;
26575 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26576 }
5c8c7dd3
RD
26577 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26578 if (!SWIG_IsOK(ecode3)) {
26579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26580 }
26581 arg3 = static_cast< wxDouble >(val3);
26582 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26583 if (!SWIG_IsOK(ecode4)) {
26584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26585 }
26586 arg4 = static_cast< wxDouble >(val4);
26587 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26588 if (!SWIG_IsOK(ecode5)) {
26589 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26590 }
26591 arg5 = static_cast< wxDouble >(val5);
26592 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26593 if (!SWIG_IsOK(ecode6)) {
26594 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26595 }
26596 arg6 = static_cast< bool >(val6);
70d7cb34 26597 {
5c8c7dd3
RD
26598 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26599 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26600 }
5c8c7dd3 26601 resultobj = SWIG_Py_Void();
70d7cb34
RD
26602 return resultobj;
26603fail:
26604 return NULL;
26605}
26606
26607
5c8c7dd3 26608SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26609 int argc;
5c8c7dd3 26610 PyObject *argv[8];
70d7cb34 26611
5c8c7dd3 26612 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26613 --argc;
5c8c7dd3
RD
26614 if (argc == 6) {
26615 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26616 }
5c8c7dd3
RD
26617 if (argc == 7) {
26618 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26619 }
26620
26621fail:
5c8c7dd3 26622 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26623 return NULL;
26624}
26625
26626
5c8c7dd3 26627SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26628 PyObject *resultobj = 0;
5c8c7dd3
RD
26629 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26630 wxDouble arg2 ;
26631 wxDouble arg3 ;
26632 wxDouble arg4 ;
26633 wxDouble arg5 ;
70d7cb34
RD
26634 void *argp1 = 0 ;
26635 int res1 = 0 ;
5c8c7dd3
RD
26636 double val2 ;
26637 int ecode2 = 0 ;
26638 double val3 ;
26639 int ecode3 = 0 ;
26640 double val4 ;
26641 int ecode4 = 0 ;
26642 double val5 ;
26643 int ecode5 = 0 ;
26644 PyObject * obj0 = 0 ;
26645 PyObject * obj1 = 0 ;
26646 PyObject * obj2 = 0 ;
26647 PyObject * obj3 = 0 ;
26648 PyObject * obj4 = 0 ;
26649 char * kwnames[] = {
26650 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26651 };
70d7cb34 26652
5c8c7dd3
RD
26653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26655 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26657 }
5c8c7dd3
RD
26658 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26659 ecode2 = SWIG_AsVal_double(obj1, &val2);
26660 if (!SWIG_IsOK(ecode2)) {
26661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26662 }
26663 arg2 = static_cast< wxDouble >(val2);
26664 ecode3 = SWIG_AsVal_double(obj2, &val3);
26665 if (!SWIG_IsOK(ecode3)) {
26666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26667 }
26668 arg3 = static_cast< wxDouble >(val3);
26669 ecode4 = SWIG_AsVal_double(obj3, &val4);
26670 if (!SWIG_IsOK(ecode4)) {
26671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26672 }
26673 arg4 = static_cast< wxDouble >(val4);
26674 ecode5 = SWIG_AsVal_double(obj4, &val5);
26675 if (!SWIG_IsOK(ecode5)) {
26676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26677 }
26678 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26679 {
5c8c7dd3 26680 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26681 if (PyErr_Occurred()) SWIG_fail;
26682 }
26683 resultobj = SWIG_Py_Void();
26684 return resultobj;
26685fail:
26686 return NULL;
26687}
26688
26689
5c8c7dd3 26690SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26691 PyObject *resultobj = 0;
5c8c7dd3
RD
26692 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26693 wxDouble arg2 ;
26694 wxDouble arg3 ;
26695 wxDouble arg4 ;
26696 wxDouble arg5 ;
70d7cb34
RD
26697 void *argp1 = 0 ;
26698 int res1 = 0 ;
5c8c7dd3
RD
26699 double val2 ;
26700 int ecode2 = 0 ;
26701 double val3 ;
26702 int ecode3 = 0 ;
26703 double val4 ;
26704 int ecode4 = 0 ;
26705 double val5 ;
26706 int ecode5 = 0 ;
70d7cb34
RD
26707 PyObject * obj0 = 0 ;
26708 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26709 PyObject * obj2 = 0 ;
26710 PyObject * obj3 = 0 ;
26711 PyObject * obj4 = 0 ;
70d7cb34 26712 char * kwnames[] = {
5c8c7dd3 26713 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
26714 };
26715
5c8c7dd3
RD
26716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26718 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26720 }
5c8c7dd3
RD
26721 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26722 ecode2 = SWIG_AsVal_double(obj1, &val2);
26723 if (!SWIG_IsOK(ecode2)) {
26724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26725 }
26726 arg2 = static_cast< wxDouble >(val2);
26727 ecode3 = SWIG_AsVal_double(obj2, &val3);
26728 if (!SWIG_IsOK(ecode3)) {
26729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26730 }
26731 arg3 = static_cast< wxDouble >(val3);
26732 ecode4 = SWIG_AsVal_double(obj3, &val4);
26733 if (!SWIG_IsOK(ecode4)) {
26734 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26735 }
26736 arg4 = static_cast< wxDouble >(val4);
26737 ecode5 = SWIG_AsVal_double(obj4, &val5);
26738 if (!SWIG_IsOK(ecode5)) {
26739 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26740 }
26741 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26742 {
5c8c7dd3 26743 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
26744 if (PyErr_Occurred()) SWIG_fail;
26745 }
26746 resultobj = SWIG_Py_Void();
26747 return resultobj;
26748fail:
26749 return NULL;
26750}
26751
26752
5c8c7dd3 26753SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26754 PyObject *resultobj = 0;
5c8c7dd3
RD
26755 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26756 wxDouble arg2 ;
26757 wxDouble arg3 ;
26758 wxDouble arg4 ;
70d7cb34
RD
26759 void *argp1 = 0 ;
26760 int res1 = 0 ;
5c8c7dd3
RD
26761 double val2 ;
26762 int ecode2 = 0 ;
26763 double val3 ;
26764 int ecode3 = 0 ;
26765 double val4 ;
26766 int ecode4 = 0 ;
70d7cb34
RD
26767 PyObject * obj0 = 0 ;
26768 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26769 PyObject * obj2 = 0 ;
26770 PyObject * obj3 = 0 ;
70d7cb34 26771 char * kwnames[] = {
5c8c7dd3 26772 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
26773 };
26774
5c8c7dd3
RD
26775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26777 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26779 }
5c8c7dd3
RD
26780 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26781 ecode2 = SWIG_AsVal_double(obj1, &val2);
26782 if (!SWIG_IsOK(ecode2)) {
26783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26784 }
26785 arg2 = static_cast< wxDouble >(val2);
26786 ecode3 = SWIG_AsVal_double(obj2, &val3);
26787 if (!SWIG_IsOK(ecode3)) {
26788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26789 }
26790 arg3 = static_cast< wxDouble >(val3);
26791 ecode4 = SWIG_AsVal_double(obj3, &val4);
26792 if (!SWIG_IsOK(ecode4)) {
26793 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26794 }
26795 arg4 = static_cast< wxDouble >(val4);
70d7cb34 26796 {
5c8c7dd3 26797 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
26798 if (PyErr_Occurred()) SWIG_fail;
26799 }
26800 resultobj = SWIG_Py_Void();
26801 return resultobj;
26802fail:
26803 return NULL;
26804}
26805
26806
5c8c7dd3 26807SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26808 PyObject *resultobj = 0;
5c8c7dd3
RD
26809 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26810 wxDouble arg2 ;
26811 wxDouble arg3 ;
26812 wxDouble arg4 ;
26813 wxDouble arg5 ;
26814 wxDouble arg6 ;
70d7cb34
RD
26815 void *argp1 = 0 ;
26816 int res1 = 0 ;
26817 double val2 ;
26818 int ecode2 = 0 ;
26819 double val3 ;
26820 int ecode3 = 0 ;
26821 double val4 ;
26822 int ecode4 = 0 ;
26823 double val5 ;
26824 int ecode5 = 0 ;
26825 double val6 ;
26826 int ecode6 = 0 ;
70d7cb34
RD
26827 PyObject * obj0 = 0 ;
26828 PyObject * obj1 = 0 ;
26829 PyObject * obj2 = 0 ;
26830 PyObject * obj3 = 0 ;
26831 PyObject * obj4 = 0 ;
26832 PyObject * obj5 = 0 ;
70d7cb34 26833 char * kwnames[] = {
5c8c7dd3 26834 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
26835 };
26836
5c8c7dd3
RD
26837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26839 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26841 }
5c8c7dd3
RD
26842 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26843 ecode2 = SWIG_AsVal_double(obj1, &val2);
26844 if (!SWIG_IsOK(ecode2)) {
26845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26846 }
26847 arg2 = static_cast< wxDouble >(val2);
26848 ecode3 = SWIG_AsVal_double(obj2, &val3);
26849 if (!SWIG_IsOK(ecode3)) {
26850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26851 }
26852 arg3 = static_cast< wxDouble >(val3);
26853 ecode4 = SWIG_AsVal_double(obj3, &val4);
26854 if (!SWIG_IsOK(ecode4)) {
26855 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26856 }
26857 arg4 = static_cast< wxDouble >(val4);
26858 ecode5 = SWIG_AsVal_double(obj4, &val5);
26859 if (!SWIG_IsOK(ecode5)) {
26860 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26861 }
26862 arg5 = static_cast< wxDouble >(val5);
26863 ecode6 = SWIG_AsVal_double(obj5, &val6);
26864 if (!SWIG_IsOK(ecode6)) {
26865 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26866 }
26867 arg6 = static_cast< wxDouble >(val6);
70d7cb34 26868 {
5c8c7dd3 26869 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
26870 if (PyErr_Occurred()) SWIG_fail;
26871 }
26872 resultobj = SWIG_Py_Void();
26873 return resultobj;
26874fail:
26875 return NULL;
26876}
26877
26878
5c8c7dd3 26879SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26880 PyObject *resultobj = 0;
5c8c7dd3
RD
26881 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26882 wxDouble arg2 ;
26883 wxDouble arg3 ;
26884 wxDouble arg4 ;
26885 wxDouble arg5 ;
70d7cb34
RD
26886 void *argp1 = 0 ;
26887 int res1 = 0 ;
5c8c7dd3
RD
26888 double val2 ;
26889 int ecode2 = 0 ;
26890 double val3 ;
26891 int ecode3 = 0 ;
26892 double val4 ;
26893 int ecode4 = 0 ;
26894 double val5 ;
26895 int ecode5 = 0 ;
26896 PyObject * obj0 = 0 ;
26897 PyObject * obj1 = 0 ;
26898 PyObject * obj2 = 0 ;
26899 PyObject * obj3 = 0 ;
26900 PyObject * obj4 = 0 ;
26901 char * kwnames[] = {
26902 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26903 };
70d7cb34 26904
5c8c7dd3
RD
26905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26907 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26909 }
5c8c7dd3
RD
26910 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26911 ecode2 = SWIG_AsVal_double(obj1, &val2);
26912 if (!SWIG_IsOK(ecode2)) {
26913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26914 }
26915 arg2 = static_cast< wxDouble >(val2);
26916 ecode3 = SWIG_AsVal_double(obj2, &val3);
26917 if (!SWIG_IsOK(ecode3)) {
26918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26919 }
26920 arg3 = static_cast< wxDouble >(val3);
26921 ecode4 = SWIG_AsVal_double(obj3, &val4);
26922 if (!SWIG_IsOK(ecode4)) {
26923 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26924 }
26925 arg4 = static_cast< wxDouble >(val4);
26926 ecode5 = SWIG_AsVal_double(obj4, &val5);
26927 if (!SWIG_IsOK(ecode5)) {
26928 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26929 }
26930 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26931 {
5c8c7dd3 26932 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
26933 if (PyErr_Occurred()) SWIG_fail;
26934 }
26935 resultobj = SWIG_Py_Void();
26936 return resultobj;
26937fail:
26938 return NULL;
26939}
26940
26941
5c8c7dd3 26942SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26943 PyObject *resultobj = 0;
5c8c7dd3
RD
26944 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26945 wxDouble arg2 ;
26946 wxDouble arg3 ;
26947 wxDouble arg4 ;
26948 wxDouble arg5 ;
26949 wxDouble arg6 ;
70d7cb34
RD
26950 void *argp1 = 0 ;
26951 int res1 = 0 ;
5c8c7dd3
RD
26952 double val2 ;
26953 int ecode2 = 0 ;
26954 double val3 ;
26955 int ecode3 = 0 ;
26956 double val4 ;
26957 int ecode4 = 0 ;
26958 double val5 ;
26959 int ecode5 = 0 ;
26960 double val6 ;
26961 int ecode6 = 0 ;
70d7cb34
RD
26962 PyObject * obj0 = 0 ;
26963 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26964 PyObject * obj2 = 0 ;
26965 PyObject * obj3 = 0 ;
26966 PyObject * obj4 = 0 ;
26967 PyObject * obj5 = 0 ;
70d7cb34 26968 char * kwnames[] = {
5c8c7dd3 26969 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
26970 };
26971
5c8c7dd3
RD
26972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26974 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26976 }
5c8c7dd3
RD
26977 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26978 ecode2 = SWIG_AsVal_double(obj1, &val2);
26979 if (!SWIG_IsOK(ecode2)) {
26980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26981 }
26982 arg2 = static_cast< wxDouble >(val2);
26983 ecode3 = SWIG_AsVal_double(obj2, &val3);
26984 if (!SWIG_IsOK(ecode3)) {
26985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26986 }
26987 arg3 = static_cast< wxDouble >(val3);
26988 ecode4 = SWIG_AsVal_double(obj3, &val4);
26989 if (!SWIG_IsOK(ecode4)) {
26990 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26991 }
26992 arg4 = static_cast< wxDouble >(val4);
26993 ecode5 = SWIG_AsVal_double(obj4, &val5);
26994 if (!SWIG_IsOK(ecode5)) {
26995 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26996 }
26997 arg5 = static_cast< wxDouble >(val5);
26998 ecode6 = SWIG_AsVal_double(obj5, &val6);
26999 if (!SWIG_IsOK(ecode6)) {
27000 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27001 }
27002 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27003 {
5c8c7dd3 27004 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27005 if (PyErr_Occurred()) SWIG_fail;
27006 }
5c8c7dd3 27007 resultobj = SWIG_Py_Void();
70d7cb34
RD
27008 return resultobj;
27009fail:
27010 return NULL;
27011}
27012
27013
5c8c7dd3 27014SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27015 PyObject *resultobj = 0;
5c8c7dd3
RD
27016 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27017 void *result = 0 ;
70d7cb34
RD
27018 void *argp1 = 0 ;
27019 int res1 = 0 ;
27020 PyObject *swig_obj[1] ;
27021
27022 if (!args) SWIG_fail;
27023 swig_obj[0] = args;
5c8c7dd3 27024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27025 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27027 }
5c8c7dd3 27028 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27029 {
5c8c7dd3 27030 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27031 if (PyErr_Occurred()) SWIG_fail;
27032 }
5c8c7dd3 27033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27034 return resultobj;
27035fail:
27036 return NULL;
27037}
27038
27039
5c8c7dd3 27040SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27041 PyObject *resultobj = 0;
5c8c7dd3
RD
27042 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27043 void *arg2 = (void *) 0 ;
70d7cb34
RD
27044 void *argp1 = 0 ;
27045 int res1 = 0 ;
5c8c7dd3 27046 int res2 ;
70d7cb34
RD
27047 PyObject * obj0 = 0 ;
27048 PyObject * obj1 = 0 ;
70d7cb34 27049 char * kwnames[] = {
5c8c7dd3 27050 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27051 };
27052
5c8c7dd3
RD
27053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27055 if (!SWIG_IsOK(res1)) {
5c8c7dd3
RD
27056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27057 }
27058 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27059 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27060 if (!SWIG_IsOK(res2)) {
27061 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27062 }
70d7cb34 27063 {
5c8c7dd3 27064 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27065 if (PyErr_Occurred()) SWIG_fail;
27066 }
27067 resultobj = SWIG_Py_Void();
27068 return resultobj;
27069fail:
27070 return NULL;
27071}
27072
27073
5c8c7dd3 27074SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27075 PyObject *resultobj = 0;
5c8c7dd3
RD
27076 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27077 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27078 void *argp1 = 0 ;
27079 int res1 = 0 ;
5c8c7dd3
RD
27080 void *argp2 = 0 ;
27081 int res2 = 0 ;
70d7cb34
RD
27082 PyObject * obj0 = 0 ;
27083 PyObject * obj1 = 0 ;
70d7cb34 27084 char * kwnames[] = {
5c8c7dd3 27085 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27086 };
27087
5c8c7dd3
RD
27088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27090 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27092 }
5c8c7dd3
RD
27093 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27094 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27095 if (!SWIG_IsOK(res2)) {
27096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27097 }
27098 if (!argp2) {
27099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27100 }
27101 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27102 {
5c8c7dd3 27103 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27104 if (PyErr_Occurred()) SWIG_fail;
27105 }
27106 resultobj = SWIG_Py_Void();
27107 return resultobj;
27108fail:
27109 return NULL;
27110}
27111
27112
5c8c7dd3 27113SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27114 PyObject *resultobj = 0;
5c8c7dd3
RD
27115 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27116 wxRect2DDouble result;
70d7cb34
RD
27117 void *argp1 = 0 ;
27118 int res1 = 0 ;
5c8c7dd3 27119 PyObject *swig_obj[1] ;
70d7cb34 27120
5c8c7dd3
RD
27121 if (!args) SWIG_fail;
27122 swig_obj[0] = args;
27123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27124 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27126 }
5c8c7dd3 27127 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27128 {
5c8c7dd3 27129 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27130 if (PyErr_Occurred()) SWIG_fail;
27131 }
5c8c7dd3 27132 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27133 return resultobj;
27134fail:
27135 return NULL;
27136}
27137
27138
5c8c7dd3 27139SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27140 PyObject *resultobj = 0;
5c8c7dd3
RD
27141 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27142 wxDouble arg2 ;
27143 wxDouble arg3 ;
27144 int arg4 = (int) wxODDEVEN_RULE ;
27145 bool result;
70d7cb34
RD
27146 void *argp1 = 0 ;
27147 int res1 = 0 ;
5c8c7dd3
RD
27148 double val2 ;
27149 int ecode2 = 0 ;
27150 double val3 ;
27151 int ecode3 = 0 ;
27152 int val4 ;
27153 int ecode4 = 0 ;
70d7cb34 27154
5c8c7dd3
RD
27155 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27157 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27159 }
5c8c7dd3
RD
27160 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27161 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27162 if (!SWIG_IsOK(ecode2)) {
27163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27164 }
27165 arg2 = static_cast< wxDouble >(val2);
27166 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27167 if (!SWIG_IsOK(ecode3)) {
27168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27169 }
27170 arg3 = static_cast< wxDouble >(val3);
27171 if (swig_obj[3]) {
27172 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27173 if (!SWIG_IsOK(ecode4)) {
27174 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27175 }
27176 arg4 = static_cast< int >(val4);
70d7cb34
RD
27177 }
27178 {
5c8c7dd3 27179 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27180 if (PyErr_Occurred()) SWIG_fail;
27181 }
5c8c7dd3
RD
27182 {
27183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27184 }
27185 return resultobj;
27186fail:
27187 return NULL;
27188}
27189
27190
5c8c7dd3 27191SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27192 PyObject *resultobj = 0;
5c8c7dd3
RD
27193 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27194 wxPoint2DDouble *arg2 = 0 ;
27195 int arg3 = (int) wxODDEVEN_RULE ;
27196 bool result;
70d7cb34
RD
27197 void *argp1 = 0 ;
27198 int res1 = 0 ;
5c8c7dd3 27199 void *argp2 = 0 ;
70d7cb34 27200 int res2 = 0 ;
5c8c7dd3
RD
27201 int val3 ;
27202 int ecode3 = 0 ;
70d7cb34 27203
5c8c7dd3
RD
27204 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27206 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27208 }
5c8c7dd3
RD
27209 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27210 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27211 if (!SWIG_IsOK(res2)) {
27212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 27213 }
5c8c7dd3
RD
27214 if (!argp2) {
27215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27216 }
27217 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27218 if (swig_obj[2]) {
27219 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27220 if (!SWIG_IsOK(ecode3)) {
27221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27222 }
27223 arg3 = static_cast< int >(val3);
70d7cb34
RD
27224 }
27225 {
5c8c7dd3 27226 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
27227 if (PyErr_Occurred()) SWIG_fail;
27228 }
5c8c7dd3
RD
27229 {
27230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27231 }
27232 return resultobj;
27233fail:
27234 return NULL;
27235}
27236
27237
5c8c7dd3
RD
27238SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27239 int argc;
27240 PyObject *argv[5];
70d7cb34 27241
5c8c7dd3
RD
27242 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27243 --argc;
27244 if ((argc >= 2) && (argc <= 3)) {
27245 int _v = 0;
27246 {
27247 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27248 _v = SWIG_CheckState(res);
27249 }
27250 if (!_v) goto check_1;
27251 if (argc > 2) {
27252 {
27253 {
27254 int res = SWIG_AsVal_int(argv[2], NULL);
27255 _v = SWIG_CheckState(res);
27256 }
27257 }
27258 if (!_v) goto check_1;
27259 }
27260 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27261 }
5c8c7dd3
RD
27262check_1:
27263
27264 if ((argc >= 3) && (argc <= 4)) {
27265 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27266 }
5c8c7dd3 27267
70d7cb34 27268fail:
5c8c7dd3 27269 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27270 return NULL;
27271}
27272
27273
5c8c7dd3 27274SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27275 PyObject *obj;
27276 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27277 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27278 return SWIG_Py_Void();
27279}
27280
8f514ab4
RD
27281SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27282 return SWIG_Python_InitShadowInstance(args);
27283}
27284
5c8c7dd3
RD
27285SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27286 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27287 return 1;
27288}
27289
27290
27291SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27292 PyObject *pyobj = 0;
27293
27294 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27295 return pyobj;
27296}
27297
27298
27299SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27300 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27301 return 1;
27302}
27303
27304
27305SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27306 PyObject *pyobj = 0;
27307
27308 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27309 return pyobj;
27310}
27311
27312
27313SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27314 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27315 return 1;
27316}
27317
27318
27319SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27320 PyObject *pyobj = 0;
27321
27322 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27323 return pyobj;
27324}
27325
27326
27327SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27328 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27329 return 1;
27330}
27331
27332
27333SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27334 PyObject *pyobj = 0;
27335
27336 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27337 return pyobj;
27338}
27339
27340
27341SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27342 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27343 return 1;
27344}
27345
27346
27347SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27348 PyObject *pyobj = 0;
27349
27350 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27351 return pyobj;
27352}
27353
27354
70d7cb34
RD
27355SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27356 PyObject *resultobj = 0;
27357 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27358 void *argp1 = 0 ;
27359 int res1 = 0 ;
27360 PyObject *swig_obj[1] ;
27361
27362 if (!args) SWIG_fail;
27363 swig_obj[0] = args;
27364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27365 if (!SWIG_IsOK(res1)) {
27366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27367 }
27368 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27369 {
27370 delete arg1;
27371
27372 if (PyErr_Occurred()) SWIG_fail;
27373 }
27374 resultobj = SWIG_Py_Void();
27375 return resultobj;
27376fail:
27377 return NULL;
27378}
27379
27380
27381SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27382 PyObject *resultobj = 0;
27383 wxWindowDC *arg1 = 0 ;
27384 wxGraphicsContext *result = 0 ;
27385 void *argp1 = 0 ;
27386 int res1 = 0 ;
27387
27388 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27390 if (!SWIG_IsOK(res1)) {
27391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27392 }
27393 if (!argp1) {
27394 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27395 }
27396 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27397 {
27398 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27399 if (PyErr_Occurred()) SWIG_fail;
27400 }
27401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27402 return resultobj;
27403fail:
27404 return NULL;
27405}
27406
27407
27408SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27409 PyObject *resultobj = 0;
27410 wxWindow *arg1 = (wxWindow *) 0 ;
27411 wxGraphicsContext *result = 0 ;
27412 void *argp1 = 0 ;
27413 int res1 = 0 ;
27414
27415 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27417 if (!SWIG_IsOK(res1)) {
27418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27419 }
27420 arg1 = reinterpret_cast< wxWindow * >(argp1);
27421 {
27422 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27423 if (PyErr_Occurred()) SWIG_fail;
27424 }
27425 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27426 return resultobj;
27427fail:
27428 return NULL;
27429}
27430
27431
27432SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27433 int argc;
27434 PyObject *argv[2];
27435
27436 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27437 --argc;
27438 if (argc == 1) {
27439 int _v = 0;
27440 {
27441 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27442 _v = SWIG_CheckState(res);
27443 }
27444 if (!_v) goto check_1;
27445 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27446 }
27447check_1:
27448
27449 if (argc == 1) {
27450 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27451 }
27452
27453fail:
27454 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27455 return NULL;
27456}
27457
27458
f89238b9
RD
27459SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27460 PyObject *resultobj = 0;
27461 wxGraphicsContext *result = 0 ;
27462
27463 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27464 {
27465 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27466 if (PyErr_Occurred()) SWIG_fail;
27467 }
27468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27469 return resultobj;
27470fail:
27471 return NULL;
27472}
27473
27474
70d7cb34
RD
27475SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27476 PyObject *resultobj = 0;
27477 void *arg1 = (void *) 0 ;
27478 wxGraphicsContext *result = 0 ;
27479 int res1 ;
27480 PyObject * obj0 = 0 ;
27481 char * kwnames[] = {
27482 (char *) "context", NULL
27483 };
27484
27485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27486 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27487 if (!SWIG_IsOK(res1)) {
27488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27489 }
27490 {
27491 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27492 if (PyErr_Occurred()) SWIG_fail;
27493 }
27494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27495 return resultobj;
27496fail:
27497 return NULL;
27498}
27499
27500
27501SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27502 PyObject *resultobj = 0;
27503 void *arg1 = (void *) 0 ;
27504 wxGraphicsContext *result = 0 ;
27505 int res1 ;
27506 PyObject * obj0 = 0 ;
27507 char * kwnames[] = {
27508 (char *) "window", NULL
27509 };
27510
27511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27512 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27513 if (!SWIG_IsOK(res1)) {
27514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27515 }
27516 {
27517 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27518 if (PyErr_Occurred()) SWIG_fail;
27519 }
27520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27521 return resultobj;
27522fail:
27523 return NULL;
27524}
27525
27526
27527SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27528 PyObject *resultobj = 0;
27529 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27530 wxGraphicsPath result;
70d7cb34
RD
27531 void *argp1 = 0 ;
27532 int res1 = 0 ;
27533 PyObject *swig_obj[1] ;
27534
27535 if (!args) SWIG_fail;
27536 swig_obj[0] = args;
27537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27538 if (!SWIG_IsOK(res1)) {
27539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27540 }
27541 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27542 {
5c8c7dd3 27543 result = (arg1)->CreatePath();
70d7cb34
RD
27544 if (PyErr_Occurred()) SWIG_fail;
27545 }
5c8c7dd3 27546 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27547 return resultobj;
27548fail:
27549 return NULL;
27550}
27551
27552
70d7cb34 27553SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27554 PyObject *resultobj = 0;
70d7cb34
RD
27555 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27556 wxPen *arg2 = 0 ;
27557 wxGraphicsPen result;
72ef6efb
RD
27558 void *argp1 = 0 ;
27559 int res1 = 0 ;
70d7cb34
RD
27560 void *argp2 = 0 ;
27561 int res2 = 0 ;
72ef6efb
RD
27562 PyObject * obj0 = 0 ;
27563 PyObject * obj1 = 0 ;
72ef6efb 27564 char * kwnames[] = {
70d7cb34 27565 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27566 };
27567
70d7cb34
RD
27568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27570 if (!SWIG_IsOK(res1)) {
70d7cb34 27571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27572 }
70d7cb34
RD
27573 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27574 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27575 if (!SWIG_IsOK(res2)) {
27576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27577 }
27578 if (!argp2) {
27579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27580 }
27581 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27582 {
70d7cb34 27583 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27584 if (PyErr_Occurred()) SWIG_fail;
27585 }
70d7cb34 27586 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27587 return resultobj;
27588fail:
27589 return NULL;
27590}
27591
27592
70d7cb34 27593SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27594 PyObject *resultobj = 0;
70d7cb34
RD
27595 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27596 wxBrush *arg2 = 0 ;
27597 wxGraphicsBrush result;
72ef6efb
RD
27598 void *argp1 = 0 ;
27599 int res1 = 0 ;
70d7cb34
RD
27600 void *argp2 = 0 ;
27601 int res2 = 0 ;
72ef6efb
RD
27602 PyObject * obj0 = 0 ;
27603 PyObject * obj1 = 0 ;
72ef6efb 27604 char * kwnames[] = {
70d7cb34 27605 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27606 };
27607
70d7cb34
RD
27608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27610 if (!SWIG_IsOK(res1)) {
70d7cb34 27611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27612 }
70d7cb34
RD
27613 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27615 if (!SWIG_IsOK(res2)) {
27616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27617 }
27618 if (!argp2) {
27619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27620 }
27621 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27622 {
70d7cb34 27623 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27624 if (PyErr_Occurred()) SWIG_fail;
27625 }
70d7cb34 27626 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27627 return resultobj;
27628fail:
27629 return NULL;
27630}
27631
27632
70d7cb34 27633SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27634 PyObject *resultobj = 0;
70d7cb34 27635 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27636 wxDouble arg2 ;
27637 wxDouble arg3 ;
27638 wxDouble arg4 ;
27639 wxDouble arg5 ;
70d7cb34
RD
27640 wxColour *arg6 = 0 ;
27641 wxColour *arg7 = 0 ;
27642 wxGraphicsBrush result;
72ef6efb
RD
27643 void *argp1 = 0 ;
27644 int res1 = 0 ;
27645 double val2 ;
27646 int ecode2 = 0 ;
27647 double val3 ;
27648 int ecode3 = 0 ;
27649 double val4 ;
27650 int ecode4 = 0 ;
27651 double val5 ;
27652 int ecode5 = 0 ;
70d7cb34
RD
27653 wxColour temp6 ;
27654 wxColour temp7 ;
72ef6efb
RD
27655 PyObject * obj0 = 0 ;
27656 PyObject * obj1 = 0 ;
27657 PyObject * obj2 = 0 ;
27658 PyObject * obj3 = 0 ;
27659 PyObject * obj4 = 0 ;
70d7cb34
RD
27660 PyObject * obj5 = 0 ;
27661 PyObject * obj6 = 0 ;
72ef6efb 27662 char * kwnames[] = {
70d7cb34 27663 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27664 };
27665
70d7cb34
RD
27666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27668 if (!SWIG_IsOK(res1)) {
70d7cb34 27669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27670 }
70d7cb34 27671 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27672 ecode2 = SWIG_AsVal_double(obj1, &val2);
27673 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27675 }
27676 arg2 = static_cast< wxDouble >(val2);
27677 ecode3 = SWIG_AsVal_double(obj2, &val3);
27678 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27680 }
27681 arg3 = static_cast< wxDouble >(val3);
27682 ecode4 = SWIG_AsVal_double(obj3, &val4);
27683 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27684 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27685 }
27686 arg4 = static_cast< wxDouble >(val4);
27687 ecode5 = SWIG_AsVal_double(obj4, &val5);
27688 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27689 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27690 }
27691 arg5 = static_cast< wxDouble >(val5);
27692 {
70d7cb34
RD
27693 arg6 = &temp6;
27694 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27695 }
70d7cb34
RD
27696 {
27697 arg7 = &temp7;
27698 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27699 }
72ef6efb 27700 {
70d7cb34 27701 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27702 if (PyErr_Occurred()) SWIG_fail;
27703 }
70d7cb34 27704 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27705 return resultobj;
27706fail:
27707 return NULL;
27708}
27709
27710
70d7cb34 27711SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27712 PyObject *resultobj = 0;
70d7cb34 27713 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27714 wxDouble arg2 ;
27715 wxDouble arg3 ;
27716 wxDouble arg4 ;
27717 wxDouble arg5 ;
27718 wxDouble arg6 ;
70d7cb34
RD
27719 wxColour *arg7 = 0 ;
27720 wxColour *arg8 = 0 ;
27721 wxGraphicsBrush result;
72ef6efb
RD
27722 void *argp1 = 0 ;
27723 int res1 = 0 ;
27724 double val2 ;
27725 int ecode2 = 0 ;
27726 double val3 ;
27727 int ecode3 = 0 ;
27728 double val4 ;
27729 int ecode4 = 0 ;
27730 double val5 ;
27731 int ecode5 = 0 ;
27732 double val6 ;
27733 int ecode6 = 0 ;
70d7cb34
RD
27734 wxColour temp7 ;
27735 wxColour temp8 ;
72ef6efb
RD
27736 PyObject * obj0 = 0 ;
27737 PyObject * obj1 = 0 ;
27738 PyObject * obj2 = 0 ;
27739 PyObject * obj3 = 0 ;
27740 PyObject * obj4 = 0 ;
27741 PyObject * obj5 = 0 ;
70d7cb34
RD
27742 PyObject * obj6 = 0 ;
27743 PyObject * obj7 = 0 ;
72ef6efb 27744 char * kwnames[] = {
70d7cb34 27745 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27746 };
27747
70d7cb34
RD
27748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27750 if (!SWIG_IsOK(res1)) {
70d7cb34 27751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27752 }
70d7cb34 27753 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27754 ecode2 = SWIG_AsVal_double(obj1, &val2);
27755 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27757 }
27758 arg2 = static_cast< wxDouble >(val2);
27759 ecode3 = SWIG_AsVal_double(obj2, &val3);
27760 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27762 }
27763 arg3 = static_cast< wxDouble >(val3);
27764 ecode4 = SWIG_AsVal_double(obj3, &val4);
27765 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27766 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27767 }
27768 arg4 = static_cast< wxDouble >(val4);
27769 ecode5 = SWIG_AsVal_double(obj4, &val5);
27770 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27771 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27772 }
27773 arg5 = static_cast< wxDouble >(val5);
27774 ecode6 = SWIG_AsVal_double(obj5, &val6);
27775 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27776 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27777 }
27778 arg6 = static_cast< wxDouble >(val6);
27779 {
70d7cb34
RD
27780 arg7 = &temp7;
27781 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27782 }
27783 {
27784 arg8 = &temp8;
27785 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27786 }
27787 {
27788 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
27789 if (PyErr_Occurred()) SWIG_fail;
27790 }
70d7cb34 27791 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27792 return resultobj;
27793fail:
27794 return NULL;
27795}
27796
27797
70d7cb34 27798SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27799 PyObject *resultobj = 0;
27800 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
27801 wxFont *arg2 = 0 ;
27802 wxColour const &arg3_defvalue = *wxBLACK ;
27803 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27804 wxGraphicsFont result;
72ef6efb
RD
27805 void *argp1 = 0 ;
27806 int res1 = 0 ;
70d7cb34
RD
27807 void *argp2 = 0 ;
27808 int res2 = 0 ;
27809 wxColour temp3 ;
27810 PyObject * obj0 = 0 ;
27811 PyObject * obj1 = 0 ;
27812 PyObject * obj2 = 0 ;
27813 char * kwnames[] = {
27814 (char *) "self",(char *) "font",(char *) "col", NULL
27815 };
72ef6efb 27816
70d7cb34
RD
27817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27819 if (!SWIG_IsOK(res1)) {
70d7cb34 27820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27821 }
27822 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
27823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27824 if (!SWIG_IsOK(res2)) {
27825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27826 }
70d7cb34
RD
27827 if (!argp2) {
27828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27829 }
70d7cb34
RD
27830 arg2 = reinterpret_cast< wxFont * >(argp2);
27831 if (obj2) {
27832 {
27833 arg3 = &temp3;
27834 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27835 }
72ef6efb 27836 }
72ef6efb 27837 {
70d7cb34 27838 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
27839 if (PyErr_Occurred()) SWIG_fail;
27840 }
70d7cb34 27841 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27842 return resultobj;
27843fail:
27844 return NULL;
27845}
27846
27847
70d7cb34 27848SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 27849 PyObject *resultobj = 0;
70d7cb34
RD
27850 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27851 wxDouble arg2 = (wxDouble) 1.0 ;
27852 wxDouble arg3 = (wxDouble) 0.0 ;
27853 wxDouble arg4 = (wxDouble) 0.0 ;
27854 wxDouble arg5 = (wxDouble) 1.0 ;
27855 wxDouble arg6 = (wxDouble) 0.0 ;
27856 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 27857 wxGraphicsMatrix result;
0a27f394
RD
27858 void *argp1 = 0 ;
27859 int res1 = 0 ;
70d7cb34
RD
27860 double val2 ;
27861 int ecode2 = 0 ;
27862 double val3 ;
27863 int ecode3 = 0 ;
27864 double val4 ;
27865 int ecode4 = 0 ;
27866 double val5 ;
27867 int ecode5 = 0 ;
27868 double val6 ;
27869 int ecode6 = 0 ;
27870 double val7 ;
27871 int ecode7 = 0 ;
27872 PyObject * obj0 = 0 ;
27873 PyObject * obj1 = 0 ;
27874 PyObject * obj2 = 0 ;
27875 PyObject * obj3 = 0 ;
27876 PyObject * obj4 = 0 ;
27877 PyObject * obj5 = 0 ;
27878 PyObject * obj6 = 0 ;
27879 char * kwnames[] = {
27880 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27881 };
0a27f394 27882
70d7cb34
RD
27883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 27885 if (!SWIG_IsOK(res1)) {
70d7cb34 27886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 27887 }
70d7cb34
RD
27888 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27889 if (obj1) {
27890 ecode2 = SWIG_AsVal_double(obj1, &val2);
27891 if (!SWIG_IsOK(ecode2)) {
27892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
27893 }
27894 arg2 = static_cast< wxDouble >(val2);
0a27f394 27895 }
70d7cb34
RD
27896 if (obj2) {
27897 ecode3 = SWIG_AsVal_double(obj2, &val3);
27898 if (!SWIG_IsOK(ecode3)) {
27899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
27900 }
27901 arg3 = static_cast< wxDouble >(val3);
0a27f394 27902 }
70d7cb34
RD
27903 if (obj3) {
27904 ecode4 = SWIG_AsVal_double(obj3, &val4);
27905 if (!SWIG_IsOK(ecode4)) {
27906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
27907 }
27908 arg4 = static_cast< wxDouble >(val4);
0a27f394 27909 }
70d7cb34
RD
27910 if (obj4) {
27911 ecode5 = SWIG_AsVal_double(obj4, &val5);
27912 if (!SWIG_IsOK(ecode5)) {
27913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
27914 }
27915 arg5 = static_cast< wxDouble >(val5);
0a27f394 27916 }
70d7cb34
RD
27917 if (obj5) {
27918 ecode6 = SWIG_AsVal_double(obj5, &val6);
27919 if (!SWIG_IsOK(ecode6)) {
27920 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
27921 }
27922 arg6 = static_cast< wxDouble >(val6);
0a27f394 27923 }
70d7cb34
RD
27924 if (obj6) {
27925 ecode7 = SWIG_AsVal_double(obj6, &val7);
27926 if (!SWIG_IsOK(ecode7)) {
27927 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
27928 }
27929 arg7 = static_cast< wxDouble >(val7);
72ef6efb 27930 }
72ef6efb 27931 {
5c8c7dd3 27932 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
27933 if (PyErr_Occurred()) SWIG_fail;
27934 }
5c8c7dd3 27935 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27936 return resultobj;
27937fail:
27938 return NULL;
27939}
27940
27941
27942SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27943 PyObject *resultobj = 0;
27944 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27945 void *argp1 = 0 ;
27946 int res1 = 0 ;
27947 PyObject *swig_obj[1] ;
27948
27949 if (!args) SWIG_fail;
27950 swig_obj[0] = args;
27951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27952 if (!SWIG_IsOK(res1)) {
27953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27954 }
27955 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27956 {
72ef6efb 27957 (arg1)->PushState();
72ef6efb
RD
27958 if (PyErr_Occurred()) SWIG_fail;
27959 }
27960 resultobj = SWIG_Py_Void();
27961 return resultobj;
27962fail:
27963 return NULL;
27964}
27965
27966
27967SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27968 PyObject *resultobj = 0;
27969 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27970 void *argp1 = 0 ;
27971 int res1 = 0 ;
27972 PyObject *swig_obj[1] ;
27973
27974 if (!args) SWIG_fail;
27975 swig_obj[0] = args;
27976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27977 if (!SWIG_IsOK(res1)) {
27978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27979 }
27980 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27981 {
72ef6efb 27982 (arg1)->PopState();
72ef6efb
RD
27983 if (PyErr_Occurred()) SWIG_fail;
27984 }
27985 resultobj = SWIG_Py_Void();
27986 return resultobj;
27987fail:
27988 return NULL;
27989}
27990
27991
0a27f394 27992SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27993 PyObject *resultobj = 0;
27994 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27995 wxRegion *arg2 = 0 ;
27996 void *argp1 = 0 ;
27997 int res1 = 0 ;
27998 void *argp2 = 0 ;
27999 int res2 = 0 ;
28000 PyObject * obj0 = 0 ;
28001 PyObject * obj1 = 0 ;
28002 char * kwnames[] = {
28003 (char *) "self",(char *) "region", NULL
28004 };
28005
0a27f394 28006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28008 if (!SWIG_IsOK(res1)) {
0a27f394 28009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28010 }
28011 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28013 if (!SWIG_IsOK(res2)) {
0a27f394 28014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28015 }
28016 if (!argp2) {
0a27f394 28017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28018 }
28019 arg2 = reinterpret_cast< wxRegion * >(argp2);
28020 {
72ef6efb 28021 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28022 if (PyErr_Occurred()) SWIG_fail;
28023 }
28024 resultobj = SWIG_Py_Void();
28025 return resultobj;
28026fail:
28027 return NULL;
28028}
28029
28030
0a27f394
RD
28031SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28032 PyObject *resultobj = 0;
28033 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28034 wxDouble arg2 ;
28035 wxDouble arg3 ;
28036 wxDouble arg4 ;
28037 wxDouble arg5 ;
28038 void *argp1 = 0 ;
28039 int res1 = 0 ;
28040 double val2 ;
28041 int ecode2 = 0 ;
28042 double val3 ;
28043 int ecode3 = 0 ;
28044 double val4 ;
28045 int ecode4 = 0 ;
28046 double val5 ;
28047 int ecode5 = 0 ;
28048 PyObject * obj0 = 0 ;
28049 PyObject * obj1 = 0 ;
28050 PyObject * obj2 = 0 ;
28051 PyObject * obj3 = 0 ;
28052 PyObject * obj4 = 0 ;
28053 char * kwnames[] = {
28054 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28055 };
28056
28057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28059 if (!SWIG_IsOK(res1)) {
28060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28061 }
28062 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28063 ecode2 = SWIG_AsVal_double(obj1, &val2);
28064 if (!SWIG_IsOK(ecode2)) {
28065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28066 }
28067 arg2 = static_cast< wxDouble >(val2);
28068 ecode3 = SWIG_AsVal_double(obj2, &val3);
28069 if (!SWIG_IsOK(ecode3)) {
28070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28071 }
28072 arg3 = static_cast< wxDouble >(val3);
28073 ecode4 = SWIG_AsVal_double(obj3, &val4);
28074 if (!SWIG_IsOK(ecode4)) {
28075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28076 }
28077 arg4 = static_cast< wxDouble >(val4);
28078 ecode5 = SWIG_AsVal_double(obj4, &val5);
28079 if (!SWIG_IsOK(ecode5)) {
28080 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28081 }
28082 arg5 = static_cast< wxDouble >(val5);
28083 {
28084 (arg1)->Clip(arg2,arg3,arg4,arg5);
28085 if (PyErr_Occurred()) SWIG_fail;
28086 }
28087 resultobj = SWIG_Py_Void();
28088 return resultobj;
28089fail:
28090 return NULL;
28091}
28092
28093
28094SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28095 PyObject *resultobj = 0;
28096 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28097 void *argp1 = 0 ;
28098 int res1 = 0 ;
28099 PyObject *swig_obj[1] ;
28100
28101 if (!args) SWIG_fail;
28102 swig_obj[0] = args;
28103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28104 if (!SWIG_IsOK(res1)) {
28105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28106 }
28107 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28108 {
28109 (arg1)->ResetClip();
28110 if (PyErr_Occurred()) SWIG_fail;
28111 }
28112 resultobj = SWIG_Py_Void();
28113 return resultobj;
28114fail:
28115 return NULL;
28116}
28117
28118
28119SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28120 PyObject *resultobj = 0;
28121 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28122 void *result = 0 ;
28123 void *argp1 = 0 ;
28124 int res1 = 0 ;
28125 PyObject *swig_obj[1] ;
28126
28127 if (!args) SWIG_fail;
28128 swig_obj[0] = args;
28129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28130 if (!SWIG_IsOK(res1)) {
28131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28132 }
28133 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28134 {
28135 result = (void *)(arg1)->GetNativeContext();
28136 if (PyErr_Occurred()) SWIG_fail;
28137 }
28138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28139 return resultobj;
28140fail:
28141 return NULL;
28142}
28143
28144
72ef6efb
RD
28145SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28146 PyObject *resultobj = 0;
28147 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28148 wxDouble arg2 ;
28149 wxDouble arg3 ;
28150 void *argp1 = 0 ;
28151 int res1 = 0 ;
28152 double val2 ;
28153 int ecode2 = 0 ;
28154 double val3 ;
28155 int ecode3 = 0 ;
28156 PyObject * obj0 = 0 ;
28157 PyObject * obj1 = 0 ;
28158 PyObject * obj2 = 0 ;
28159 char * kwnames[] = {
28160 (char *) "self",(char *) "dx",(char *) "dy", NULL
28161 };
28162
28163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28165 if (!SWIG_IsOK(res1)) {
28166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28167 }
28168 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28169 ecode2 = SWIG_AsVal_double(obj1, &val2);
28170 if (!SWIG_IsOK(ecode2)) {
28171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28172 }
28173 arg2 = static_cast< wxDouble >(val2);
28174 ecode3 = SWIG_AsVal_double(obj2, &val3);
28175 if (!SWIG_IsOK(ecode3)) {
28176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28177 }
28178 arg3 = static_cast< wxDouble >(val3);
28179 {
72ef6efb 28180 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28181 if (PyErr_Occurred()) SWIG_fail;
28182 }
28183 resultobj = SWIG_Py_Void();
28184 return resultobj;
28185fail:
28186 return NULL;
28187}
28188
28189
28190SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28191 PyObject *resultobj = 0;
28192 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28193 wxDouble arg2 ;
28194 wxDouble arg3 ;
28195 void *argp1 = 0 ;
28196 int res1 = 0 ;
28197 double val2 ;
28198 int ecode2 = 0 ;
28199 double val3 ;
28200 int ecode3 = 0 ;
28201 PyObject * obj0 = 0 ;
28202 PyObject * obj1 = 0 ;
28203 PyObject * obj2 = 0 ;
28204 char * kwnames[] = {
28205 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28206 };
28207
28208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28210 if (!SWIG_IsOK(res1)) {
28211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28212 }
28213 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28214 ecode2 = SWIG_AsVal_double(obj1, &val2);
28215 if (!SWIG_IsOK(ecode2)) {
28216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28217 }
28218 arg2 = static_cast< wxDouble >(val2);
28219 ecode3 = SWIG_AsVal_double(obj2, &val3);
28220 if (!SWIG_IsOK(ecode3)) {
28221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28222 }
28223 arg3 = static_cast< wxDouble >(val3);
28224 {
72ef6efb 28225 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28226 if (PyErr_Occurred()) SWIG_fail;
28227 }
28228 resultobj = SWIG_Py_Void();
28229 return resultobj;
28230fail:
28231 return NULL;
28232}
28233
28234
28235SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28236 PyObject *resultobj = 0;
28237 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28238 wxDouble arg2 ;
28239 void *argp1 = 0 ;
28240 int res1 = 0 ;
28241 double val2 ;
28242 int ecode2 = 0 ;
28243 PyObject * obj0 = 0 ;
28244 PyObject * obj1 = 0 ;
28245 char * kwnames[] = {
28246 (char *) "self",(char *) "angle", NULL
28247 };
28248
28249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28251 if (!SWIG_IsOK(res1)) {
28252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28253 }
28254 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28255 ecode2 = SWIG_AsVal_double(obj1, &val2);
28256 if (!SWIG_IsOK(ecode2)) {
28257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28258 }
28259 arg2 = static_cast< wxDouble >(val2);
28260 {
72ef6efb 28261 (arg1)->Rotate(arg2);
72ef6efb
RD
28262 if (PyErr_Occurred()) SWIG_fail;
28263 }
28264 resultobj = SWIG_Py_Void();
28265 return resultobj;
28266fail:
28267 return NULL;
28268}
28269
28270
5c8c7dd3
RD
28271SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28272 PyObject *resultobj = 0;
28273 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28274 wxGraphicsMatrix *arg2 = 0 ;
28275 void *argp1 = 0 ;
28276 int res1 = 0 ;
28277 void *argp2 = 0 ;
28278 int res2 = 0 ;
28279 PyObject * obj0 = 0 ;
28280 PyObject * obj1 = 0 ;
28281 char * kwnames[] = {
28282 (char *) "self",(char *) "matrix", NULL
28283 };
28284
28285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28287 if (!SWIG_IsOK(res1)) {
28288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28289 }
28290 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28291 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28292 if (!SWIG_IsOK(res2)) {
28293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28294 }
28295 if (!argp2) {
28296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28297 }
28298 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28299 {
28300 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28301 if (PyErr_Occurred()) SWIG_fail;
28302 }
28303 resultobj = SWIG_Py_Void();
28304 return resultobj;
28305fail:
28306 return NULL;
28307}
28308
28309
28310SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28311 PyObject *resultobj = 0;
28312 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28313 wxGraphicsMatrix *arg2 = 0 ;
28314 void *argp1 = 0 ;
28315 int res1 = 0 ;
28316 void *argp2 = 0 ;
28317 int res2 = 0 ;
28318 PyObject * obj0 = 0 ;
28319 PyObject * obj1 = 0 ;
28320 char * kwnames[] = {
28321 (char *) "self",(char *) "matrix", NULL
28322 };
28323
28324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28326 if (!SWIG_IsOK(res1)) {
28327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28328 }
28329 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28330 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28331 if (!SWIG_IsOK(res2)) {
28332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28333 }
28334 if (!argp2) {
28335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28336 }
28337 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28338 {
28339 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28340 if (PyErr_Occurred()) SWIG_fail;
28341 }
28342 resultobj = SWIG_Py_Void();
28343 return resultobj;
28344fail:
28345 return NULL;
28346}
28347
28348
28349SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28350 PyObject *resultobj = 0;
28351 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28352 wxGraphicsMatrix result;
28353 void *argp1 = 0 ;
28354 int res1 = 0 ;
28355 PyObject *swig_obj[1] ;
28356
28357 if (!args) SWIG_fail;
28358 swig_obj[0] = args;
28359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28360 if (!SWIG_IsOK(res1)) {
28361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28362 }
28363 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28364 {
28365 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28366 if (PyErr_Occurred()) SWIG_fail;
28367 }
28368 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28369 return resultobj;
28370fail:
28371 return NULL;
28372}
28373
28374
70d7cb34
RD
28375SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28376 PyObject *resultobj = 0;
28377 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28378 wxGraphicsPen *arg2 = 0 ;
28379 void *argp1 = 0 ;
28380 int res1 = 0 ;
28381 void *argp2 = 0 ;
28382 int res2 = 0 ;
28383
28384 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28386 if (!SWIG_IsOK(res1)) {
28387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28388 }
28389 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28390 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28391 if (!SWIG_IsOK(res2)) {
28392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28393 }
28394 if (!argp2) {
28395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28396 }
28397 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28398 {
28399 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28400 if (PyErr_Occurred()) SWIG_fail;
28401 }
28402 resultobj = SWIG_Py_Void();
28403 return resultobj;
28404fail:
28405 return NULL;
28406}
28407
28408
28409SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28410 PyObject *resultobj = 0;
28411 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28412 wxPen *arg2 = 0 ;
28413 void *argp1 = 0 ;
28414 int res1 = 0 ;
28415 void *argp2 = 0 ;
28416 int res2 = 0 ;
72ef6efb 28417
70d7cb34
RD
28418 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28420 if (!SWIG_IsOK(res1)) {
28421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28422 }
28423 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28424 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28425 if (!SWIG_IsOK(res2)) {
28426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28427 }
28428 if (!argp2) {
28429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28430 }
28431 arg2 = reinterpret_cast< wxPen * >(argp2);
28432 {
72ef6efb 28433 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28434 if (PyErr_Occurred()) SWIG_fail;
28435 }
28436 resultobj = SWIG_Py_Void();
28437 return resultobj;
28438fail:
28439 return NULL;
28440}
28441
28442
70d7cb34
RD
28443SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28444 int argc;
28445 PyObject *argv[3];
28446
28447 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28448 --argc;
28449 if (argc == 2) {
28450 int _v = 0;
28451 {
28452 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28453 _v = SWIG_CheckState(res);
28454 }
28455 if (!_v) goto check_1;
28456 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28457 }
28458check_1:
28459
28460 if (argc == 2) {
28461 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28462 }
28463
28464fail:
28465 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28466 return NULL;
28467}
28468
28469
28470SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28471 PyObject *resultobj = 0;
28472 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28473 wxGraphicsBrush *arg2 = 0 ;
28474 void *argp1 = 0 ;
28475 int res1 = 0 ;
28476 void *argp2 = 0 ;
28477 int res2 = 0 ;
28478
28479 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28481 if (!SWIG_IsOK(res1)) {
28482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28483 }
28484 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28485 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28486 if (!SWIG_IsOK(res2)) {
28487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28488 }
28489 if (!argp2) {
28490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28491 }
28492 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28493 {
28494 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28495 if (PyErr_Occurred()) SWIG_fail;
28496 }
28497 resultobj = SWIG_Py_Void();
28498 return resultobj;
28499fail:
28500 return NULL;
28501}
28502
28503
28504SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28505 PyObject *resultobj = 0;
28506 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28507 wxBrush *arg2 = 0 ;
28508 void *argp1 = 0 ;
28509 int res1 = 0 ;
28510 void *argp2 = 0 ;
28511 int res2 = 0 ;
72ef6efb 28512
70d7cb34
RD
28513 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28515 if (!SWIG_IsOK(res1)) {
28516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28517 }
28518 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28519 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28520 if (!SWIG_IsOK(res2)) {
28521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28522 }
28523 if (!argp2) {
28524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28525 }
28526 arg2 = reinterpret_cast< wxBrush * >(argp2);
28527 {
72ef6efb 28528 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28529 if (PyErr_Occurred()) SWIG_fail;
28530 }
28531 resultobj = SWIG_Py_Void();
28532 return resultobj;
28533fail:
28534 return NULL;
28535}
28536
28537
70d7cb34
RD
28538SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28539 int argc;
28540 PyObject *argv[3];
72ef6efb 28541
70d7cb34
RD
28542 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28543 --argc;
28544 if (argc == 2) {
28545 int _v = 0;
28546 {
28547 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28548 _v = SWIG_CheckState(res);
28549 }
28550 if (!_v) goto check_1;
28551 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28552 }
70d7cb34
RD
28553check_1:
28554
28555 if (argc == 2) {
28556 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28557 }
70d7cb34 28558
72ef6efb 28559fail:
70d7cb34 28560 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28561 return NULL;
28562}
28563
28564
70d7cb34 28565SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28566 PyObject *resultobj = 0;
28567 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28568 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28569 void *argp1 = 0 ;
28570 int res1 = 0 ;
70d7cb34
RD
28571 void *argp2 = 0 ;
28572 int res2 = 0 ;
72ef6efb 28573
70d7cb34
RD
28574 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28576 if (!SWIG_IsOK(res1)) {
70d7cb34 28577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28578 }
28579 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28580 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28581 if (!SWIG_IsOK(res2)) {
28582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28583 }
70d7cb34
RD
28584 if (!argp2) {
28585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28586 }
70d7cb34 28587 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28588 {
70d7cb34 28589 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28590 if (PyErr_Occurred()) SWIG_fail;
28591 }
28592 resultobj = SWIG_Py_Void();
28593 return resultobj;
28594fail:
28595 return NULL;
28596}
28597
28598
70d7cb34 28599SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28600 PyObject *resultobj = 0;
28601 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28602 wxFont *arg2 = 0 ;
70d7cb34
RD
28603 wxColour const &arg3_defvalue = *wxBLACK ;
28604 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28605 void *argp1 = 0 ;
28606 int res1 = 0 ;
28607 void *argp2 = 0 ;
28608 int res2 = 0 ;
70d7cb34 28609 wxColour temp3 ;
72ef6efb 28610
70d7cb34
RD
28611 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28613 if (!SWIG_IsOK(res1)) {
28614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28615 }
28616 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28617 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28618 if (!SWIG_IsOK(res2)) {
28619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28620 }
28621 if (!argp2) {
28622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28623 }
28624 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28625 if (swig_obj[2]) {
28626 {
28627 arg3 = &temp3;
28628 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28629 }
28630 }
72ef6efb 28631 {
70d7cb34 28632 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28633 if (PyErr_Occurred()) SWIG_fail;
28634 }
28635 resultobj = SWIG_Py_Void();
28636 return resultobj;
28637fail:
28638 return NULL;
28639}
28640
28641
70d7cb34
RD
28642SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28643 int argc;
28644 PyObject *argv[4];
72ef6efb 28645
70d7cb34
RD
28646 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28647 --argc;
28648 if (argc == 2) {
28649 int _v = 0;
28650 {
28651 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28652 _v = SWIG_CheckState(res);
28653 }
28654 if (!_v) goto check_1;
28655 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28656 }
70d7cb34
RD
28657check_1:
28658
28659 if ((argc >= 2) && (argc <= 3)) {
28660 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28661 }
70d7cb34 28662
72ef6efb 28663fail:
70d7cb34 28664 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28665 return NULL;
28666}
28667
28668
28669SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28670 PyObject *resultobj = 0;
28671 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28672 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28673 void *argp1 = 0 ;
28674 int res1 = 0 ;
28675 void *argp2 = 0 ;
28676 int res2 = 0 ;
28677 PyObject * obj0 = 0 ;
28678 PyObject * obj1 = 0 ;
28679 char * kwnames[] = {
28680 (char *) "self",(char *) "path", NULL
28681 };
28682
28683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28685 if (!SWIG_IsOK(res1)) {
28686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28687 }
28688 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28689 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28690 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28692 }
28693 if (!argp2) {
28694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28695 }
28696 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28697 {
5c8c7dd3 28698 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
28699 if (PyErr_Occurred()) SWIG_fail;
28700 }
28701 resultobj = SWIG_Py_Void();
28702 return resultobj;
28703fail:
28704 return NULL;
28705}
28706
28707
28708SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28709 PyObject *resultobj = 0;
28710 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3
RD
28711 wxGraphicsPath *arg2 = 0 ;
28712 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28713 void *argp1 = 0 ;
28714 int res1 = 0 ;
28715 void *argp2 = 0 ;
28716 int res2 = 0 ;
28717 int val3 ;
28718 int ecode3 = 0 ;
28719 PyObject * obj0 = 0 ;
28720 PyObject * obj1 = 0 ;
28721 PyObject * obj2 = 0 ;
28722 char * kwnames[] = {
28723 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28724 };
28725
28726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28728 if (!SWIG_IsOK(res1)) {
28729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28730 }
28731 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28732 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28733 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28735 }
28736 if (!argp2) {
28737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28738 }
28739 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28740 if (obj2) {
28741 ecode3 = SWIG_AsVal_int(obj2, &val3);
28742 if (!SWIG_IsOK(ecode3)) {
28743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28744 }
28745 arg3 = static_cast< int >(val3);
28746 }
28747 {
5c8c7dd3 28748 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28749 if (PyErr_Occurred()) SWIG_fail;
28750 }
28751 resultobj = SWIG_Py_Void();
28752 return resultobj;
28753fail:
28754 return NULL;
28755}
28756
28757
28758SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28759 PyObject *resultobj = 0;
28760 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3
RD
28761 wxGraphicsPath *arg2 = 0 ;
28762 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28763 void *argp1 = 0 ;
28764 int res1 = 0 ;
28765 void *argp2 = 0 ;
28766 int res2 = 0 ;
28767 int val3 ;
28768 int ecode3 = 0 ;
28769 PyObject * obj0 = 0 ;
28770 PyObject * obj1 = 0 ;
28771 PyObject * obj2 = 0 ;
28772 char * kwnames[] = {
28773 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28774 };
28775
28776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28778 if (!SWIG_IsOK(res1)) {
28779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28780 }
28781 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28783 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28785 }
28786 if (!argp2) {
28787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28788 }
28789 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28790 if (obj2) {
28791 ecode3 = SWIG_AsVal_int(obj2, &val3);
28792 if (!SWIG_IsOK(ecode3)) {
28793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28794 }
28795 arg3 = static_cast< int >(val3);
28796 }
28797 {
5c8c7dd3 28798 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28799 if (PyErr_Occurred()) SWIG_fail;
28800 }
28801 resultobj = SWIG_Py_Void();
28802 return resultobj;
28803fail:
28804 return NULL;
28805}
28806
28807
b39fe951 28808SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28809 PyObject *resultobj = 0;
28810 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28811 wxString *arg2 = 0 ;
28812 wxDouble arg3 ;
28813 wxDouble arg4 ;
f89238b9
RD
28814 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
28815 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
28816 void *argp1 = 0 ;
28817 int res1 = 0 ;
28818 bool temp2 = false ;
28819 double val3 ;
28820 int ecode3 = 0 ;
28821 double val4 ;
28822 int ecode4 = 0 ;
f89238b9
RD
28823 void *argp5 = 0 ;
28824 int res5 = 0 ;
b39fe951
RD
28825 PyObject * obj0 = 0 ;
28826 PyObject * obj1 = 0 ;
28827 PyObject * obj2 = 0 ;
28828 PyObject * obj3 = 0 ;
f89238b9 28829 PyObject * obj4 = 0 ;
b39fe951 28830 char * kwnames[] = {
f89238b9 28831 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 28832 };
72ef6efb 28833
f89238b9 28834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 28835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28836 if (!SWIG_IsOK(res1)) {
28837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28838 }
28839 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28840 {
b39fe951 28841 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28842 if (arg2 == NULL) SWIG_fail;
28843 temp2 = true;
28844 }
b39fe951 28845 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
28846 if (!SWIG_IsOK(ecode3)) {
28847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28848 }
28849 arg3 = static_cast< wxDouble >(val3);
b39fe951 28850 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
28851 if (!SWIG_IsOK(ecode4)) {
28852 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28853 }
28854 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
28855 if (obj4) {
28856 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28857 if (!SWIG_IsOK(res5)) {
28858 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
28859 }
28860 if (!argp5) {
28861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
28862 }
28863 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
28864 }
72ef6efb 28865 {
f89238b9 28866 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
28867 if (PyErr_Occurred()) SWIG_fail;
28868 }
28869 resultobj = SWIG_Py_Void();
28870 {
28871 if (temp2)
28872 delete arg2;
28873 }
28874 return resultobj;
28875fail:
28876 {
28877 if (temp2)
28878 delete arg2;
28879 }
28880 return NULL;
28881}
28882
28883
b39fe951 28884SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28885 PyObject *resultobj = 0;
28886 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28887 wxString *arg2 = 0 ;
28888 wxDouble arg3 ;
28889 wxDouble arg4 ;
28890 wxDouble arg5 ;
f89238b9
RD
28891 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
28892 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
28893 void *argp1 = 0 ;
28894 int res1 = 0 ;
28895 bool temp2 = false ;
28896 double val3 ;
28897 int ecode3 = 0 ;
28898 double val4 ;
28899 int ecode4 = 0 ;
28900 double val5 ;
28901 int ecode5 = 0 ;
f89238b9
RD
28902 void *argp6 = 0 ;
28903 int res6 = 0 ;
b39fe951
RD
28904 PyObject * obj0 = 0 ;
28905 PyObject * obj1 = 0 ;
28906 PyObject * obj2 = 0 ;
28907 PyObject * obj3 = 0 ;
28908 PyObject * obj4 = 0 ;
f89238b9 28909 PyObject * obj5 = 0 ;
b39fe951 28910 char * kwnames[] = {
f89238b9 28911 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 28912 };
72ef6efb 28913
f89238b9 28914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 28915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28916 if (!SWIG_IsOK(res1)) {
b39fe951 28917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28918 }
28919 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28920 {
b39fe951 28921 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28922 if (arg2 == NULL) SWIG_fail;
28923 temp2 = true;
28924 }
b39fe951 28925 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 28926 if (!SWIG_IsOK(ecode3)) {
b39fe951 28927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28928 }
28929 arg3 = static_cast< wxDouble >(val3);
b39fe951 28930 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 28931 if (!SWIG_IsOK(ecode4)) {
b39fe951 28932 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28933 }
28934 arg4 = static_cast< wxDouble >(val4);
b39fe951 28935 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 28936 if (!SWIG_IsOK(ecode5)) {
b39fe951 28937 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28938 }
28939 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
28940 if (obj5) {
28941 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28942 if (!SWIG_IsOK(res6)) {
28943 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
28944 }
28945 if (!argp6) {
28946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
28947 }
28948 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
28949 }
72ef6efb 28950 {
f89238b9 28951 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 resultobj = SWIG_Py_Void();
28955 {
28956 if (temp2)
28957 delete arg2;
28958 }
28959 return resultobj;
28960fail:
28961 {
28962 if (temp2)
28963 delete arg2;
28964 }
28965 return NULL;
28966}
28967
28968
be68621e 28969SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28970 PyObject *resultobj = 0;
28971 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28972 wxString *arg2 = 0 ;
28973 wxDouble *arg3 = (wxDouble *) 0 ;
28974 wxDouble *arg4 = (wxDouble *) 0 ;
28975 wxDouble *arg5 = (wxDouble *) 0 ;
28976 wxDouble *arg6 = (wxDouble *) 0 ;
28977 void *argp1 = 0 ;
28978 int res1 = 0 ;
28979 bool temp2 = false ;
28980 wxDouble temp3 ;
28981 int res3 = SWIG_TMPOBJ ;
28982 wxDouble temp4 ;
28983 int res4 = SWIG_TMPOBJ ;
28984 wxDouble temp5 ;
28985 int res5 = SWIG_TMPOBJ ;
28986 wxDouble temp6 ;
28987 int res6 = SWIG_TMPOBJ ;
28988 PyObject * obj0 = 0 ;
28989 PyObject * obj1 = 0 ;
28990 char * kwnames[] = {
28991 (char *) "self",(char *) "text", NULL
28992 };
28993
28994 arg3 = &temp3;
28995 arg4 = &temp4;
28996 arg5 = &temp5;
28997 arg6 = &temp6;
be68621e 28998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29000 if (!SWIG_IsOK(res1)) {
be68621e 29001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29002 }
29003 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29004 {
29005 arg2 = wxString_in_helper(obj1);
29006 if (arg2 == NULL) SWIG_fail;
29007 temp2 = true;
29008 }
29009 {
72ef6efb 29010 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29011 if (PyErr_Occurred()) SWIG_fail;
29012 }
29013 resultobj = SWIG_Py_Void();
29014 if (SWIG_IsTmpObj(res3)) {
29015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29016 } else {
29017 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29018 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29019 }
29020 if (SWIG_IsTmpObj(res4)) {
29021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29022 } else {
29023 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29024 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29025 }
29026 if (SWIG_IsTmpObj(res5)) {
29027 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29028 } else {
29029 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29030 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29031 }
29032 if (SWIG_IsTmpObj(res6)) {
29033 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29034 } else {
29035 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29036 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29037 }
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
be68621e
RD
29052SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29053 PyObject *resultobj = 0;
29054 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29055 wxString *arg2 = 0 ;
29056 PyObject *result = 0 ;
29057 void *argp1 = 0 ;
29058 int res1 = 0 ;
29059 bool temp2 = false ;
29060 PyObject * obj0 = 0 ;
29061 PyObject * obj1 = 0 ;
29062 char * kwnames[] = {
29063 (char *) "self",(char *) "text", NULL
29064 };
29065
29066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29068 if (!SWIG_IsOK(res1)) {
29069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29070 }
29071 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29072 {
29073 arg2 = wxString_in_helper(obj1);
29074 if (arg2 == NULL) SWIG_fail;
29075 temp2 = true;
29076 }
29077 {
29078 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29079 if (PyErr_Occurred()) SWIG_fail;
29080 }
29081 resultobj = result;
29082 {
29083 if (temp2)
29084 delete arg2;
29085 }
29086 return resultobj;
29087fail:
29088 {
29089 if (temp2)
29090 delete arg2;
29091 }
29092 return NULL;
29093}
29094
29095
72ef6efb
RD
29096SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29097 PyObject *resultobj = 0;
29098 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29099 wxString *arg2 = 0 ;
b39fe951 29100 wxArrayDouble result;
72ef6efb
RD
29101 void *argp1 = 0 ;
29102 int res1 = 0 ;
29103 bool temp2 = false ;
72ef6efb
RD
29104 PyObject * obj0 = 0 ;
29105 PyObject * obj1 = 0 ;
72ef6efb 29106 char * kwnames[] = {
b39fe951 29107 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29108 };
29109
b39fe951 29110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29112 if (!SWIG_IsOK(res1)) {
b39fe951 29113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29114 }
29115 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29116 {
29117 arg2 = wxString_in_helper(obj1);
29118 if (arg2 == NULL) SWIG_fail;
29119 temp2 = true;
29120 }
72ef6efb 29121 {
b39fe951 29122 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29123 if (PyErr_Occurred()) SWIG_fail;
29124 }
b39fe951
RD
29125 {
29126 resultobj = wxArrayDouble2PyList_helper(result);
29127 }
72ef6efb
RD
29128 {
29129 if (temp2)
29130 delete arg2;
29131 }
29132 return resultobj;
29133fail:
29134 {
29135 if (temp2)
29136 delete arg2;
29137 }
29138 return NULL;
29139}
29140
29141
29142SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29143 PyObject *resultobj = 0;
29144 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29145 wxBitmap *arg2 = 0 ;
29146 wxDouble arg3 ;
29147 wxDouble arg4 ;
29148 wxDouble arg5 ;
29149 wxDouble arg6 ;
29150 void *argp1 = 0 ;
29151 int res1 = 0 ;
29152 void *argp2 = 0 ;
29153 int res2 = 0 ;
29154 double val3 ;
29155 int ecode3 = 0 ;
29156 double val4 ;
29157 int ecode4 = 0 ;
29158 double val5 ;
29159 int ecode5 = 0 ;
29160 double val6 ;
29161 int ecode6 = 0 ;
29162 PyObject * obj0 = 0 ;
29163 PyObject * obj1 = 0 ;
29164 PyObject * obj2 = 0 ;
29165 PyObject * obj3 = 0 ;
29166 PyObject * obj4 = 0 ;
29167 PyObject * obj5 = 0 ;
29168 char * kwnames[] = {
29169 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29170 };
29171
29172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29174 if (!SWIG_IsOK(res1)) {
29175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29176 }
29177 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29178 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29179 if (!SWIG_IsOK(res2)) {
29180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29181 }
29182 if (!argp2) {
29183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29184 }
29185 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29186 ecode3 = SWIG_AsVal_double(obj2, &val3);
29187 if (!SWIG_IsOK(ecode3)) {
29188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29189 }
29190 arg3 = static_cast< wxDouble >(val3);
29191 ecode4 = SWIG_AsVal_double(obj3, &val4);
29192 if (!SWIG_IsOK(ecode4)) {
29193 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29194 }
29195 arg4 = static_cast< wxDouble >(val4);
29196 ecode5 = SWIG_AsVal_double(obj4, &val5);
29197 if (!SWIG_IsOK(ecode5)) {
29198 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29199 }
29200 arg5 = static_cast< wxDouble >(val5);
29201 ecode6 = SWIG_AsVal_double(obj5, &val6);
29202 if (!SWIG_IsOK(ecode6)) {
29203 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29204 }
29205 arg6 = static_cast< wxDouble >(val6);
29206 {
72ef6efb 29207 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29208 if (PyErr_Occurred()) SWIG_fail;
29209 }
29210 resultobj = SWIG_Py_Void();
29211 return resultobj;
29212fail:
29213 return NULL;
29214}
29215
29216
29217SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29218 PyObject *resultobj = 0;
29219 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29220 wxIcon *arg2 = 0 ;
29221 wxDouble arg3 ;
29222 wxDouble arg4 ;
29223 wxDouble arg5 ;
29224 wxDouble arg6 ;
29225 void *argp1 = 0 ;
29226 int res1 = 0 ;
29227 void *argp2 = 0 ;
29228 int res2 = 0 ;
29229 double val3 ;
29230 int ecode3 = 0 ;
29231 double val4 ;
29232 int ecode4 = 0 ;
29233 double val5 ;
29234 int ecode5 = 0 ;
70d7cb34
RD
29235 double val6 ;
29236 int ecode6 = 0 ;
29237 PyObject * obj0 = 0 ;
29238 PyObject * obj1 = 0 ;
29239 PyObject * obj2 = 0 ;
29240 PyObject * obj3 = 0 ;
29241 PyObject * obj4 = 0 ;
29242 PyObject * obj5 = 0 ;
29243 char * kwnames[] = {
29244 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29245 };
29246
29247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29249 if (!SWIG_IsOK(res1)) {
29250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29251 }
29252 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29253 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29254 if (!SWIG_IsOK(res2)) {
29255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29256 }
29257 if (!argp2) {
29258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29259 }
29260 arg2 = reinterpret_cast< wxIcon * >(argp2);
29261 ecode3 = SWIG_AsVal_double(obj2, &val3);
29262 if (!SWIG_IsOK(ecode3)) {
29263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29264 }
29265 arg3 = static_cast< wxDouble >(val3);
29266 ecode4 = SWIG_AsVal_double(obj3, &val4);
29267 if (!SWIG_IsOK(ecode4)) {
29268 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29269 }
29270 arg4 = static_cast< wxDouble >(val4);
29271 ecode5 = SWIG_AsVal_double(obj4, &val5);
29272 if (!SWIG_IsOK(ecode5)) {
29273 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29274 }
29275 arg5 = static_cast< wxDouble >(val5);
29276 ecode6 = SWIG_AsVal_double(obj5, &val6);
29277 if (!SWIG_IsOK(ecode6)) {
29278 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29279 }
29280 arg6 = static_cast< wxDouble >(val6);
29281 {
29282 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29283 if (PyErr_Occurred()) SWIG_fail;
29284 }
29285 resultobj = SWIG_Py_Void();
29286 return resultobj;
29287fail:
29288 return NULL;
29289}
29290
29291
29292SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29293 PyObject *resultobj = 0;
29294 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29295 wxDouble arg2 ;
29296 wxDouble arg3 ;
29297 wxDouble arg4 ;
29298 wxDouble arg5 ;
29299 void *argp1 = 0 ;
29300 int res1 = 0 ;
29301 double val2 ;
29302 int ecode2 = 0 ;
29303 double val3 ;
29304 int ecode3 = 0 ;
29305 double val4 ;
29306 int ecode4 = 0 ;
29307 double val5 ;
29308 int ecode5 = 0 ;
29309 PyObject * obj0 = 0 ;
29310 PyObject * obj1 = 0 ;
29311 PyObject * obj2 = 0 ;
29312 PyObject * obj3 = 0 ;
29313 PyObject * obj4 = 0 ;
29314 char * kwnames[] = {
29315 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29316 };
29317
29318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29320 if (!SWIG_IsOK(res1)) {
29321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29322 }
29323 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29324 ecode2 = SWIG_AsVal_double(obj1, &val2);
29325 if (!SWIG_IsOK(ecode2)) {
29326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29327 }
29328 arg2 = static_cast< wxDouble >(val2);
29329 ecode3 = SWIG_AsVal_double(obj2, &val3);
29330 if (!SWIG_IsOK(ecode3)) {
29331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29332 }
29333 arg3 = static_cast< wxDouble >(val3);
29334 ecode4 = SWIG_AsVal_double(obj3, &val4);
29335 if (!SWIG_IsOK(ecode4)) {
29336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29337 }
29338 arg4 = static_cast< wxDouble >(val4);
29339 ecode5 = SWIG_AsVal_double(obj4, &val5);
29340 if (!SWIG_IsOK(ecode5)) {
29341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29342 }
29343 arg5 = static_cast< wxDouble >(val5);
29344 {
29345 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29346 if (PyErr_Occurred()) SWIG_fail;
29347 }
29348 resultobj = SWIG_Py_Void();
29349 return resultobj;
29350fail:
29351 return NULL;
29352}
29353
29354
29355SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29356 PyObject *resultobj = 0;
29357 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29358 size_t arg2 ;
29359 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29360 void *argp1 = 0 ;
29361 int res1 = 0 ;
29362 PyObject * obj0 = 0 ;
29363 PyObject * obj1 = 0 ;
29364 char * kwnames[] = {
29365 (char *) "self",(char *) "points", NULL
29366 };
29367
29368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29370 if (!SWIG_IsOK(res1)) {
29371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29372 }
29373 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29374 {
29375 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29376 if (arg3 == NULL) SWIG_fail;
29377 }
29378 {
29379 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29380 if (PyErr_Occurred()) SWIG_fail;
29381 }
29382 resultobj = SWIG_Py_Void();
29383 {
29384 if (arg3) delete [] arg3;
29385 }
29386 return resultobj;
29387fail:
29388 {
29389 if (arg3) delete [] arg3;
29390 }
29391 return NULL;
29392}
29393
29394
29395SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29396 PyObject *resultobj = 0;
29397 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29398 PyObject *arg2 = (PyObject *) 0 ;
29399 PyObject *arg3 = (PyObject *) 0 ;
29400 void *argp1 = 0 ;
29401 int res1 = 0 ;
29402 PyObject * obj0 = 0 ;
29403 PyObject * obj1 = 0 ;
29404 PyObject * obj2 = 0 ;
29405 char * kwnames[] = {
29406 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29407 };
29408
29409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29411 if (!SWIG_IsOK(res1)) {
29412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29413 }
29414 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29415 arg2 = obj1;
29416 arg3 = obj2;
29417 {
29418 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29419 if (PyErr_Occurred()) SWIG_fail;
29420 }
29421 resultobj = SWIG_Py_Void();
29422 return resultobj;
29423fail:
29424 return NULL;
29425}
29426
29427
29428SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29429 PyObject *resultobj = 0;
29430 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29431 size_t arg2 ;
29432 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
5c8c7dd3 29433 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29434 void *argp1 = 0 ;
29435 int res1 = 0 ;
29436 int val4 ;
29437 int ecode4 = 0 ;
29438 PyObject * obj0 = 0 ;
29439 PyObject * obj1 = 0 ;
29440 PyObject * obj2 = 0 ;
29441 char * kwnames[] = {
29442 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29443 };
29444
29445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29447 if (!SWIG_IsOK(res1)) {
29448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29449 }
29450 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29451 {
29452 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29453 if (arg3 == NULL) SWIG_fail;
29454 }
29455 if (obj2) {
29456 ecode4 = SWIG_AsVal_int(obj2, &val4);
29457 if (!SWIG_IsOK(ecode4)) {
29458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29459 }
29460 arg4 = static_cast< int >(val4);
29461 }
29462 {
29463 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29464 if (PyErr_Occurred()) SWIG_fail;
29465 }
29466 resultobj = SWIG_Py_Void();
29467 {
29468 if (arg3) delete [] arg3;
29469 }
29470 return resultobj;
29471fail:
29472 {
29473 if (arg3) delete [] arg3;
29474 }
29475 return NULL;
29476}
29477
29478
29479SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29480 PyObject *resultobj = 0;
29481 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29482 wxDouble arg2 ;
29483 wxDouble arg3 ;
29484 wxDouble arg4 ;
29485 wxDouble arg5 ;
29486 void *argp1 = 0 ;
29487 int res1 = 0 ;
29488 double val2 ;
29489 int ecode2 = 0 ;
29490 double val3 ;
29491 int ecode3 = 0 ;
29492 double val4 ;
29493 int ecode4 = 0 ;
29494 double val5 ;
29495 int ecode5 = 0 ;
29496 PyObject * obj0 = 0 ;
29497 PyObject * obj1 = 0 ;
29498 PyObject * obj2 = 0 ;
29499 PyObject * obj3 = 0 ;
29500 PyObject * obj4 = 0 ;
29501 char * kwnames[] = {
29502 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29503 };
29504
29505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29507 if (!SWIG_IsOK(res1)) {
29508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29509 }
29510 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29511 ecode2 = SWIG_AsVal_double(obj1, &val2);
29512 if (!SWIG_IsOK(ecode2)) {
29513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29514 }
29515 arg2 = static_cast< wxDouble >(val2);
29516 ecode3 = SWIG_AsVal_double(obj2, &val3);
29517 if (!SWIG_IsOK(ecode3)) {
29518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29519 }
29520 arg3 = static_cast< wxDouble >(val3);
29521 ecode4 = SWIG_AsVal_double(obj3, &val4);
29522 if (!SWIG_IsOK(ecode4)) {
29523 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29524 }
29525 arg4 = static_cast< wxDouble >(val4);
29526 ecode5 = SWIG_AsVal_double(obj4, &val5);
29527 if (!SWIG_IsOK(ecode5)) {
29528 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29529 }
29530 arg5 = static_cast< wxDouble >(val5);
29531 {
29532 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29533 if (PyErr_Occurred()) SWIG_fail;
29534 }
29535 resultobj = SWIG_Py_Void();
29536 return resultobj;
29537fail:
29538 return NULL;
29539}
29540
29541
29542SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29543 PyObject *resultobj = 0;
29544 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29545 wxDouble arg2 ;
29546 wxDouble arg3 ;
29547 wxDouble arg4 ;
29548 wxDouble arg5 ;
29549 void *argp1 = 0 ;
29550 int res1 = 0 ;
29551 double val2 ;
29552 int ecode2 = 0 ;
29553 double val3 ;
29554 int ecode3 = 0 ;
29555 double val4 ;
29556 int ecode4 = 0 ;
29557 double val5 ;
29558 int ecode5 = 0 ;
72ef6efb
RD
29559 PyObject * obj0 = 0 ;
29560 PyObject * obj1 = 0 ;
29561 PyObject * obj2 = 0 ;
29562 PyObject * obj3 = 0 ;
29563 PyObject * obj4 = 0 ;
72ef6efb 29564 char * kwnames[] = {
70d7cb34 29565 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29566 };
29567
70d7cb34 29568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29570 if (!SWIG_IsOK(res1)) {
70d7cb34 29571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29572 }
29573 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29574 ecode2 = SWIG_AsVal_double(obj1, &val2);
29575 if (!SWIG_IsOK(ecode2)) {
29576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29577 }
29578 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29579 ecode3 = SWIG_AsVal_double(obj2, &val3);
29580 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29582 }
29583 arg3 = static_cast< wxDouble >(val3);
29584 ecode4 = SWIG_AsVal_double(obj3, &val4);
29585 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29587 }
29588 arg4 = static_cast< wxDouble >(val4);
29589 ecode5 = SWIG_AsVal_double(obj4, &val5);
29590 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29591 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29592 }
29593 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29594 {
70d7cb34 29595 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29596 if (PyErr_Occurred()) SWIG_fail;
29597 }
29598 resultobj = SWIG_Py_Void();
29599 return resultobj;
29600fail:
29601 return NULL;
29602}
29603
29604
70d7cb34 29605SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29606 PyObject *resultobj = 0;
29607 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29608 wxDouble arg2 ;
29609 wxDouble arg3 ;
29610 wxDouble arg4 ;
29611 wxDouble arg5 ;
70d7cb34 29612 wxDouble arg6 ;
72ef6efb
RD
29613 void *argp1 = 0 ;
29614 int res1 = 0 ;
29615 double val2 ;
29616 int ecode2 = 0 ;
29617 double val3 ;
29618 int ecode3 = 0 ;
29619 double val4 ;
29620 int ecode4 = 0 ;
29621 double val5 ;
29622 int ecode5 = 0 ;
70d7cb34
RD
29623 double val6 ;
29624 int ecode6 = 0 ;
72ef6efb
RD
29625 PyObject * obj0 = 0 ;
29626 PyObject * obj1 = 0 ;
29627 PyObject * obj2 = 0 ;
29628 PyObject * obj3 = 0 ;
29629 PyObject * obj4 = 0 ;
70d7cb34 29630 PyObject * obj5 = 0 ;
72ef6efb 29631 char * kwnames[] = {
70d7cb34 29632 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29633 };
29634
70d7cb34 29635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29637 if (!SWIG_IsOK(res1)) {
70d7cb34 29638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29639 }
29640 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29641 ecode2 = SWIG_AsVal_double(obj1, &val2);
29642 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29644 }
29645 arg2 = static_cast< wxDouble >(val2);
29646 ecode3 = SWIG_AsVal_double(obj2, &val3);
29647 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29648 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29649 }
29650 arg3 = static_cast< wxDouble >(val3);
29651 ecode4 = SWIG_AsVal_double(obj3, &val4);
29652 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29654 }
29655 arg4 = static_cast< wxDouble >(val4);
29656 ecode5 = SWIG_AsVal_double(obj4, &val5);
29657 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29658 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29659 }
29660 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29661 ecode6 = SWIG_AsVal_double(obj5, &val6);
29662 if (!SWIG_IsOK(ecode6)) {
29663 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29664 }
29665 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29666 {
70d7cb34 29667 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29668 if (PyErr_Occurred()) SWIG_fail;
29669 }
29670 resultobj = SWIG_Py_Void();
29671 return resultobj;
29672fail:
29673 return NULL;
29674}
29675
29676
70d7cb34 29677SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29678 PyObject *resultobj = 0;
29679 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29680 bool result;
72ef6efb
RD
29681 void *argp1 = 0 ;
29682 int res1 = 0 ;
70d7cb34 29683 PyObject *swig_obj[1] ;
72ef6efb 29684
70d7cb34
RD
29685 if (!args) SWIG_fail;
29686 swig_obj[0] = args;
29687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29688 if (!SWIG_IsOK(res1)) {
70d7cb34 29689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29690 }
29691 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29692 {
70d7cb34
RD
29693 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29694 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29695 }
72ef6efb 29696 {
70d7cb34
RD
29697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29698 }
29699 return resultobj;
29700fail:
29701 return NULL;
29702}
29703
29704
29705SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29706 PyObject *obj;
29707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29708 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29709 return SWIG_Py_Void();
29710}
29711
29712SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29713 PyObject *resultobj = 0;
29714 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29715 void *argp1 = 0 ;
29716 int res1 = 0 ;
29717 PyObject *swig_obj[1] ;
29718
29719 if (!args) SWIG_fail;
29720 swig_obj[0] = args;
29721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29722 if (!SWIG_IsOK(res1)) {
29723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29724 }
29725 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29726 {
29727 delete arg1;
29728
72ef6efb
RD
29729 if (PyErr_Occurred()) SWIG_fail;
29730 }
29731 resultobj = SWIG_Py_Void();
70d7cb34
RD
29732 return resultobj;
29733fail:
29734 return NULL;
29735}
29736
29737
29738SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29739 PyObject *resultobj = 0;
29740 wxGraphicsRenderer *result = 0 ;
29741
29742 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29743 {
70d7cb34
RD
29744 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29745 if (PyErr_Occurred()) SWIG_fail;
29746 }
29747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29748 return resultobj;
29749fail:
29750 return NULL;
29751}
29752
29753
29754SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29755 PyObject *resultobj = 0;
29756 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29757 wxWindowDC *arg2 = 0 ;
29758 wxGraphicsContext *result = 0 ;
29759 void *argp1 = 0 ;
29760 int res1 = 0 ;
29761 void *argp2 = 0 ;
29762 int res2 = 0 ;
29763
29764 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29766 if (!SWIG_IsOK(res1)) {
29767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29768 }
29769 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29770 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29771 if (!SWIG_IsOK(res2)) {
29772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29773 }
29774 if (!argp2) {
29775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29776 }
29777 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29778 {
29779 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29780 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29781 }
70d7cb34 29782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29783 return resultobj;
29784fail:
70d7cb34
RD
29785 return NULL;
29786}
29787
29788
29789SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29790 PyObject *resultobj = 0;
29791 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29792 wxWindow *arg2 = (wxWindow *) 0 ;
29793 wxGraphicsContext *result = 0 ;
29794 void *argp1 = 0 ;
29795 int res1 = 0 ;
29796 void *argp2 = 0 ;
29797 int res2 = 0 ;
29798
29799 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29801 if (!SWIG_IsOK(res1)) {
29802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29803 }
29804 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29805 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29806 if (!SWIG_IsOK(res2)) {
29807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29808 }
29809 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 29810 {
70d7cb34
RD
29811 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29812 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29813 }
70d7cb34
RD
29814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29815 return resultobj;
29816fail:
72ef6efb
RD
29817 return NULL;
29818}
29819
29820
70d7cb34
RD
29821SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29822 int argc;
29823 PyObject *argv[3];
29824
29825 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29826 --argc;
29827 if (argc == 2) {
29828 int _v = 0;
29829 {
29830 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29831 _v = SWIG_CheckState(res);
29832 }
29833 if (!_v) goto check_1;
29834 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29835 }
29836check_1:
29837
29838 if (argc == 2) {
29839 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29840 }
29841
29842fail:
29843 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29844 return NULL;
29845}
29846
29847
f89238b9
RD
29848SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29849 PyObject *resultobj = 0;
29850 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29851 wxGraphicsContext *result = 0 ;
29852 void *argp1 = 0 ;
29853 int res1 = 0 ;
29854 PyObject *swig_obj[1] ;
29855
29856 if (!args) SWIG_fail;
29857 swig_obj[0] = args;
29858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29859 if (!SWIG_IsOK(res1)) {
29860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29861 }
29862 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29863 {
29864 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
29865 if (PyErr_Occurred()) SWIG_fail;
29866 }
29867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29868 return resultobj;
29869fail:
29870 return NULL;
29871}
29872
29873
70d7cb34 29874SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29875 PyObject *resultobj = 0;
70d7cb34
RD
29876 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29877 void *arg2 = (void *) 0 ;
29878 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29879 void *argp1 = 0 ;
29880 int res1 = 0 ;
70d7cb34 29881 int res2 ;
b39fe951
RD
29882 PyObject * obj0 = 0 ;
29883 PyObject * obj1 = 0 ;
b39fe951 29884 char * kwnames[] = {
70d7cb34 29885 (char *) "self",(char *) "context", NULL
b39fe951 29886 };
72ef6efb 29887
70d7cb34
RD
29888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29890 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29892 }
29893 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29894 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29895 if (!SWIG_IsOK(res2)) {
29896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 29897 }
72ef6efb 29898 {
70d7cb34 29899 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
29900 if (PyErr_Occurred()) SWIG_fail;
29901 }
70d7cb34 29902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29903 return resultobj;
29904fail:
29905 return NULL;
29906}
29907
29908
70d7cb34 29909SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29910 PyObject *resultobj = 0;
70d7cb34
RD
29911 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29912 void *arg2 = (void *) 0 ;
29913 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29914 void *argp1 = 0 ;
29915 int res1 = 0 ;
70d7cb34 29916 int res2 ;
72ef6efb
RD
29917 PyObject * obj0 = 0 ;
29918 PyObject * obj1 = 0 ;
72ef6efb 29919 char * kwnames[] = {
70d7cb34 29920 (char *) "self",(char *) "window", NULL
72ef6efb
RD
29921 };
29922
70d7cb34
RD
29923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29925 if (!SWIG_IsOK(res1)) {
70d7cb34 29926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 29927 }
70d7cb34
RD
29928 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29929 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29930 if (!SWIG_IsOK(res2)) {
29931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
29932 }
29933 {
70d7cb34 29934 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
29935 if (PyErr_Occurred()) SWIG_fail;
29936 }
70d7cb34 29937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29938 return resultobj;
29939fail:
70d7cb34
RD
29940 return NULL;
29941}
29942
29943
29944SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29945 PyObject *resultobj = 0;
29946 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 29947 wxGraphicsPath result;
70d7cb34
RD
29948 void *argp1 = 0 ;
29949 int res1 = 0 ;
29950 PyObject *swig_obj[1] ;
29951
29952 if (!args) SWIG_fail;
29953 swig_obj[0] = args;
29954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29955 if (!SWIG_IsOK(res1)) {
29956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29957 }
29958 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 29959 {
5c8c7dd3 29960 result = (arg1)->CreatePath();
70d7cb34 29961 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29962 }
5c8c7dd3 29963 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
29964 return resultobj;
29965fail:
72ef6efb
RD
29966 return NULL;
29967}
29968
29969
70d7cb34 29970SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29971 PyObject *resultobj = 0;
70d7cb34
RD
29972 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29973 wxDouble arg2 = (wxDouble) 1.0 ;
29974 wxDouble arg3 = (wxDouble) 0.0 ;
29975 wxDouble arg4 = (wxDouble) 0.0 ;
29976 wxDouble arg5 = (wxDouble) 1.0 ;
29977 wxDouble arg6 = (wxDouble) 0.0 ;
29978 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 29979 wxGraphicsMatrix result;
72ef6efb
RD
29980 void *argp1 = 0 ;
29981 int res1 = 0 ;
29982 double val2 ;
29983 int ecode2 = 0 ;
29984 double val3 ;
29985 int ecode3 = 0 ;
29986 double val4 ;
29987 int ecode4 = 0 ;
29988 double val5 ;
29989 int ecode5 = 0 ;
70d7cb34
RD
29990 double val6 ;
29991 int ecode6 = 0 ;
29992 double val7 ;
29993 int ecode7 = 0 ;
72ef6efb
RD
29994 PyObject * obj0 = 0 ;
29995 PyObject * obj1 = 0 ;
29996 PyObject * obj2 = 0 ;
29997 PyObject * obj3 = 0 ;
29998 PyObject * obj4 = 0 ;
70d7cb34
RD
29999 PyObject * obj5 = 0 ;
30000 PyObject * obj6 = 0 ;
72ef6efb 30001 char * kwnames[] = {
70d7cb34 30002 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30003 };
30004
70d7cb34
RD
30005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30007 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30009 }
30010 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30011 if (obj1) {
30012 ecode2 = SWIG_AsVal_double(obj1, &val2);
30013 if (!SWIG_IsOK(ecode2)) {
30014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30015 }
30016 arg2 = static_cast< wxDouble >(val2);
30017 }
30018 if (obj2) {
30019 ecode3 = SWIG_AsVal_double(obj2, &val3);
30020 if (!SWIG_IsOK(ecode3)) {
30021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30022 }
30023 arg3 = static_cast< wxDouble >(val3);
30024 }
30025 if (obj3) {
30026 ecode4 = SWIG_AsVal_double(obj3, &val4);
30027 if (!SWIG_IsOK(ecode4)) {
30028 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30029 }
30030 arg4 = static_cast< wxDouble >(val4);
30031 }
30032 if (obj4) {
30033 ecode5 = SWIG_AsVal_double(obj4, &val5);
30034 if (!SWIG_IsOK(ecode5)) {
30035 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30036 }
30037 arg5 = static_cast< wxDouble >(val5);
30038 }
30039 if (obj5) {
30040 ecode6 = SWIG_AsVal_double(obj5, &val6);
30041 if (!SWIG_IsOK(ecode6)) {
30042 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30043 }
30044 arg6 = static_cast< wxDouble >(val6);
30045 }
30046 if (obj6) {
30047 ecode7 = SWIG_AsVal_double(obj6, &val7);
30048 if (!SWIG_IsOK(ecode7)) {
30049 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30050 }
30051 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30052 }
72ef6efb 30053 {
5c8c7dd3 30054 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30055 if (PyErr_Occurred()) SWIG_fail;
30056 }
5c8c7dd3 30057 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30058 return resultobj;
30059fail:
30060 return NULL;
30061}
30062
30063
70d7cb34 30064SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30065 PyObject *resultobj = 0;
70d7cb34
RD
30066 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30067 wxPen *arg2 = 0 ;
30068 wxGraphicsPen result;
30069 void *argp1 = 0 ;
30070 int res1 = 0 ;
30071 void *argp2 = 0 ;
30072 int res2 = 0 ;
30073 PyObject * obj0 = 0 ;
30074 PyObject * obj1 = 0 ;
30075 char * kwnames[] = {
30076 (char *) "self",(char *) "pen", NULL
30077 };
30078
30079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30081 if (!SWIG_IsOK(res1)) {
30082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30083 }
30084 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30085 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30086 if (!SWIG_IsOK(res2)) {
30087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30088 }
30089 if (!argp2) {
30090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30091 }
30092 arg2 = reinterpret_cast< wxPen * >(argp2);
30093 {
30094 result = (arg1)->CreatePen((wxPen const &)*arg2);
30095 if (PyErr_Occurred()) SWIG_fail;
30096 }
30097 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30098 return resultobj;
30099fail:
30100 return NULL;
30101}
30102
30103
30104SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30105 PyObject *resultobj = 0;
30106 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30107 wxBrush *arg2 = 0 ;
30108 wxGraphicsBrush result;
30109 void *argp1 = 0 ;
30110 int res1 = 0 ;
30111 void *argp2 = 0 ;
30112 int res2 = 0 ;
30113 PyObject * obj0 = 0 ;
30114 PyObject * obj1 = 0 ;
30115 char * kwnames[] = {
30116 (char *) "self",(char *) "brush", NULL
30117 };
30118
30119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30121 if (!SWIG_IsOK(res1)) {
30122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30123 }
30124 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30125 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30126 if (!SWIG_IsOK(res2)) {
30127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30128 }
30129 if (!argp2) {
30130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30131 }
30132 arg2 = reinterpret_cast< wxBrush * >(argp2);
30133 {
30134 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30135 if (PyErr_Occurred()) SWIG_fail;
30136 }
30137 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30138 return resultobj;
30139fail:
30140 return NULL;
30141}
30142
30143
30144SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30145 PyObject *resultobj = 0;
30146 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30147 wxDouble arg2 ;
30148 wxDouble arg3 ;
30149 wxDouble arg4 ;
30150 wxDouble arg5 ;
70d7cb34
RD
30151 wxColour *arg6 = 0 ;
30152 wxColour *arg7 = 0 ;
30153 wxGraphicsBrush result;
72ef6efb
RD
30154 void *argp1 = 0 ;
30155 int res1 = 0 ;
30156 double val2 ;
30157 int ecode2 = 0 ;
30158 double val3 ;
30159 int ecode3 = 0 ;
30160 double val4 ;
30161 int ecode4 = 0 ;
30162 double val5 ;
30163 int ecode5 = 0 ;
70d7cb34
RD
30164 wxColour temp6 ;
30165 wxColour temp7 ;
72ef6efb
RD
30166 PyObject * obj0 = 0 ;
30167 PyObject * obj1 = 0 ;
30168 PyObject * obj2 = 0 ;
30169 PyObject * obj3 = 0 ;
30170 PyObject * obj4 = 0 ;
70d7cb34
RD
30171 PyObject * obj5 = 0 ;
30172 PyObject * obj6 = 0 ;
72ef6efb 30173 char * kwnames[] = {
70d7cb34 30174 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30175 };
30176
70d7cb34
RD
30177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30179 if (!SWIG_IsOK(res1)) {
70d7cb34 30180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30181 }
70d7cb34 30182 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30183 ecode2 = SWIG_AsVal_double(obj1, &val2);
30184 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30186 }
30187 arg2 = static_cast< wxDouble >(val2);
30188 ecode3 = SWIG_AsVal_double(obj2, &val3);
30189 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30191 }
30192 arg3 = static_cast< wxDouble >(val3);
30193 ecode4 = SWIG_AsVal_double(obj3, &val4);
30194 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30195 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30196 }
30197 arg4 = static_cast< wxDouble >(val4);
30198 ecode5 = SWIG_AsVal_double(obj4, &val5);
30199 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30200 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30201 }
30202 arg5 = static_cast< wxDouble >(val5);
30203 {
70d7cb34
RD
30204 arg6 = &temp6;
30205 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30206 }
30207 {
30208 arg7 = &temp7;
30209 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30210 }
30211 {
30212 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30213 if (PyErr_Occurred()) SWIG_fail;
30214 }
70d7cb34 30215 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30216 return resultobj;
30217fail:
30218 return NULL;
30219}
30220
30221
70d7cb34 30222SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30223 PyObject *resultobj = 0;
70d7cb34 30224 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30225 wxDouble arg2 ;
30226 wxDouble arg3 ;
30227 wxDouble arg4 ;
30228 wxDouble arg5 ;
30229 wxDouble arg6 ;
70d7cb34
RD
30230 wxColour *arg7 = 0 ;
30231 wxColour *arg8 = 0 ;
30232 wxGraphicsBrush result;
72ef6efb
RD
30233 void *argp1 = 0 ;
30234 int res1 = 0 ;
30235 double val2 ;
30236 int ecode2 = 0 ;
30237 double val3 ;
30238 int ecode3 = 0 ;
30239 double val4 ;
30240 int ecode4 = 0 ;
30241 double val5 ;
30242 int ecode5 = 0 ;
30243 double val6 ;
30244 int ecode6 = 0 ;
70d7cb34
RD
30245 wxColour temp7 ;
30246 wxColour temp8 ;
72ef6efb
RD
30247 PyObject * obj0 = 0 ;
30248 PyObject * obj1 = 0 ;
30249 PyObject * obj2 = 0 ;
30250 PyObject * obj3 = 0 ;
30251 PyObject * obj4 = 0 ;
30252 PyObject * obj5 = 0 ;
70d7cb34
RD
30253 PyObject * obj6 = 0 ;
30254 PyObject * obj7 = 0 ;
72ef6efb 30255 char * kwnames[] = {
70d7cb34 30256 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30257 };
30258
70d7cb34
RD
30259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30261 if (!SWIG_IsOK(res1)) {
70d7cb34 30262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30263 }
70d7cb34 30264 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30265 ecode2 = SWIG_AsVal_double(obj1, &val2);
30266 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30268 }
30269 arg2 = static_cast< wxDouble >(val2);
30270 ecode3 = SWIG_AsVal_double(obj2, &val3);
30271 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30273 }
30274 arg3 = static_cast< wxDouble >(val3);
30275 ecode4 = SWIG_AsVal_double(obj3, &val4);
30276 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30277 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30278 }
30279 arg4 = static_cast< wxDouble >(val4);
30280 ecode5 = SWIG_AsVal_double(obj4, &val5);
30281 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30283 }
30284 arg5 = static_cast< wxDouble >(val5);
30285 ecode6 = SWIG_AsVal_double(obj5, &val6);
30286 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30287 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30288 }
30289 arg6 = static_cast< wxDouble >(val6);
30290 {
70d7cb34
RD
30291 arg7 = &temp7;
30292 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30293 }
30294 {
30295 arg8 = &temp8;
30296 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30297 }
30298 {
30299 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30300 if (PyErr_Occurred()) SWIG_fail;
30301 }
70d7cb34 30302 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30303 return resultobj;
30304fail:
30305 return NULL;
30306}
30307
30308
70d7cb34
RD
30309SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30310 PyObject *resultobj = 0;
30311 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30312 wxFont *arg2 = 0 ;
30313 wxColour const &arg3_defvalue = *wxBLACK ;
30314 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30315 wxGraphicsFont result;
30316 void *argp1 = 0 ;
30317 int res1 = 0 ;
30318 void *argp2 = 0 ;
30319 int res2 = 0 ;
30320 wxColour temp3 ;
30321 PyObject * obj0 = 0 ;
30322 PyObject * obj1 = 0 ;
30323 PyObject * obj2 = 0 ;
30324 char * kwnames[] = {
30325 (char *) "self",(char *) "font",(char *) "col", NULL
30326 };
30327
30328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30330 if (!SWIG_IsOK(res1)) {
30331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30332 }
30333 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30335 if (!SWIG_IsOK(res2)) {
30336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30337 }
30338 if (!argp2) {
30339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30340 }
30341 arg2 = reinterpret_cast< wxFont * >(argp2);
30342 if (obj2) {
30343 {
30344 arg3 = &temp3;
30345 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30346 }
30347 }
30348 {
30349 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30350 if (PyErr_Occurred()) SWIG_fail;
30351 }
30352 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30353 return resultobj;
30354fail:
30355 return NULL;
30356}
30357
30358
30359SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30360 PyObject *obj;
30361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30362 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30363 return SWIG_Py_Void();
30364}
30365
48a0c021 30366SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
30367 PyObject *resultobj = 0;
30368 wxWindowDC *arg1 = 0 ;
30369 wxGCDC *result = 0 ;
30370 void *argp1 = 0 ;
30371 int res1 = 0 ;
72ef6efb 30372
48a0c021
RD
30373 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
30375 if (!SWIG_IsOK(res1)) {
30376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30377 }
30378 if (!argp1) {
30379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30380 }
30381 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30382 {
30383 if (!wxPyCheckForApp()) SWIG_fail;
30384 PyThreadState* __tstate = wxPyBeginAllowThreads();
30385 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30386 wxPyEndAllowThreads(__tstate);
30387 if (PyErr_Occurred()) SWIG_fail;
30388 }
30389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30390 return resultobj;
30391fail:
30392 return NULL;
30393}
30394
30395
48a0c021
RD
30396SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30397 PyObject *resultobj = 0;
30398 wxWindow *arg1 = (wxWindow *) 0 ;
30399 wxGCDC *result = 0 ;
30400 void *argp1 = 0 ;
30401 int res1 = 0 ;
30402
30403 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30405 if (!SWIG_IsOK(res1)) {
30406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30407 }
30408 arg1 = reinterpret_cast< wxWindow * >(argp1);
30409 {
30410 if (!wxPyCheckForApp()) SWIG_fail;
30411 PyThreadState* __tstate = wxPyBeginAllowThreads();
30412 result = (wxGCDC *)new wxGCDC(arg1);
30413 wxPyEndAllowThreads(__tstate);
30414 if (PyErr_Occurred()) SWIG_fail;
30415 }
30416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30417 return resultobj;
30418fail:
30419 return NULL;
30420}
30421
30422
30423SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30424 int argc;
30425 PyObject *argv[2];
30426
30427 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30428 --argc;
30429 if (argc == 1) {
30430 int _v = 0;
30431 {
30432 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30433 _v = SWIG_CheckState(res);
30434 }
30435 if (!_v) goto check_1;
30436 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30437 }
30438check_1:
30439
30440 if (argc == 1) {
30441 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30442 }
30443
30444fail:
30445 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30446 return NULL;
30447}
30448
30449
72ef6efb
RD
30450SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30451 PyObject *resultobj = 0;
30452 wxGCDC *arg1 = (wxGCDC *) 0 ;
30453 void *argp1 = 0 ;
30454 int res1 = 0 ;
30455 PyObject *swig_obj[1] ;
30456
30457 if (!args) SWIG_fail;
30458 swig_obj[0] = args;
30459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30460 if (!SWIG_IsOK(res1)) {
30461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30462 }
30463 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30464 {
72ef6efb
RD
30465 delete arg1;
30466
72ef6efb
RD
30467 if (PyErr_Occurred()) SWIG_fail;
30468 }
30469 resultobj = SWIG_Py_Void();
30470 return resultobj;
30471fail:
30472 return NULL;
30473}
30474
30475
0a27f394 30476SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30477 PyObject *resultobj = 0;
30478 wxGCDC *arg1 = (wxGCDC *) 0 ;
30479 wxGraphicsContext *result = 0 ;
30480 void *argp1 = 0 ;
30481 int res1 = 0 ;
30482 PyObject *swig_obj[1] ;
30483
30484 if (!args) SWIG_fail;
30485 swig_obj[0] = args;
30486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30487 if (!SWIG_IsOK(res1)) {
0a27f394 30488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30489 }
30490 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30491 {
0a27f394 30492 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30493 if (PyErr_Occurred()) SWIG_fail;
30494 }
30495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30496 return resultobj;
30497fail:
30498 return NULL;
30499}
30500
30501
0a27f394
RD
30502SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30503 PyObject *resultobj = 0;
30504 wxGCDC *arg1 = (wxGCDC *) 0 ;
30505 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30506 void *argp1 = 0 ;
30507 int res1 = 0 ;
30508 void *argp2 = 0 ;
30509 int res2 = 0 ;
30510 PyObject * obj0 = 0 ;
30511 PyObject * obj1 = 0 ;
30512 char * kwnames[] = {
30513 (char *) "self",(char *) "ctx", NULL
30514 };
30515
30516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30518 if (!SWIG_IsOK(res1)) {
30519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30520 }
30521 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30522 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30523 if (!SWIG_IsOK(res2)) {
30524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30525 }
30526 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30527 {
30528 (arg1)->SetGraphicsContext(arg2);
30529 if (PyErr_Occurred()) SWIG_fail;
30530 }
30531 resultobj = SWIG_Py_Void();
30532 return resultobj;
30533fail:
30534 return NULL;
30535}
30536
30537
72ef6efb
RD
30538SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30539 PyObject *obj;
30540 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30541 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30542 return SWIG_Py_Void();
30543}
30544
30545SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30546 return SWIG_Python_InitShadowInstance(args);
30547}
30548
b39fe951
RD
30549SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30550 PyObject *resultobj = 0;
30551 wxOverlay *result = 0 ;
30552
30553 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30554 {
30555 PyThreadState* __tstate = wxPyBeginAllowThreads();
30556 result = (wxOverlay *)new wxOverlay();
30557 wxPyEndAllowThreads(__tstate);
30558 if (PyErr_Occurred()) SWIG_fail;
30559 }
30560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30561 return resultobj;
30562fail:
30563 return NULL;
30564}
30565
30566
30567SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30568 PyObject *resultobj = 0;
30569 wxOverlay *arg1 = (wxOverlay *) 0 ;
30570 void *argp1 = 0 ;
30571 int res1 = 0 ;
30572 PyObject *swig_obj[1] ;
30573
30574 if (!args) SWIG_fail;
30575 swig_obj[0] = args;
30576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30577 if (!SWIG_IsOK(res1)) {
30578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30579 }
30580 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30581 {
30582 PyThreadState* __tstate = wxPyBeginAllowThreads();
30583 delete arg1;
30584
30585 wxPyEndAllowThreads(__tstate);
30586 if (PyErr_Occurred()) SWIG_fail;
30587 }
30588 resultobj = SWIG_Py_Void();
30589 return resultobj;
30590fail:
30591 return NULL;
30592}
30593
30594
30595SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30596 PyObject *resultobj = 0;
30597 wxOverlay *arg1 = (wxOverlay *) 0 ;
30598 void *argp1 = 0 ;
30599 int res1 = 0 ;
30600 PyObject *swig_obj[1] ;
30601
30602 if (!args) SWIG_fail;
30603 swig_obj[0] = args;
30604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30605 if (!SWIG_IsOK(res1)) {
30606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30607 }
30608 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30609 {
30610 PyThreadState* __tstate = wxPyBeginAllowThreads();
30611 (arg1)->Reset();
30612 wxPyEndAllowThreads(__tstate);
30613 if (PyErr_Occurred()) SWIG_fail;
30614 }
30615 resultobj = SWIG_Py_Void();
30616 return resultobj;
30617fail:
30618 return NULL;
30619}
30620
30621
30622SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30623 PyObject *obj;
30624 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30625 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30626 return SWIG_Py_Void();
30627}
30628
30629SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30630 return SWIG_Python_InitShadowInstance(args);
30631}
30632
30633SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30634 PyObject *resultobj = 0;
30635 wxOverlay *arg1 = 0 ;
30636 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30637 int arg3 ;
30638 int arg4 ;
30639 int arg5 ;
30640 int arg6 ;
30641 wxDCOverlay *result = 0 ;
30642 void *argp1 = 0 ;
30643 int res1 = 0 ;
30644 void *argp2 = 0 ;
30645 int res2 = 0 ;
30646 int val3 ;
30647 int ecode3 = 0 ;
30648 int val4 ;
30649 int ecode4 = 0 ;
30650 int val5 ;
30651 int ecode5 = 0 ;
30652 int val6 ;
30653 int ecode6 = 0 ;
30654
30655 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30657 if (!SWIG_IsOK(res1)) {
30658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30659 }
30660 if (!argp1) {
30661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30662 }
30663 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30664 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30665 if (!SWIG_IsOK(res2)) {
30666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30667 }
30668 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30669 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30670 if (!SWIG_IsOK(ecode3)) {
30671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30672 }
30673 arg3 = static_cast< int >(val3);
30674 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30675 if (!SWIG_IsOK(ecode4)) {
30676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30677 }
30678 arg4 = static_cast< int >(val4);
30679 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30680 if (!SWIG_IsOK(ecode5)) {
30681 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30682 }
30683 arg5 = static_cast< int >(val5);
30684 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30685 if (!SWIG_IsOK(ecode6)) {
30686 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30687 }
30688 arg6 = static_cast< int >(val6);
30689 {
30690 PyThreadState* __tstate = wxPyBeginAllowThreads();
30691 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30692 wxPyEndAllowThreads(__tstate);
30693 if (PyErr_Occurred()) SWIG_fail;
30694 }
30695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30696 return resultobj;
30697fail:
30698 return NULL;
30699}
30700
30701
30702SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30703 PyObject *resultobj = 0;
30704 wxOverlay *arg1 = 0 ;
30705 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30706 wxDCOverlay *result = 0 ;
30707 void *argp1 = 0 ;
30708 int res1 = 0 ;
30709 void *argp2 = 0 ;
30710 int res2 = 0 ;
30711
30712 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30714 if (!SWIG_IsOK(res1)) {
30715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30716 }
30717 if (!argp1) {
30718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30719 }
30720 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30721 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30722 if (!SWIG_IsOK(res2)) {
30723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30724 }
30725 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30726 {
30727 PyThreadState* __tstate = wxPyBeginAllowThreads();
30728 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30729 wxPyEndAllowThreads(__tstate);
30730 if (PyErr_Occurred()) SWIG_fail;
30731 }
30732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30733 return resultobj;
30734fail:
30735 return NULL;
30736}
30737
30738
30739SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30740 int argc;
30741 PyObject *argv[7];
30742
30743 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30744 --argc;
30745 if (argc == 2) {
30746 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30747 }
30748 if (argc == 6) {
30749 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30750 }
30751
30752fail:
30753 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30754 return NULL;
30755}
30756
30757
30758SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30759 PyObject *resultobj = 0;
30760 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30761 void *argp1 = 0 ;
30762 int res1 = 0 ;
30763 PyObject *swig_obj[1] ;
30764
30765 if (!args) SWIG_fail;
30766 swig_obj[0] = args;
30767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30768 if (!SWIG_IsOK(res1)) {
30769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30770 }
30771 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30772 {
30773 PyThreadState* __tstate = wxPyBeginAllowThreads();
30774 delete arg1;
30775
30776 wxPyEndAllowThreads(__tstate);
30777 if (PyErr_Occurred()) SWIG_fail;
30778 }
30779 resultobj = SWIG_Py_Void();
30780 return resultobj;
30781fail:
30782 return NULL;
30783}
30784
30785
30786SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30787 PyObject *resultobj = 0;
30788 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30789 void *argp1 = 0 ;
30790 int res1 = 0 ;
30791 PyObject *swig_obj[1] ;
30792
30793 if (!args) SWIG_fail;
30794 swig_obj[0] = args;
30795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30796 if (!SWIG_IsOK(res1)) {
30797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30798 }
30799 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30800 {
30801 PyThreadState* __tstate = wxPyBeginAllowThreads();
30802 (arg1)->Clear();
30803 wxPyEndAllowThreads(__tstate);
30804 if (PyErr_Occurred()) SWIG_fail;
30805 }
30806 resultobj = SWIG_Py_Void();
30807 return resultobj;
30808fail:
30809 return NULL;
30810}
30811
30812
30813SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30814 PyObject *obj;
30815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30816 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30817 return SWIG_Py_Void();
30818}
30819
30820SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30821 return SWIG_Python_InitShadowInstance(args);
30822}
30823
72ef6efb
RD
30824SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30825 PyObject *resultobj = 0;
30826 int arg1 ;
30827 int arg2 ;
30828 int arg3 = (int) true ;
30829 int arg4 = (int) 1 ;
30830 wxImageList *result = 0 ;
30831 int val1 ;
30832 int ecode1 = 0 ;
30833 int val2 ;
30834 int ecode2 = 0 ;
30835 int val3 ;
30836 int ecode3 = 0 ;
30837 int val4 ;
30838 int ecode4 = 0 ;
30839 PyObject * obj0 = 0 ;
30840 PyObject * obj1 = 0 ;
30841 PyObject * obj2 = 0 ;
30842 PyObject * obj3 = 0 ;
30843 char * kwnames[] = {
30844 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30845 };
30846
30847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30848 ecode1 = SWIG_AsVal_int(obj0, &val1);
30849 if (!SWIG_IsOK(ecode1)) {
30850 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30851 }
30852 arg1 = static_cast< int >(val1);
30853 ecode2 = SWIG_AsVal_int(obj1, &val2);
30854 if (!SWIG_IsOK(ecode2)) {
30855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30856 }
30857 arg2 = static_cast< int >(val2);
30858 if (obj2) {
30859 ecode3 = SWIG_AsVal_int(obj2, &val3);
30860 if (!SWIG_IsOK(ecode3)) {
30861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30862 }
30863 arg3 = static_cast< int >(val3);
30864 }
30865 if (obj3) {
30866 ecode4 = SWIG_AsVal_int(obj3, &val4);
30867 if (!SWIG_IsOK(ecode4)) {
30868 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30869 }
30870 arg4 = static_cast< int >(val4);
30871 }
30872 {
30873 if (!wxPyCheckForApp()) SWIG_fail;
30874 PyThreadState* __tstate = wxPyBeginAllowThreads();
30875 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30876 wxPyEndAllowThreads(__tstate);
30877 if (PyErr_Occurred()) SWIG_fail;
30878 }
e02c0a13 30879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
30880 return resultobj;
30881fail:
30882 return NULL;
30883}
30884
30885
30886SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30887 PyObject *resultobj = 0;
30888 wxImageList *arg1 = (wxImageList *) 0 ;
30889 void *argp1 = 0 ;
30890 int res1 = 0 ;
30891 PyObject *swig_obj[1] ;
30892
30893 if (!args) SWIG_fail;
30894 swig_obj[0] = args;
30895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30896 if (!SWIG_IsOK(res1)) {
30897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30898 }
30899 arg1 = reinterpret_cast< wxImageList * >(argp1);
30900 {
30901 PyThreadState* __tstate = wxPyBeginAllowThreads();
30902 delete arg1;
30903
30904 wxPyEndAllowThreads(__tstate);
30905 if (PyErr_Occurred()) SWIG_fail;
30906 }
30907 resultobj = SWIG_Py_Void();
30908 return resultobj;
30909fail:
30910 return NULL;
30911}
30912
30913
30914SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30915 PyObject *resultobj = 0;
30916 wxImageList *arg1 = (wxImageList *) 0 ;
30917 wxBitmap *arg2 = 0 ;
30918 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30919 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30920 int result;
30921 void *argp1 = 0 ;
30922 int res1 = 0 ;
30923 void *argp2 = 0 ;
30924 int res2 = 0 ;
30925 void *argp3 = 0 ;
30926 int res3 = 0 ;
30927 PyObject * obj0 = 0 ;
30928 PyObject * obj1 = 0 ;
30929 PyObject * obj2 = 0 ;
30930 char * kwnames[] = {
30931 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30932 };
30933
30934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30936 if (!SWIG_IsOK(res1)) {
30937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30938 }
30939 arg1 = reinterpret_cast< wxImageList * >(argp1);
30940 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30941 if (!SWIG_IsOK(res2)) {
30942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30943 }
30944 if (!argp2) {
30945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30946 }
30947 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30948 if (obj2) {
30949 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30950 if (!SWIG_IsOK(res3)) {
30951 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30952 }
30953 if (!argp3) {
30954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30955 }
30956 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30957 }
30958 {
30959 PyThreadState* __tstate = wxPyBeginAllowThreads();
30960 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30961 wxPyEndAllowThreads(__tstate);
30962 if (PyErr_Occurred()) SWIG_fail;
30963 }
30964 resultobj = SWIG_From_int(static_cast< int >(result));
30965 return resultobj;
30966fail:
30967 return NULL;
30968}
30969
30970
30971SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30972 PyObject *resultobj = 0;
30973 wxImageList *arg1 = (wxImageList *) 0 ;
30974 wxBitmap *arg2 = 0 ;
30975 wxColour *arg3 = 0 ;
30976 int result;
30977 void *argp1 = 0 ;
30978 int res1 = 0 ;
30979 void *argp2 = 0 ;
30980 int res2 = 0 ;
30981 wxColour temp3 ;
30982 PyObject * obj0 = 0 ;
30983 PyObject * obj1 = 0 ;
30984 PyObject * obj2 = 0 ;
30985 char * kwnames[] = {
30986 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
30987 };
30988
30989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30991 if (!SWIG_IsOK(res1)) {
30992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
30993 }
30994 arg1 = reinterpret_cast< wxImageList * >(argp1);
30995 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30996 if (!SWIG_IsOK(res2)) {
30997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30998 }
30999 if (!argp2) {
31000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31001 }
31002 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31003 {
31004 arg3 = &temp3;
31005 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31006 }
31007 {
31008 PyThreadState* __tstate = wxPyBeginAllowThreads();
31009 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31010 wxPyEndAllowThreads(__tstate);
31011 if (PyErr_Occurred()) SWIG_fail;
31012 }
31013 resultobj = SWIG_From_int(static_cast< int >(result));
31014 return resultobj;
31015fail:
31016 return NULL;
31017}
31018
31019
31020SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31021 PyObject *resultobj = 0;
31022 wxImageList *arg1 = (wxImageList *) 0 ;
31023 wxIcon *arg2 = 0 ;
31024 int result;
31025 void *argp1 = 0 ;
31026 int res1 = 0 ;
31027 void *argp2 = 0 ;
31028 int res2 = 0 ;
31029 PyObject * obj0 = 0 ;
31030 PyObject * obj1 = 0 ;
31031 char * kwnames[] = {
31032 (char *) "self",(char *) "icon", NULL
31033 };
31034
31035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31037 if (!SWIG_IsOK(res1)) {
31038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31039 }
0085ce49
RD
31040 arg1 = reinterpret_cast< wxImageList * >(argp1);
31041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31042 if (!SWIG_IsOK(res2)) {
31043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31044 }
31045 if (!argp2) {
31046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31047 }
31048 arg2 = reinterpret_cast< wxIcon * >(argp2);
31049 {
31050 PyThreadState* __tstate = wxPyBeginAllowThreads();
31051 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31052 wxPyEndAllowThreads(__tstate);
31053 if (PyErr_Occurred()) SWIG_fail;
31054 }
31055 resultobj = SWIG_From_int(static_cast< int >(result));
31056 return resultobj;
31057fail:
31058 return NULL;
31059}
31060
31061
31062SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31063 PyObject *resultobj = 0;
31064 wxImageList *arg1 = (wxImageList *) 0 ;
31065 int arg2 ;
31066 SwigValueWrapper<wxBitmap > result;
31067 void *argp1 = 0 ;
31068 int res1 = 0 ;
31069 int val2 ;
31070 int ecode2 = 0 ;
31071 PyObject * obj0 = 0 ;
31072 PyObject * obj1 = 0 ;
31073 char * kwnames[] = {
31074 (char *) "self",(char *) "index", NULL
31075 };
31076
31077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31079 if (!SWIG_IsOK(res1)) {
31080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31081 }
31082 arg1 = reinterpret_cast< wxImageList * >(argp1);
31083 ecode2 = SWIG_AsVal_int(obj1, &val2);
31084 if (!SWIG_IsOK(ecode2)) {
31085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31086 }
31087 arg2 = static_cast< int >(val2);
31088 {
31089 PyThreadState* __tstate = wxPyBeginAllowThreads();
31090 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31091 wxPyEndAllowThreads(__tstate);
31092 if (PyErr_Occurred()) SWIG_fail;
31093 }
31094 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31095 return resultobj;
31096fail:
31097 return NULL;
31098}
31099
31100
31101SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31102 PyObject *resultobj = 0;
31103 wxImageList *arg1 = (wxImageList *) 0 ;
31104 int arg2 ;
31105 wxIcon result;
31106 void *argp1 = 0 ;
31107 int res1 = 0 ;
31108 int val2 ;
31109 int ecode2 = 0 ;
31110 PyObject * obj0 = 0 ;
31111 PyObject * obj1 = 0 ;
31112 char * kwnames[] = {
31113 (char *) "self",(char *) "index", NULL
31114 };
31115
31116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31118 if (!SWIG_IsOK(res1)) {
31119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31120 }
31121 arg1 = reinterpret_cast< wxImageList * >(argp1);
31122 ecode2 = SWIG_AsVal_int(obj1, &val2);
31123 if (!SWIG_IsOK(ecode2)) {
31124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31125 }
31126 arg2 = static_cast< int >(val2);
31127 {
31128 PyThreadState* __tstate = wxPyBeginAllowThreads();
31129 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31130 wxPyEndAllowThreads(__tstate);
31131 if (PyErr_Occurred()) SWIG_fail;
31132 }
31133 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31134 return resultobj;
31135fail:
31136 return NULL;
31137}
31138
31139
31140SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31141 PyObject *resultobj = 0;
31142 wxImageList *arg1 = (wxImageList *) 0 ;
31143 int arg2 ;
31144 wxBitmap *arg3 = 0 ;
01f6b6d3
RD
31145 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31146 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
0085ce49
RD
31147 bool result;
31148 void *argp1 = 0 ;
31149 int res1 = 0 ;
31150 int val2 ;
31151 int ecode2 = 0 ;
31152 void *argp3 = 0 ;
31153 int res3 = 0 ;
01f6b6d3
RD
31154 void *argp4 = 0 ;
31155 int res4 = 0 ;
0085ce49
RD
31156 PyObject * obj0 = 0 ;
31157 PyObject * obj1 = 0 ;
31158 PyObject * obj2 = 0 ;
01f6b6d3 31159 PyObject * obj3 = 0 ;
0085ce49 31160 char * kwnames[] = {
01f6b6d3 31161 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
0085ce49
RD
31162 };
31163
01f6b6d3 31164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
31165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31166 if (!SWIG_IsOK(res1)) {
31167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31168 }
31169 arg1 = reinterpret_cast< wxImageList * >(argp1);
31170 ecode2 = SWIG_AsVal_int(obj1, &val2);
31171 if (!SWIG_IsOK(ecode2)) {
31172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31173 }
31174 arg2 = static_cast< int >(val2);
31175 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31176 if (!SWIG_IsOK(res3)) {
31177 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31178 }
31179 if (!argp3) {
31180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31181 }
31182 arg3 = reinterpret_cast< wxBitmap * >(argp3);
01f6b6d3
RD
31183 if (obj3) {
31184 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31185 if (!SWIG_IsOK(res4)) {
31186 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31187 }
31188 if (!argp4) {
31189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31190 }
31191 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31192 }
0085ce49
RD
31193 {
31194 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 31195 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
0085ce49
RD
31196 wxPyEndAllowThreads(__tstate);
31197 if (PyErr_Occurred()) SWIG_fail;
31198 }
31199 {
31200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31201 }
31202 return resultobj;
31203fail:
31204 return NULL;
31205}
31206
31207
31208SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31209 PyObject *resultobj = 0;
31210 wxImageList *arg1 = (wxImageList *) 0 ;
31211 int arg2 ;
31212 wxDC *arg3 = 0 ;
31213 int arg4 ;
31214 int arg5 ;
31215 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31216 bool arg7 = (bool) (bool)false ;
31217 bool result;
31218 void *argp1 = 0 ;
31219 int res1 = 0 ;
31220 int val2 ;
31221 int ecode2 = 0 ;
31222 void *argp3 = 0 ;
31223 int res3 = 0 ;
31224 int val4 ;
31225 int ecode4 = 0 ;
31226 int val5 ;
31227 int ecode5 = 0 ;
31228 int val6 ;
31229 int ecode6 = 0 ;
31230 bool val7 ;
31231 int ecode7 = 0 ;
31232 PyObject * obj0 = 0 ;
31233 PyObject * obj1 = 0 ;
31234 PyObject * obj2 = 0 ;
31235 PyObject * obj3 = 0 ;
31236 PyObject * obj4 = 0 ;
31237 PyObject * obj5 = 0 ;
31238 PyObject * obj6 = 0 ;
31239 char * kwnames[] = {
31240 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31241 };
31242
31243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31245 if (!SWIG_IsOK(res1)) {
31246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31247 }
31248 arg1 = reinterpret_cast< wxImageList * >(argp1);
31249 ecode2 = SWIG_AsVal_int(obj1, &val2);
31250 if (!SWIG_IsOK(ecode2)) {
31251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31252 }
31253 arg2 = static_cast< int >(val2);
31254 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31255 if (!SWIG_IsOK(res3)) {
31256 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31257 }
31258 if (!argp3) {
31259 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31260 }
31261 arg3 = reinterpret_cast< wxDC * >(argp3);
31262 ecode4 = SWIG_AsVal_int(obj3, &val4);
31263 if (!SWIG_IsOK(ecode4)) {
31264 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31265 }
31266 arg4 = static_cast< int >(val4);
31267 ecode5 = SWIG_AsVal_int(obj4, &val5);
31268 if (!SWIG_IsOK(ecode5)) {
31269 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31270 }
31271 arg5 = static_cast< int >(val5);
31272 if (obj5) {
31273 ecode6 = SWIG_AsVal_int(obj5, &val6);
31274 if (!SWIG_IsOK(ecode6)) {
31275 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31276 }
31277 arg6 = static_cast< int >(val6);
31278 }
31279 if (obj6) {
31280 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31281 if (!SWIG_IsOK(ecode7)) {
31282 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31283 }
31284 arg7 = static_cast< bool >(val7);
31285 }
31286 {
31287 PyThreadState* __tstate = wxPyBeginAllowThreads();
31288 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31289 wxPyEndAllowThreads(__tstate);
31290 if (PyErr_Occurred()) SWIG_fail;
31291 }
31292 {
31293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31294 }
31295 return resultobj;
31296fail:
31297 return NULL;
31298}
31299
31300
31301SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31302 PyObject *resultobj = 0;
31303 wxImageList *arg1 = (wxImageList *) 0 ;
31304 int result;
31305 void *argp1 = 0 ;
31306 int res1 = 0 ;
31307 PyObject *swig_obj[1] ;
31308
31309 if (!args) SWIG_fail;
31310 swig_obj[0] = args;
31311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31312 if (!SWIG_IsOK(res1)) {
31313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31314 }
31315 arg1 = reinterpret_cast< wxImageList * >(argp1);
31316 {
31317 PyThreadState* __tstate = wxPyBeginAllowThreads();
31318 result = (int)(arg1)->GetImageCount();
31319 wxPyEndAllowThreads(__tstate);
31320 if (PyErr_Occurred()) SWIG_fail;
31321 }
31322 resultobj = SWIG_From_int(static_cast< int >(result));
31323 return resultobj;
31324fail:
31325 return NULL;
31326}
31327
31328
31329SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31330 PyObject *resultobj = 0;
31331 wxImageList *arg1 = (wxImageList *) 0 ;
31332 int arg2 ;
31333 bool result;
31334 void *argp1 = 0 ;
31335 int res1 = 0 ;
31336 int val2 ;
31337 int ecode2 = 0 ;
31338 PyObject * obj0 = 0 ;
31339 PyObject * obj1 = 0 ;
31340 char * kwnames[] = {
31341 (char *) "self",(char *) "index", NULL
31342 };
31343
31344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31346 if (!SWIG_IsOK(res1)) {
31347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31348 }
31349 arg1 = reinterpret_cast< wxImageList * >(argp1);
31350 ecode2 = SWIG_AsVal_int(obj1, &val2);
31351 if (!SWIG_IsOK(ecode2)) {
31352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31353 }
31354 arg2 = static_cast< int >(val2);
31355 {
31356 PyThreadState* __tstate = wxPyBeginAllowThreads();
31357 result = (bool)(arg1)->Remove(arg2);
31358 wxPyEndAllowThreads(__tstate);
31359 if (PyErr_Occurred()) SWIG_fail;
31360 }
31361 {
31362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31363 }
31364 return resultobj;
31365fail:
31366 return NULL;
31367}
31368
31369
31370SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31371 PyObject *resultobj = 0;
31372 wxImageList *arg1 = (wxImageList *) 0 ;
31373 bool result;
31374 void *argp1 = 0 ;
31375 int res1 = 0 ;
31376 PyObject *swig_obj[1] ;
31377
31378 if (!args) SWIG_fail;
31379 swig_obj[0] = args;
31380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31381 if (!SWIG_IsOK(res1)) {
31382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31383 }
31384 arg1 = reinterpret_cast< wxImageList * >(argp1);
31385 {
31386 PyThreadState* __tstate = wxPyBeginAllowThreads();
31387 result = (bool)(arg1)->RemoveAll();
31388 wxPyEndAllowThreads(__tstate);
31389 if (PyErr_Occurred()) SWIG_fail;
31390 }
31391 {
31392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31393 }
31394 return resultobj;
31395fail:
31396 return NULL;
31397}
31398
31399
31400SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31401 PyObject *resultobj = 0;
31402 wxImageList *arg1 = (wxImageList *) 0 ;
31403 int arg2 ;
31404 int *arg3 = 0 ;
31405 int *arg4 = 0 ;
31406 void *argp1 = 0 ;
31407 int res1 = 0 ;
31408 int val2 ;
31409 int ecode2 = 0 ;
31410 int temp3 ;
31411 int res3 = SWIG_TMPOBJ ;
31412 int temp4 ;
31413 int res4 = SWIG_TMPOBJ ;
31414 PyObject * obj0 = 0 ;
31415 PyObject * obj1 = 0 ;
31416 char * kwnames[] = {
31417 (char *) "self",(char *) "index", NULL
31418 };
31419
31420 arg3 = &temp3;
31421 arg4 = &temp4;
31422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31424 if (!SWIG_IsOK(res1)) {
31425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31426 }
31427 arg1 = reinterpret_cast< wxImageList * >(argp1);
31428 ecode2 = SWIG_AsVal_int(obj1, &val2);
31429 if (!SWIG_IsOK(ecode2)) {
31430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31431 }
31432 arg2 = static_cast< int >(val2);
31433 {
31434 PyThreadState* __tstate = wxPyBeginAllowThreads();
31435 (arg1)->GetSize(arg2,*arg3,*arg4);
31436 wxPyEndAllowThreads(__tstate);
31437 if (PyErr_Occurred()) SWIG_fail;
31438 }
31439 resultobj = SWIG_Py_Void();
31440 if (SWIG_IsTmpObj(res3)) {
31441 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31442 } else {
31443 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31444 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31445 }
31446 if (SWIG_IsTmpObj(res4)) {
31447 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31448 } else {
31449 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31450 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31451 }
31452 return resultobj;
31453fail:
31454 return NULL;
31455}
31456
31457
31458SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31459 PyObject *obj;
31460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31461 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31462 return SWIG_Py_Void();
31463}
31464
31465SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31466 return SWIG_Python_InitShadowInstance(args);
31467}
31468
50efceee
RD
31469SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31470 PyObject *resultobj = 0;
31471 wxStockGDI *result = 0 ;
0085ce49 31472
50efceee
RD
31473 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31474 {
31475 PyThreadState* __tstate = wxPyBeginAllowThreads();
31476 result = (wxStockGDI *)new wxStockGDI();
31477 wxPyEndAllowThreads(__tstate);
31478 if (PyErr_Occurred()) SWIG_fail;
31479 }
31480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31481 return resultobj;
31482fail:
31483 return NULL;
0085ce49
RD
31484}
31485
31486
50efceee
RD
31487SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31488 PyObject *resultobj = 0;
31489 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31490 void *argp1 = 0 ;
31491 int res1 = 0 ;
31492 PyObject *swig_obj[1] ;
0085ce49 31493
50efceee
RD
31494 if (!args) SWIG_fail;
31495 swig_obj[0] = args;
31496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31497 if (!SWIG_IsOK(res1)) {
31498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31499 }
31500 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31501 {
31502 PyThreadState* __tstate = wxPyBeginAllowThreads();
31503 delete arg1;
31504
31505 wxPyEndAllowThreads(__tstate);
31506 if (PyErr_Occurred()) SWIG_fail;
31507 }
31508 resultobj = SWIG_Py_Void();
31509 return resultobj;
31510fail:
31511 return NULL;
0085ce49
RD
31512}
31513
31514
50efceee
RD
31515SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31516 PyObject *resultobj = 0;
0085ce49 31517
50efceee
RD
31518 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31519 {
31520 PyThreadState* __tstate = wxPyBeginAllowThreads();
31521 wxStockGDI::DeleteAll();
31522 wxPyEndAllowThreads(__tstate);
31523 if (PyErr_Occurred()) SWIG_fail;
31524 }
31525 resultobj = SWIG_Py_Void();
31526 return resultobj;
31527fail:
31528 return NULL;
0085ce49
RD
31529}
31530
31531
50efceee
RD
31532SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31533 PyObject *resultobj = 0;
31534 wxStockGDI *result = 0 ;
0085ce49 31535
50efceee
RD
31536 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31537 {
31538 PyThreadState* __tstate = wxPyBeginAllowThreads();
31539 {
31540 wxStockGDI &_result_ref = wxStockGDI::instance();
31541 result = (wxStockGDI *) &_result_ref;
31542 }
31543 wxPyEndAllowThreads(__tstate);
31544 if (PyErr_Occurred()) SWIG_fail;
31545 }
31546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31547 return resultobj;
31548fail:
31549 return NULL;
0085ce49
RD
31550}
31551
31552
50efceee
RD
31553SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31554 PyObject *resultobj = 0;
31555 wxStockGDI::Item arg1 ;
31556 wxBrush *result = 0 ;
31557 int val1 ;
31558 int ecode1 = 0 ;
31559 PyObject * obj0 = 0 ;
31560 char * kwnames[] = {
31561 (char *) "item", NULL
31562 };
31563
31564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31565 ecode1 = SWIG_AsVal_int(obj0, &val1);
31566 if (!SWIG_IsOK(ecode1)) {
31567 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31568 }
31569 arg1 = static_cast< wxStockGDI::Item >(val1);
31570 {
31571 PyThreadState* __tstate = wxPyBeginAllowThreads();
31572 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31573 wxPyEndAllowThreads(__tstate);
31574 if (PyErr_Occurred()) SWIG_fail;
31575 }
31576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31577 return resultobj;
31578fail:
31579 return NULL;
0085ce49
RD
31580}
31581
31582
50efceee
RD
31583SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31584 PyObject *resultobj = 0;
31585 wxStockGDI::Item arg1 ;
31586 wxColour *result = 0 ;
31587 int val1 ;
31588 int ecode1 = 0 ;
31589 PyObject * obj0 = 0 ;
31590 char * kwnames[] = {
31591 (char *) "item", NULL
31592 };
0085ce49 31593
50efceee
RD
31594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31595 ecode1 = SWIG_AsVal_int(obj0, &val1);
31596 if (!SWIG_IsOK(ecode1)) {
31597 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31598 }
31599 arg1 = static_cast< wxStockGDI::Item >(val1);
31600 {
31601 PyThreadState* __tstate = wxPyBeginAllowThreads();
31602 result = (wxColour *)wxStockGDI::GetColour(arg1);
31603 wxPyEndAllowThreads(__tstate);
31604 if (PyErr_Occurred()) SWIG_fail;
31605 }
31606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31607 return resultobj;
31608fail:
31609 return NULL;
0085ce49
RD
31610}
31611
31612
50efceee
RD
31613SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31614 PyObject *resultobj = 0;
31615 wxStockGDI::Item arg1 ;
31616 wxCursor *result = 0 ;
31617 int val1 ;
31618 int ecode1 = 0 ;
31619 PyObject * obj0 = 0 ;
31620 char * kwnames[] = {
31621 (char *) "item", NULL
31622 };
31623
31624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31625 ecode1 = SWIG_AsVal_int(obj0, &val1);
31626 if (!SWIG_IsOK(ecode1)) {
31627 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31628 }
31629 arg1 = static_cast< wxStockGDI::Item >(val1);
31630 {
31631 PyThreadState* __tstate = wxPyBeginAllowThreads();
31632 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31633 wxPyEndAllowThreads(__tstate);
31634 if (PyErr_Occurred()) SWIG_fail;
31635 }
31636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31637 return resultobj;
31638fail:
31639 return NULL;
0085ce49
RD
31640}
31641
31642
50efceee
RD
31643SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31644 PyObject *resultobj = 0;
31645 wxStockGDI::Item arg1 ;
31646 wxPen *result = 0 ;
31647 int val1 ;
31648 int ecode1 = 0 ;
31649 PyObject * obj0 = 0 ;
31650 char * kwnames[] = {
31651 (char *) "item", NULL
31652 };
31653
31654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31655 ecode1 = SWIG_AsVal_int(obj0, &val1);
31656 if (!SWIG_IsOK(ecode1)) {
31657 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31658 }
31659 arg1 = static_cast< wxStockGDI::Item >(val1);
31660 {
31661 PyThreadState* __tstate = wxPyBeginAllowThreads();
31662 result = (wxPen *)wxStockGDI::GetPen(arg1);
31663 wxPyEndAllowThreads(__tstate);
31664 if (PyErr_Occurred()) SWIG_fail;
31665 }
31666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31667 return resultobj;
31668fail:
31669 return NULL;
0085ce49
RD
31670}
31671
31672
50efceee
RD
31673SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31674 PyObject *resultobj = 0;
31675 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31676 wxStockGDI::Item arg2 ;
31677 wxFont *result = 0 ;
31678 void *argp1 = 0 ;
31679 int res1 = 0 ;
31680 int val2 ;
31681 int ecode2 = 0 ;
31682 PyObject * obj0 = 0 ;
31683 PyObject * obj1 = 0 ;
31684 char * kwnames[] = {
31685 (char *) "self",(char *) "item", NULL
31686 };
0085ce49 31687
50efceee
RD
31688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31690 if (!SWIG_IsOK(res1)) {
31691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31692 }
31693 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31694 ecode2 = SWIG_AsVal_int(obj1, &val2);
31695 if (!SWIG_IsOK(ecode2)) {
31696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31697 }
31698 arg2 = static_cast< wxStockGDI::Item >(val2);
31699 {
31700 PyThreadState* __tstate = wxPyBeginAllowThreads();
31701 result = (wxFont *)(arg1)->GetFont(arg2);
31702 wxPyEndAllowThreads(__tstate);
31703 if (PyErr_Occurred()) SWIG_fail;
31704 }
31705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31706 return resultobj;
31707fail:
31708 return NULL;
0085ce49
RD
31709}
31710
31711
50efceee
RD
31712SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31713 PyObject *obj;
31714 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31715 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31716 return SWIG_Py_Void();
0085ce49
RD
31717}
31718
50efceee
RD
31719SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31720 return SWIG_Python_InitShadowInstance(args);
0085ce49
RD
31721}
31722
0085ce49
RD
31723SWIGINTERN int NullBitmap_set(PyObject *) {
31724 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31725 return 1;
31726}
31727
31728
31729SWIGINTERN PyObject *NullBitmap_get(void) {
31730 PyObject *pyobj = 0;
31731
31732 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31733 return pyobj;
31734}
31735
31736
31737SWIGINTERN int NullIcon_set(PyObject *) {
31738 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31739 return 1;
31740}
31741
31742
31743SWIGINTERN PyObject *NullIcon_get(void) {
31744 PyObject *pyobj = 0;
31745
31746 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31747 return pyobj;
31748}
31749
31750
31751SWIGINTERN int NullCursor_set(PyObject *) {
31752 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31753 return 1;
31754}
31755
31756
31757SWIGINTERN PyObject *NullCursor_get(void) {
31758 PyObject *pyobj = 0;
31759
31760 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31761 return pyobj;
31762}
31763
31764
31765SWIGINTERN int NullPen_set(PyObject *) {
31766 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31767 return 1;
31768}
31769
31770
31771SWIGINTERN PyObject *NullPen_get(void) {
31772 PyObject *pyobj = 0;
31773
31774 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31775 return pyobj;
31776}
31777
31778
31779SWIGINTERN int NullBrush_set(PyObject *) {
31780 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31781 return 1;
31782}
31783
31784
31785SWIGINTERN PyObject *NullBrush_get(void) {
31786 PyObject *pyobj = 0;
31787
31788 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31789 return pyobj;
31790}
31791
31792
31793SWIGINTERN int NullPalette_set(PyObject *) {
31794 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31795 return 1;
31796}
31797
31798
31799SWIGINTERN PyObject *NullPalette_get(void) {
31800 PyObject *pyobj = 0;
31801
31802 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31803 return pyobj;
31804}
31805
31806
31807SWIGINTERN int NullFont_set(PyObject *) {
31808 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31809 return 1;
31810}
31811
31812
31813SWIGINTERN PyObject *NullFont_get(void) {
31814 PyObject *pyobj = 0;
31815
31816 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31817 return pyobj;
31818}
31819
31820
31821SWIGINTERN int NullColour_set(PyObject *) {
31822 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31823 return 1;
31824}
31825
31826
31827SWIGINTERN PyObject *NullColour_get(void) {
31828 PyObject *pyobj = 0;
31829
31830 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31831 return pyobj;
31832}
31833
31834
50efceee 31835SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 31836 PyObject *resultobj = 0;
50efceee
RD
31837 wxGDIObjListBase *result = 0 ;
31838
31839 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31840 {
31841 PyThreadState* __tstate = wxPyBeginAllowThreads();
31842 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31843 wxPyEndAllowThreads(__tstate);
31844 if (PyErr_Occurred()) SWIG_fail;
31845 }
31846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31847 return resultobj;
31848fail:
31849 return NULL;
31850}
31851
31852
31853SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31854 PyObject *resultobj = 0;
31855 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
0085ce49
RD
31856 void *argp1 = 0 ;
31857 int res1 = 0 ;
50efceee 31858 PyObject *swig_obj[1] ;
0085ce49 31859
50efceee
RD
31860 if (!args) SWIG_fail;
31861 swig_obj[0] = args;
31862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
0085ce49 31863 if (!SWIG_IsOK(res1)) {
50efceee 31864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
0085ce49 31865 }
50efceee 31866 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
0085ce49
RD
31867 {
31868 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
31869 delete arg1;
31870
0085ce49
RD
31871 wxPyEndAllowThreads(__tstate);
31872 if (PyErr_Occurred()) SWIG_fail;
31873 }
31874 resultobj = SWIG_Py_Void();
31875 return resultobj;
31876fail:
31877 return NULL;
31878}
31879
31880
50efceee
RD
31881SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31882 PyObject *obj;
31883 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31884 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31885 return SWIG_Py_Void();
31886}
31887
31888SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31889 return SWIG_Python_InitShadowInstance(args);
31890}
31891
0085ce49
RD
31892SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31893 PyObject *resultobj = 0;
31894 wxPenList *arg1 = (wxPenList *) 0 ;
31895 wxColour *arg2 = 0 ;
31896 int arg3 ;
31897 int arg4 ;
31898 wxPen *result = 0 ;
31899 void *argp1 = 0 ;
31900 int res1 = 0 ;
31901 wxColour temp2 ;
31902 int val3 ;
31903 int ecode3 = 0 ;
31904 int val4 ;
31905 int ecode4 = 0 ;
31906 PyObject * obj0 = 0 ;
31907 PyObject * obj1 = 0 ;
31908 PyObject * obj2 = 0 ;
31909 PyObject * obj3 = 0 ;
31910 char * kwnames[] = {
31911 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31912 };
31913
31914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31916 if (!SWIG_IsOK(res1)) {
31917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31918 }
31919 arg1 = reinterpret_cast< wxPenList * >(argp1);
31920 {
31921 arg2 = &temp2;
31922 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31923 }
31924 ecode3 = SWIG_AsVal_int(obj2, &val3);
31925 if (!SWIG_IsOK(ecode3)) {
31926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31927 }
31928 arg3 = static_cast< int >(val3);
31929 ecode4 = SWIG_AsVal_int(obj3, &val4);
31930 if (!SWIG_IsOK(ecode4)) {
31931 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31932 }
31933 arg4 = static_cast< int >(val4);
31934 {
31935 PyThreadState* __tstate = wxPyBeginAllowThreads();
31936 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31937 wxPyEndAllowThreads(__tstate);
31938 if (PyErr_Occurred()) SWIG_fail;
31939 }
31940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31941 return resultobj;
31942fail:
31943 return NULL;
31944}
31945
31946
50efceee 31947SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
31948 PyObject *resultobj = 0;
31949 wxPenList *arg1 = (wxPenList *) 0 ;
31950 wxPen *arg2 = (wxPen *) 0 ;
31951 void *argp1 = 0 ;
31952 int res1 = 0 ;
31953 void *argp2 = 0 ;
31954 int res2 = 0 ;
31955 PyObject * obj0 = 0 ;
31956 PyObject * obj1 = 0 ;
31957 char * kwnames[] = {
31958 (char *) "self",(char *) "pen", NULL
31959 };
31960
50efceee 31961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
0085ce49
RD
31962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31963 if (!SWIG_IsOK(res1)) {
50efceee 31964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
31965 }
31966 arg1 = reinterpret_cast< wxPenList * >(argp1);
31967 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31968 if (!SWIG_IsOK(res2)) {
50efceee 31969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
0085ce49
RD
31970 }
31971 arg2 = reinterpret_cast< wxPen * >(argp2);
31972 {
31973 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 31974 (arg1)->AddPen(arg2);
0085ce49
RD
31975 wxPyEndAllowThreads(__tstate);
31976 if (PyErr_Occurred()) SWIG_fail;
31977 }
31978 resultobj = SWIG_Py_Void();
31979 return resultobj;
31980fail:
31981 return NULL;
31982}
31983
31984
50efceee 31985SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
31986 PyObject *resultobj = 0;
31987 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 31988 wxPen *arg2 = (wxPen *) 0 ;
0085ce49
RD
31989 void *argp1 = 0 ;
31990 int res1 = 0 ;
50efceee
RD
31991 void *argp2 = 0 ;
31992 int res2 = 0 ;
31993 PyObject * obj0 = 0 ;
31994 PyObject * obj1 = 0 ;
31995 char * kwnames[] = {
31996 (char *) "self",(char *) "pen", NULL
31997 };
0085ce49 31998
50efceee
RD
31999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49 32001 if (!SWIG_IsOK(res1)) {
50efceee 32002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
32003 }
32004 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
32005 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32006 if (!SWIG_IsOK(res2)) {
32007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32008 }
32009 arg2 = reinterpret_cast< wxPen * >(argp2);
0085ce49
RD
32010 {
32011 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32012 (arg1)->RemovePen(arg2);
0085ce49
RD
32013 wxPyEndAllowThreads(__tstate);
32014 if (PyErr_Occurred()) SWIG_fail;
32015 }
50efceee 32016 resultobj = SWIG_Py_Void();
0085ce49
RD
32017 return resultobj;
32018fail:
32019 return NULL;
32020}
32021
32022
32023SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32024 PyObject *obj;
32025 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32026 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32027 return SWIG_Py_Void();
32028}
32029
50efceee
RD
32030SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32031 PyObject *resultobj = 0;
32032 wxBrushList *arg1 = (wxBrushList *) 0 ;
32033 wxColour *arg2 = 0 ;
32034 int arg3 = (int) wxSOLID ;
32035 wxBrush *result = 0 ;
32036 void *argp1 = 0 ;
32037 int res1 = 0 ;
32038 wxColour temp2 ;
32039 int val3 ;
32040 int ecode3 = 0 ;
32041 PyObject * obj0 = 0 ;
32042 PyObject * obj1 = 0 ;
32043 PyObject * obj2 = 0 ;
32044 char * kwnames[] = {
32045 (char *) "self",(char *) "colour",(char *) "style", NULL
32046 };
32047
32048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32050 if (!SWIG_IsOK(res1)) {
32051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32052 }
32053 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32054 {
32055 arg2 = &temp2;
32056 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32057 }
32058 if (obj2) {
32059 ecode3 = SWIG_AsVal_int(obj2, &val3);
32060 if (!SWIG_IsOK(ecode3)) {
32061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32062 }
32063 arg3 = static_cast< int >(val3);
32064 }
32065 {
32066 PyThreadState* __tstate = wxPyBeginAllowThreads();
32067 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32068 wxPyEndAllowThreads(__tstate);
32069 if (PyErr_Occurred()) SWIG_fail;
32070 }
32071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32072 return resultobj;
32073fail:
32074 return NULL;
32075}
32076
32077
0085ce49
RD
32078SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32079 PyObject *resultobj = 0;
32080 wxBrushList *arg1 = (wxBrushList *) 0 ;
32081 wxBrush *arg2 = (wxBrush *) 0 ;
32082 void *argp1 = 0 ;
32083 int res1 = 0 ;
32084 void *argp2 = 0 ;
32085 int res2 = 0 ;
32086 PyObject * obj0 = 0 ;
32087 PyObject * obj1 = 0 ;
32088 char * kwnames[] = {
32089 (char *) "self",(char *) "brush", NULL
32090 };
32091
32092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32094 if (!SWIG_IsOK(res1)) {
32095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32096 }
32097 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32098 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32099 if (!SWIG_IsOK(res2)) {
32100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32101 }
32102 arg2 = reinterpret_cast< wxBrush * >(argp2);
32103 {
32104 PyThreadState* __tstate = wxPyBeginAllowThreads();
32105 (arg1)->AddBrush(arg2);
32106 wxPyEndAllowThreads(__tstate);
32107 if (PyErr_Occurred()) SWIG_fail;
32108 }
32109 resultobj = SWIG_Py_Void();
32110 return resultobj;
32111fail:
32112 return NULL;
32113}
32114
32115
50efceee 32116SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
32117 PyObject *resultobj = 0;
32118 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 32119 wxBrush *arg2 = (wxBrush *) 0 ;
0085ce49
RD
32120 void *argp1 = 0 ;
32121 int res1 = 0 ;
50efceee
RD
32122 void *argp2 = 0 ;
32123 int res2 = 0 ;
32124 PyObject * obj0 = 0 ;
32125 PyObject * obj1 = 0 ;
32126 char * kwnames[] = {
32127 (char *) "self",(char *) "brush", NULL
32128 };
32129
32130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32132 if (!SWIG_IsOK(res1)) {
32133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32134 }
32135 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32136 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32137 if (!SWIG_IsOK(res2)) {
32138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32139 }
32140 arg2 = reinterpret_cast< wxBrush * >(argp2);
32141 {
32142 PyThreadState* __tstate = wxPyBeginAllowThreads();
32143 (arg1)->RemoveBrush(arg2);
32144 wxPyEndAllowThreads(__tstate);
32145 if (PyErr_Occurred()) SWIG_fail;
32146 }
32147 resultobj = SWIG_Py_Void();
32148 return resultobj;
32149fail:
32150 return NULL;
32151}
32152
32153
32154SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32155 PyObject *obj;
32156 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32157 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32158 return SWIG_Py_Void();
32159}
32160
32161SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32162 PyObject *resultobj = 0;
32163 wxFontList *arg1 = (wxFontList *) 0 ;
32164 int arg2 ;
32165 int arg3 ;
32166 int arg4 ;
32167 int arg5 ;
32168 bool arg6 = (bool) false ;
32169 wxString const &arg7_defvalue = wxPyEmptyString ;
32170 wxString *arg7 = (wxString *) &arg7_defvalue ;
32171 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32172 wxFont *result = 0 ;
32173 void *argp1 = 0 ;
32174 int res1 = 0 ;
32175 int val2 ;
32176 int ecode2 = 0 ;
0085ce49
RD
32177 int val3 ;
32178 int ecode3 = 0 ;
50efceee
RD
32179 int val4 ;
32180 int ecode4 = 0 ;
32181 int val5 ;
32182 int ecode5 = 0 ;
32183 bool val6 ;
32184 int ecode6 = 0 ;
32185 bool temp7 = false ;
32186 int val8 ;
32187 int ecode8 = 0 ;
0085ce49
RD
32188 PyObject * obj0 = 0 ;
32189 PyObject * obj1 = 0 ;
32190 PyObject * obj2 = 0 ;
50efceee
RD
32191 PyObject * obj3 = 0 ;
32192 PyObject * obj4 = 0 ;
32193 PyObject * obj5 = 0 ;
32194 PyObject * obj6 = 0 ;
32195 PyObject * obj7 = 0 ;
0085ce49 32196 char * kwnames[] = {
50efceee 32197 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
0085ce49
RD
32198 };
32199
50efceee
RD
32200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) 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_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32204 }
50efceee
RD
32205 arg1 = reinterpret_cast< wxFontList * >(argp1);
32206 ecode2 = SWIG_AsVal_int(obj1, &val2);
32207 if (!SWIG_IsOK(ecode2)) {
32208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32209 }
32210 arg2 = static_cast< int >(val2);
32211 ecode3 = SWIG_AsVal_int(obj2, &val3);
32212 if (!SWIG_IsOK(ecode3)) {
32213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32214 }
32215 arg3 = static_cast< int >(val3);
32216 ecode4 = SWIG_AsVal_int(obj3, &val4);
32217 if (!SWIG_IsOK(ecode4)) {
32218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32219 }
32220 arg4 = static_cast< int >(val4);
32221 ecode5 = SWIG_AsVal_int(obj4, &val5);
32222 if (!SWIG_IsOK(ecode5)) {
32223 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32224 }
32225 arg5 = static_cast< int >(val5);
32226 if (obj5) {
32227 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32228 if (!SWIG_IsOK(ecode6)) {
32229 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32230 }
32231 arg6 = static_cast< bool >(val6);
0085ce49 32232 }
50efceee
RD
32233 if (obj6) {
32234 {
32235 arg7 = wxString_in_helper(obj6);
32236 if (arg7 == NULL) SWIG_fail;
32237 temp7 = true;
32238 }
32239 }
32240 if (obj7) {
32241 ecode8 = SWIG_AsVal_int(obj7, &val8);
32242 if (!SWIG_IsOK(ecode8)) {
32243 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
0085ce49 32244 }
50efceee 32245 arg8 = static_cast< wxFontEncoding >(val8);
0085ce49
RD
32246 }
32247 {
32248 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32249 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
0085ce49
RD
32250 wxPyEndAllowThreads(__tstate);
32251 if (PyErr_Occurred()) SWIG_fail;
32252 }
50efceee
RD
32253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32254 {
32255 if (temp7)
32256 delete arg7;
32257 }
0085ce49
RD
32258 return resultobj;
32259fail:
50efceee
RD
32260 {
32261 if (temp7)
32262 delete arg7;
32263 }
0085ce49
RD
32264 return NULL;
32265}
32266
32267
50efceee 32268SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 32269 PyObject *resultobj = 0;
50efceee
RD
32270 wxFontList *arg1 = (wxFontList *) 0 ;
32271 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
32272 void *argp1 = 0 ;
32273 int res1 = 0 ;
32274 void *argp2 = 0 ;
32275 int res2 = 0 ;
32276 PyObject * obj0 = 0 ;
32277 PyObject * obj1 = 0 ;
32278 char * kwnames[] = {
50efceee 32279 (char *) "self",(char *) "font", NULL
0085ce49
RD
32280 };
32281
50efceee
RD
32282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32284 if (!SWIG_IsOK(res1)) {
50efceee 32285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32286 }
50efceee
RD
32287 arg1 = reinterpret_cast< wxFontList * >(argp1);
32288 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
0085ce49 32289 if (!SWIG_IsOK(res2)) {
50efceee 32290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
0085ce49 32291 }
50efceee 32292 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
32293 {
32294 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32295 (arg1)->AddFont(arg2);
0085ce49
RD
32296 wxPyEndAllowThreads(__tstate);
32297 if (PyErr_Occurred()) SWIG_fail;
32298 }
32299 resultobj = SWIG_Py_Void();
32300 return resultobj;
32301fail:
32302 return NULL;
32303}
32304
32305
50efceee 32306SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 32307 PyObject *resultobj = 0;
50efceee
RD
32308 wxFontList *arg1 = (wxFontList *) 0 ;
32309 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
32310 void *argp1 = 0 ;
32311 int res1 = 0 ;
50efceee
RD
32312 void *argp2 = 0 ;
32313 int res2 = 0 ;
32314 PyObject * obj0 = 0 ;
32315 PyObject * obj1 = 0 ;
32316 char * kwnames[] = {
32317 (char *) "self",(char *) "font", NULL
32318 };
0085ce49 32319
50efceee
RD
32320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 32322 if (!SWIG_IsOK(res1)) {
50efceee 32323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 32324 }
50efceee
RD
32325 arg1 = reinterpret_cast< wxFontList * >(argp1);
32326 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32327 if (!SWIG_IsOK(res2)) {
32328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32329 }
32330 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
32331 {
32332 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32333 (arg1)->RemoveFont(arg2);
0085ce49
RD
32334 wxPyEndAllowThreads(__tstate);
32335 if (PyErr_Occurred()) SWIG_fail;
32336 }
50efceee 32337 resultobj = SWIG_Py_Void();
0085ce49
RD
32338 return resultobj;
32339fail:
32340 return NULL;
32341}
32342
32343
50efceee 32344SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
32345 PyObject *obj;
32346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 32347 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
0085ce49
RD
32348 return SWIG_Py_Void();
32349}
32350
32351SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32352 PyObject *resultobj = 0;
32353 wxColourDatabase *result = 0 ;
32354
32355 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32356 {
32357 if (!wxPyCheckForApp()) SWIG_fail;
32358 PyThreadState* __tstate = wxPyBeginAllowThreads();
32359 result = (wxColourDatabase *)new wxColourDatabase();
32360 wxPyEndAllowThreads(__tstate);
32361 if (PyErr_Occurred()) SWIG_fail;
32362 }
32363 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32364 return resultobj;
32365fail:
32366 return NULL;
32367}
32368
32369
32370SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32371 PyObject *resultobj = 0;
32372 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32373 void *argp1 = 0 ;
32374 int res1 = 0 ;
32375 PyObject *swig_obj[1] ;
32376
32377 if (!args) SWIG_fail;
32378 swig_obj[0] = args;
32379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32380 if (!SWIG_IsOK(res1)) {
32381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32382 }
32383 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32384 {
32385 PyThreadState* __tstate = wxPyBeginAllowThreads();
32386 delete arg1;
32387
32388 wxPyEndAllowThreads(__tstate);
32389 if (PyErr_Occurred()) SWIG_fail;
32390 }
32391 resultobj = SWIG_Py_Void();
32392 return resultobj;
32393fail:
32394 return NULL;
32395}
32396
32397
32398SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32399 PyObject *resultobj = 0;
32400 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32401 wxString *arg2 = 0 ;
32402 wxColour result;
32403 void *argp1 = 0 ;
32404 int res1 = 0 ;
32405 bool temp2 = false ;
32406 PyObject * obj0 = 0 ;
32407 PyObject * obj1 = 0 ;
32408 char * kwnames[] = {
32409 (char *) "self",(char *) "name", NULL
32410 };
32411
32412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32414 if (!SWIG_IsOK(res1)) {
32415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32416 }
32417 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32418 {
32419 arg2 = wxString_in_helper(obj1);
32420 if (arg2 == NULL) SWIG_fail;
32421 temp2 = true;
32422 }
32423 {
32424 PyThreadState* __tstate = wxPyBeginAllowThreads();
32425 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32426 wxPyEndAllowThreads(__tstate);
32427 if (PyErr_Occurred()) SWIG_fail;
32428 }
32429 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32430 {
32431 if (temp2)
32432 delete arg2;
32433 }
32434 return resultobj;
32435fail:
32436 {
32437 if (temp2)
32438 delete arg2;
32439 }
32440 return NULL;
32441}
32442
32443
32444SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32445 PyObject *resultobj = 0;
32446 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32447 wxColour *arg2 = 0 ;
32448 wxString result;
32449 void *argp1 = 0 ;
32450 int res1 = 0 ;
32451 wxColour temp2 ;
32452 PyObject * obj0 = 0 ;
32453 PyObject * obj1 = 0 ;
32454 char * kwnames[] = {
32455 (char *) "self",(char *) "colour", NULL
32456 };
32457
32458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32460 if (!SWIG_IsOK(res1)) {
32461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32462 }
32463 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32464 {
32465 arg2 = &temp2;
32466 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32467 }
32468 {
32469 PyThreadState* __tstate = wxPyBeginAllowThreads();
32470 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32471 wxPyEndAllowThreads(__tstate);
32472 if (PyErr_Occurred()) SWIG_fail;
32473 }
32474 {
32475#if wxUSE_UNICODE
32476 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32477#else
32478 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32479#endif
32480 }
32481 return resultobj;
32482fail:
32483 return NULL;
32484}
32485
32486
32487SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32488 PyObject *resultobj = 0;
32489 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32490 wxString *arg2 = 0 ;
32491 wxColour *arg3 = 0 ;
32492 void *argp1 = 0 ;
32493 int res1 = 0 ;
32494 bool temp2 = false ;
32495 wxColour temp3 ;
32496 PyObject * obj0 = 0 ;
32497 PyObject * obj1 = 0 ;
32498 PyObject * obj2 = 0 ;
32499 char * kwnames[] = {
32500 (char *) "self",(char *) "name",(char *) "colour", NULL
32501 };
32502
32503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32505 if (!SWIG_IsOK(res1)) {
32506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32507 }
32508 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32509 {
32510 arg2 = wxString_in_helper(obj1);
32511 if (arg2 == NULL) SWIG_fail;
32512 temp2 = true;
32513 }
32514 {
32515 arg3 = &temp3;
32516 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32517 }
32518 {
32519 PyThreadState* __tstate = wxPyBeginAllowThreads();
32520 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32521 wxPyEndAllowThreads(__tstate);
32522 if (PyErr_Occurred()) SWIG_fail;
32523 }
32524 resultobj = SWIG_Py_Void();
32525 {
32526 if (temp2)
32527 delete arg2;
32528 }
32529 return resultobj;
32530fail:
32531 {
32532 if (temp2)
32533 delete arg2;
32534 }
32535 return NULL;
32536}
32537
32538
32539SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32540 PyObject *resultobj = 0;
32541 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32542 wxString *arg2 = 0 ;
32543 int arg3 ;
32544 int arg4 ;
32545 int arg5 ;
32546 void *argp1 = 0 ;
32547 int res1 = 0 ;
32548 bool temp2 = false ;
32549 int val3 ;
32550 int ecode3 = 0 ;
32551 int val4 ;
32552 int ecode4 = 0 ;
50efceee
RD
32553 int val5 ;
32554 int ecode5 = 0 ;
0085ce49
RD
32555 PyObject * obj0 = 0 ;
32556 PyObject * obj1 = 0 ;
32557 PyObject * obj2 = 0 ;
32558 PyObject * obj3 = 0 ;
32559 PyObject * obj4 = 0 ;
0085ce49 32560 char * kwnames[] = {
50efceee 32561 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
0085ce49
RD
32562 };
32563
50efceee
RD
32564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
0085ce49 32566 if (!SWIG_IsOK(res1)) {
50efceee
RD
32567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32568 }
32569 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32570 {
32571 arg2 = wxString_in_helper(obj1);
32572 if (arg2 == NULL) SWIG_fail;
32573 temp2 = true;
0085ce49 32574 }
0085ce49
RD
32575 ecode3 = SWIG_AsVal_int(obj2, &val3);
32576 if (!SWIG_IsOK(ecode3)) {
50efceee 32577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
0085ce49
RD
32578 }
32579 arg3 = static_cast< int >(val3);
32580 ecode4 = SWIG_AsVal_int(obj3, &val4);
32581 if (!SWIG_IsOK(ecode4)) {
50efceee 32582 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
0085ce49
RD
32583 }
32584 arg4 = static_cast< int >(val4);
32585 ecode5 = SWIG_AsVal_int(obj4, &val5);
32586 if (!SWIG_IsOK(ecode5)) {
50efceee 32587 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
0085ce49
RD
32588 }
32589 arg5 = static_cast< int >(val5);
0085ce49
RD
32590 {
32591 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32592 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
0085ce49
RD
32593 wxPyEndAllowThreads(__tstate);
32594 if (PyErr_Occurred()) SWIG_fail;
32595 }
50efceee 32596 resultobj = SWIG_Py_Void();
0085ce49 32597 {
50efceee
RD
32598 if (temp2)
32599 delete arg2;
0085ce49
RD
32600 }
32601 return resultobj;
32602fail:
32603 {
50efceee
RD
32604 if (temp2)
32605 delete arg2;
0085ce49
RD
32606 }
32607 return NULL;
32608}
32609
32610
50efceee
RD
32611SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32612 PyObject *obj;
32613 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32614 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32615 return SWIG_Py_Void();
32616}
32617
32618SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32619 return SWIG_Python_InitShadowInstance(args);
32620}
32621
32622SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 32623 PyObject *resultobj = 0;
50efceee 32624 wxFontList *result = 0 ;
0085ce49 32625
50efceee 32626 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
0085ce49
RD
32627 {
32628 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32629 result = (wxFontList *)_wxPyInitTheFontList();
0085ce49
RD
32630 wxPyEndAllowThreads(__tstate);
32631 if (PyErr_Occurred()) SWIG_fail;
32632 }
50efceee 32633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49
RD
32634 return resultobj;
32635fail:
32636 return NULL;
32637}
32638
32639
50efceee 32640SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 32641 PyObject *resultobj = 0;
50efceee 32642 wxPenList *result = 0 ;
0085ce49 32643
50efceee 32644 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
0085ce49
RD
32645 {
32646 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 32647 result = (wxPenList *)_wxPyInitThePenList();
0085ce49
RD
32648 wxPyEndAllowThreads(__tstate);
32649 if (PyErr_Occurred()) SWIG_fail;
32650 }
50efceee 32651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49
RD
32652 return resultobj;
32653fail:
32654 return NULL;
32655}
32656
32657
50efceee
RD
32658SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32659 PyObject *resultobj = 0;
32660 wxBrushList *result = 0 ;
0085ce49 32661
50efceee
RD
32662 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32663 {
32664 PyThreadState* __tstate = wxPyBeginAllowThreads();
32665 result = (wxBrushList *)_wxPyInitTheBrushList();
32666 wxPyEndAllowThreads(__tstate);
32667 if (PyErr_Occurred()) SWIG_fail;
32668 }
32669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32670 return resultobj;
32671fail:
32672 return NULL;
0085ce49
RD
32673}
32674
32675
50efceee
RD
32676SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32677 PyObject *resultobj = 0;
32678 wxColourDatabase *result = 0 ;
0085ce49 32679
50efceee
RD
32680 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32681 {
32682 PyThreadState* __tstate = wxPyBeginAllowThreads();
32683 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32684 wxPyEndAllowThreads(__tstate);
32685 if (PyErr_Occurred()) SWIG_fail;
32686 }
32687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32688 return resultobj;
32689fail:
32690 return NULL;
0085ce49
RD
32691}
32692
32693
32694SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32695 PyObject *resultobj = 0;
32696 wxEffects *result = 0 ;
32697
32698 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32699 {
32700 PyThreadState* __tstate = wxPyBeginAllowThreads();
32701 result = (wxEffects *)new wxEffects();
32702 wxPyEndAllowThreads(__tstate);
32703 if (PyErr_Occurred()) SWIG_fail;
32704 }
32705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32706 return resultobj;
32707fail:
32708 return NULL;
32709}
32710
32711
32712SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32713 PyObject *resultobj = 0;
32714 wxEffects *arg1 = (wxEffects *) 0 ;
32715 wxColour result;
32716 void *argp1 = 0 ;
32717 int res1 = 0 ;
32718 PyObject *swig_obj[1] ;
32719
32720 if (!args) SWIG_fail;
32721 swig_obj[0] = args;
32722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32723 if (!SWIG_IsOK(res1)) {
32724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32725 }
32726 arg1 = reinterpret_cast< wxEffects * >(argp1);
32727 {
32728 PyThreadState* __tstate = wxPyBeginAllowThreads();
32729 result = ((wxEffects const *)arg1)->GetHighlightColour();
32730 wxPyEndAllowThreads(__tstate);
32731 if (PyErr_Occurred()) SWIG_fail;
32732 }
32733 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32734 return resultobj;
32735fail:
32736 return NULL;
32737}
32738
32739
32740SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32741 PyObject *resultobj = 0;
32742 wxEffects *arg1 = (wxEffects *) 0 ;
32743 wxColour result;
32744 void *argp1 = 0 ;
32745 int res1 = 0 ;
32746 PyObject *swig_obj[1] ;
32747
32748 if (!args) SWIG_fail;
32749 swig_obj[0] = args;
32750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32751 if (!SWIG_IsOK(res1)) {
32752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32753 }
32754 arg1 = reinterpret_cast< wxEffects * >(argp1);
32755 {
32756 PyThreadState* __tstate = wxPyBeginAllowThreads();
32757 result = ((wxEffects const *)arg1)->GetLightShadow();
32758 wxPyEndAllowThreads(__tstate);
32759 if (PyErr_Occurred()) SWIG_fail;
32760 }
32761 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32762 return resultobj;
32763fail:
32764 return NULL;
32765}
32766
32767
32768SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32769 PyObject *resultobj = 0;
32770 wxEffects *arg1 = (wxEffects *) 0 ;
32771 wxColour result;
32772 void *argp1 = 0 ;
32773 int res1 = 0 ;
32774 PyObject *swig_obj[1] ;
32775
32776 if (!args) SWIG_fail;
32777 swig_obj[0] = args;
32778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32779 if (!SWIG_IsOK(res1)) {
32780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32781 }
32782 arg1 = reinterpret_cast< wxEffects * >(argp1);
32783 {
32784 PyThreadState* __tstate = wxPyBeginAllowThreads();
32785 result = ((wxEffects const *)arg1)->GetFaceColour();
32786 wxPyEndAllowThreads(__tstate);
32787 if (PyErr_Occurred()) SWIG_fail;
32788 }
32789 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32790 return resultobj;
32791fail:
32792 return NULL;
32793}
32794
32795
32796SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32797 PyObject *resultobj = 0;
32798 wxEffects *arg1 = (wxEffects *) 0 ;
32799 wxColour result;
32800 void *argp1 = 0 ;
32801 int res1 = 0 ;
32802 PyObject *swig_obj[1] ;
32803
32804 if (!args) SWIG_fail;
32805 swig_obj[0] = args;
32806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32807 if (!SWIG_IsOK(res1)) {
32808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32809 }
32810 arg1 = reinterpret_cast< wxEffects * >(argp1);
32811 {
32812 PyThreadState* __tstate = wxPyBeginAllowThreads();
32813 result = ((wxEffects const *)arg1)->GetMediumShadow();
32814 wxPyEndAllowThreads(__tstate);
32815 if (PyErr_Occurred()) SWIG_fail;
32816 }
32817 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32818 return resultobj;
32819fail:
32820 return NULL;
32821}
32822
32823
32824SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32825 PyObject *resultobj = 0;
32826 wxEffects *arg1 = (wxEffects *) 0 ;
32827 wxColour result;
32828 void *argp1 = 0 ;
32829 int res1 = 0 ;
32830 PyObject *swig_obj[1] ;
32831
32832 if (!args) SWIG_fail;
32833 swig_obj[0] = args;
32834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32835 if (!SWIG_IsOK(res1)) {
32836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32837 }
32838 arg1 = reinterpret_cast< wxEffects * >(argp1);
32839 {
32840 PyThreadState* __tstate = wxPyBeginAllowThreads();
32841 result = ((wxEffects const *)arg1)->GetDarkShadow();
32842 wxPyEndAllowThreads(__tstate);
32843 if (PyErr_Occurred()) SWIG_fail;
32844 }
32845 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32846 return resultobj;
32847fail:
32848 return NULL;
32849}
32850
32851
32852SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32853 PyObject *resultobj = 0;
32854 wxEffects *arg1 = (wxEffects *) 0 ;
32855 wxColour *arg2 = 0 ;
32856 void *argp1 = 0 ;
32857 int res1 = 0 ;
32858 wxColour temp2 ;
32859 PyObject * obj0 = 0 ;
32860 PyObject * obj1 = 0 ;
32861 char * kwnames[] = {
32862 (char *) "self",(char *) "c", NULL
32863 };
32864
32865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32867 if (!SWIG_IsOK(res1)) {
32868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32869 }
32870 arg1 = reinterpret_cast< wxEffects * >(argp1);
32871 {
32872 arg2 = &temp2;
32873 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32874 }
32875 {
32876 PyThreadState* __tstate = wxPyBeginAllowThreads();
32877 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32878 wxPyEndAllowThreads(__tstate);
32879 if (PyErr_Occurred()) SWIG_fail;
32880 }
32881 resultobj = SWIG_Py_Void();
32882 return resultobj;
32883fail:
32884 return NULL;
32885}
32886
32887
32888SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32889 PyObject *resultobj = 0;
32890 wxEffects *arg1 = (wxEffects *) 0 ;
32891 wxColour *arg2 = 0 ;
32892 void *argp1 = 0 ;
32893 int res1 = 0 ;
32894 wxColour temp2 ;
32895 PyObject * obj0 = 0 ;
32896 PyObject * obj1 = 0 ;
32897 char * kwnames[] = {
32898 (char *) "self",(char *) "c", NULL
32899 };
32900
32901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32903 if (!SWIG_IsOK(res1)) {
32904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32905 }
32906 arg1 = reinterpret_cast< wxEffects * >(argp1);
32907 {
32908 arg2 = &temp2;
32909 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32910 }
32911 {
32912 PyThreadState* __tstate = wxPyBeginAllowThreads();
32913 (arg1)->SetLightShadow((wxColour const &)*arg2);
32914 wxPyEndAllowThreads(__tstate);
32915 if (PyErr_Occurred()) SWIG_fail;
32916 }
32917 resultobj = SWIG_Py_Void();
32918 return resultobj;
32919fail:
32920 return NULL;
32921}
32922
32923
32924SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32925 PyObject *resultobj = 0;
32926 wxEffects *arg1 = (wxEffects *) 0 ;
32927 wxColour *arg2 = 0 ;
32928 void *argp1 = 0 ;
32929 int res1 = 0 ;
32930 wxColour temp2 ;
32931 PyObject * obj0 = 0 ;
32932 PyObject * obj1 = 0 ;
32933 char * kwnames[] = {
32934 (char *) "self",(char *) "c", NULL
32935 };
32936
32937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) 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_SetFaceColour" "', 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
32949 (arg1)->SetFaceColour((wxColour const &)*arg2);
32950 wxPyEndAllowThreads(__tstate);
32951 if (PyErr_Occurred()) SWIG_fail;
32952 }
32953 resultobj = SWIG_Py_Void();
32954 return resultobj;
32955fail:
32956 return NULL;
32957}
32958
32959
32960SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32961 PyObject *resultobj = 0;
32962 wxEffects *arg1 = (wxEffects *) 0 ;
32963 wxColour *arg2 = 0 ;
32964 void *argp1 = 0 ;
32965 int res1 = 0 ;
32966 wxColour temp2 ;
32967 PyObject * obj0 = 0 ;
32968 PyObject * obj1 = 0 ;
32969 char * kwnames[] = {
32970 (char *) "self",(char *) "c", NULL
32971 };
32972
32973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32975 if (!SWIG_IsOK(res1)) {
32976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32977 }
32978 arg1 = reinterpret_cast< wxEffects * >(argp1);
32979 {
32980 arg2 = &temp2;
32981 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32982 }
32983 {
32984 PyThreadState* __tstate = wxPyBeginAllowThreads();
32985 (arg1)->SetMediumShadow((wxColour const &)*arg2);
32986 wxPyEndAllowThreads(__tstate);
32987 if (PyErr_Occurred()) SWIG_fail;
32988 }
32989 resultobj = SWIG_Py_Void();
32990 return resultobj;
32991fail:
32992 return NULL;
32993}
32994
32995
32996SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32997 PyObject *resultobj = 0;
32998 wxEffects *arg1 = (wxEffects *) 0 ;
32999 wxColour *arg2 = 0 ;
33000 void *argp1 = 0 ;
33001 int res1 = 0 ;
33002 wxColour temp2 ;
33003 PyObject * obj0 = 0 ;
33004 PyObject * obj1 = 0 ;
33005 char * kwnames[] = {
33006 (char *) "self",(char *) "c", NULL
33007 };
33008
33009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33011 if (!SWIG_IsOK(res1)) {
33012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33013 }
33014 arg1 = reinterpret_cast< wxEffects * >(argp1);
33015 {
33016 arg2 = &temp2;
33017 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33018 }
33019 {
33020 PyThreadState* __tstate = wxPyBeginAllowThreads();
33021 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33022 wxPyEndAllowThreads(__tstate);
33023 if (PyErr_Occurred()) SWIG_fail;
33024 }
33025 resultobj = SWIG_Py_Void();
33026 return resultobj;
33027fail:
33028 return NULL;
33029}
33030
33031
33032SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33033 PyObject *resultobj = 0;
33034 wxEffects *arg1 = (wxEffects *) 0 ;
33035 wxColour *arg2 = 0 ;
33036 wxColour *arg3 = 0 ;
33037 wxColour *arg4 = 0 ;
33038 wxColour *arg5 = 0 ;
33039 wxColour *arg6 = 0 ;
33040 void *argp1 = 0 ;
33041 int res1 = 0 ;
33042 wxColour temp2 ;
33043 wxColour temp3 ;
33044 wxColour temp4 ;
33045 wxColour temp5 ;
33046 wxColour temp6 ;
33047 PyObject * obj0 = 0 ;
33048 PyObject * obj1 = 0 ;
33049 PyObject * obj2 = 0 ;
33050 PyObject * obj3 = 0 ;
33051 PyObject * obj4 = 0 ;
33052 PyObject * obj5 = 0 ;
33053 char * kwnames[] = {
33054 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33055 };
33056
33057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33061 }
33062 arg1 = reinterpret_cast< wxEffects * >(argp1);
33063 {
33064 arg2 = &temp2;
33065 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33066 }
33067 {
33068 arg3 = &temp3;
33069 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33070 }
33071 {
33072 arg4 = &temp4;
33073 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33074 }
33075 {
33076 arg5 = &temp5;
33077 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33078 }
33079 {
33080 arg6 = &temp6;
33081 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33082 }
33083 {
33084 PyThreadState* __tstate = wxPyBeginAllowThreads();
33085 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33086 wxPyEndAllowThreads(__tstate);
33087 if (PyErr_Occurred()) SWIG_fail;
33088 }
33089 resultobj = SWIG_Py_Void();
33090 return resultobj;
33091fail:
33092 return NULL;
33093}
33094
33095
33096SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33097 PyObject *resultobj = 0;
33098 wxEffects *arg1 = (wxEffects *) 0 ;
33099 wxDC *arg2 = 0 ;
33100 wxRect *arg3 = 0 ;
33101 int arg4 = (int) 1 ;
33102 void *argp1 = 0 ;
33103 int res1 = 0 ;
33104 void *argp2 = 0 ;
33105 int res2 = 0 ;
33106 wxRect temp3 ;
33107 int val4 ;
33108 int ecode4 = 0 ;
33109 PyObject * obj0 = 0 ;
33110 PyObject * obj1 = 0 ;
33111 PyObject * obj2 = 0 ;
33112 PyObject * obj3 = 0 ;
33113 char * kwnames[] = {
33114 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33115 };
33116
33117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33119 if (!SWIG_IsOK(res1)) {
33120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33121 }
33122 arg1 = reinterpret_cast< wxEffects * >(argp1);
33123 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33124 if (!SWIG_IsOK(res2)) {
33125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33126 }
33127 if (!argp2) {
33128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33129 }
33130 arg2 = reinterpret_cast< wxDC * >(argp2);
33131 {
33132 arg3 = &temp3;
33133 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33134 }
33135 if (obj3) {
33136 ecode4 = SWIG_AsVal_int(obj3, &val4);
33137 if (!SWIG_IsOK(ecode4)) {
33138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33139 }
33140 arg4 = static_cast< int >(val4);
33141 }
33142 {
33143 PyThreadState* __tstate = wxPyBeginAllowThreads();
33144 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33145 wxPyEndAllowThreads(__tstate);
33146 if (PyErr_Occurred()) SWIG_fail;
33147 }
33148 resultobj = SWIG_Py_Void();
33149 return resultobj;
33150fail:
33151 return NULL;
33152}
33153
33154
33155SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33156 PyObject *resultobj = 0;
33157 wxEffects *arg1 = (wxEffects *) 0 ;
33158 wxRect *arg2 = 0 ;
33159 wxDC *arg3 = 0 ;
33160 wxBitmap *arg4 = 0 ;
33161 bool result;
33162 void *argp1 = 0 ;
33163 int res1 = 0 ;
33164 wxRect temp2 ;
33165 void *argp3 = 0 ;
33166 int res3 = 0 ;
33167 void *argp4 = 0 ;
33168 int res4 = 0 ;
33169 PyObject * obj0 = 0 ;
33170 PyObject * obj1 = 0 ;
33171 PyObject * obj2 = 0 ;
33172 PyObject * obj3 = 0 ;
33173 char * kwnames[] = {
33174 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33175 };
33176
33177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33179 if (!SWIG_IsOK(res1)) {
33180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33181 }
33182 arg1 = reinterpret_cast< wxEffects * >(argp1);
33183 {
33184 arg2 = &temp2;
33185 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33186 }
33187 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33188 if (!SWIG_IsOK(res3)) {
33189 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33190 }
33191 if (!argp3) {
33192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33193 }
33194 arg3 = reinterpret_cast< wxDC * >(argp3);
33195 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33196 if (!SWIG_IsOK(res4)) {
33197 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33198 }
33199 if (!argp4) {
33200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33201 }
33202 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33203 {
33204 PyThreadState* __tstate = wxPyBeginAllowThreads();
33205 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33206 wxPyEndAllowThreads(__tstate);
33207 if (PyErr_Occurred()) SWIG_fail;
33208 }
33209 {
33210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33211 }
33212 return resultobj;
33213fail:
33214 return NULL;
33215}
33216
33217
33218SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33219 PyObject *obj;
33220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33221 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33222 return SWIG_Py_Void();
33223}
33224
33225SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33226 return SWIG_Python_InitShadowInstance(args);
33227}
33228
33229SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33230 PyObject *resultobj = 0;
33231 int arg1 ;
33232 int arg2 ;
33233 bool arg3 ;
33234 wxSplitterRenderParams *result = 0 ;
33235 int val1 ;
33236 int ecode1 = 0 ;
33237 int val2 ;
33238 int ecode2 = 0 ;
33239 bool val3 ;
33240 int ecode3 = 0 ;
33241 PyObject * obj0 = 0 ;
33242 PyObject * obj1 = 0 ;
33243 PyObject * obj2 = 0 ;
33244 char * kwnames[] = {
33245 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33246 };
33247
33248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33249 ecode1 = SWIG_AsVal_int(obj0, &val1);
33250 if (!SWIG_IsOK(ecode1)) {
33251 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33252 }
33253 arg1 = static_cast< int >(val1);
33254 ecode2 = SWIG_AsVal_int(obj1, &val2);
33255 if (!SWIG_IsOK(ecode2)) {
33256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33257 }
33258 arg2 = static_cast< int >(val2);
33259 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33260 if (!SWIG_IsOK(ecode3)) {
33261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33262 }
33263 arg3 = static_cast< bool >(val3);
33264 {
33265 PyThreadState* __tstate = wxPyBeginAllowThreads();
33266 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33267 wxPyEndAllowThreads(__tstate);
33268 if (PyErr_Occurred()) SWIG_fail;
33269 }
33270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33271 return resultobj;
33272fail:
33273 return NULL;
33274}
33275
33276
33277SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33278 PyObject *resultobj = 0;
33279 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33280 void *argp1 = 0 ;
33281 int res1 = 0 ;
33282 PyObject *swig_obj[1] ;
33283
33284 if (!args) SWIG_fail;
33285 swig_obj[0] = args;
33286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33287 if (!SWIG_IsOK(res1)) {
33288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33289 }
33290 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33291 {
33292 PyThreadState* __tstate = wxPyBeginAllowThreads();
33293 delete arg1;
33294
33295 wxPyEndAllowThreads(__tstate);
33296 if (PyErr_Occurred()) SWIG_fail;
33297 }
33298 resultobj = SWIG_Py_Void();
33299 return resultobj;
33300fail:
33301 return NULL;
33302}
33303
33304
33305SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33306 PyObject *resultobj = 0;
33307 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33308 int result;
33309 void *argp1 = 0 ;
33310 int res1 = 0 ;
33311 PyObject *swig_obj[1] ;
33312
33313 if (!args) SWIG_fail;
33314 swig_obj[0] = args;
33315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33316 if (!SWIG_IsOK(res1)) {
33317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33318 }
33319 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33320 result = (int)(int) ((arg1)->widthSash);
33321 resultobj = SWIG_From_int(static_cast< int >(result));
33322 return resultobj;
33323fail:
33324 return NULL;
33325}
33326
33327
33328SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33329 PyObject *resultobj = 0;
33330 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33331 int result;
33332 void *argp1 = 0 ;
33333 int res1 = 0 ;
33334 PyObject *swig_obj[1] ;
33335
33336 if (!args) SWIG_fail;
33337 swig_obj[0] = args;
33338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33339 if (!SWIG_IsOK(res1)) {
33340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33341 }
33342 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33343 result = (int)(int) ((arg1)->border);
33344 resultobj = SWIG_From_int(static_cast< int >(result));
33345 return resultobj;
33346fail:
33347 return NULL;
33348}
33349
33350
33351SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33352 PyObject *resultobj = 0;
33353 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33354 bool result;
33355 void *argp1 = 0 ;
33356 int res1 = 0 ;
33357 PyObject *swig_obj[1] ;
33358
33359 if (!args) SWIG_fail;
33360 swig_obj[0] = args;
33361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33362 if (!SWIG_IsOK(res1)) {
33363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33364 }
33365 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33366 result = (bool)(bool) ((arg1)->isHotSensitive);
33367 resultobj = SWIG_From_bool(static_cast< bool >(result));
33368 return resultobj;
33369fail:
33370 return NULL;
33371}
33372
33373
33374SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33375 PyObject *obj;
33376 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33377 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33378 return SWIG_Py_Void();
33379}
33380
33381SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33382 return SWIG_Python_InitShadowInstance(args);
33383}
33384
33d6fd3b
RD
33385SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33386 PyObject *resultobj = 0;
33387 wxHeaderButtonParams *result = 0 ;
33388
33389 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33390 {
33391 PyThreadState* __tstate = wxPyBeginAllowThreads();
33392 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33393 wxPyEndAllowThreads(__tstate);
33394 if (PyErr_Occurred()) SWIG_fail;
33395 }
33396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33397 return resultobj;
33398fail:
33399 return NULL;
33400}
33401
33402
33403SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33404 PyObject *resultobj = 0;
33405 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33406 void *argp1 = 0 ;
33407 int res1 = 0 ;
33408 PyObject *swig_obj[1] ;
33409
33410 if (!args) SWIG_fail;
33411 swig_obj[0] = args;
33412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33413 if (!SWIG_IsOK(res1)) {
33414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33415 }
33416 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33417 {
33418 PyThreadState* __tstate = wxPyBeginAllowThreads();
33419 delete arg1;
33420
33421 wxPyEndAllowThreads(__tstate);
33422 if (PyErr_Occurred()) SWIG_fail;
33423 }
33424 resultobj = SWIG_Py_Void();
33425 return resultobj;
33426fail:
33427 return NULL;
33428}
33429
33430
33431SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33432 PyObject *resultobj = 0;
33433 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33434 wxColour *arg2 = (wxColour *) 0 ;
33435 void *argp1 = 0 ;
33436 int res1 = 0 ;
33437 wxColour temp2 ;
33438 PyObject *swig_obj[2] ;
33439
33440 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33442 if (!SWIG_IsOK(res1)) {
33443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33444 }
33445 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33446 {
33447 arg2 = &temp2;
33448 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33449 }
33450 if (arg1) (arg1)->m_arrowColour = *arg2;
33451
33452 resultobj = SWIG_Py_Void();
33453 return resultobj;
33454fail:
33455 return NULL;
33456}
33457
33458
33459SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33460 PyObject *resultobj = 0;
33461 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33462 wxColour *result = 0 ;
33463 void *argp1 = 0 ;
33464 int res1 = 0 ;
33465 PyObject *swig_obj[1] ;
33466
33467 if (!args) SWIG_fail;
33468 swig_obj[0] = args;
33469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33470 if (!SWIG_IsOK(res1)) {
33471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33472 }
33473 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33474 result = (wxColour *)& ((arg1)->m_arrowColour);
33475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33476 return resultobj;
33477fail:
33478 return NULL;
33479}
33480
33481
33482SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33483 PyObject *resultobj = 0;
33484 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33485 wxColour *arg2 = (wxColour *) 0 ;
33486 void *argp1 = 0 ;
33487 int res1 = 0 ;
33488 wxColour temp2 ;
33489 PyObject *swig_obj[2] ;
33490
33491 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33493 if (!SWIG_IsOK(res1)) {
33494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33495 }
33496 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33497 {
33498 arg2 = &temp2;
33499 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33500 }
33501 if (arg1) (arg1)->m_selectionColour = *arg2;
33502
33503 resultobj = SWIG_Py_Void();
33504 return resultobj;
33505fail:
33506 return NULL;
33507}
33508
33509
33510SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33511 PyObject *resultobj = 0;
33512 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33513 wxColour *result = 0 ;
33514 void *argp1 = 0 ;
33515 int res1 = 0 ;
33516 PyObject *swig_obj[1] ;
33517
33518 if (!args) SWIG_fail;
33519 swig_obj[0] = args;
33520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33521 if (!SWIG_IsOK(res1)) {
33522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33523 }
33524 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33525 result = (wxColour *)& ((arg1)->m_selectionColour);
33526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33527 return resultobj;
33528fail:
33529 return NULL;
33530}
33531
33532
33533SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33534 PyObject *resultobj = 0;
33535 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33536 wxString *arg2 = (wxString *) 0 ;
33537 void *argp1 = 0 ;
33538 int res1 = 0 ;
33539 bool temp2 = false ;
33540 PyObject *swig_obj[2] ;
33541
33542 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33544 if (!SWIG_IsOK(res1)) {
33545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33546 }
33547 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33548 {
33549 arg2 = wxString_in_helper(swig_obj[1]);
33550 if (arg2 == NULL) SWIG_fail;
33551 temp2 = true;
33552 }
33553 if (arg1) (arg1)->m_labelText = *arg2;
33554
33555 resultobj = SWIG_Py_Void();
33556 {
33557 if (temp2)
33558 delete arg2;
33559 }
33560 return resultobj;
33561fail:
33562 {
33563 if (temp2)
33564 delete arg2;
33565 }
33566 return NULL;
33567}
33568
33569
33570SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33571 PyObject *resultobj = 0;
33572 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33573 wxString *result = 0 ;
33574 void *argp1 = 0 ;
33575 int res1 = 0 ;
33576 PyObject *swig_obj[1] ;
33577
33578 if (!args) SWIG_fail;
33579 swig_obj[0] = args;
33580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33581 if (!SWIG_IsOK(res1)) {
33582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33583 }
33584 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33585 result = (wxString *)& ((arg1)->m_labelText);
33586 {
33587#if wxUSE_UNICODE
33588 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33589#else
33590 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33591#endif
33592 }
33593 return resultobj;
33594fail:
33595 return NULL;
33596}
33597
33598
33599SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33600 PyObject *resultobj = 0;
33601 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33602 wxFont *arg2 = (wxFont *) 0 ;
33603 void *argp1 = 0 ;
33604 int res1 = 0 ;
33605 void *argp2 = 0 ;
33606 int res2 = 0 ;
33607 PyObject *swig_obj[2] ;
33608
33609 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33611 if (!SWIG_IsOK(res1)) {
33612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33613 }
33614 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33615 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33616 if (!SWIG_IsOK(res2)) {
33617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33618 }
33619 arg2 = reinterpret_cast< wxFont * >(argp2);
33620 if (arg1) (arg1)->m_labelFont = *arg2;
33621
33622 resultobj = SWIG_Py_Void();
33623 return resultobj;
33624fail:
33625 return NULL;
33626}
33627
33628
33629SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33630 PyObject *resultobj = 0;
33631 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33632 wxFont *result = 0 ;
33633 void *argp1 = 0 ;
33634 int res1 = 0 ;
33635 PyObject *swig_obj[1] ;
33636
33637 if (!args) SWIG_fail;
33638 swig_obj[0] = args;
33639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33640 if (!SWIG_IsOK(res1)) {
33641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33642 }
33643 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33644 result = (wxFont *)& ((arg1)->m_labelFont);
33645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33646 return resultobj;
33647fail:
33648 return NULL;
33649}
33650
33651
33652SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33653 PyObject *resultobj = 0;
33654 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33655 wxColour *arg2 = (wxColour *) 0 ;
33656 void *argp1 = 0 ;
33657 int res1 = 0 ;
33658 wxColour temp2 ;
33659 PyObject *swig_obj[2] ;
33660
33661 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33663 if (!SWIG_IsOK(res1)) {
33664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33665 }
33666 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33667 {
33668 arg2 = &temp2;
33669 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33670 }
33671 if (arg1) (arg1)->m_labelColour = *arg2;
33672
33673 resultobj = SWIG_Py_Void();
33674 return resultobj;
33675fail:
33676 return NULL;
33677}
33678
33679
33680SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33681 PyObject *resultobj = 0;
33682 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33683 wxColour *result = 0 ;
33684 void *argp1 = 0 ;
33685 int res1 = 0 ;
33686 PyObject *swig_obj[1] ;
33687
33688 if (!args) SWIG_fail;
33689 swig_obj[0] = args;
33690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33691 if (!SWIG_IsOK(res1)) {
33692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33693 }
33694 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33695 result = (wxColour *)& ((arg1)->m_labelColour);
33696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33697 return resultobj;
33698fail:
33699 return NULL;
33700}
33701
33702
33703SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33704 PyObject *resultobj = 0;
33705 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33706 wxBitmap *arg2 = (wxBitmap *) 0 ;
33707 void *argp1 = 0 ;
33708 int res1 = 0 ;
33709 void *argp2 = 0 ;
33710 int res2 = 0 ;
33711 PyObject *swig_obj[2] ;
33712
33713 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33715 if (!SWIG_IsOK(res1)) {
33716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33717 }
33718 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33719 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33720 if (!SWIG_IsOK(res2)) {
33721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33722 }
33723 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33724 if (arg1) (arg1)->m_labelBitmap = *arg2;
33725
33726 resultobj = SWIG_Py_Void();
33727 return resultobj;
33728fail:
33729 return NULL;
33730}
33731
33732
33733SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33734 PyObject *resultobj = 0;
33735 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33736 wxBitmap *result = 0 ;
33737 void *argp1 = 0 ;
33738 int res1 = 0 ;
33739 PyObject *swig_obj[1] ;
33740
33741 if (!args) SWIG_fail;
33742 swig_obj[0] = args;
33743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33744 if (!SWIG_IsOK(res1)) {
33745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33746 }
33747 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33748 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33750 return resultobj;
33751fail:
33752 return NULL;
33753}
33754
33755
33756SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33757 PyObject *resultobj = 0;
33758 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33759 int arg2 ;
33760 void *argp1 = 0 ;
33761 int res1 = 0 ;
33762 int val2 ;
33763 int ecode2 = 0 ;
33764 PyObject *swig_obj[2] ;
33765
33766 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33768 if (!SWIG_IsOK(res1)) {
33769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33770 }
33771 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33772 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33773 if (!SWIG_IsOK(ecode2)) {
33774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33775 }
33776 arg2 = static_cast< int >(val2);
33777 if (arg1) (arg1)->m_labelAlignment = arg2;
33778
33779 resultobj = SWIG_Py_Void();
33780 return resultobj;
33781fail:
33782 return NULL;
33783}
33784
33785
33786SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33787 PyObject *resultobj = 0;
33788 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33789 int result;
33790 void *argp1 = 0 ;
33791 int res1 = 0 ;
33792 PyObject *swig_obj[1] ;
33793
33794 if (!args) SWIG_fail;
33795 swig_obj[0] = args;
33796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33797 if (!SWIG_IsOK(res1)) {
33798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33799 }
33800 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33801 result = (int) ((arg1)->m_labelAlignment);
33802 resultobj = SWIG_From_int(static_cast< int >(result));
33803 return resultobj;
33804fail:
33805 return NULL;
33806}
33807
33808
33809SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33810 PyObject *obj;
33811 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33812 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33813 return SWIG_Py_Void();
33814}
33815
33816SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33817 return SWIG_Python_InitShadowInstance(args);
33818}
33819
0085ce49
RD
33820SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33821 PyObject *resultobj = 0;
33822 int arg1 ;
33823 int arg2 ;
33824 wxRendererVersion *result = 0 ;
33825 int val1 ;
33826 int ecode1 = 0 ;
33827 int val2 ;
33828 int ecode2 = 0 ;
33829 PyObject * obj0 = 0 ;
33830 PyObject * obj1 = 0 ;
33831 char * kwnames[] = {
33832 (char *) "version_",(char *) "age_", NULL
33833 };
33834
33835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33836 ecode1 = SWIG_AsVal_int(obj0, &val1);
33837 if (!SWIG_IsOK(ecode1)) {
33838 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33839 }
33840 arg1 = static_cast< int >(val1);
33841 ecode2 = SWIG_AsVal_int(obj1, &val2);
33842 if (!SWIG_IsOK(ecode2)) {
33843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33844 }
33845 arg2 = static_cast< int >(val2);
33846 {
33847 PyThreadState* __tstate = wxPyBeginAllowThreads();
33848 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33849 wxPyEndAllowThreads(__tstate);
33850 if (PyErr_Occurred()) SWIG_fail;
33851 }
33852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33853 return resultobj;
33854fail:
33855 return NULL;
33856}
33857
33858
33859SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33860 PyObject *resultobj = 0;
33861 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33862 void *argp1 = 0 ;
33863 int res1 = 0 ;
33864 PyObject *swig_obj[1] ;
33865
33866 if (!args) SWIG_fail;
33867 swig_obj[0] = args;
33868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33869 if (!SWIG_IsOK(res1)) {
33870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33871 }
33872 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33873 {
33874 PyThreadState* __tstate = wxPyBeginAllowThreads();
33875 delete arg1;
33876
33877 wxPyEndAllowThreads(__tstate);
33878 if (PyErr_Occurred()) SWIG_fail;
33879 }
33880 resultobj = SWIG_Py_Void();
33881 return resultobj;
33882fail:
33883 return NULL;
33884}
33885
33886
33887SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33888 PyObject *resultobj = 0;
33889 wxRendererVersion *arg1 = 0 ;
33890 bool result;
33891 void *argp1 = 0 ;
33892 int res1 = 0 ;
33893 PyObject * obj0 = 0 ;
33894 char * kwnames[] = {
33895 (char *) "ver", NULL
33896 };
33897
33898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33899 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33900 if (!SWIG_IsOK(res1)) {
33901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33902 }
33903 if (!argp1) {
33904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33905 }
33906 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33907 {
33908 PyThreadState* __tstate = wxPyBeginAllowThreads();
33909 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33910 wxPyEndAllowThreads(__tstate);
33911 if (PyErr_Occurred()) SWIG_fail;
33912 }
33913 {
33914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33915 }
33916 return resultobj;
33917fail:
33918 return NULL;
33919}
33920
33921
33922SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33923 PyObject *resultobj = 0;
33924 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33925 int result;
33926 void *argp1 = 0 ;
33927 int res1 = 0 ;
33928 PyObject *swig_obj[1] ;
33929
33930 if (!args) SWIG_fail;
33931 swig_obj[0] = args;
33932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33933 if (!SWIG_IsOK(res1)) {
33934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33935 }
33936 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33937 result = (int)(int) ((arg1)->version);
33938 resultobj = SWIG_From_int(static_cast< int >(result));
33939 return resultobj;
33940fail:
33941 return NULL;
33942}
33943
33944
33945SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33946 PyObject *resultobj = 0;
33947 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33948 int result;
33949 void *argp1 = 0 ;
33950 int res1 = 0 ;
33951 PyObject *swig_obj[1] ;
33952
33953 if (!args) SWIG_fail;
33954 swig_obj[0] = args;
33955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33956 if (!SWIG_IsOK(res1)) {
33957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33958 }
33959 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33960 result = (int)(int) ((arg1)->age);
33961 resultobj = SWIG_From_int(static_cast< int >(result));
33962 return resultobj;
33963fail:
33964 return NULL;
33965}
33966
33967
33968SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33969 PyObject *obj;
33970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33971 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33972 return SWIG_Py_Void();
33973}
33974
33975SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33976 return SWIG_Python_InitShadowInstance(args);
33977}
33978
33979SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33980 PyObject *resultobj = 0;
33981 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33982 wxWindow *arg2 = (wxWindow *) 0 ;
33983 wxDC *arg3 = 0 ;
33984 wxRect *arg4 = 0 ;
33985 int arg5 = (int) 0 ;
33d6fd3b
RD
33986 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33987 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
0085ce49
RD
33988 void *argp1 = 0 ;
33989 int res1 = 0 ;
33990 void *argp2 = 0 ;
33991 int res2 = 0 ;
33992 void *argp3 = 0 ;
33993 int res3 = 0 ;
33994 wxRect temp4 ;
33995 int val5 ;
33996 int ecode5 = 0 ;
33d6fd3b
RD
33997 int val6 ;
33998 int ecode6 = 0 ;
33999 void *argp7 = 0 ;
34000 int res7 = 0 ;
0085ce49
RD
34001 PyObject * obj0 = 0 ;
34002 PyObject * obj1 = 0 ;
34003 PyObject * obj2 = 0 ;
34004 PyObject * obj3 = 0 ;
34005 PyObject * obj4 = 0 ;
33d6fd3b
RD
34006 PyObject * obj5 = 0 ;
34007 PyObject * obj6 = 0 ;
0085ce49 34008 char * kwnames[] = {
33d6fd3b 34009 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
0085ce49
RD
34010 };
34011
33d6fd3b 34012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
0085ce49
RD
34013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34014 if (!SWIG_IsOK(res1)) {
34015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34016 }
34017 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34018 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34019 if (!SWIG_IsOK(res2)) {
34020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34021 }
34022 arg2 = reinterpret_cast< wxWindow * >(argp2);
34023 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34024 if (!SWIG_IsOK(res3)) {
34025 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34026 }
34027 if (!argp3) {
34028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34029 }
34030 arg3 = reinterpret_cast< wxDC * >(argp3);
34031 {
34032 arg4 = &temp4;
34033 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34034 }
34035 if (obj4) {
34036 ecode5 = SWIG_AsVal_int(obj4, &val5);
34037 if (!SWIG_IsOK(ecode5)) {
34038 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34039 }
34040 arg5 = static_cast< int >(val5);
34041 }
33d6fd3b
RD
34042 if (obj5) {
34043 ecode6 = SWIG_AsVal_int(obj5, &val6);
34044 if (!SWIG_IsOK(ecode6)) {
34045 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34046 }
34047 arg6 = static_cast< wxHeaderSortIconType >(val6);
34048 }
34049 if (obj6) {
34050 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34051 if (!SWIG_IsOK(res7)) {
34052 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34053 }
34054 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34055 }
34056 {
34057 PyThreadState* __tstate = wxPyBeginAllowThreads();
34058 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34059 wxPyEndAllowThreads(__tstate);
34060 if (PyErr_Occurred()) SWIG_fail;
34061 }
34062 resultobj = SWIG_Py_Void();
34063 return resultobj;
34064fail:
34065 return NULL;
34066}
34067
34068
34069SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34070 PyObject *resultobj = 0;
34071 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34072 wxWindow *arg2 = (wxWindow *) 0 ;
34073 wxDC *arg3 = 0 ;
34074 wxRect *arg4 = 0 ;
34075 int arg5 = (int) 0 ;
34076 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34077 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34078 void *argp1 = 0 ;
34079 int res1 = 0 ;
34080 void *argp2 = 0 ;
34081 int res2 = 0 ;
34082 void *argp3 = 0 ;
34083 int res3 = 0 ;
34084 wxRect temp4 ;
34085 int val5 ;
34086 int ecode5 = 0 ;
34087 int val6 ;
34088 int ecode6 = 0 ;
34089 void *argp7 = 0 ;
34090 int res7 = 0 ;
34091 PyObject * obj0 = 0 ;
34092 PyObject * obj1 = 0 ;
34093 PyObject * obj2 = 0 ;
34094 PyObject * obj3 = 0 ;
34095 PyObject * obj4 = 0 ;
34096 PyObject * obj5 = 0 ;
34097 PyObject * obj6 = 0 ;
34098 char * kwnames[] = {
34099 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34100 };
34101
34102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34104 if (!SWIG_IsOK(res1)) {
34105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34106 }
34107 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34108 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34109 if (!SWIG_IsOK(res2)) {
34110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34111 }
34112 arg2 = reinterpret_cast< wxWindow * >(argp2);
34113 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34114 if (!SWIG_IsOK(res3)) {
34115 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34116 }
34117 if (!argp3) {
34118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34119 }
34120 arg3 = reinterpret_cast< wxDC * >(argp3);
34121 {
34122 arg4 = &temp4;
34123 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34124 }
34125 if (obj4) {
34126 ecode5 = SWIG_AsVal_int(obj4, &val5);
34127 if (!SWIG_IsOK(ecode5)) {
34128 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34129 }
34130 arg5 = static_cast< int >(val5);
34131 }
34132 if (obj5) {
34133 ecode6 = SWIG_AsVal_int(obj5, &val6);
34134 if (!SWIG_IsOK(ecode6)) {
34135 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34136 }
34137 arg6 = static_cast< wxHeaderSortIconType >(val6);
34138 }
34139 if (obj6) {
34140 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34141 if (!SWIG_IsOK(res7)) {
34142 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34143 }
34144 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34145 }
0085ce49
RD
34146 {
34147 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34148 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
0085ce49
RD
34149 wxPyEndAllowThreads(__tstate);
34150 if (PyErr_Occurred()) SWIG_fail;
34151 }
34152 resultobj = SWIG_Py_Void();
34153 return resultobj;
34154fail:
34155 return NULL;
34156}
34157
34158
33d6fd3b
RD
34159SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34160 PyObject *resultobj = 0;
34161 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34162 wxWindow *arg2 = (wxWindow *) 0 ;
34163 int result;
34164 void *argp1 = 0 ;
34165 int res1 = 0 ;
34166 void *argp2 = 0 ;
34167 int res2 = 0 ;
34168 PyObject * obj0 = 0 ;
34169 PyObject * obj1 = 0 ;
34170 char * kwnames[] = {
34171 (char *) "self",(char *) "win", NULL
34172 };
34173
34174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34176 if (!SWIG_IsOK(res1)) {
34177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34178 }
34179 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34180 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34181 if (!SWIG_IsOK(res2)) {
34182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34183 }
34184 arg2 = reinterpret_cast< wxWindow * >(argp2);
34185 {
34186 PyThreadState* __tstate = wxPyBeginAllowThreads();
34187 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34188 wxPyEndAllowThreads(__tstate);
34189 if (PyErr_Occurred()) SWIG_fail;
34190 }
34191 resultobj = SWIG_From_int(static_cast< int >(result));
34192 return resultobj;
34193fail:
34194 return NULL;
34195}
34196
34197
0085ce49
RD
34198SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34199 PyObject *resultobj = 0;
34200 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34201 wxWindow *arg2 = (wxWindow *) 0 ;
34202 wxDC *arg3 = 0 ;
34203 wxRect *arg4 = 0 ;
34204 int arg5 = (int) 0 ;
34205 void *argp1 = 0 ;
34206 int res1 = 0 ;
34207 void *argp2 = 0 ;
34208 int res2 = 0 ;
34209 void *argp3 = 0 ;
34210 int res3 = 0 ;
34211 wxRect temp4 ;
34212 int val5 ;
34213 int ecode5 = 0 ;
34214 PyObject * obj0 = 0 ;
34215 PyObject * obj1 = 0 ;
34216 PyObject * obj2 = 0 ;
34217 PyObject * obj3 = 0 ;
34218 PyObject * obj4 = 0 ;
34219 char * kwnames[] = {
34220 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34221 };
34222
34223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34225 if (!SWIG_IsOK(res1)) {
34226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34227 }
34228 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34229 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34230 if (!SWIG_IsOK(res2)) {
34231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34232 }
34233 arg2 = reinterpret_cast< wxWindow * >(argp2);
34234 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34235 if (!SWIG_IsOK(res3)) {
34236 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34237 }
34238 if (!argp3) {
34239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34240 }
34241 arg3 = reinterpret_cast< wxDC * >(argp3);
34242 {
34243 arg4 = &temp4;
34244 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34245 }
34246 if (obj4) {
34247 ecode5 = SWIG_AsVal_int(obj4, &val5);
34248 if (!SWIG_IsOK(ecode5)) {
34249 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34250 }
34251 arg5 = static_cast< int >(val5);
34252 }
34253 {
34254 PyThreadState* __tstate = wxPyBeginAllowThreads();
34255 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34256 wxPyEndAllowThreads(__tstate);
34257 if (PyErr_Occurred()) SWIG_fail;
34258 }
34259 resultobj = SWIG_Py_Void();
34260 return resultobj;
34261fail:
34262 return NULL;
34263}
34264
34265
34266SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34267 PyObject *resultobj = 0;
34268 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34269 wxWindow *arg2 = (wxWindow *) 0 ;
34270 wxDC *arg3 = 0 ;
34271 wxRect *arg4 = 0 ;
34272 int arg5 = (int) 0 ;
34273 void *argp1 = 0 ;
34274 int res1 = 0 ;
34275 void *argp2 = 0 ;
34276 int res2 = 0 ;
34277 void *argp3 = 0 ;
34278 int res3 = 0 ;
34279 wxRect temp4 ;
34280 int val5 ;
34281 int ecode5 = 0 ;
34282 PyObject * obj0 = 0 ;
34283 PyObject * obj1 = 0 ;
34284 PyObject * obj2 = 0 ;
34285 PyObject * obj3 = 0 ;
34286 PyObject * obj4 = 0 ;
34287 char * kwnames[] = {
34288 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34289 };
34290
34291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34293 if (!SWIG_IsOK(res1)) {
34294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34295 }
34296 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34297 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34298 if (!SWIG_IsOK(res2)) {
34299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34300 }
34301 arg2 = reinterpret_cast< wxWindow * >(argp2);
34302 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34303 if (!SWIG_IsOK(res3)) {
34304 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34305 }
34306 if (!argp3) {
34307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34308 }
34309 arg3 = reinterpret_cast< wxDC * >(argp3);
34310 {
34311 arg4 = &temp4;
34312 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34313 }
34314 if (obj4) {
34315 ecode5 = SWIG_AsVal_int(obj4, &val5);
34316 if (!SWIG_IsOK(ecode5)) {
34317 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34318 }
34319 arg5 = static_cast< int >(val5);
34320 }
34321 {
34322 PyThreadState* __tstate = wxPyBeginAllowThreads();
34323 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34324 wxPyEndAllowThreads(__tstate);
34325 if (PyErr_Occurred()) SWIG_fail;
34326 }
34327 resultobj = SWIG_Py_Void();
34328 return resultobj;
34329fail:
34330 return NULL;
34331}
34332
34333
34334SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34335 PyObject *resultobj = 0;
34336 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34337 wxWindow *arg2 = (wxWindow *) 0 ;
34338 wxDC *arg3 = 0 ;
34339 wxSize *arg4 = 0 ;
34340 int arg5 ;
34341 wxOrientation arg6 ;
34342 int arg7 = (int) 0 ;
34343 void *argp1 = 0 ;
34344 int res1 = 0 ;
34345 void *argp2 = 0 ;
34346 int res2 = 0 ;
34347 void *argp3 = 0 ;
34348 int res3 = 0 ;
34349 wxSize temp4 ;
34350 int val5 ;
34351 int ecode5 = 0 ;
34352 int val6 ;
34353 int ecode6 = 0 ;
34354 int val7 ;
34355 int ecode7 = 0 ;
34356 PyObject * obj0 = 0 ;
34357 PyObject * obj1 = 0 ;
34358 PyObject * obj2 = 0 ;
34359 PyObject * obj3 = 0 ;
34360 PyObject * obj4 = 0 ;
34361 PyObject * obj5 = 0 ;
34362 PyObject * obj6 = 0 ;
34363 char * kwnames[] = {
34364 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34365 };
34366
34367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34369 if (!SWIG_IsOK(res1)) {
34370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34371 }
34372 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34373 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34374 if (!SWIG_IsOK(res2)) {
34375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34376 }
34377 arg2 = reinterpret_cast< wxWindow * >(argp2);
34378 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34379 if (!SWIG_IsOK(res3)) {
34380 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34381 }
34382 if (!argp3) {
34383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34384 }
34385 arg3 = reinterpret_cast< wxDC * >(argp3);
34386 {
34387 arg4 = &temp4;
34388 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34389 }
34390 ecode5 = SWIG_AsVal_int(obj4, &val5);
34391 if (!SWIG_IsOK(ecode5)) {
34392 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34393 }
34394 arg5 = static_cast< int >(val5);
34395 ecode6 = SWIG_AsVal_int(obj5, &val6);
34396 if (!SWIG_IsOK(ecode6)) {
34397 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34398 }
34399 arg6 = static_cast< wxOrientation >(val6);
34400 if (obj6) {
34401 ecode7 = SWIG_AsVal_int(obj6, &val7);
34402 if (!SWIG_IsOK(ecode7)) {
34403 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34404 }
34405 arg7 = static_cast< int >(val7);
34406 }
34407 {
34408 PyThreadState* __tstate = wxPyBeginAllowThreads();
34409 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34410 wxPyEndAllowThreads(__tstate);
34411 if (PyErr_Occurred()) SWIG_fail;
34412 }
34413 resultobj = SWIG_Py_Void();
34414 return resultobj;
34415fail:
34416 return NULL;
34417}
34418
34419
34420SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34421 PyObject *resultobj = 0;
34422 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34423 wxWindow *arg2 = (wxWindow *) 0 ;
34424 wxDC *arg3 = 0 ;
34425 wxRect *arg4 = 0 ;
34426 int arg5 = (int) 0 ;
34427 void *argp1 = 0 ;
34428 int res1 = 0 ;
34429 void *argp2 = 0 ;
34430 int res2 = 0 ;
34431 void *argp3 = 0 ;
34432 int res3 = 0 ;
34433 wxRect temp4 ;
34434 int val5 ;
34435 int ecode5 = 0 ;
34436 PyObject * obj0 = 0 ;
34437 PyObject * obj1 = 0 ;
34438 PyObject * obj2 = 0 ;
34439 PyObject * obj3 = 0 ;
34440 PyObject * obj4 = 0 ;
34441 char * kwnames[] = {
34442 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34443 };
34444
34445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34447 if (!SWIG_IsOK(res1)) {
34448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34449 }
34450 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34451 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34452 if (!SWIG_IsOK(res2)) {
34453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34454 }
34455 arg2 = reinterpret_cast< wxWindow * >(argp2);
34456 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34457 if (!SWIG_IsOK(res3)) {
34458 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34459 }
34460 if (!argp3) {
34461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34462 }
34463 arg3 = reinterpret_cast< wxDC * >(argp3);
34464 {
34465 arg4 = &temp4;
34466 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34467 }
34468 if (obj4) {
34469 ecode5 = SWIG_AsVal_int(obj4, &val5);
34470 if (!SWIG_IsOK(ecode5)) {
34471 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34472 }
34473 arg5 = static_cast< int >(val5);
34474 }
34475 {
34476 PyThreadState* __tstate = wxPyBeginAllowThreads();
34477 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34478 wxPyEndAllowThreads(__tstate);
34479 if (PyErr_Occurred()) SWIG_fail;
34480 }
34481 resultobj = SWIG_Py_Void();
34482 return resultobj;
34483fail:
34484 return NULL;
34485}
34486
34487
34488SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34489 PyObject *resultobj = 0;
34490 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34491 wxWindow *arg2 = (wxWindow *) 0 ;
34492 wxDC *arg3 = 0 ;
34493 wxRect *arg4 = 0 ;
34494 int arg5 = (int) 0 ;
34495 void *argp1 = 0 ;
34496 int res1 = 0 ;
34497 void *argp2 = 0 ;
34498 int res2 = 0 ;
34499 void *argp3 = 0 ;
34500 int res3 = 0 ;
34501 wxRect temp4 ;
34502 int val5 ;
34503 int ecode5 = 0 ;
34504 PyObject * obj0 = 0 ;
34505 PyObject * obj1 = 0 ;
34506 PyObject * obj2 = 0 ;
34507 PyObject * obj3 = 0 ;
34508 PyObject * obj4 = 0 ;
34509 char * kwnames[] = {
34510 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34511 };
34512
34513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34515 if (!SWIG_IsOK(res1)) {
34516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34517 }
34518 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34519 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34520 if (!SWIG_IsOK(res2)) {
34521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34522 }
34523 arg2 = reinterpret_cast< wxWindow * >(argp2);
34524 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34525 if (!SWIG_IsOK(res3)) {
34526 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34527 }
34528 if (!argp3) {
34529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34530 }
34531 arg3 = reinterpret_cast< wxDC * >(argp3);
34532 {
34533 arg4 = &temp4;
34534 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34535 }
34536 if (obj4) {
34537 ecode5 = SWIG_AsVal_int(obj4, &val5);
34538 if (!SWIG_IsOK(ecode5)) {
34539 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34540 }
34541 arg5 = static_cast< int >(val5);
34542 }
34543 {
34544 PyThreadState* __tstate = wxPyBeginAllowThreads();
34545 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34546 wxPyEndAllowThreads(__tstate);
34547 if (PyErr_Occurred()) SWIG_fail;
34548 }
34549 resultobj = SWIG_Py_Void();
34550 return resultobj;
34551fail:
34552 return NULL;
34553}
34554
34555
01f6b6d3
RD
34556SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34557 PyObject *resultobj = 0;
34558 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34559 wxWindow *arg2 = (wxWindow *) 0 ;
34560 wxDC *arg3 = 0 ;
34561 wxRect *arg4 = 0 ;
34562 int arg5 = (int) 0 ;
34563 void *argp1 = 0 ;
34564 int res1 = 0 ;
34565 void *argp2 = 0 ;
34566 int res2 = 0 ;
34567 void *argp3 = 0 ;
34568 int res3 = 0 ;
34569 wxRect temp4 ;
34570 int val5 ;
34571 int ecode5 = 0 ;
34572 PyObject * obj0 = 0 ;
34573 PyObject * obj1 = 0 ;
34574 PyObject * obj2 = 0 ;
34575 PyObject * obj3 = 0 ;
34576 PyObject * obj4 = 0 ;
34577 char * kwnames[] = {
34578 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34579 };
34580
34581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34583 if (!SWIG_IsOK(res1)) {
34584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34585 }
34586 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34587 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34588 if (!SWIG_IsOK(res2)) {
34589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34590 }
34591 arg2 = reinterpret_cast< wxWindow * >(argp2);
34592 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34593 if (!SWIG_IsOK(res3)) {
34594 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34595 }
34596 if (!argp3) {
34597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34598 }
34599 arg3 = reinterpret_cast< wxDC * >(argp3);
34600 {
34601 arg4 = &temp4;
34602 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34603 }
34604 if (obj4) {
34605 ecode5 = SWIG_AsVal_int(obj4, &val5);
34606 if (!SWIG_IsOK(ecode5)) {
34607 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34608 }
34609 arg5 = static_cast< int >(val5);
34610 }
34611 {
34612 PyThreadState* __tstate = wxPyBeginAllowThreads();
34613 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34614 wxPyEndAllowThreads(__tstate);
34615 if (PyErr_Occurred()) SWIG_fail;
34616 }
34617 resultobj = SWIG_Py_Void();
34618 return resultobj;
34619fail:
34620 return NULL;
34621}
34622
34623
34624SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34625 PyObject *resultobj = 0;
34626 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34627 wxWindow *arg2 = (wxWindow *) 0 ;
34628 wxDC *arg3 = 0 ;
34629 wxRect *arg4 = 0 ;
34630 int arg5 = (int) 0 ;
34631 void *argp1 = 0 ;
34632 int res1 = 0 ;
34633 void *argp2 = 0 ;
34634 int res2 = 0 ;
34635 void *argp3 = 0 ;
34636 int res3 = 0 ;
34637 wxRect temp4 ;
34638 int val5 ;
34639 int ecode5 = 0 ;
34640 PyObject * obj0 = 0 ;
34641 PyObject * obj1 = 0 ;
34642 PyObject * obj2 = 0 ;
34643 PyObject * obj3 = 0 ;
34644 PyObject * obj4 = 0 ;
34645 char * kwnames[] = {
34646 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34647 };
34648
34649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34651 if (!SWIG_IsOK(res1)) {
34652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34653 }
34654 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34655 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34656 if (!SWIG_IsOK(res2)) {
34657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34658 }
34659 arg2 = reinterpret_cast< wxWindow * >(argp2);
34660 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34661 if (!SWIG_IsOK(res3)) {
34662 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34663 }
34664 if (!argp3) {
34665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34666 }
34667 arg3 = reinterpret_cast< wxDC * >(argp3);
34668 {
34669 arg4 = &temp4;
34670 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34671 }
34672 if (obj4) {
34673 ecode5 = SWIG_AsVal_int(obj4, &val5);
34674 if (!SWIG_IsOK(ecode5)) {
34675 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34676 }
34677 arg5 = static_cast< int >(val5);
34678 }
34679 {
34680 PyThreadState* __tstate = wxPyBeginAllowThreads();
34681 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34682 wxPyEndAllowThreads(__tstate);
34683 if (PyErr_Occurred()) SWIG_fail;
34684 }
34685 resultobj = SWIG_Py_Void();
34686 return resultobj;
34687fail:
34688 return NULL;
34689}
34690
34691
34692SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
34693 PyObject *resultobj = 0;
34694 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34695 wxWindow *arg2 = (wxWindow *) 0 ;
34696 wxDC *arg3 = 0 ;
34697 wxRect *arg4 = 0 ;
34698 int arg5 = (int) 0 ;
34699 void *argp1 = 0 ;
34700 int res1 = 0 ;
34701 void *argp2 = 0 ;
34702 int res2 = 0 ;
34703 void *argp3 = 0 ;
34704 int res3 = 0 ;
34705 wxRect temp4 ;
34706 int val5 ;
34707 int ecode5 = 0 ;
34708 PyObject * obj0 = 0 ;
34709 PyObject * obj1 = 0 ;
34710 PyObject * obj2 = 0 ;
34711 PyObject * obj3 = 0 ;
34712 PyObject * obj4 = 0 ;
34713 char * kwnames[] = {
34714 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34715 };
34716
01f6b6d3 34717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
34718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34719 if (!SWIG_IsOK(res1)) {
01f6b6d3 34720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
34721 }
34722 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34723 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34724 if (!SWIG_IsOK(res2)) {
01f6b6d3 34725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
34726 }
34727 arg2 = reinterpret_cast< wxWindow * >(argp2);
34728 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34729 if (!SWIG_IsOK(res3)) {
01f6b6d3 34730 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
34731 }
34732 if (!argp3) {
01f6b6d3 34733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
34734 }
34735 arg3 = reinterpret_cast< wxDC * >(argp3);
34736 {
34737 arg4 = &temp4;
34738 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34739 }
34740 if (obj4) {
34741 ecode5 = SWIG_AsVal_int(obj4, &val5);
34742 if (!SWIG_IsOK(ecode5)) {
01f6b6d3 34743 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
34744 }
34745 arg5 = static_cast< int >(val5);
34746 }
34747 {
34748 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 34749 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
34750 wxPyEndAllowThreads(__tstate);
34751 if (PyErr_Occurred()) SWIG_fail;
34752 }
34753 resultobj = SWIG_Py_Void();
34754 return resultobj;
34755fail:
34756 return NULL;
34757}
34758
34759
0085ce49
RD
34760SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34761 PyObject *resultobj = 0;
34762 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34763 wxWindow *arg2 = (wxWindow *) 0 ;
34764 SwigValueWrapper<wxSplitterRenderParams > result;
34765 void *argp1 = 0 ;
34766 int res1 = 0 ;
34767 void *argp2 = 0 ;
34768 int res2 = 0 ;
34769 PyObject * obj0 = 0 ;
34770 PyObject * obj1 = 0 ;
34771 char * kwnames[] = {
34772 (char *) "self",(char *) "win", NULL
34773 };
34774
34775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34777 if (!SWIG_IsOK(res1)) {
34778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34779 }
34780 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34781 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34782 if (!SWIG_IsOK(res2)) {
34783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34784 }
34785 arg2 = reinterpret_cast< wxWindow * >(argp2);
34786 {
34787 PyThreadState* __tstate = wxPyBeginAllowThreads();
34788 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34789 wxPyEndAllowThreads(__tstate);
34790 if (PyErr_Occurred()) SWIG_fail;
34791 }
34792 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34793 return resultobj;
34794fail:
34795 return NULL;
34796}
34797
34798
34799SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34800 PyObject *resultobj = 0;
34801 wxRendererNative *result = 0 ;
34802
34803 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34804 {
704eda0c 34805 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34806 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 34807 {
0085ce49
RD
34808 wxRendererNative &_result_ref = wxRendererNative::Get();
34809 result = (wxRendererNative *) &_result_ref;
093d3ff1 34810 }
0085ce49
RD
34811 wxPyEndAllowThreads(__tstate);
34812 if (PyErr_Occurred()) SWIG_fail;
34813 }
34814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34815 return resultobj;
34816fail:
34817 return NULL;
34818}
34819
34820
34821SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34822 PyObject *resultobj = 0;
34823 wxRendererNative *result = 0 ;
34824
34825 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34826 {
704eda0c 34827 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34828 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 34829 {
0085ce49
RD
34830 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34831 result = (wxRendererNative *) &_result_ref;
8d38bd1d 34832 }
0085ce49
RD
34833 wxPyEndAllowThreads(__tstate);
34834 if (PyErr_Occurred()) SWIG_fail;
34835 }
34836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34837 return resultobj;
34838fail:
34839 return NULL;
34840}
34841
34842
34843SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34844 PyObject *resultobj = 0;
34845 wxRendererNative *result = 0 ;
34846
34847 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34848 {
704eda0c 34849 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 34850 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 34851 {
0085ce49
RD
34852 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34853 result = (wxRendererNative *) &_result_ref;
8d38bd1d 34854 }
0085ce49
RD
34855 wxPyEndAllowThreads(__tstate);
34856 if (PyErr_Occurred()) SWIG_fail;
34857 }
34858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34859 return resultobj;
34860fail:
34861 return NULL;
34862}
34863
34864
34865SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34866 PyObject *resultobj = 0;
34867 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34868 wxRendererNative *result = 0 ;
34869 void *argp1 = 0 ;
34870 int res1 = 0 ;
34871 PyObject * obj0 = 0 ;
34872 char * kwnames[] = {
34873 (char *) "renderer", NULL
34874 };
34875
34876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34878 if (!SWIG_IsOK(res1)) {
34879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34880 }
34881 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34882 {
704eda0c 34883 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49
RD
34884 PyThreadState* __tstate = wxPyBeginAllowThreads();
34885 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34886 wxPyEndAllowThreads(__tstate);
34887 if (PyErr_Occurred()) SWIG_fail;
34888 }
34889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34890 return resultobj;
34891fail:
34892 return NULL;
34893}
34894
34895
34896SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34897 PyObject *resultobj = 0;
34898 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34899 SwigValueWrapper<wxRendererVersion > result;
34900 void *argp1 = 0 ;
34901 int res1 = 0 ;
34902 PyObject *swig_obj[1] ;
34903
34904 if (!args) SWIG_fail;
34905 swig_obj[0] = args;
34906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34907 if (!SWIG_IsOK(res1)) {
34908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34909 }
34910 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34911 {
34912 PyThreadState* __tstate = wxPyBeginAllowThreads();
34913 result = ((wxRendererNative const *)arg1)->GetVersion();
34914 wxPyEndAllowThreads(__tstate);
34915 if (PyErr_Occurred()) SWIG_fail;
34916 }
34917 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34918 return resultobj;
34919fail:
34920 return NULL;
34921}
34922
34923
34924SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34925 PyObject *obj;
34926 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34927 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34928 return SWIG_Py_Void();
34929}
34930
27e45892
RD
34931SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34932 PyObject *resultobj = 0;
34933 wxPseudoDC *result = 0 ;
34934
34935 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34936 {
34937 PyThreadState* __tstate = wxPyBeginAllowThreads();
34938 result = (wxPseudoDC *)new wxPseudoDC();
34939 wxPyEndAllowThreads(__tstate);
34940 if (PyErr_Occurred()) SWIG_fail;
34941 }
34942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34943 return resultobj;
34944fail:
34945 return NULL;
34946}
34947
34948
34949SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34950 PyObject *resultobj = 0;
34951 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34952 void *argp1 = 0 ;
34953 int res1 = 0 ;
34954 PyObject *swig_obj[1] ;
34955
34956 if (!args) SWIG_fail;
34957 swig_obj[0] = args;
34958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34959 if (!SWIG_IsOK(res1)) {
34960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34961 }
34962 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34963 {
34964 PyThreadState* __tstate = wxPyBeginAllowThreads();
34965 (arg1)->BeginDrawing();
34966 wxPyEndAllowThreads(__tstate);
34967 if (PyErr_Occurred()) SWIG_fail;
34968 }
34969 resultobj = SWIG_Py_Void();
34970 return resultobj;
34971fail:
34972 return NULL;
34973}
34974
34975
34976SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34977 PyObject *resultobj = 0;
34978 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34979 void *argp1 = 0 ;
34980 int res1 = 0 ;
34981 PyObject *swig_obj[1] ;
34982
34983 if (!args) SWIG_fail;
34984 swig_obj[0] = args;
34985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34986 if (!SWIG_IsOK(res1)) {
34987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34988 }
34989 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34990 {
34991 PyThreadState* __tstate = wxPyBeginAllowThreads();
34992 (arg1)->EndDrawing();
34993 wxPyEndAllowThreads(__tstate);
34994 if (PyErr_Occurred()) SWIG_fail;
34995 }
34996 resultobj = SWIG_Py_Void();
34997 return resultobj;
34998fail:
34999 return NULL;
35000}
35001
35002
35003SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35004 PyObject *resultobj = 0;
35005 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35006 void *argp1 = 0 ;
35007 int res1 = 0 ;
35008 PyObject *swig_obj[1] ;
35009
35010 if (!args) SWIG_fail;
35011 swig_obj[0] = args;
35012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35013 if (!SWIG_IsOK(res1)) {
35014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35015 }
35016 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35017 {
35018 PyThreadState* __tstate = wxPyBeginAllowThreads();
35019 delete arg1;
35020
35021 wxPyEndAllowThreads(__tstate);
35022 if (PyErr_Occurred()) SWIG_fail;
35023 }
35024 resultobj = SWIG_Py_Void();
35025 return resultobj;
35026fail:
35027 return NULL;
35028}
35029
35030
35031SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35032 PyObject *resultobj = 0;
35033 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35034 void *argp1 = 0 ;
35035 int res1 = 0 ;
35036 PyObject *swig_obj[1] ;
35037
35038 if (!args) SWIG_fail;
35039 swig_obj[0] = args;
35040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35041 if (!SWIG_IsOK(res1)) {
35042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35043 }
35044 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35045 {
35046 PyThreadState* __tstate = wxPyBeginAllowThreads();
35047 (arg1)->RemoveAll();
35048 wxPyEndAllowThreads(__tstate);
35049 if (PyErr_Occurred()) SWIG_fail;
35050 }
35051 resultobj = SWIG_Py_Void();
35052 return resultobj;
35053fail:
35054 return NULL;
35055}
35056
35057
35058SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35059 PyObject *resultobj = 0;
35060 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35061 int result;
35062 void *argp1 = 0 ;
35063 int res1 = 0 ;
35064 PyObject *swig_obj[1] ;
35065
35066 if (!args) SWIG_fail;
35067 swig_obj[0] = args;
35068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35069 if (!SWIG_IsOK(res1)) {
35070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35071 }
35072 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35073 {
35074 PyThreadState* __tstate = wxPyBeginAllowThreads();
35075 result = (int)(arg1)->GetLen();
35076 wxPyEndAllowThreads(__tstate);
35077 if (PyErr_Occurred()) SWIG_fail;
35078 }
35079 resultobj = SWIG_From_int(static_cast< int >(result));
35080 return resultobj;
35081fail:
35082 return NULL;
35083}
35084
35085
35086SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35087 PyObject *resultobj = 0;
35088 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35089 int arg2 ;
35090 void *argp1 = 0 ;
35091 int res1 = 0 ;
35092 int val2 ;
35093 int ecode2 = 0 ;
35094 PyObject * obj0 = 0 ;
35095 PyObject * obj1 = 0 ;
35096 char * kwnames[] = {
35097 (char *) "self",(char *) "id", NULL
35098 };
35099
35100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35102 if (!SWIG_IsOK(res1)) {
35103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35104 }
35105 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35106 ecode2 = SWIG_AsVal_int(obj1, &val2);
35107 if (!SWIG_IsOK(ecode2)) {
35108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35109 }
35110 arg2 = static_cast< int >(val2);
35111 {
35112 PyThreadState* __tstate = wxPyBeginAllowThreads();
35113 (arg1)->SetId(arg2);
35114 wxPyEndAllowThreads(__tstate);
35115 if (PyErr_Occurred()) SWIG_fail;
35116 }
35117 resultobj = SWIG_Py_Void();
35118 return resultobj;
35119fail:
35120 return NULL;
35121}
35122
35123
35124SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35125 PyObject *resultobj = 0;
35126 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35127 int arg2 ;
35128 void *argp1 = 0 ;
35129 int res1 = 0 ;
35130 int val2 ;
35131 int ecode2 = 0 ;
35132 PyObject * obj0 = 0 ;
35133 PyObject * obj1 = 0 ;
35134 char * kwnames[] = {
35135 (char *) "self",(char *) "id", NULL
35136 };
35137
35138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35140 if (!SWIG_IsOK(res1)) {
35141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35142 }
35143 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35144 ecode2 = SWIG_AsVal_int(obj1, &val2);
35145 if (!SWIG_IsOK(ecode2)) {
35146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35147 }
35148 arg2 = static_cast< int >(val2);
35149 {
35150 PyThreadState* __tstate = wxPyBeginAllowThreads();
35151 (arg1)->ClearId(arg2);
35152 wxPyEndAllowThreads(__tstate);
35153 if (PyErr_Occurred()) SWIG_fail;
35154 }
35155 resultobj = SWIG_Py_Void();
35156 return resultobj;
35157fail:
35158 return NULL;
35159}
35160
35161
35162SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35163 PyObject *resultobj = 0;
35164 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35165 int arg2 ;
35166 void *argp1 = 0 ;
35167 int res1 = 0 ;
35168 int val2 ;
35169 int ecode2 = 0 ;
35170 PyObject * obj0 = 0 ;
35171 PyObject * obj1 = 0 ;
35172 char * kwnames[] = {
35173 (char *) "self",(char *) "id", NULL
35174 };
35175
35176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35178 if (!SWIG_IsOK(res1)) {
35179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35180 }
35181 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35182 ecode2 = SWIG_AsVal_int(obj1, &val2);
35183 if (!SWIG_IsOK(ecode2)) {
35184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35185 }
35186 arg2 = static_cast< int >(val2);
35187 {
35188 PyThreadState* __tstate = wxPyBeginAllowThreads();
35189 (arg1)->RemoveId(arg2);
35190 wxPyEndAllowThreads(__tstate);
35191 if (PyErr_Occurred()) SWIG_fail;
35192 }
35193 resultobj = SWIG_Py_Void();
35194 return resultobj;
35195fail:
35196 return NULL;
35197}
35198
35199
35200SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35201 PyObject *resultobj = 0;
35202 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35203 int arg2 ;
35204 int arg3 ;
35205 int arg4 ;
35206 void *argp1 = 0 ;
35207 int res1 = 0 ;
35208 int val2 ;
35209 int ecode2 = 0 ;
35210 int val3 ;
35211 int ecode3 = 0 ;
35212 int val4 ;
35213 int ecode4 = 0 ;
35214 PyObject * obj0 = 0 ;
35215 PyObject * obj1 = 0 ;
35216 PyObject * obj2 = 0 ;
35217 PyObject * obj3 = 0 ;
35218 char * kwnames[] = {
35219 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35220 };
35221
35222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35224 if (!SWIG_IsOK(res1)) {
35225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35226 }
35227 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35228 ecode2 = SWIG_AsVal_int(obj1, &val2);
35229 if (!SWIG_IsOK(ecode2)) {
35230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35231 }
35232 arg2 = static_cast< int >(val2);
35233 ecode3 = SWIG_AsVal_int(obj2, &val3);
35234 if (!SWIG_IsOK(ecode3)) {
35235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35236 }
35237 arg3 = static_cast< int >(val3);
35238 ecode4 = SWIG_AsVal_int(obj3, &val4);
35239 if (!SWIG_IsOK(ecode4)) {
35240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35241 }
35242 arg4 = static_cast< int >(val4);
35243 {
35244 PyThreadState* __tstate = wxPyBeginAllowThreads();
35245 (arg1)->TranslateId(arg2,arg3,arg4);
35246 wxPyEndAllowThreads(__tstate);
35247 if (PyErr_Occurred()) SWIG_fail;
35248 }
35249 resultobj = SWIG_Py_Void();
35250 return resultobj;
35251fail:
35252 return NULL;
35253}
35254
35255
72ef6efb
RD
35256SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35257 PyObject *resultobj = 0;
35258 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35259 int arg2 ;
35260 bool arg3 = (bool) true ;
35261 void *argp1 = 0 ;
35262 int res1 = 0 ;
35263 int val2 ;
35264 int ecode2 = 0 ;
35265 bool val3 ;
35266 int ecode3 = 0 ;
35267 PyObject * obj0 = 0 ;
35268 PyObject * obj1 = 0 ;
35269 PyObject * obj2 = 0 ;
35270 char * kwnames[] = {
35271 (char *) "self",(char *) "id",(char *) "greyout", NULL
35272 };
35273
35274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35276 if (!SWIG_IsOK(res1)) {
35277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35278 }
35279 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35280 ecode2 = SWIG_AsVal_int(obj1, &val2);
35281 if (!SWIG_IsOK(ecode2)) {
35282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35283 }
35284 arg2 = static_cast< int >(val2);
35285 if (obj2) {
35286 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35287 if (!SWIG_IsOK(ecode3)) {
35288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35289 }
35290 arg3 = static_cast< bool >(val3);
35291 }
35292 {
35293 PyThreadState* __tstate = wxPyBeginAllowThreads();
35294 (arg1)->SetIdGreyedOut(arg2,arg3);
35295 wxPyEndAllowThreads(__tstate);
35296 if (PyErr_Occurred()) SWIG_fail;
35297 }
35298 resultobj = SWIG_Py_Void();
35299 return resultobj;
35300fail:
35301 return NULL;
35302}
35303
35304
35305SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35306 PyObject *resultobj = 0;
35307 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35308 int arg2 ;
35309 bool result;
35310 void *argp1 = 0 ;
35311 int res1 = 0 ;
35312 int val2 ;
35313 int ecode2 = 0 ;
35314 PyObject * obj0 = 0 ;
35315 PyObject * obj1 = 0 ;
35316 char * kwnames[] = {
35317 (char *) "self",(char *) "id", NULL
35318 };
35319
35320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35322 if (!SWIG_IsOK(res1)) {
35323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35324 }
35325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35326 ecode2 = SWIG_AsVal_int(obj1, &val2);
35327 if (!SWIG_IsOK(ecode2)) {
35328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35329 }
35330 arg2 = static_cast< int >(val2);
35331 {
35332 PyThreadState* __tstate = wxPyBeginAllowThreads();
35333 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35334 wxPyEndAllowThreads(__tstate);
35335 if (PyErr_Occurred()) SWIG_fail;
35336 }
35337 {
35338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35339 }
35340 return resultobj;
35341fail:
35342 return NULL;
35343}
35344
35345
35346SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35347 PyObject *resultobj = 0;
35348 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35349 int arg2 ;
35350 int arg3 ;
35351 int arg4 = (int) 1 ;
35352 wxColor const &arg5_defvalue = *wxWHITE ;
35353 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35354 PyObject *result = 0 ;
35355 void *argp1 = 0 ;
35356 int res1 = 0 ;
35357 int val2 ;
35358 int ecode2 = 0 ;
35359 int val3 ;
35360 int ecode3 = 0 ;
35361 int val4 ;
35362 int ecode4 = 0 ;
35363 void *argp5 = 0 ;
35364 int res5 = 0 ;
35365 PyObject * obj0 = 0 ;
35366 PyObject * obj1 = 0 ;
35367 PyObject * obj2 = 0 ;
35368 PyObject * obj3 = 0 ;
35369 PyObject * obj4 = 0 ;
35370 char * kwnames[] = {
35371 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35372 };
35373
35374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35376 if (!SWIG_IsOK(res1)) {
35377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35378 }
35379 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35380 ecode2 = SWIG_AsVal_int(obj1, &val2);
35381 if (!SWIG_IsOK(ecode2)) {
35382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35383 }
35384 arg2 = static_cast< int >(val2);
35385 ecode3 = SWIG_AsVal_int(obj2, &val3);
35386 if (!SWIG_IsOK(ecode3)) {
35387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35388 }
35389 arg3 = static_cast< int >(val3);
35390 if (obj3) {
35391 ecode4 = SWIG_AsVal_int(obj3, &val4);
35392 if (!SWIG_IsOK(ecode4)) {
35393 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35394 }
35395 arg4 = static_cast< int >(val4);
35396 }
35397 if (obj4) {
35398 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35399 if (!SWIG_IsOK(res5)) {
35400 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35401 }
35402 if (!argp5) {
35403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35404 }
35405 arg5 = reinterpret_cast< wxColor * >(argp5);
35406 }
35407 {
35408 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35409 if (PyErr_Occurred()) SWIG_fail;
35410 }
35411 resultobj = result;
35412 return resultobj;
35413fail:
35414 return NULL;
35415}
35416
35417
35418SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35419 PyObject *resultobj = 0;
35420 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35421 int arg2 ;
35422 int arg3 ;
35423 PyObject *result = 0 ;
35424 void *argp1 = 0 ;
35425 int res1 = 0 ;
35426 int val2 ;
35427 int ecode2 = 0 ;
35428 int val3 ;
35429 int ecode3 = 0 ;
35430 PyObject * obj0 = 0 ;
35431 PyObject * obj1 = 0 ;
35432 PyObject * obj2 = 0 ;
35433 char * kwnames[] = {
35434 (char *) "self",(char *) "x",(char *) "y", NULL
35435 };
35436
35437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35439 if (!SWIG_IsOK(res1)) {
35440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35441 }
35442 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35443 ecode2 = SWIG_AsVal_int(obj1, &val2);
35444 if (!SWIG_IsOK(ecode2)) {
35445 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35446 }
35447 arg2 = static_cast< int >(val2);
35448 ecode3 = SWIG_AsVal_int(obj2, &val3);
35449 if (!SWIG_IsOK(ecode3)) {
35450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35451 }
35452 arg3 = static_cast< int >(val3);
35453 {
35454 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35455 if (PyErr_Occurred()) SWIG_fail;
35456 }
35457 resultobj = result;
35458 return resultobj;
35459fail:
35460 return NULL;
35461}
35462
35463
27e45892
RD
35464SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35465 PyObject *resultobj = 0;
35466 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35467 int arg2 ;
35468 wxDC *arg3 = (wxDC *) 0 ;
35469 void *argp1 = 0 ;
35470 int res1 = 0 ;
35471 int val2 ;
35472 int ecode2 = 0 ;
35473 void *argp3 = 0 ;
35474 int res3 = 0 ;
35475 PyObject * obj0 = 0 ;
35476 PyObject * obj1 = 0 ;
35477 PyObject * obj2 = 0 ;
35478 char * kwnames[] = {
35479 (char *) "self",(char *) "id",(char *) "dc", NULL
35480 };
35481
35482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35484 if (!SWIG_IsOK(res1)) {
35485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35486 }
35487 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35488 ecode2 = SWIG_AsVal_int(obj1, &val2);
35489 if (!SWIG_IsOK(ecode2)) {
35490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35491 }
35492 arg2 = static_cast< int >(val2);
35493 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35494 if (!SWIG_IsOK(res3)) {
35495 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35496 }
35497 arg3 = reinterpret_cast< wxDC * >(argp3);
35498 {
35499 PyThreadState* __tstate = wxPyBeginAllowThreads();
35500 (arg1)->DrawIdToDC(arg2,arg3);
35501 wxPyEndAllowThreads(__tstate);
35502 if (PyErr_Occurred()) SWIG_fail;
35503 }
35504 resultobj = SWIG_Py_Void();
35505 return resultobj;
35506fail:
35507 return NULL;
35508}
35509
35510
35511SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35512 PyObject *resultobj = 0;
35513 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35514 int arg2 ;
35515 wxRect *arg3 = 0 ;
35516 void *argp1 = 0 ;
35517 int res1 = 0 ;
35518 int val2 ;
35519 int ecode2 = 0 ;
35520 wxRect temp3 ;
35521 PyObject * obj0 = 0 ;
35522 PyObject * obj1 = 0 ;
35523 PyObject * obj2 = 0 ;
35524 char * kwnames[] = {
35525 (char *) "self",(char *) "id",(char *) "rect", NULL
35526 };
35527
35528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35530 if (!SWIG_IsOK(res1)) {
35531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35532 }
35533 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35534 ecode2 = SWIG_AsVal_int(obj1, &val2);
35535 if (!SWIG_IsOK(ecode2)) {
35536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35537 }
35538 arg2 = static_cast< int >(val2);
35539 {
35540 arg3 = &temp3;
35541 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35542 }
35543 {
35544 PyThreadState* __tstate = wxPyBeginAllowThreads();
35545 (arg1)->SetIdBounds(arg2,*arg3);
35546 wxPyEndAllowThreads(__tstate);
35547 if (PyErr_Occurred()) SWIG_fail;
35548 }
35549 resultobj = SWIG_Py_Void();
35550 return resultobj;
35551fail:
35552 return NULL;
35553}
35554
35555
35556SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35557 PyObject *resultobj = 0;
35558 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35559 int arg2 ;
35560 wxRect result;
35561 void *argp1 = 0 ;
35562 int res1 = 0 ;
35563 int val2 ;
35564 int ecode2 = 0 ;
35565 PyObject * obj0 = 0 ;
35566 PyObject * obj1 = 0 ;
35567 char * kwnames[] = {
35568 (char *) "self",(char *) "id", NULL
35569 };
35570
35571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35573 if (!SWIG_IsOK(res1)) {
35574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35575 }
35576 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35577 ecode2 = SWIG_AsVal_int(obj1, &val2);
35578 if (!SWIG_IsOK(ecode2)) {
35579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35580 }
35581 arg2 = static_cast< int >(val2);
35582 {
35583 PyThreadState* __tstate = wxPyBeginAllowThreads();
35584 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35585 wxPyEndAllowThreads(__tstate);
35586 if (PyErr_Occurred()) SWIG_fail;
35587 }
35588 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35589 return resultobj;
35590fail:
35591 return NULL;
35592}
35593
35594
35595SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35596 PyObject *resultobj = 0;
35597 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35598 wxDC *arg2 = (wxDC *) 0 ;
35599 wxRect *arg3 = 0 ;
35600 void *argp1 = 0 ;
35601 int res1 = 0 ;
35602 void *argp2 = 0 ;
35603 int res2 = 0 ;
35604 wxRect temp3 ;
35605 PyObject * obj0 = 0 ;
35606 PyObject * obj1 = 0 ;
35607 PyObject * obj2 = 0 ;
35608 char * kwnames[] = {
35609 (char *) "self",(char *) "dc",(char *) "rect", NULL
35610 };
35611
35612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35614 if (!SWIG_IsOK(res1)) {
35615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35616 }
35617 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35618 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35619 if (!SWIG_IsOK(res2)) {
35620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35621 }
35622 arg2 = reinterpret_cast< wxDC * >(argp2);
35623 {
35624 arg3 = &temp3;
35625 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35626 }
35627 {
35628 PyThreadState* __tstate = wxPyBeginAllowThreads();
35629 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35630 wxPyEndAllowThreads(__tstate);
35631 if (PyErr_Occurred()) SWIG_fail;
35632 }
35633 resultobj = SWIG_Py_Void();
35634 return resultobj;
35635fail:
35636 return NULL;
35637}
35638
35639
35640SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35641 PyObject *resultobj = 0;
35642 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35643 wxDC *arg2 = (wxDC *) 0 ;
35644 wxRegion *arg3 = 0 ;
35645 void *argp1 = 0 ;
35646 int res1 = 0 ;
35647 void *argp2 = 0 ;
35648 int res2 = 0 ;
35649 void *argp3 = 0 ;
35650 int res3 = 0 ;
35651 PyObject * obj0 = 0 ;
35652 PyObject * obj1 = 0 ;
35653 PyObject * obj2 = 0 ;
35654 char * kwnames[] = {
35655 (char *) "self",(char *) "dc",(char *) "region", NULL
35656 };
35657
35658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35660 if (!SWIG_IsOK(res1)) {
35661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35662 }
35663 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35665 if (!SWIG_IsOK(res2)) {
35666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35667 }
35668 arg2 = reinterpret_cast< wxDC * >(argp2);
35669 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35670 if (!SWIG_IsOK(res3)) {
35671 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35672 }
35673 if (!argp3) {
35674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35675 }
35676 arg3 = reinterpret_cast< wxRegion * >(argp3);
35677 {
35678 PyThreadState* __tstate = wxPyBeginAllowThreads();
35679 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35680 wxPyEndAllowThreads(__tstate);
35681 if (PyErr_Occurred()) SWIG_fail;
35682 }
35683 resultobj = SWIG_Py_Void();
35684 return resultobj;
35685fail:
35686 return NULL;
35687}
35688
35689
35690SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35691 PyObject *resultobj = 0;
35692 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35693 wxDC *arg2 = (wxDC *) 0 ;
35694 void *argp1 = 0 ;
35695 int res1 = 0 ;
35696 void *argp2 = 0 ;
35697 int res2 = 0 ;
35698 PyObject * obj0 = 0 ;
35699 PyObject * obj1 = 0 ;
35700 char * kwnames[] = {
35701 (char *) "self",(char *) "dc", NULL
35702 };
35703
35704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35706 if (!SWIG_IsOK(res1)) {
35707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35708 }
35709 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35711 if (!SWIG_IsOK(res2)) {
35712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35713 }
35714 arg2 = reinterpret_cast< wxDC * >(argp2);
35715 {
35716 PyThreadState* __tstate = wxPyBeginAllowThreads();
35717 (arg1)->DrawToDC(arg2);
35718 wxPyEndAllowThreads(__tstate);
35719 if (PyErr_Occurred()) SWIG_fail;
35720 }
35721 resultobj = SWIG_Py_Void();
35722 return resultobj;
35723fail:
35724 return NULL;
35725}
35726
35727
35728SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35729 PyObject *resultobj = 0;
35730 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35731 int arg2 ;
35732 int arg3 ;
35733 wxColour *arg4 = 0 ;
35734 int arg5 = (int) wxFLOOD_SURFACE ;
35735 void *argp1 = 0 ;
35736 int res1 = 0 ;
35737 int val2 ;
35738 int ecode2 = 0 ;
35739 int val3 ;
35740 int ecode3 = 0 ;
35741 wxColour temp4 ;
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 *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35751 };
35752
35753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",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_FloodFill" "', 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_FloodFill" "', 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_FloodFill" "', expected argument " "3"" of type '" "int""'");
35767 }
35768 arg3 = static_cast< int >(val3);
35769 {
35770 arg4 = &temp4;
35771 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35772 }
35773 if (obj4) {
35774 ecode5 = SWIG_AsVal_int(obj4, &val5);
35775 if (!SWIG_IsOK(ecode5)) {
35776 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35777 }
35778 arg5 = static_cast< int >(val5);
35779 }
35780 {
35781 PyThreadState* __tstate = wxPyBeginAllowThreads();
35782 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35783 wxPyEndAllowThreads(__tstate);
35784 if (PyErr_Occurred()) SWIG_fail;
35785 }
35786 resultobj = SWIG_Py_Void();
35787 return resultobj;
35788fail:
35789 return NULL;
35790}
35791
35792
35793SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35794 PyObject *resultobj = 0;
35795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35796 wxPoint *arg2 = 0 ;
35797 wxColour *arg3 = 0 ;
35798 int arg4 = (int) wxFLOOD_SURFACE ;
35799 void *argp1 = 0 ;
35800 int res1 = 0 ;
35801 wxPoint temp2 ;
35802 wxColour temp3 ;
35803 int val4 ;
35804 int ecode4 = 0 ;
35805 PyObject * obj0 = 0 ;
35806 PyObject * obj1 = 0 ;
35807 PyObject * obj2 = 0 ;
35808 PyObject * obj3 = 0 ;
35809 char * kwnames[] = {
35810 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35811 };
35812
35813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35815 if (!SWIG_IsOK(res1)) {
35816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35817 }
35818 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35819 {
35820 arg2 = &temp2;
35821 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35822 }
35823 {
35824 arg3 = &temp3;
35825 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35826 }
35827 if (obj3) {
35828 ecode4 = SWIG_AsVal_int(obj3, &val4);
35829 if (!SWIG_IsOK(ecode4)) {
35830 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35831 }
35832 arg4 = static_cast< int >(val4);
35833 }
35834 {
35835 PyThreadState* __tstate = wxPyBeginAllowThreads();
35836 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35837 wxPyEndAllowThreads(__tstate);
35838 if (PyErr_Occurred()) SWIG_fail;
35839 }
35840 resultobj = SWIG_Py_Void();
35841 return resultobj;
35842fail:
35843 return NULL;
35844}
35845
35846
35847SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35848 PyObject *resultobj = 0;
35849 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35850 int arg2 ;
35851 int arg3 ;
35852 int arg4 ;
35853 int arg5 ;
35854 void *argp1 = 0 ;
35855 int res1 = 0 ;
35856 int val2 ;
35857 int ecode2 = 0 ;
35858 int val3 ;
35859 int ecode3 = 0 ;
35860 int val4 ;
35861 int ecode4 = 0 ;
35862 int val5 ;
35863 int ecode5 = 0 ;
35864 PyObject * obj0 = 0 ;
35865 PyObject * obj1 = 0 ;
35866 PyObject * obj2 = 0 ;
35867 PyObject * obj3 = 0 ;
35868 PyObject * obj4 = 0 ;
35869 char * kwnames[] = {
35870 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35871 };
35872
35873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35875 if (!SWIG_IsOK(res1)) {
35876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35877 }
35878 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35879 ecode2 = SWIG_AsVal_int(obj1, &val2);
35880 if (!SWIG_IsOK(ecode2)) {
35881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35882 }
35883 arg2 = static_cast< int >(val2);
35884 ecode3 = SWIG_AsVal_int(obj2, &val3);
35885 if (!SWIG_IsOK(ecode3)) {
35886 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35887 }
35888 arg3 = static_cast< int >(val3);
35889 ecode4 = SWIG_AsVal_int(obj3, &val4);
35890 if (!SWIG_IsOK(ecode4)) {
35891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35892 }
35893 arg4 = static_cast< int >(val4);
35894 ecode5 = SWIG_AsVal_int(obj4, &val5);
35895 if (!SWIG_IsOK(ecode5)) {
35896 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35897 }
35898 arg5 = static_cast< int >(val5);
35899 {
35900 PyThreadState* __tstate = wxPyBeginAllowThreads();
35901 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35902 wxPyEndAllowThreads(__tstate);
35903 if (PyErr_Occurred()) SWIG_fail;
35904 }
35905 resultobj = SWIG_Py_Void();
35906 return resultobj;
35907fail:
35908 return NULL;
35909}
35910
35911
35912SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35913 PyObject *resultobj = 0;
35914 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35915 wxPoint *arg2 = 0 ;
35916 wxPoint *arg3 = 0 ;
35917 void *argp1 = 0 ;
35918 int res1 = 0 ;
35919 wxPoint temp2 ;
35920 wxPoint temp3 ;
35921 PyObject * obj0 = 0 ;
35922 PyObject * obj1 = 0 ;
35923 PyObject * obj2 = 0 ;
35924 char * kwnames[] = {
35925 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35926 };
35927
35928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35930 if (!SWIG_IsOK(res1)) {
35931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35932 }
35933 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35934 {
35935 arg2 = &temp2;
35936 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35937 }
35938 {
35939 arg3 = &temp3;
35940 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35941 }
35942 {
35943 PyThreadState* __tstate = wxPyBeginAllowThreads();
35944 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35945 wxPyEndAllowThreads(__tstate);
35946 if (PyErr_Occurred()) SWIG_fail;
35947 }
35948 resultobj = SWIG_Py_Void();
35949 return resultobj;
35950fail:
35951 return NULL;
35952}
35953
35954
35955SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35956 PyObject *resultobj = 0;
35957 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35958 int arg2 ;
35959 int arg3 ;
35960 void *argp1 = 0 ;
35961 int res1 = 0 ;
35962 int val2 ;
35963 int ecode2 = 0 ;
35964 int val3 ;
35965 int ecode3 = 0 ;
35966 PyObject * obj0 = 0 ;
35967 PyObject * obj1 = 0 ;
35968 PyObject * obj2 = 0 ;
35969 char * kwnames[] = {
35970 (char *) "self",(char *) "x",(char *) "y", NULL
35971 };
35972
35973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35975 if (!SWIG_IsOK(res1)) {
35976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35977 }
35978 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35979 ecode2 = SWIG_AsVal_int(obj1, &val2);
35980 if (!SWIG_IsOK(ecode2)) {
35981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
35982 }
35983 arg2 = static_cast< int >(val2);
35984 ecode3 = SWIG_AsVal_int(obj2, &val3);
35985 if (!SWIG_IsOK(ecode3)) {
35986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
35987 }
35988 arg3 = static_cast< int >(val3);
35989 {
35990 PyThreadState* __tstate = wxPyBeginAllowThreads();
35991 (arg1)->CrossHair(arg2,arg3);
35992 wxPyEndAllowThreads(__tstate);
35993 if (PyErr_Occurred()) SWIG_fail;
35994 }
35995 resultobj = SWIG_Py_Void();
35996 return resultobj;
35997fail:
35998 return NULL;
35999}
36000
36001
36002SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36003 PyObject *resultobj = 0;
36004 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36005 wxPoint *arg2 = 0 ;
36006 void *argp1 = 0 ;
36007 int res1 = 0 ;
36008 wxPoint temp2 ;
36009 PyObject * obj0 = 0 ;
36010 PyObject * obj1 = 0 ;
36011 char * kwnames[] = {
36012 (char *) "self",(char *) "pt", NULL
36013 };
36014
36015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36017 if (!SWIG_IsOK(res1)) {
36018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36019 }
36020 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36021 {
36022 arg2 = &temp2;
36023 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36024 }
36025 {
36026 PyThreadState* __tstate = wxPyBeginAllowThreads();
36027 (arg1)->CrossHair((wxPoint const &)*arg2);
36028 wxPyEndAllowThreads(__tstate);
36029 if (PyErr_Occurred()) SWIG_fail;
36030 }
36031 resultobj = SWIG_Py_Void();
36032 return resultobj;
36033fail:
36034 return NULL;
36035}
36036
36037
36038SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36039 PyObject *resultobj = 0;
36040 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36041 int arg2 ;
36042 int arg3 ;
36043 int arg4 ;
36044 int arg5 ;
36045 int arg6 ;
36046 int arg7 ;
36047 void *argp1 = 0 ;
36048 int res1 = 0 ;
36049 int val2 ;
36050 int ecode2 = 0 ;
36051 int val3 ;
36052 int ecode3 = 0 ;
36053 int val4 ;
36054 int ecode4 = 0 ;
36055 int val5 ;
36056 int ecode5 = 0 ;
36057 int val6 ;
36058 int ecode6 = 0 ;
36059 int val7 ;
36060 int ecode7 = 0 ;
36061 PyObject * obj0 = 0 ;
36062 PyObject * obj1 = 0 ;
36063 PyObject * obj2 = 0 ;
36064 PyObject * obj3 = 0 ;
36065 PyObject * obj4 = 0 ;
36066 PyObject * obj5 = 0 ;
36067 PyObject * obj6 = 0 ;
36068 char * kwnames[] = {
36069 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36070 };
36071
36072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36074 if (!SWIG_IsOK(res1)) {
36075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36076 }
36077 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36078 ecode2 = SWIG_AsVal_int(obj1, &val2);
36079 if (!SWIG_IsOK(ecode2)) {
36080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36081 }
36082 arg2 = static_cast< int >(val2);
36083 ecode3 = SWIG_AsVal_int(obj2, &val3);
36084 if (!SWIG_IsOK(ecode3)) {
36085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36086 }
36087 arg3 = static_cast< int >(val3);
36088 ecode4 = SWIG_AsVal_int(obj3, &val4);
36089 if (!SWIG_IsOK(ecode4)) {
36090 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36091 }
36092 arg4 = static_cast< int >(val4);
36093 ecode5 = SWIG_AsVal_int(obj4, &val5);
36094 if (!SWIG_IsOK(ecode5)) {
36095 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36096 }
36097 arg5 = static_cast< int >(val5);
36098 ecode6 = SWIG_AsVal_int(obj5, &val6);
36099 if (!SWIG_IsOK(ecode6)) {
36100 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36101 }
36102 arg6 = static_cast< int >(val6);
36103 ecode7 = SWIG_AsVal_int(obj6, &val7);
36104 if (!SWIG_IsOK(ecode7)) {
36105 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36106 }
36107 arg7 = static_cast< int >(val7);
36108 {
36109 PyThreadState* __tstate = wxPyBeginAllowThreads();
36110 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36111 wxPyEndAllowThreads(__tstate);
36112 if (PyErr_Occurred()) SWIG_fail;
36113 }
36114 resultobj = SWIG_Py_Void();
36115 return resultobj;
36116fail:
36117 return NULL;
36118}
36119
36120
36121SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36122 PyObject *resultobj = 0;
36123 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36124 wxPoint *arg2 = 0 ;
36125 wxPoint *arg3 = 0 ;
36126 wxPoint *arg4 = 0 ;
36127 void *argp1 = 0 ;
36128 int res1 = 0 ;
36129 wxPoint temp2 ;
36130 wxPoint temp3 ;
36131 wxPoint temp4 ;
36132 PyObject * obj0 = 0 ;
36133 PyObject * obj1 = 0 ;
36134 PyObject * obj2 = 0 ;
36135 PyObject * obj3 = 0 ;
36136 char * kwnames[] = {
36137 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36138 };
36139
36140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36142 if (!SWIG_IsOK(res1)) {
36143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36144 }
36145 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36146 {
36147 arg2 = &temp2;
36148 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36149 }
36150 {
36151 arg3 = &temp3;
36152 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36153 }
36154 {
36155 arg4 = &temp4;
36156 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36157 }
36158 {
36159 PyThreadState* __tstate = wxPyBeginAllowThreads();
36160 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36161 wxPyEndAllowThreads(__tstate);
36162 if (PyErr_Occurred()) SWIG_fail;
36163 }
36164 resultobj = SWIG_Py_Void();
36165 return resultobj;
36166fail:
36167 return NULL;
36168}
36169
36170
36171SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36172 PyObject *resultobj = 0;
36173 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36174 int arg2 ;
36175 int arg3 ;
36176 int arg4 ;
36177 int arg5 ;
36178 void *argp1 = 0 ;
36179 int res1 = 0 ;
36180 int val2 ;
36181 int ecode2 = 0 ;
36182 int val3 ;
36183 int ecode3 = 0 ;
36184 int val4 ;
36185 int ecode4 = 0 ;
36186 int val5 ;
36187 int ecode5 = 0 ;
36188 PyObject * obj0 = 0 ;
36189 PyObject * obj1 = 0 ;
36190 PyObject * obj2 = 0 ;
36191 PyObject * obj3 = 0 ;
36192 PyObject * obj4 = 0 ;
36193 char * kwnames[] = {
36194 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36195 };
36196
36197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36199 if (!SWIG_IsOK(res1)) {
36200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36201 }
36202 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36203 ecode2 = SWIG_AsVal_int(obj1, &val2);
36204 if (!SWIG_IsOK(ecode2)) {
36205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36206 }
36207 arg2 = static_cast< int >(val2);
36208 ecode3 = SWIG_AsVal_int(obj2, &val3);
36209 if (!SWIG_IsOK(ecode3)) {
36210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36211 }
36212 arg3 = static_cast< int >(val3);
36213 ecode4 = SWIG_AsVal_int(obj3, &val4);
36214 if (!SWIG_IsOK(ecode4)) {
36215 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36216 }
36217 arg4 = static_cast< int >(val4);
36218 ecode5 = SWIG_AsVal_int(obj4, &val5);
36219 if (!SWIG_IsOK(ecode5)) {
36220 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36221 }
36222 arg5 = static_cast< int >(val5);
36223 {
36224 PyThreadState* __tstate = wxPyBeginAllowThreads();
36225 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36226 wxPyEndAllowThreads(__tstate);
36227 if (PyErr_Occurred()) SWIG_fail;
36228 }
36229 resultobj = SWIG_Py_Void();
36230 return resultobj;
36231fail:
36232 return NULL;
36233}
36234
36235
36236SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36237 PyObject *resultobj = 0;
36238 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36239 wxRect *arg2 = 0 ;
36240 void *argp1 = 0 ;
36241 int res1 = 0 ;
36242 wxRect temp2 ;
36243 PyObject * obj0 = 0 ;
36244 PyObject * obj1 = 0 ;
36245 char * kwnames[] = {
36246 (char *) "self",(char *) "rect", NULL
36247 };
36248
36249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36251 if (!SWIG_IsOK(res1)) {
36252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36253 }
36254 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36255 {
36256 arg2 = &temp2;
36257 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36258 }
36259 {
36260 PyThreadState* __tstate = wxPyBeginAllowThreads();
36261 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36262 wxPyEndAllowThreads(__tstate);
36263 if (PyErr_Occurred()) SWIG_fail;
36264 }
36265 resultobj = SWIG_Py_Void();
36266 return resultobj;
36267fail:
36268 return NULL;
36269}
36270
36271
36272SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36273 PyObject *resultobj = 0;
36274 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36275 int arg2 ;
36276 int arg3 ;
36277 int arg4 ;
36278 int arg5 ;
36279 double arg6 ;
36280 double arg7 ;
36281 void *argp1 = 0 ;
36282 int res1 = 0 ;
36283 int val2 ;
36284 int ecode2 = 0 ;
36285 int val3 ;
36286 int ecode3 = 0 ;
36287 int val4 ;
36288 int ecode4 = 0 ;
36289 int val5 ;
36290 int ecode5 = 0 ;
36291 double val6 ;
36292 int ecode6 = 0 ;
36293 double val7 ;
36294 int ecode7 = 0 ;
36295 PyObject * obj0 = 0 ;
36296 PyObject * obj1 = 0 ;
36297 PyObject * obj2 = 0 ;
36298 PyObject * obj3 = 0 ;
36299 PyObject * obj4 = 0 ;
36300 PyObject * obj5 = 0 ;
36301 PyObject * obj6 = 0 ;
36302 char * kwnames[] = {
36303 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36304 };
36305
36306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36308 if (!SWIG_IsOK(res1)) {
36309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36310 }
36311 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36312 ecode2 = SWIG_AsVal_int(obj1, &val2);
36313 if (!SWIG_IsOK(ecode2)) {
36314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36315 }
36316 arg2 = static_cast< int >(val2);
36317 ecode3 = SWIG_AsVal_int(obj2, &val3);
36318 if (!SWIG_IsOK(ecode3)) {
36319 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36320 }
36321 arg3 = static_cast< int >(val3);
36322 ecode4 = SWIG_AsVal_int(obj3, &val4);
36323 if (!SWIG_IsOK(ecode4)) {
36324 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36325 }
36326 arg4 = static_cast< int >(val4);
36327 ecode5 = SWIG_AsVal_int(obj4, &val5);
36328 if (!SWIG_IsOK(ecode5)) {
36329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36330 }
36331 arg5 = static_cast< int >(val5);
36332 ecode6 = SWIG_AsVal_double(obj5, &val6);
36333 if (!SWIG_IsOK(ecode6)) {
36334 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36335 }
36336 arg6 = static_cast< double >(val6);
36337 ecode7 = SWIG_AsVal_double(obj6, &val7);
36338 if (!SWIG_IsOK(ecode7)) {
36339 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36340 }
36341 arg7 = static_cast< double >(val7);
36342 {
36343 PyThreadState* __tstate = wxPyBeginAllowThreads();
36344 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36345 wxPyEndAllowThreads(__tstate);
36346 if (PyErr_Occurred()) SWIG_fail;
36347 }
36348 resultobj = SWIG_Py_Void();
36349 return resultobj;
36350fail:
36351 return NULL;
36352}
36353
36354
36355SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36356 PyObject *resultobj = 0;
36357 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36358 wxPoint *arg2 = 0 ;
36359 wxSize *arg3 = 0 ;
36360 double arg4 ;
36361 double arg5 ;
36362 void *argp1 = 0 ;
36363 int res1 = 0 ;
36364 wxPoint temp2 ;
36365 wxSize temp3 ;
36366 double val4 ;
36367 int ecode4 = 0 ;
36368 double val5 ;
36369 int ecode5 = 0 ;
36370 PyObject * obj0 = 0 ;
36371 PyObject * obj1 = 0 ;
36372 PyObject * obj2 = 0 ;
36373 PyObject * obj3 = 0 ;
36374 PyObject * obj4 = 0 ;
36375 char * kwnames[] = {
36376 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36377 };
36378
36379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36381 if (!SWIG_IsOK(res1)) {
36382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36383 }
36384 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36385 {
36386 arg2 = &temp2;
36387 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36388 }
36389 {
36390 arg3 = &temp3;
36391 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36392 }
36393 ecode4 = SWIG_AsVal_double(obj3, &val4);
36394 if (!SWIG_IsOK(ecode4)) {
36395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36396 }
36397 arg4 = static_cast< double >(val4);
36398 ecode5 = SWIG_AsVal_double(obj4, &val5);
36399 if (!SWIG_IsOK(ecode5)) {
36400 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36401 }
36402 arg5 = static_cast< double >(val5);
36403 {
36404 PyThreadState* __tstate = wxPyBeginAllowThreads();
36405 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36406 wxPyEndAllowThreads(__tstate);
36407 if (PyErr_Occurred()) SWIG_fail;
36408 }
36409 resultobj = SWIG_Py_Void();
36410 return resultobj;
36411fail:
36412 return NULL;
36413}
36414
36415
36416SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36417 PyObject *resultobj = 0;
36418 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36419 int arg2 ;
36420 int arg3 ;
36421 void *argp1 = 0 ;
36422 int res1 = 0 ;
36423 int val2 ;
36424 int ecode2 = 0 ;
36425 int val3 ;
36426 int ecode3 = 0 ;
36427 PyObject * obj0 = 0 ;
36428 PyObject * obj1 = 0 ;
36429 PyObject * obj2 = 0 ;
36430 char * kwnames[] = {
36431 (char *) "self",(char *) "x",(char *) "y", NULL
36432 };
36433
36434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36436 if (!SWIG_IsOK(res1)) {
36437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36438 }
36439 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36440 ecode2 = SWIG_AsVal_int(obj1, &val2);
36441 if (!SWIG_IsOK(ecode2)) {
36442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36443 }
36444 arg2 = static_cast< int >(val2);
36445 ecode3 = SWIG_AsVal_int(obj2, &val3);
36446 if (!SWIG_IsOK(ecode3)) {
36447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36448 }
36449 arg3 = static_cast< int >(val3);
36450 {
36451 PyThreadState* __tstate = wxPyBeginAllowThreads();
36452 (arg1)->DrawPoint(arg2,arg3);
36453 wxPyEndAllowThreads(__tstate);
36454 if (PyErr_Occurred()) SWIG_fail;
36455 }
36456 resultobj = SWIG_Py_Void();
36457 return resultobj;
36458fail:
36459 return NULL;
36460}
36461
36462
36463SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36464 PyObject *resultobj = 0;
36465 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36466 wxPoint *arg2 = 0 ;
36467 void *argp1 = 0 ;
36468 int res1 = 0 ;
36469 wxPoint temp2 ;
36470 PyObject * obj0 = 0 ;
36471 PyObject * obj1 = 0 ;
36472 char * kwnames[] = {
36473 (char *) "self",(char *) "pt", NULL
36474 };
36475
36476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36478 if (!SWIG_IsOK(res1)) {
36479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36480 }
36481 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36482 {
36483 arg2 = &temp2;
36484 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36485 }
36486 {
36487 PyThreadState* __tstate = wxPyBeginAllowThreads();
36488 (arg1)->DrawPoint((wxPoint const &)*arg2);
36489 wxPyEndAllowThreads(__tstate);
36490 if (PyErr_Occurred()) SWIG_fail;
36491 }
36492 resultobj = SWIG_Py_Void();
36493 return resultobj;
36494fail:
36495 return NULL;
36496}
36497
36498
36499SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36500 PyObject *resultobj = 0;
36501 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36502 int arg2 ;
36503 int arg3 ;
36504 int arg4 ;
36505 int arg5 ;
36506 void *argp1 = 0 ;
36507 int res1 = 0 ;
36508 int val2 ;
36509 int ecode2 = 0 ;
36510 int val3 ;
36511 int ecode3 = 0 ;
36512 int val4 ;
36513 int ecode4 = 0 ;
36514 int val5 ;
36515 int ecode5 = 0 ;
36516 PyObject * obj0 = 0 ;
36517 PyObject * obj1 = 0 ;
36518 PyObject * obj2 = 0 ;
36519 PyObject * obj3 = 0 ;
36520 PyObject * obj4 = 0 ;
36521 char * kwnames[] = {
36522 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36523 };
36524
36525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36527 if (!SWIG_IsOK(res1)) {
36528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36529 }
36530 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36531 ecode2 = SWIG_AsVal_int(obj1, &val2);
36532 if (!SWIG_IsOK(ecode2)) {
36533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36534 }
36535 arg2 = static_cast< int >(val2);
36536 ecode3 = SWIG_AsVal_int(obj2, &val3);
36537 if (!SWIG_IsOK(ecode3)) {
36538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36539 }
36540 arg3 = static_cast< int >(val3);
36541 ecode4 = SWIG_AsVal_int(obj3, &val4);
36542 if (!SWIG_IsOK(ecode4)) {
36543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36544 }
36545 arg4 = static_cast< int >(val4);
36546 ecode5 = SWIG_AsVal_int(obj4, &val5);
36547 if (!SWIG_IsOK(ecode5)) {
36548 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36549 }
36550 arg5 = static_cast< int >(val5);
36551 {
36552 PyThreadState* __tstate = wxPyBeginAllowThreads();
36553 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36554 wxPyEndAllowThreads(__tstate);
36555 if (PyErr_Occurred()) SWIG_fail;
36556 }
36557 resultobj = SWIG_Py_Void();
36558 return resultobj;
36559fail:
36560 return NULL;
36561}
36562
36563
36564SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36565 PyObject *resultobj = 0;
36566 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36567 wxRect *arg2 = 0 ;
36568 void *argp1 = 0 ;
36569 int res1 = 0 ;
36570 wxRect temp2 ;
36571 PyObject * obj0 = 0 ;
36572 PyObject * obj1 = 0 ;
36573 char * kwnames[] = {
36574 (char *) "self",(char *) "rect", NULL
36575 };
36576
36577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36579 if (!SWIG_IsOK(res1)) {
36580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36581 }
36582 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36583 {
36584 arg2 = &temp2;
36585 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36586 }
36587 {
36588 PyThreadState* __tstate = wxPyBeginAllowThreads();
36589 (arg1)->DrawRectangle((wxRect const &)*arg2);
36590 wxPyEndAllowThreads(__tstate);
36591 if (PyErr_Occurred()) SWIG_fail;
36592 }
36593 resultobj = SWIG_Py_Void();
36594 return resultobj;
36595fail:
36596 return NULL;
36597}
36598
36599
36600SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36601 PyObject *resultobj = 0;
36602 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36603 wxPoint *arg2 = 0 ;
36604 wxSize *arg3 = 0 ;
36605 void *argp1 = 0 ;
36606 int res1 = 0 ;
36607 wxPoint temp2 ;
36608 wxSize temp3 ;
36609 PyObject * obj0 = 0 ;
36610 PyObject * obj1 = 0 ;
36611 PyObject * obj2 = 0 ;
36612 char * kwnames[] = {
36613 (char *) "self",(char *) "pt",(char *) "sz", NULL
36614 };
36615
36616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36618 if (!SWIG_IsOK(res1)) {
36619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36620 }
36621 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36622 {
36623 arg2 = &temp2;
36624 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36625 }
36626 {
36627 arg3 = &temp3;
36628 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36629 }
36630 {
36631 PyThreadState* __tstate = wxPyBeginAllowThreads();
36632 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36633 wxPyEndAllowThreads(__tstate);
36634 if (PyErr_Occurred()) SWIG_fail;
36635 }
36636 resultobj = SWIG_Py_Void();
36637 return resultobj;
36638fail:
36639 return NULL;
36640}
36641
36642
36643SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36644 PyObject *resultobj = 0;
36645 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36646 int arg2 ;
36647 int arg3 ;
36648 int arg4 ;
36649 int arg5 ;
36650 double arg6 ;
36651 void *argp1 = 0 ;
36652 int res1 = 0 ;
36653 int val2 ;
36654 int ecode2 = 0 ;
36655 int val3 ;
36656 int ecode3 = 0 ;
36657 int val4 ;
36658 int ecode4 = 0 ;
36659 int val5 ;
36660 int ecode5 = 0 ;
36661 double val6 ;
36662 int ecode6 = 0 ;
36663 PyObject * obj0 = 0 ;
36664 PyObject * obj1 = 0 ;
36665 PyObject * obj2 = 0 ;
36666 PyObject * obj3 = 0 ;
36667 PyObject * obj4 = 0 ;
36668 PyObject * obj5 = 0 ;
36669 char * kwnames[] = {
36670 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36671 };
36672
36673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36675 if (!SWIG_IsOK(res1)) {
36676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36677 }
36678 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36679 ecode2 = SWIG_AsVal_int(obj1, &val2);
36680 if (!SWIG_IsOK(ecode2)) {
36681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36682 }
36683 arg2 = static_cast< int >(val2);
36684 ecode3 = SWIG_AsVal_int(obj2, &val3);
36685 if (!SWIG_IsOK(ecode3)) {
36686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36687 }
36688 arg3 = static_cast< int >(val3);
36689 ecode4 = SWIG_AsVal_int(obj3, &val4);
36690 if (!SWIG_IsOK(ecode4)) {
36691 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36692 }
36693 arg4 = static_cast< int >(val4);
36694 ecode5 = SWIG_AsVal_int(obj4, &val5);
36695 if (!SWIG_IsOK(ecode5)) {
36696 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36697 }
36698 arg5 = static_cast< int >(val5);
36699 ecode6 = SWIG_AsVal_double(obj5, &val6);
36700 if (!SWIG_IsOK(ecode6)) {
36701 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36702 }
36703 arg6 = static_cast< double >(val6);
36704 {
36705 PyThreadState* __tstate = wxPyBeginAllowThreads();
36706 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36707 wxPyEndAllowThreads(__tstate);
36708 if (PyErr_Occurred()) SWIG_fail;
36709 }
36710 resultobj = SWIG_Py_Void();
36711 return resultobj;
36712fail:
36713 return NULL;
36714}
36715
36716
36717SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36718 PyObject *resultobj = 0;
36719 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36720 wxRect *arg2 = 0 ;
36721 double arg3 ;
36722 void *argp1 = 0 ;
36723 int res1 = 0 ;
36724 wxRect temp2 ;
36725 double val3 ;
36726 int ecode3 = 0 ;
36727 PyObject * obj0 = 0 ;
36728 PyObject * obj1 = 0 ;
36729 PyObject * obj2 = 0 ;
36730 char * kwnames[] = {
36731 (char *) "self",(char *) "r",(char *) "radius", NULL
36732 };
36733
36734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36736 if (!SWIG_IsOK(res1)) {
36737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36738 }
36739 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36740 {
36741 arg2 = &temp2;
36742 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36743 }
36744 ecode3 = SWIG_AsVal_double(obj2, &val3);
36745 if (!SWIG_IsOK(ecode3)) {
36746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36747 }
36748 arg3 = static_cast< double >(val3);
36749 {
36750 PyThreadState* __tstate = wxPyBeginAllowThreads();
36751 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36752 wxPyEndAllowThreads(__tstate);
36753 if (PyErr_Occurred()) SWIG_fail;
36754 }
36755 resultobj = SWIG_Py_Void();
36756 return resultobj;
36757fail:
36758 return NULL;
36759}
36760
36761
36762SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36763 PyObject *resultobj = 0;
36764 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36765 wxPoint *arg2 = 0 ;
36766 wxSize *arg3 = 0 ;
36767 double arg4 ;
36768 void *argp1 = 0 ;
36769 int res1 = 0 ;
36770 wxPoint temp2 ;
36771 wxSize temp3 ;
36772 double val4 ;
36773 int ecode4 = 0 ;
36774 PyObject * obj0 = 0 ;
36775 PyObject * obj1 = 0 ;
36776 PyObject * obj2 = 0 ;
36777 PyObject * obj3 = 0 ;
36778 char * kwnames[] = {
36779 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36780 };
36781
36782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36784 if (!SWIG_IsOK(res1)) {
36785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36786 }
36787 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36788 {
36789 arg2 = &temp2;
36790 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36791 }
36792 {
36793 arg3 = &temp3;
36794 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36795 }
36796 ecode4 = SWIG_AsVal_double(obj3, &val4);
36797 if (!SWIG_IsOK(ecode4)) {
36798 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36799 }
36800 arg4 = static_cast< double >(val4);
36801 {
36802 PyThreadState* __tstate = wxPyBeginAllowThreads();
36803 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36804 wxPyEndAllowThreads(__tstate);
36805 if (PyErr_Occurred()) SWIG_fail;
36806 }
36807 resultobj = SWIG_Py_Void();
36808 return resultobj;
36809fail:
36810 return NULL;
36811}
36812
36813
36814SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36815 PyObject *resultobj = 0;
36816 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36817 int arg2 ;
36818 int arg3 ;
36819 int arg4 ;
36820 void *argp1 = 0 ;
36821 int res1 = 0 ;
36822 int val2 ;
36823 int ecode2 = 0 ;
36824 int val3 ;
36825 int ecode3 = 0 ;
36826 int val4 ;
36827 int ecode4 = 0 ;
36828 PyObject * obj0 = 0 ;
36829 PyObject * obj1 = 0 ;
36830 PyObject * obj2 = 0 ;
36831 PyObject * obj3 = 0 ;
36832 char * kwnames[] = {
36833 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36834 };
36835
36836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36838 if (!SWIG_IsOK(res1)) {
36839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36840 }
36841 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36842 ecode2 = SWIG_AsVal_int(obj1, &val2);
36843 if (!SWIG_IsOK(ecode2)) {
36844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36845 }
36846 arg2 = static_cast< int >(val2);
36847 ecode3 = SWIG_AsVal_int(obj2, &val3);
36848 if (!SWIG_IsOK(ecode3)) {
36849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36850 }
36851 arg3 = static_cast< int >(val3);
36852 ecode4 = SWIG_AsVal_int(obj3, &val4);
36853 if (!SWIG_IsOK(ecode4)) {
36854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36855 }
36856 arg4 = static_cast< int >(val4);
36857 {
36858 PyThreadState* __tstate = wxPyBeginAllowThreads();
36859 (arg1)->DrawCircle(arg2,arg3,arg4);
36860 wxPyEndAllowThreads(__tstate);
36861 if (PyErr_Occurred()) SWIG_fail;
36862 }
36863 resultobj = SWIG_Py_Void();
36864 return resultobj;
36865fail:
36866 return NULL;
36867}
36868
36869
36870SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36871 PyObject *resultobj = 0;
36872 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36873 wxPoint *arg2 = 0 ;
36874 int arg3 ;
36875 void *argp1 = 0 ;
36876 int res1 = 0 ;
36877 wxPoint temp2 ;
36878 int val3 ;
36879 int ecode3 = 0 ;
36880 PyObject * obj0 = 0 ;
36881 PyObject * obj1 = 0 ;
36882 PyObject * obj2 = 0 ;
36883 char * kwnames[] = {
36884 (char *) "self",(char *) "pt",(char *) "radius", NULL
36885 };
36886
36887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36889 if (!SWIG_IsOK(res1)) {
36890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36891 }
36892 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36893 {
36894 arg2 = &temp2;
36895 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36896 }
36897 ecode3 = SWIG_AsVal_int(obj2, &val3);
36898 if (!SWIG_IsOK(ecode3)) {
36899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36900 }
36901 arg3 = static_cast< int >(val3);
36902 {
36903 PyThreadState* __tstate = wxPyBeginAllowThreads();
36904 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36905 wxPyEndAllowThreads(__tstate);
36906 if (PyErr_Occurred()) SWIG_fail;
36907 }
36908 resultobj = SWIG_Py_Void();
36909 return resultobj;
36910fail:
36911 return NULL;
36912}
36913
36914
36915SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36916 PyObject *resultobj = 0;
36917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36918 int arg2 ;
36919 int arg3 ;
36920 int arg4 ;
36921 int arg5 ;
36922 void *argp1 = 0 ;
36923 int res1 = 0 ;
36924 int val2 ;
36925 int ecode2 = 0 ;
36926 int val3 ;
36927 int ecode3 = 0 ;
36928 int val4 ;
36929 int ecode4 = 0 ;
36930 int val5 ;
36931 int ecode5 = 0 ;
36932 PyObject * obj0 = 0 ;
36933 PyObject * obj1 = 0 ;
36934 PyObject * obj2 = 0 ;
36935 PyObject * obj3 = 0 ;
36936 PyObject * obj4 = 0 ;
36937 char * kwnames[] = {
36938 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36939 };
36940
36941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36943 if (!SWIG_IsOK(res1)) {
36944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36945 }
36946 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36947 ecode2 = SWIG_AsVal_int(obj1, &val2);
36948 if (!SWIG_IsOK(ecode2)) {
36949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36950 }
36951 arg2 = static_cast< int >(val2);
36952 ecode3 = SWIG_AsVal_int(obj2, &val3);
36953 if (!SWIG_IsOK(ecode3)) {
36954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36955 }
36956 arg3 = static_cast< int >(val3);
36957 ecode4 = SWIG_AsVal_int(obj3, &val4);
36958 if (!SWIG_IsOK(ecode4)) {
36959 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36960 }
36961 arg4 = static_cast< int >(val4);
36962 ecode5 = SWIG_AsVal_int(obj4, &val5);
36963 if (!SWIG_IsOK(ecode5)) {
36964 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36965 }
36966 arg5 = static_cast< int >(val5);
36967 {
36968 PyThreadState* __tstate = wxPyBeginAllowThreads();
36969 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36970 wxPyEndAllowThreads(__tstate);
36971 if (PyErr_Occurred()) SWIG_fail;
36972 }
36973 resultobj = SWIG_Py_Void();
36974 return resultobj;
36975fail:
36976 return NULL;
36977}
36978
36979
36980SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36981 PyObject *resultobj = 0;
36982 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36983 wxRect *arg2 = 0 ;
36984 void *argp1 = 0 ;
36985 int res1 = 0 ;
36986 wxRect temp2 ;
36987 PyObject * obj0 = 0 ;
36988 PyObject * obj1 = 0 ;
36989 char * kwnames[] = {
36990 (char *) "self",(char *) "rect", NULL
36991 };
36992
36993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
36994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36995 if (!SWIG_IsOK(res1)) {
36996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36997 }
36998 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36999 {
37000 arg2 = &temp2;
37001 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37002 }
37003 {
37004 PyThreadState* __tstate = wxPyBeginAllowThreads();
37005 (arg1)->DrawEllipse((wxRect const &)*arg2);
37006 wxPyEndAllowThreads(__tstate);
37007 if (PyErr_Occurred()) SWIG_fail;
37008 }
37009 resultobj = SWIG_Py_Void();
37010 return resultobj;
37011fail:
37012 return NULL;
37013}
37014
37015
37016SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37017 PyObject *resultobj = 0;
37018 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37019 wxPoint *arg2 = 0 ;
37020 wxSize *arg3 = 0 ;
37021 void *argp1 = 0 ;
37022 int res1 = 0 ;
37023 wxPoint temp2 ;
37024 wxSize temp3 ;
37025 PyObject * obj0 = 0 ;
37026 PyObject * obj1 = 0 ;
37027 PyObject * obj2 = 0 ;
37028 char * kwnames[] = {
37029 (char *) "self",(char *) "pt",(char *) "sz", NULL
37030 };
37031
37032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37034 if (!SWIG_IsOK(res1)) {
37035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37036 }
37037 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37038 {
37039 arg2 = &temp2;
37040 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37041 }
37042 {
37043 arg3 = &temp3;
37044 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37045 }
37046 {
37047 PyThreadState* __tstate = wxPyBeginAllowThreads();
37048 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37049 wxPyEndAllowThreads(__tstate);
37050 if (PyErr_Occurred()) SWIG_fail;
37051 }
37052 resultobj = SWIG_Py_Void();
37053 return resultobj;
37054fail:
37055 return NULL;
37056}
37057
37058
37059SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37060 PyObject *resultobj = 0;
37061 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37062 wxIcon *arg2 = 0 ;
37063 int arg3 ;
37064 int arg4 ;
37065 void *argp1 = 0 ;
37066 int res1 = 0 ;
37067 void *argp2 = 0 ;
37068 int res2 = 0 ;
37069 int val3 ;
37070 int ecode3 = 0 ;
37071 int val4 ;
37072 int ecode4 = 0 ;
37073 PyObject * obj0 = 0 ;
37074 PyObject * obj1 = 0 ;
37075 PyObject * obj2 = 0 ;
37076 PyObject * obj3 = 0 ;
37077 char * kwnames[] = {
37078 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37079 };
37080
37081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37083 if (!SWIG_IsOK(res1)) {
37084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37085 }
37086 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37088 if (!SWIG_IsOK(res2)) {
37089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37090 }
37091 if (!argp2) {
37092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37093 }
37094 arg2 = reinterpret_cast< wxIcon * >(argp2);
37095 ecode3 = SWIG_AsVal_int(obj2, &val3);
37096 if (!SWIG_IsOK(ecode3)) {
37097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37098 }
37099 arg3 = static_cast< int >(val3);
37100 ecode4 = SWIG_AsVal_int(obj3, &val4);
37101 if (!SWIG_IsOK(ecode4)) {
37102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37103 }
37104 arg4 = static_cast< int >(val4);
37105 {
37106 PyThreadState* __tstate = wxPyBeginAllowThreads();
37107 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37108 wxPyEndAllowThreads(__tstate);
37109 if (PyErr_Occurred()) SWIG_fail;
37110 }
37111 resultobj = SWIG_Py_Void();
37112 return resultobj;
37113fail:
37114 return NULL;
37115}
37116
37117
37118SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37119 PyObject *resultobj = 0;
37120 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37121 wxIcon *arg2 = 0 ;
37122 wxPoint *arg3 = 0 ;
37123 void *argp1 = 0 ;
37124 int res1 = 0 ;
37125 void *argp2 = 0 ;
37126 int res2 = 0 ;
37127 wxPoint temp3 ;
37128 PyObject * obj0 = 0 ;
37129 PyObject * obj1 = 0 ;
37130 PyObject * obj2 = 0 ;
37131 char * kwnames[] = {
37132 (char *) "self",(char *) "icon",(char *) "pt", NULL
37133 };
37134
37135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37137 if (!SWIG_IsOK(res1)) {
37138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37139 }
37140 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37141 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37142 if (!SWIG_IsOK(res2)) {
37143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37144 }
37145 if (!argp2) {
37146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37147 }
37148 arg2 = reinterpret_cast< wxIcon * >(argp2);
37149 {
37150 arg3 = &temp3;
37151 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37152 }
37153 {
37154 PyThreadState* __tstate = wxPyBeginAllowThreads();
37155 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37156 wxPyEndAllowThreads(__tstate);
37157 if (PyErr_Occurred()) SWIG_fail;
37158 }
37159 resultobj = SWIG_Py_Void();
37160 return resultobj;
37161fail:
37162 return NULL;
37163}
37164
37165
37166SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37167 PyObject *resultobj = 0;
37168 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37169 wxBitmap *arg2 = 0 ;
37170 int arg3 ;
37171 int arg4 ;
37172 bool arg5 = (bool) false ;
37173 void *argp1 = 0 ;
37174 int res1 = 0 ;
37175 void *argp2 = 0 ;
37176 int res2 = 0 ;
37177 int val3 ;
37178 int ecode3 = 0 ;
37179 int val4 ;
37180 int ecode4 = 0 ;
37181 bool val5 ;
37182 int ecode5 = 0 ;
37183 PyObject * obj0 = 0 ;
37184 PyObject * obj1 = 0 ;
37185 PyObject * obj2 = 0 ;
37186 PyObject * obj3 = 0 ;
37187 PyObject * obj4 = 0 ;
37188 char * kwnames[] = {
37189 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37190 };
37191
37192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37194 if (!SWIG_IsOK(res1)) {
37195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37196 }
37197 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37199 if (!SWIG_IsOK(res2)) {
37200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37201 }
37202 if (!argp2) {
37203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37204 }
37205 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37206 ecode3 = SWIG_AsVal_int(obj2, &val3);
37207 if (!SWIG_IsOK(ecode3)) {
37208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37209 }
37210 arg3 = static_cast< int >(val3);
37211 ecode4 = SWIG_AsVal_int(obj3, &val4);
37212 if (!SWIG_IsOK(ecode4)) {
37213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37214 }
37215 arg4 = static_cast< int >(val4);
37216 if (obj4) {
37217 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37218 if (!SWIG_IsOK(ecode5)) {
37219 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37220 }
37221 arg5 = static_cast< bool >(val5);
37222 }
37223 {
37224 PyThreadState* __tstate = wxPyBeginAllowThreads();
37225 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37226 wxPyEndAllowThreads(__tstate);
37227 if (PyErr_Occurred()) SWIG_fail;
37228 }
37229 resultobj = SWIG_Py_Void();
37230 return resultobj;
37231fail:
37232 return NULL;
37233}
37234
37235
37236SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37237 PyObject *resultobj = 0;
37238 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37239 wxBitmap *arg2 = 0 ;
37240 wxPoint *arg3 = 0 ;
37241 bool arg4 = (bool) false ;
37242 void *argp1 = 0 ;
37243 int res1 = 0 ;
37244 void *argp2 = 0 ;
37245 int res2 = 0 ;
37246 wxPoint temp3 ;
37247 bool val4 ;
37248 int ecode4 = 0 ;
37249 PyObject * obj0 = 0 ;
37250 PyObject * obj1 = 0 ;
37251 PyObject * obj2 = 0 ;
37252 PyObject * obj3 = 0 ;
37253 char * kwnames[] = {
37254 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37255 };
37256
37257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37259 if (!SWIG_IsOK(res1)) {
37260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37261 }
37262 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37264 if (!SWIG_IsOK(res2)) {
37265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37266 }
37267 if (!argp2) {
37268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37269 }
37270 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37271 {
37272 arg3 = &temp3;
37273 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37274 }
37275 if (obj3) {
37276 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37277 if (!SWIG_IsOK(ecode4)) {
37278 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37279 }
37280 arg4 = static_cast< bool >(val4);
37281 }
37282 {
37283 PyThreadState* __tstate = wxPyBeginAllowThreads();
37284 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37285 wxPyEndAllowThreads(__tstate);
37286 if (PyErr_Occurred()) SWIG_fail;
37287 }
37288 resultobj = SWIG_Py_Void();
37289 return resultobj;
37290fail:
37291 return NULL;
37292}
37293
37294
37295SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37296 PyObject *resultobj = 0;
37297 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37298 wxString *arg2 = 0 ;
37299 int arg3 ;
37300 int arg4 ;
37301 void *argp1 = 0 ;
37302 int res1 = 0 ;
37303 bool temp2 = false ;
37304 int val3 ;
37305 int ecode3 = 0 ;
37306 int val4 ;
37307 int ecode4 = 0 ;
37308 PyObject * obj0 = 0 ;
37309 PyObject * obj1 = 0 ;
37310 PyObject * obj2 = 0 ;
37311 PyObject * obj3 = 0 ;
37312 char * kwnames[] = {
37313 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37314 };
37315
37316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37318 if (!SWIG_IsOK(res1)) {
37319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37320 }
37321 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37322 {
37323 arg2 = wxString_in_helper(obj1);
37324 if (arg2 == NULL) SWIG_fail;
37325 temp2 = true;
37326 }
37327 ecode3 = SWIG_AsVal_int(obj2, &val3);
37328 if (!SWIG_IsOK(ecode3)) {
37329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37330 }
37331 arg3 = static_cast< int >(val3);
37332 ecode4 = SWIG_AsVal_int(obj3, &val4);
37333 if (!SWIG_IsOK(ecode4)) {
37334 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37335 }
37336 arg4 = static_cast< int >(val4);
37337 {
37338 PyThreadState* __tstate = wxPyBeginAllowThreads();
37339 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37340 wxPyEndAllowThreads(__tstate);
37341 if (PyErr_Occurred()) SWIG_fail;
37342 }
37343 resultobj = SWIG_Py_Void();
37344 {
37345 if (temp2)
37346 delete arg2;
37347 }
37348 return resultobj;
37349fail:
37350 {
37351 if (temp2)
37352 delete arg2;
37353 }
37354 return NULL;
37355}
37356
37357
37358SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37359 PyObject *resultobj = 0;
37360 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37361 wxString *arg2 = 0 ;
37362 wxPoint *arg3 = 0 ;
37363 void *argp1 = 0 ;
37364 int res1 = 0 ;
37365 bool temp2 = false ;
37366 wxPoint temp3 ;
37367 PyObject * obj0 = 0 ;
37368 PyObject * obj1 = 0 ;
37369 PyObject * obj2 = 0 ;
37370 char * kwnames[] = {
37371 (char *) "self",(char *) "text",(char *) "pt", NULL
37372 };
37373
37374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37376 if (!SWIG_IsOK(res1)) {
37377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37378 }
37379 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37380 {
37381 arg2 = wxString_in_helper(obj1);
37382 if (arg2 == NULL) SWIG_fail;
37383 temp2 = true;
37384 }
37385 {
37386 arg3 = &temp3;
37387 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37388 }
37389 {
37390 PyThreadState* __tstate = wxPyBeginAllowThreads();
37391 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37392 wxPyEndAllowThreads(__tstate);
37393 if (PyErr_Occurred()) SWIG_fail;
37394 }
37395 resultobj = SWIG_Py_Void();
37396 {
37397 if (temp2)
37398 delete arg2;
37399 }
37400 return resultobj;
37401fail:
37402 {
37403 if (temp2)
37404 delete arg2;
37405 }
37406 return NULL;
37407}
37408
37409
37410SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37411 PyObject *resultobj = 0;
37412 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37413 wxString *arg2 = 0 ;
37414 int arg3 ;
37415 int arg4 ;
37416 double arg5 ;
37417 void *argp1 = 0 ;
37418 int res1 = 0 ;
37419 bool temp2 = false ;
37420 int val3 ;
37421 int ecode3 = 0 ;
37422 int val4 ;
37423 int ecode4 = 0 ;
37424 double val5 ;
37425 int ecode5 = 0 ;
37426 PyObject * obj0 = 0 ;
37427 PyObject * obj1 = 0 ;
37428 PyObject * obj2 = 0 ;
37429 PyObject * obj3 = 0 ;
37430 PyObject * obj4 = 0 ;
37431 char * kwnames[] = {
37432 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37433 };
37434
37435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37437 if (!SWIG_IsOK(res1)) {
37438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37439 }
37440 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37441 {
37442 arg2 = wxString_in_helper(obj1);
37443 if (arg2 == NULL) SWIG_fail;
37444 temp2 = true;
37445 }
37446 ecode3 = SWIG_AsVal_int(obj2, &val3);
37447 if (!SWIG_IsOK(ecode3)) {
37448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37449 }
37450 arg3 = static_cast< int >(val3);
37451 ecode4 = SWIG_AsVal_int(obj3, &val4);
37452 if (!SWIG_IsOK(ecode4)) {
37453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37454 }
37455 arg4 = static_cast< int >(val4);
37456 ecode5 = SWIG_AsVal_double(obj4, &val5);
37457 if (!SWIG_IsOK(ecode5)) {
37458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37459 }
37460 arg5 = static_cast< double >(val5);
37461 {
37462 PyThreadState* __tstate = wxPyBeginAllowThreads();
37463 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37464 wxPyEndAllowThreads(__tstate);
37465 if (PyErr_Occurred()) SWIG_fail;
37466 }
37467 resultobj = SWIG_Py_Void();
37468 {
37469 if (temp2)
37470 delete arg2;
37471 }
37472 return resultobj;
37473fail:
37474 {
37475 if (temp2)
37476 delete arg2;
37477 }
37478 return NULL;
37479}
37480
37481
37482SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37483 PyObject *resultobj = 0;
37484 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37485 wxString *arg2 = 0 ;
37486 wxPoint *arg3 = 0 ;
37487 double arg4 ;
37488 void *argp1 = 0 ;
37489 int res1 = 0 ;
37490 bool temp2 = false ;
37491 wxPoint temp3 ;
37492 double val4 ;
37493 int ecode4 = 0 ;
37494 PyObject * obj0 = 0 ;
37495 PyObject * obj1 = 0 ;
37496 PyObject * obj2 = 0 ;
37497 PyObject * obj3 = 0 ;
37498 char * kwnames[] = {
37499 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37500 };
37501
37502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37504 if (!SWIG_IsOK(res1)) {
37505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37506 }
37507 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37508 {
37509 arg2 = wxString_in_helper(obj1);
37510 if (arg2 == NULL) SWIG_fail;
37511 temp2 = true;
37512 }
37513 {
37514 arg3 = &temp3;
37515 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37516 }
37517 ecode4 = SWIG_AsVal_double(obj3, &val4);
37518 if (!SWIG_IsOK(ecode4)) {
37519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37520 }
37521 arg4 = static_cast< double >(val4);
37522 {
37523 PyThreadState* __tstate = wxPyBeginAllowThreads();
37524 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37525 wxPyEndAllowThreads(__tstate);
37526 if (PyErr_Occurred()) SWIG_fail;
37527 }
37528 resultobj = SWIG_Py_Void();
37529 {
37530 if (temp2)
37531 delete arg2;
37532 }
37533 return resultobj;
37534fail:
37535 {
37536 if (temp2)
37537 delete arg2;
37538 }
37539 return NULL;
37540}
37541
37542
37543SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37544 PyObject *resultobj = 0;
37545 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37546 int arg2 ;
37547 wxPoint *arg3 = (wxPoint *) 0 ;
37548 int arg4 = (int) 0 ;
37549 int arg5 = (int) 0 ;
37550 void *argp1 = 0 ;
37551 int res1 = 0 ;
37552 int val4 ;
37553 int ecode4 = 0 ;
37554 int val5 ;
37555 int ecode5 = 0 ;
37556 PyObject * obj0 = 0 ;
37557 PyObject * obj1 = 0 ;
37558 PyObject * obj2 = 0 ;
37559 PyObject * obj3 = 0 ;
37560 char * kwnames[] = {
37561 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37562 };
37563
37564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37566 if (!SWIG_IsOK(res1)) {
37567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37568 }
37569 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37570 {
37571 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37572 if (arg3 == NULL) SWIG_fail;
37573 }
37574 if (obj2) {
37575 ecode4 = SWIG_AsVal_int(obj2, &val4);
37576 if (!SWIG_IsOK(ecode4)) {
37577 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37578 }
37579 arg4 = static_cast< int >(val4);
37580 }
37581 if (obj3) {
37582 ecode5 = SWIG_AsVal_int(obj3, &val5);
37583 if (!SWIG_IsOK(ecode5)) {
37584 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37585 }
37586 arg5 = static_cast< int >(val5);
37587 }
37588 {
37589 PyThreadState* __tstate = wxPyBeginAllowThreads();
37590 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37591 wxPyEndAllowThreads(__tstate);
37592 if (PyErr_Occurred()) SWIG_fail;
37593 }
37594 resultobj = SWIG_Py_Void();
37595 {
37596 if (arg3) delete [] arg3;
37597 }
37598 return resultobj;
37599fail:
37600 {
37601 if (arg3) delete [] arg3;
37602 }
37603 return NULL;
37604}
37605
37606
37607SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37608 PyObject *resultobj = 0;
37609 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37610 int arg2 ;
37611 wxPoint *arg3 = (wxPoint *) 0 ;
37612 int arg4 = (int) 0 ;
37613 int arg5 = (int) 0 ;
37614 int arg6 = (int) wxODDEVEN_RULE ;
37615 void *argp1 = 0 ;
37616 int res1 = 0 ;
37617 int val4 ;
37618 int ecode4 = 0 ;
37619 int val5 ;
37620 int ecode5 = 0 ;
37621 int val6 ;
37622 int ecode6 = 0 ;
37623 PyObject * obj0 = 0 ;
37624 PyObject * obj1 = 0 ;
37625 PyObject * obj2 = 0 ;
37626 PyObject * obj3 = 0 ;
37627 PyObject * obj4 = 0 ;
37628 char * kwnames[] = {
37629 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37630 };
37631
37632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37634 if (!SWIG_IsOK(res1)) {
37635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37636 }
37637 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37638 {
37639 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37640 if (arg3 == NULL) SWIG_fail;
37641 }
37642 if (obj2) {
37643 ecode4 = SWIG_AsVal_int(obj2, &val4);
37644 if (!SWIG_IsOK(ecode4)) {
37645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37646 }
37647 arg4 = static_cast< int >(val4);
37648 }
37649 if (obj3) {
37650 ecode5 = SWIG_AsVal_int(obj3, &val5);
37651 if (!SWIG_IsOK(ecode5)) {
37652 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37653 }
37654 arg5 = static_cast< int >(val5);
37655 }
37656 if (obj4) {
37657 ecode6 = SWIG_AsVal_int(obj4, &val6);
37658 if (!SWIG_IsOK(ecode6)) {
37659 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37660 }
37661 arg6 = static_cast< int >(val6);
37662 }
37663 {
37664 PyThreadState* __tstate = wxPyBeginAllowThreads();
37665 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37666 wxPyEndAllowThreads(__tstate);
37667 if (PyErr_Occurred()) SWIG_fail;
37668 }
37669 resultobj = SWIG_Py_Void();
37670 {
37671 if (arg3) delete [] arg3;
37672 }
37673 return resultobj;
37674fail:
37675 {
37676 if (arg3) delete [] arg3;
37677 }
37678 return NULL;
37679}
37680
37681
37682SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37683 PyObject *resultobj = 0;
37684 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37685 wxString *arg2 = 0 ;
37686 wxRect *arg3 = 0 ;
37687 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37688 int arg5 = (int) -1 ;
37689 void *argp1 = 0 ;
37690 int res1 = 0 ;
37691 bool temp2 = false ;
37692 wxRect temp3 ;
37693 int val4 ;
37694 int ecode4 = 0 ;
37695 int val5 ;
37696 int ecode5 = 0 ;
37697 PyObject * obj0 = 0 ;
37698 PyObject * obj1 = 0 ;
37699 PyObject * obj2 = 0 ;
37700 PyObject * obj3 = 0 ;
37701 PyObject * obj4 = 0 ;
37702 char * kwnames[] = {
37703 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37704 };
37705
37706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37708 if (!SWIG_IsOK(res1)) {
37709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37710 }
37711 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37712 {
37713 arg2 = wxString_in_helper(obj1);
37714 if (arg2 == NULL) SWIG_fail;
37715 temp2 = true;
37716 }
37717 {
37718 arg3 = &temp3;
37719 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37720 }
37721 if (obj3) {
37722 ecode4 = SWIG_AsVal_int(obj3, &val4);
37723 if (!SWIG_IsOK(ecode4)) {
37724 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37725 }
37726 arg4 = static_cast< int >(val4);
37727 }
37728 if (obj4) {
37729 ecode5 = SWIG_AsVal_int(obj4, &val5);
37730 if (!SWIG_IsOK(ecode5)) {
37731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37732 }
37733 arg5 = static_cast< int >(val5);
37734 }
37735 {
37736 PyThreadState* __tstate = wxPyBeginAllowThreads();
37737 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37738 wxPyEndAllowThreads(__tstate);
37739 if (PyErr_Occurred()) SWIG_fail;
37740 }
37741 resultobj = SWIG_Py_Void();
37742 {
37743 if (temp2)
37744 delete arg2;
37745 }
37746 return resultobj;
37747fail:
37748 {
37749 if (temp2)
37750 delete arg2;
37751 }
37752 return NULL;
37753}
37754
37755
37756SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37757 PyObject *resultobj = 0;
37758 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37759 wxString *arg2 = 0 ;
37760 wxBitmap *arg3 = 0 ;
37761 wxRect *arg4 = 0 ;
37762 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37763 int arg6 = (int) -1 ;
37764 void *argp1 = 0 ;
37765 int res1 = 0 ;
37766 bool temp2 = false ;
37767 void *argp3 = 0 ;
37768 int res3 = 0 ;
37769 wxRect temp4 ;
37770 int val5 ;
37771 int ecode5 = 0 ;
37772 int val6 ;
37773 int ecode6 = 0 ;
37774 PyObject * obj0 = 0 ;
37775 PyObject * obj1 = 0 ;
37776 PyObject * obj2 = 0 ;
37777 PyObject * obj3 = 0 ;
37778 PyObject * obj4 = 0 ;
37779 PyObject * obj5 = 0 ;
37780 char * kwnames[] = {
37781 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37782 };
37783
37784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37786 if (!SWIG_IsOK(res1)) {
37787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37788 }
37789 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37790 {
37791 arg2 = wxString_in_helper(obj1);
37792 if (arg2 == NULL) SWIG_fail;
37793 temp2 = true;
37794 }
37795 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37796 if (!SWIG_IsOK(res3)) {
37797 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37798 }
37799 if (!argp3) {
37800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37801 }
37802 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37803 {
37804 arg4 = &temp4;
37805 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37806 }
37807 if (obj4) {
37808 ecode5 = SWIG_AsVal_int(obj4, &val5);
37809 if (!SWIG_IsOK(ecode5)) {
37810 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37811 }
37812 arg5 = static_cast< int >(val5);
37813 }
37814 if (obj5) {
37815 ecode6 = SWIG_AsVal_int(obj5, &val6);
37816 if (!SWIG_IsOK(ecode6)) {
37817 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37818 }
37819 arg6 = static_cast< int >(val6);
37820 }
37821 {
37822 PyThreadState* __tstate = wxPyBeginAllowThreads();
37823 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37824 wxPyEndAllowThreads(__tstate);
37825 if (PyErr_Occurred()) SWIG_fail;
37826 }
37827 resultobj = SWIG_Py_Void();
37828 {
37829 if (temp2)
37830 delete arg2;
37831 }
37832 return resultobj;
37833fail:
37834 {
37835 if (temp2)
37836 delete arg2;
37837 }
37838 return NULL;
37839}
37840
37841
37842SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37843 PyObject *resultobj = 0;
37844 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37845 int arg2 ;
37846 wxPoint *arg3 = (wxPoint *) 0 ;
37847 void *argp1 = 0 ;
37848 int res1 = 0 ;
37849 PyObject * obj0 = 0 ;
37850 PyObject * obj1 = 0 ;
37851 char * kwnames[] = {
37852 (char *) "self",(char *) "points", NULL
37853 };
37854
37855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37857 if (!SWIG_IsOK(res1)) {
37858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37859 }
37860 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37861 {
37862 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37863 if (arg3 == NULL) SWIG_fail;
37864 }
37865 {
37866 PyThreadState* __tstate = wxPyBeginAllowThreads();
37867 (arg1)->DrawSpline(arg2,arg3);
37868 wxPyEndAllowThreads(__tstate);
37869 if (PyErr_Occurred()) SWIG_fail;
37870 }
37871 resultobj = SWIG_Py_Void();
37872 {
37873 if (arg3) delete [] arg3;
37874 }
37875 return resultobj;
37876fail:
37877 {
37878 if (arg3) delete [] arg3;
37879 }
37880 return NULL;
37881}
37882
37883
37884SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37885 PyObject *resultobj = 0;
37886 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37887 void *argp1 = 0 ;
37888 int res1 = 0 ;
37889 PyObject *swig_obj[1] ;
37890
37891 if (!args) SWIG_fail;
37892 swig_obj[0] = args;
37893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37894 if (!SWIG_IsOK(res1)) {
37895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37896 }
37897 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37898 {
37899 PyThreadState* __tstate = wxPyBeginAllowThreads();
37900 (arg1)->Clear();
37901 wxPyEndAllowThreads(__tstate);
37902 if (PyErr_Occurred()) SWIG_fail;
37903 }
37904 resultobj = SWIG_Py_Void();
37905 return resultobj;
37906fail:
37907 return NULL;
37908}
37909
37910
37911SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37912 PyObject *resultobj = 0;
37913 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37914 wxFont *arg2 = 0 ;
37915 void *argp1 = 0 ;
37916 int res1 = 0 ;
37917 void *argp2 = 0 ;
37918 int res2 = 0 ;
37919 PyObject * obj0 = 0 ;
37920 PyObject * obj1 = 0 ;
37921 char * kwnames[] = {
37922 (char *) "self",(char *) "font", NULL
37923 };
37924
37925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37927 if (!SWIG_IsOK(res1)) {
37928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37929 }
37930 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37931 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37932 if (!SWIG_IsOK(res2)) {
37933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37934 }
37935 if (!argp2) {
37936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37937 }
37938 arg2 = reinterpret_cast< wxFont * >(argp2);
37939 {
37940 PyThreadState* __tstate = wxPyBeginAllowThreads();
37941 (arg1)->SetFont((wxFont const &)*arg2);
37942 wxPyEndAllowThreads(__tstate);
37943 if (PyErr_Occurred()) SWIG_fail;
37944 }
37945 resultobj = SWIG_Py_Void();
37946 return resultobj;
37947fail:
37948 return NULL;
37949}
37950
37951
37952SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37953 PyObject *resultobj = 0;
37954 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37955 wxPen *arg2 = 0 ;
37956 void *argp1 = 0 ;
37957 int res1 = 0 ;
37958 void *argp2 = 0 ;
37959 int res2 = 0 ;
37960 PyObject * obj0 = 0 ;
37961 PyObject * obj1 = 0 ;
37962 char * kwnames[] = {
37963 (char *) "self",(char *) "pen", NULL
37964 };
37965
37966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37968 if (!SWIG_IsOK(res1)) {
37969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37970 }
37971 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37972 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37973 if (!SWIG_IsOK(res2)) {
37974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37975 }
37976 if (!argp2) {
37977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37978 }
37979 arg2 = reinterpret_cast< wxPen * >(argp2);
37980 {
37981 PyThreadState* __tstate = wxPyBeginAllowThreads();
37982 (arg1)->SetPen((wxPen const &)*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_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37994 PyObject *resultobj = 0;
37995 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37996 wxBrush *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 *) "brush", NULL
38005 };
38006
38007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",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_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38011 }
38012 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38014 if (!SWIG_IsOK(res2)) {
38015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38016 }
38017 if (!argp2) {
38018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38019 }
38020 arg2 = reinterpret_cast< wxBrush * >(argp2);
38021 {
38022 PyThreadState* __tstate = wxPyBeginAllowThreads();
38023 (arg1)->SetBrush((wxBrush 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_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38035 PyObject *resultobj = 0;
38036 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38037 wxBrush *arg2 = 0 ;
38038 void *argp1 = 0 ;
38039 int res1 = 0 ;
38040 void *argp2 = 0 ;
38041 int res2 = 0 ;
38042 PyObject * obj0 = 0 ;
38043 PyObject * obj1 = 0 ;
38044 char * kwnames[] = {
38045 (char *) "self",(char *) "brush", NULL
38046 };
38047
38048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38050 if (!SWIG_IsOK(res1)) {
38051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38052 }
38053 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38055 if (!SWIG_IsOK(res2)) {
38056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38057 }
38058 if (!argp2) {
38059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38060 }
38061 arg2 = reinterpret_cast< wxBrush * >(argp2);
38062 {
38063 PyThreadState* __tstate = wxPyBeginAllowThreads();
38064 (arg1)->SetBackground((wxBrush const &)*arg2);
38065 wxPyEndAllowThreads(__tstate);
38066 if (PyErr_Occurred()) SWIG_fail;
38067 }
38068 resultobj = SWIG_Py_Void();
38069 return resultobj;
38070fail:
38071 return NULL;
38072}
38073
38074
38075SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38076 PyObject *resultobj = 0;
38077 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38078 int arg2 ;
38079 void *argp1 = 0 ;
38080 int res1 = 0 ;
38081 int val2 ;
38082 int ecode2 = 0 ;
38083 PyObject * obj0 = 0 ;
38084 PyObject * obj1 = 0 ;
38085 char * kwnames[] = {
38086 (char *) "self",(char *) "mode", NULL
38087 };
38088
38089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38091 if (!SWIG_IsOK(res1)) {
38092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38093 }
38094 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38095 ecode2 = SWIG_AsVal_int(obj1, &val2);
38096 if (!SWIG_IsOK(ecode2)) {
38097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38098 }
38099 arg2 = static_cast< int >(val2);
38100 {
38101 PyThreadState* __tstate = wxPyBeginAllowThreads();
38102 (arg1)->SetBackgroundMode(arg2);
38103 wxPyEndAllowThreads(__tstate);
38104 if (PyErr_Occurred()) SWIG_fail;
38105 }
38106 resultobj = SWIG_Py_Void();
38107 return resultobj;
38108fail:
38109 return NULL;
38110}
38111
38112
38113SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38114 PyObject *resultobj = 0;
38115 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38116 wxPalette *arg2 = 0 ;
38117 void *argp1 = 0 ;
38118 int res1 = 0 ;
38119 void *argp2 = 0 ;
38120 int res2 = 0 ;
38121 PyObject * obj0 = 0 ;
38122 PyObject * obj1 = 0 ;
38123 char * kwnames[] = {
38124 (char *) "self",(char *) "palette", NULL
38125 };
38126
38127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38129 if (!SWIG_IsOK(res1)) {
38130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38131 }
38132 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38133 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38134 if (!SWIG_IsOK(res2)) {
38135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38136 }
38137 if (!argp2) {
38138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38139 }
38140 arg2 = reinterpret_cast< wxPalette * >(argp2);
38141 {
38142 PyThreadState* __tstate = wxPyBeginAllowThreads();
38143 (arg1)->SetPalette((wxPalette const &)*arg2);
38144 wxPyEndAllowThreads(__tstate);
38145 if (PyErr_Occurred()) SWIG_fail;
38146 }
38147 resultobj = SWIG_Py_Void();
38148 return resultobj;
38149fail:
38150 return NULL;
38151}
38152
38153
38154SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38155 PyObject *resultobj = 0;
38156 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38157 wxColour *arg2 = 0 ;
38158 void *argp1 = 0 ;
38159 int res1 = 0 ;
38160 wxColour temp2 ;
38161 PyObject * obj0 = 0 ;
38162 PyObject * obj1 = 0 ;
38163 char * kwnames[] = {
38164 (char *) "self",(char *) "colour", NULL
38165 };
38166
38167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38169 if (!SWIG_IsOK(res1)) {
38170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38171 }
38172 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38173 {
38174 arg2 = &temp2;
38175 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38176 }
38177 {
38178 PyThreadState* __tstate = wxPyBeginAllowThreads();
38179 (arg1)->SetTextForeground((wxColour const &)*arg2);
38180 wxPyEndAllowThreads(__tstate);
38181 if (PyErr_Occurred()) SWIG_fail;
38182 }
38183 resultobj = SWIG_Py_Void();
38184 return resultobj;
38185fail:
38186 return NULL;
38187}
38188
38189
38190SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38191 PyObject *resultobj = 0;
38192 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38193 wxColour *arg2 = 0 ;
38194 void *argp1 = 0 ;
38195 int res1 = 0 ;
38196 wxColour temp2 ;
38197 PyObject * obj0 = 0 ;
38198 PyObject * obj1 = 0 ;
38199 char * kwnames[] = {
38200 (char *) "self",(char *) "colour", NULL
38201 };
38202
38203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38205 if (!SWIG_IsOK(res1)) {
38206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38207 }
38208 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38209 {
38210 arg2 = &temp2;
38211 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38212 }
38213 {
38214 PyThreadState* __tstate = wxPyBeginAllowThreads();
38215 (arg1)->SetTextBackground((wxColour const &)*arg2);
38216 wxPyEndAllowThreads(__tstate);
38217 if (PyErr_Occurred()) SWIG_fail;
38218 }
38219 resultobj = SWIG_Py_Void();
38220 return resultobj;
38221fail:
38222 return NULL;
38223}
38224
38225
38226SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38227 PyObject *resultobj = 0;
38228 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38229 int arg2 ;
38230 void *argp1 = 0 ;
38231 int res1 = 0 ;
38232 int val2 ;
38233 int ecode2 = 0 ;
38234 PyObject * obj0 = 0 ;
38235 PyObject * obj1 = 0 ;
38236 char * kwnames[] = {
38237 (char *) "self",(char *) "function", NULL
38238 };
38239
38240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38242 if (!SWIG_IsOK(res1)) {
38243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38244 }
38245 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38246 ecode2 = SWIG_AsVal_int(obj1, &val2);
38247 if (!SWIG_IsOK(ecode2)) {
38248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38249 }
38250 arg2 = static_cast< int >(val2);
38251 {
38252 PyThreadState* __tstate = wxPyBeginAllowThreads();
38253 (arg1)->SetLogicalFunction(arg2);
38254 wxPyEndAllowThreads(__tstate);
38255 if (PyErr_Occurred()) SWIG_fail;
38256 }
38257 resultobj = SWIG_Py_Void();
38258 return resultobj;
38259fail:
38260 return NULL;
38261}
38262
38263
38264SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38265 PyObject *obj;
38266 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38267 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38268 return SWIG_Py_Void();
38269}
38270
38271SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38272 return SWIG_Python_InitShadowInstance(args);
38273}
38274
38275static PyMethodDef SwigMethods[] = {
38276 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38277 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38278 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38279 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38280 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38281 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38282 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38283 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38284 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38285 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38286 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38287 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38288 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38289 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38290 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38291 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38292 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38293 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38294 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38295 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38296 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38297 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38298 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38299 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38300 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38301 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38302 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38303 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38304 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38305 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38306 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38307 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38308 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38309 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38310 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38311 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38312 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38313 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38314 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38315 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38316 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38317 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38318 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38319 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38320 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38321 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38322 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38323 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38324 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38325 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
38326 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38327 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38328 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38329 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38330 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38331 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38332 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38333 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38334 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38335 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38336 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38337 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38338 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38339 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38340 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38341 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38342 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38343 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38344 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38345 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38346 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38347 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38348 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38349 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38350 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38351 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38352 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38353 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38354 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38355 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38356 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38357 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38358 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38359 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38360 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38361 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38362 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38363 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38364 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38365 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38366 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38367 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38368 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38369 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38370 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38371 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38373 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38374 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38375 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38376 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38377 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38378 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38379 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38380 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38381 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38382 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38383 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38384 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38385 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38386 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38387 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38388 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38389 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38390 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38391 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38392 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38393 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38394 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38395 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38396 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38397 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38398 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38400 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38401 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38402 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38403 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38404 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38405 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38406 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38407 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38408 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38409 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38410 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38411 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38412 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38413 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38414 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38415 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38416 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38417 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38418 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38419 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38420 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38421 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38422 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38423 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38424 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38425 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38426 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38427 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38428 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38429 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38430 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38431 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38432 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38433 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38434 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38435 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38436 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38437 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38438 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38439 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38440 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38441 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38442 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38443 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38444 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38445 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38446 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38447 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38448 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38449 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38450 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38451 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38452 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38453 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38454 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38455 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38456 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38457 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38458 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38459 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38460 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38461 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38462 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38463 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38464 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38465 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38466 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38467 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38468 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38469 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38470 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38471 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38472 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38473 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38474 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38475 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38476 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38477 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38478 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38479 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38481 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38482 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38483 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38484 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38485 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38486 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38487 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38488 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38489 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38490 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38491 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38492 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38494 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38495 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38496 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38498 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38499 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38500 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38501 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38502 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38503 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38504 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38505 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38506 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38507 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38508 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38509 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38510 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38511 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38512 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38513 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38514 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38515 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38516 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38517 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38518 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38519 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38520 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38521 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38522 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38523 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38524 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38525 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38526 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38527 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38528 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38529 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38532 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38533 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38534 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38535 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38536 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38537 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38538 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38539 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38540 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38541 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38542 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38543 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38544 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38545 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38546 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38547 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38548 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38549 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38550 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38551 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38552 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38553 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38554 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38555 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38556 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38557 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38558 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38560 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38561 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38562 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38563 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38564 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38565 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38566 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38567 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38568 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38569 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38570 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38571 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38572 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38574 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38575 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38576 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38577 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38578 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38579 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38581 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38582 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38583 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38584 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38585 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38586 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38587 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38588 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38589 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38590 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38591 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38592 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38593 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38594 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38595 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38596 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38597 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38598 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38599 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38600 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38601 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38602 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38603 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38604 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38605 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38606 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38607 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38609 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38610 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38611 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38612 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38613 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38614 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38615 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38616 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38617 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38618 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38619 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38620 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38621 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38622 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38623 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38624 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38625 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38626 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38627 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38628 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38629 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38630 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38631 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38632 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38633 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38634 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38635 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38636 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38637 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38638 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38639 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38640 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38641 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38642 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38643 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38644 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38645 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38647 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38648 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38649 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38651 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38652 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38653 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38654 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38655 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38656 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38657 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38658 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38659 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38660 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38661 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38662 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38663 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38664 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38665 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38666 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38667 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38668 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38671 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38672 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38673 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38674 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38675 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38676 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38677 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38678 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38679 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38684 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38685 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38686 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38687 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38689 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38691 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38692 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38694 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38695 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38707 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38710 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38712 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38713 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38716 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38717 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38718 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38719 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38723 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38725 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38726 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38727 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38731 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38734 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38735 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38736 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38737 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38738 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38743 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38744 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38745 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38746 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38752 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38755 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38756 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38757 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38758 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
0085ce49
RD
38759 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38760 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38761 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38762 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38763 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38764 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38765 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38766 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38769 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38770 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38771 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38773 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38774 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38775 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38776 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38779 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38780 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38781 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38782 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38783 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38784 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38785 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38786 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38789 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38790 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38791 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38792 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38793 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
38794 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38795 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38796 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38797 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38802 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38803 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38804 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38805 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38806 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38807 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38808 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38809 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38810 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38811 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38812 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38813 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38814 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38815 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38816 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38817 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38818 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38819 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38820 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38822 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38823 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38824 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
38825 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38826 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38827 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
38828 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38829 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38830 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38831 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38833 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
38834 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
38835 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38839 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
38840 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38841 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38842 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
38843 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
38845 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38846 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38847 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38848 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38849 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38850 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38852 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 38853 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
38854 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38856 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38857 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38858 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38859 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38862 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38863 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38864 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38865 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38866 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38867 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38869 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38870 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38872 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
38873 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38874 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38875 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38876 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38877 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38878 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38879 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38880 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38881 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38882 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38883 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38884 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38885 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38886 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38887 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38888 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38889 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38890 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 38891 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
38892 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38893 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
38894 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38896 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38898 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38899 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38900 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38901 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38904 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
38905 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
38906 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 38907 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
38908 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38909 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38910 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38911 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38912 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38913 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 38914 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
38915 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38917 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38918 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
38919 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38920 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38922 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38923 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38924 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38925 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 38926 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 38927 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 38928 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 38929 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 38930 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 38931 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38932 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38933 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
38934 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38936 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38940 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38941 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 38942 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38943 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
38944 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38945 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
38946 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38947 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38948 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
38949 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38950 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
38952 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38953 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38954 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
38955 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38956 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
38958 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 38960 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38961 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38963 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38964 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38965 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38966 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 38967 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38968 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38969 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38972 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 38973 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38974 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
38975 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
38976 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 38977 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
38978 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38980 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
38981 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38984 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38985 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38986 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 38988 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 38989 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
38990 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
38991 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38992 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
38993 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
38994 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
38995 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
38996 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
38997 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
38998 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
38999 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39000 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39001 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39002 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39003 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
0085ce49
RD
39004 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39005 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39006 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39007 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39008 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39013 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39014 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39016 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39018 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
39019 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39020 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39021 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39022 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39023 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39025 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39026 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39027 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39028 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39029 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39030 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39031 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39032 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39033 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
0085ce49 39034 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39035 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39036 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39037 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
0085ce49 39038 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 39039 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39040 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 39041 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
39042 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
0085ce49
RD
39046 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39047 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39048 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39049 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39053 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
39054 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39055 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39056 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39057 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
0085ce49
RD
39058 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39059 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39060 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39061 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39062 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39063 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39064 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39073 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39074 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39076 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39077 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39078 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39079 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39080 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39081 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39082 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39083 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39084 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39085 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39086 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39087 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39088 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39089 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39090 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39091 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39092 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39093 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39094 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39095 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39096 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39097 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39098 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
0085ce49
RD
39099 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39101 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39103 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39104 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39105 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39106 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39107 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
39109 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39112 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3
RD
39114 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39115 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39116 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
39117 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39119 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39120 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39121 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39122 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39123 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39124 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39125 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39126 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39127 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39128 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39129 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39130 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39133 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39134 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39136 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39137 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39138 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39139 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39140 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39141 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39142 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39146 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39151 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39153 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39157 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39158 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39169 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39171 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39183 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39185 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39188 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39190 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39193 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
39194 { NULL, NULL, 0, NULL }
39195};
39196
39197
39198/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39199
72ef6efb
RD
39200static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39201 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39202}
8e99bda9
RD
39203static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39204 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39205}
39206static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39207 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39208}
26c4d26f
RD
39209static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39210 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39211}
39212static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39213 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39214}
72ef6efb
RD
39215static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39216 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39217}
39218static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39219 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39220}
26c4d26f
RD
39221static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39222 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39223}
fc46b7f3
RD
39224static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39225 return (void *)((wxLocale *) ((wxPyLocale *) x));
39226}
70d7cb34
RD
39227static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39228 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39229}
39230static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39231 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39232}
39233static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39234 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39235}
39236static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39237 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39238}
39239static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39240 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39241}
39242static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39243 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39244}
0085ce49
RD
39245static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39246 return (void *)((wxGDIObject *) ((wxIcon *) x));
39247}
39248static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39249 return (void *)((wxGDIObject *) ((wxPalette *) x));
39250}
39251static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39252 return (void *)((wxGDIObject *) ((wxPen *) x));
39253}
39254static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39255 return (void *)((wxGDIObject *) ((wxFont *) x));
39256}
39257static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39258 return (void *)((wxGDIObject *) ((wxCursor *) x));
39259}
39260static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39261 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39262}
39263static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39264 return (void *)((wxGDIObject *) ((wxRegion *) x));
39265}
39266static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39267 return (void *)((wxGDIObject *) ((wxBrush *) x));
39268}
72ef6efb
RD
39269static void *_p_wxGCDCTo_p_wxDC(void *x) {
39270 return (void *)((wxDC *) ((wxGCDC *) x));
39271}
0085ce49
RD
39272static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39273 return (void *)((wxDC *) ((wxScreenDC *) x));
39274}
24f6c4e8 39275static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 39276 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 39277}
0085ce49
RD
39278static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39279 return (void *)((wxDC *) ((wxMirrorDC *) x));
39280}
0085ce49
RD
39281static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39282 return (void *)((wxDC *) ((wxWindowDC *) x));
39283}
26c4d26f
RD
39284static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39285 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39286}
0085ce49
RD
39287static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39288 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39289}
0085ce49 39290static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39291 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
39292}
39293static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39294 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
0085ce49 39295}
24f6c4e8 39296static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 39297 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
39298}
39299static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39300 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39301}
0085ce49
RD
39302static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39303 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39304}
39305static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39306 return (void *)((wxDC *) ((wxPrinterDC *) x));
39307}
50efceee
RD
39308static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39309 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39310}
39311static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39312 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39313}
39314static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39315 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39316}
0085ce49
RD
39317static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39318 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39319}
39320static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39321 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39322}
39323static void *_p_wxPenTo_p_wxObject(void *x) {
39324 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39325}
39326static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39327 return (void *)((wxObject *) ((wxRegionIterator *) x));
39328}
0085ce49
RD
39329static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39330 return (void *)((wxObject *) ((wxSizerItem *) x));
39331}
34e0a3bb
RD
39332static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39333 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39334}
0085ce49
RD
39335static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39336 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39337}
39338static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39339 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39340}
39341static void *_p_wxIconTo_p_wxObject(void *x) {
39342 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39343}
39344static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39345 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39346}
39347static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39348 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39349}
39350static void *_p_wxSizerTo_p_wxObject(void *x) {
39351 return (void *)((wxObject *) ((wxSizer *) x));
39352}
39353static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39354 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39355}
39356static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39357 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39358}
0085ce49
RD
39359static void *_p_wxEventTo_p_wxObject(void *x) {
39360 return (void *)((wxObject *) ((wxEvent *) x));
39361}
39362static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39363 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39364}
39365static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39366 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39367}
39368static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39369 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39370}
27e45892
RD
39371static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39372 return (void *)((wxObject *) ((wxPseudoDC *) x));
39373}
2131d850
RD
39374static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39376}
0085ce49
RD
39377static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39378 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39379}
39380static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39381 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39382}
39383static void *_p_wxDCTo_p_wxObject(void *x) {
39384 return (void *)((wxObject *) ((wxDC *) x));
39385}
39386static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39387 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39388}
39389static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39390 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39391}
39392static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39393 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39394}
39395static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39396 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39397}
39398static void *_p_wxControlTo_p_wxObject(void *x) {
39399 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39400}
70d7cb34
RD
39401static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39402 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39403}
0085ce49
RD
39404static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39405 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39406}
39407static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39408 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
39409}
39410static void *_p_wxFSFileTo_p_wxObject(void *x) {
39411 return (void *)((wxObject *) ((wxFSFile *) x));
39412}
39413static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 39414 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
0085ce49
RD
39415}
39416static void *_p_wxRegionTo_p_wxObject(void *x) {
39417 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39418}
39419static void *_p_wxPySizerTo_p_wxObject(void *x) {
39420 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39421}
39422static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39423 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39424}
39425static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39426 return (void *)((wxObject *) ((wxGDIObject *) x));
39427}
70d7cb34
RD
39428static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39429 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39430}
39431static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39432 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39433}
0085ce49
RD
39434static void *_p_wxEffectsTo_p_wxObject(void *x) {
39435 return (void *)((wxObject *) ((wxEffects *) x));
39436}
39437static void *_p_wxPyEventTo_p_wxObject(void *x) {
39438 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39439}
39440static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39441 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39442}
39443static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39444 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39445}
70d7cb34
RD
39446static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39447 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39448}
0085ce49
RD
39449static void *_p_wxShowEventTo_p_wxObject(void *x) {
39450 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39451}
39452static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39453 return (void *)((wxObject *) ((wxMenuItem *) x));
39454}
39455static void *_p_wxDateEventTo_p_wxObject(void *x) {
39456 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39457}
39458static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39459 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39460}
39461static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39462 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39463}
39464static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39465 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39466}
39467static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39468 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39469}
39470static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39471 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39472}
39473static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39474 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39475}
39476static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39477 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39478}
39479static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39480 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39481}
39482static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39483 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39484}
39485static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39486 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39487}
39488static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39489 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39490}
39491static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39492 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39493}
39494static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39495 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39496}
39497static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39498 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39499}
39500static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39501 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39502}
39503static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39504 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39505}
39506static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39507 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39508}
39509static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39510 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39511}
39512static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39513 return (void *)((wxObject *) ((wxImageHandler *) x));
39514}
39515static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39516 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39517}
39518static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39519 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39520}
580080c5
RD
39521static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39522 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39523}
0085ce49
RD
39524static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39525 return (void *)((wxObject *) ((wxEvtHandler *) x));
39526}
34e0a3bb
RD
39527static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39528 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39529}
24f6c4e8
RD
39530static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39531 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39532}
0085ce49 39533static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 39534 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
0085ce49 39535}
24f6c4e8
RD
39536static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39537 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
0085ce49
RD
39538}
39539static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39540 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39541}
39542static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39543 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39544}
0085ce49
RD
39545static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39546 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39547}
580080c5
RD
39548static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39549 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39550}
0085ce49
RD
39551static void *_p_wxImageTo_p_wxObject(void *x) {
39552 return (void *)((wxObject *) ((wxImage *) x));
39553}
39554static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39555 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39556}
70d7cb34
RD
39557static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39558 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39559}
39560static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39561 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39562}
0085ce49
RD
39563static void *_p_wxPaletteTo_p_wxObject(void *x) {
39564 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39565}
39566static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 39567 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
0085ce49
RD
39568}
39569static void *_p_wxImageListTo_p_wxObject(void *x) {
39570 return (void *)((wxObject *) ((wxImageList *) x));
39571}
72ef6efb
RD
39572static void *_p_wxGCDCTo_p_wxObject(void *x) {
39573 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39574}
0085ce49
RD
39575static void *_p_wxCursorTo_p_wxObject(void *x) {
39576 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39577}
39578static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39579 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39580}
39581static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39582 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39583}
70d7cb34
RD
39584static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39585 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39586}
0085ce49
RD
39587static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39588 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39589}
39590static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39591 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39592}
39593static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39594 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39595}
39596static void *_p_wxWindowTo_p_wxObject(void *x) {
39597 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39598}
39599static void *_p_wxMenuTo_p_wxObject(void *x) {
39600 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39601}
39602static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39603 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39604}
39605static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39606 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39607}
0085ce49
RD
39608static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39609 return (void *)((wxObject *) ((wxFileSystem *) x));
39610}
39611static void *_p_wxBitmapTo_p_wxObject(void *x) {
39612 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39613}
39614static void *_p_wxMaskTo_p_wxObject(void *x) {
39615 return (void *)((wxObject *) ((wxMask *) x));
39616}
70d7cb34
RD
39617static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39618 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39619}
0085ce49
RD
39620static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39621 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39622}
39623static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39624 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39625}
39626static void *_p_wxPyAppTo_p_wxObject(void *x) {
39627 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39628}
39629static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39630 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39631}
39632static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39633 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39634}
39635static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39636 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39637}
39638static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39639 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39640}
39641static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39642 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39643}
39644static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39645 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39646}
39647static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39648 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39649}
39650static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39651 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39652}
39653static void *_p_wxFontTo_p_wxObject(void *x) {
39654 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39655}
39656static void *_p_wxBrushTo_p_wxObject(void *x) {
39657 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39658}
39659static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39660 return (void *)((wxObject *) ((wxMetaFile *) x));
39661}
39662static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39663 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39664}
39665static void *_p_wxColourTo_p_wxObject(void *x) {
39666 return (void *)((wxObject *) ((wxColour *) x));
39667}
0085ce49
RD
39668static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39669 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39670}
39671static void *_p_wxValidatorTo_p_wxObject(void *x) {
39672 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39673}
39674static void *_p_wxControlTo_p_wxWindow(void *x) {
39675 return (void *)((wxWindow *) ((wxControl *) x));
39676}
39677static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39678 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39679}
39680static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39681 return (void *)((wxWindow *) ((wxMenuBar *) x));
39682}
fc46b7f3
RD
39683static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39684 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39685}
39686static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39687 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39688}
39689static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
0085ce49 39690static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39691static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39692static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39693static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39694static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39695static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39696static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39697static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39698static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39699static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39700static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
0085ce49
RD
39701static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39702static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39703static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39704static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39705static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39706static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
0085ce49 39707static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39708static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
0085ce49
RD
39709static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39710static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39711static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39712static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39713static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39714static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39715static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39716static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39717static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
0085ce49
RD
39718static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39719static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39720static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39721static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39722static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39723static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39724static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39725static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 39726static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
0085ce49 39727static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39728static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39729static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39730static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39731static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39732static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39733static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39734static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39735static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39736static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
0085ce49
RD
39737static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39738static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39739static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39740static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39741static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39742static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39743static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39744static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39745static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39746static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39747static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39748static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39749static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39750static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39751static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39752static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
0085ce49
RD
39753static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39754static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 39755static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39756static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
39757static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39758static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39759static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39760static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39761static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39762static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39763static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39764static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39765static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39766static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39767static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39768static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39769static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
39770static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39771static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39772static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39773static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39774static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39775static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39776static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39777static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39778static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39779static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39780static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39781static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39782static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39783static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39784static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39785static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39786static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39787static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39788static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39789static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39790static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39791static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39792static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
0085ce49 39793static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 39794static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
39795static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39796static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39797static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39798static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39799static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39800static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 39801static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 39802static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 39803static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 39804static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
0085ce49
RD
39805static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39806static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39807static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 39808static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49 39809static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 39810static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
0085ce49
RD
39811static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39812static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39813static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39814static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39815static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39816static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39817static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39818static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39819static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39820static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39821static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39822static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39823static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39824static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39825static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39826static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39827static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39828static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39829static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39830static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 39831static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
0085ce49
RD
39832static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39833static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39834static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39835static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39836static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 39837static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
0085ce49 39838static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 39839static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 39840static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39841static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39842static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39843static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 39844static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
0085ce49 39845static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 39846static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
0085ce49 39847static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 39848static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
39849static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39850static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39851static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39852static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39853static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39854static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39855static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 39856static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
0085ce49
RD
39857static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39858static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39859static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39860
39861static swig_type_info *swig_type_initial[] = {
fc46b7f3 39862 &_swigt__p_buffer,
0085ce49
RD
39863 &_swigt__p_char,
39864 &_swigt__p_double,
39865 &_swigt__p_form_ops_t,
39866 &_swigt__p_int,
39867 &_swigt__p_unsigned_char,
39868 &_swigt__p_unsigned_int,
39869 &_swigt__p_unsigned_long,
0a27f394 39870 &_swigt__p_void,
0085ce49
RD
39871 &_swigt__p_wxANIHandler,
39872 &_swigt__p_wxAcceleratorTable,
39873 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
39874 &_swigt__p_wxAlphaPixelData,
39875 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 39876 &_swigt__p_wxAutoBufferedPaintDC,
0085ce49
RD
39877 &_swigt__p_wxBMPHandler,
39878 &_swigt__p_wxBitmap,
39879 &_swigt__p_wxBoxSizer,
39880 &_swigt__p_wxBrush,
39881 &_swigt__p_wxBrushList,
39882 &_swigt__p_wxBufferedDC,
39883 &_swigt__p_wxBufferedPaintDC,
39884 &_swigt__p_wxCURHandler,
fc46b7f3 39885 &_swigt__p_wxChar,
0085ce49
RD
39886 &_swigt__p_wxChildFocusEvent,
39887 &_swigt__p_wxClientDC,
2131d850 39888 &_swigt__p_wxClipboardTextEvent,
0085ce49 39889 &_swigt__p_wxCloseEvent,
72ef6efb 39890 &_swigt__p_wxColor,
0085ce49
RD
39891 &_swigt__p_wxColour,
39892 &_swigt__p_wxColourDatabase,
39893 &_swigt__p_wxCommandEvent,
39894 &_swigt__p_wxContextMenuEvent,
39895 &_swigt__p_wxControl,
39896 &_swigt__p_wxControlWithItems,
39897 &_swigt__p_wxCursor,
39898 &_swigt__p_wxDC,
70d7cb34
RD
39899 &_swigt__p_wxDCBrushChanger,
39900 &_swigt__p_wxDCClipper,
b39fe951 39901 &_swigt__p_wxDCOverlay,
70d7cb34
RD
39902 &_swigt__p_wxDCPenChanger,
39903 &_swigt__p_wxDCTextColourChanger,
0085ce49
RD
39904 &_swigt__p_wxDash,
39905 &_swigt__p_wxDateEvent,
39906 &_swigt__p_wxDisplayChangedEvent,
39907 &_swigt__p_wxDropFilesEvent,
39908 &_swigt__p_wxDuplexMode,
39909 &_swigt__p_wxEffects,
39910 &_swigt__p_wxEncodingConverter,
39911 &_swigt__p_wxEraseEvent,
39912 &_swigt__p_wxEvent,
39913 &_swigt__p_wxEvtHandler,
39914 &_swigt__p_wxFSFile,
39915 &_swigt__p_wxFileSystem,
39916 &_swigt__p_wxFlexGridSizer,
39917 &_swigt__p_wxFocusEvent,
39918 &_swigt__p_wxFont,
39919 &_swigt__p_wxFontList,
39920 &_swigt__p_wxFontMapper,
39921 &_swigt__p_wxGBSizerItem,
72ef6efb 39922 &_swigt__p_wxGCDC,
50efceee 39923 &_swigt__p_wxGDIObjListBase,
0085ce49
RD
39924 &_swigt__p_wxGDIObject,
39925 &_swigt__p_wxGIFHandler,
70d7cb34 39926 &_swigt__p_wxGraphicsBrush,
72ef6efb 39927 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
39928 &_swigt__p_wxGraphicsFont,
39929 &_swigt__p_wxGraphicsMatrix,
39930 &_swigt__p_wxGraphicsObject,
72ef6efb 39931 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
39932 &_swigt__p_wxGraphicsPen,
39933 &_swigt__p_wxGraphicsRenderer,
0085ce49
RD
39934 &_swigt__p_wxGridBagSizer,
39935 &_swigt__p_wxGridSizer,
33d6fd3b 39936 &_swigt__p_wxHeaderButtonParams,
0085ce49
RD
39937 &_swigt__p_wxICOHandler,
39938 &_swigt__p_wxIcon,
39939 &_swigt__p_wxIconBundle,
39940 &_swigt__p_wxIconLocation,
39941 &_swigt__p_wxIconizeEvent,
39942 &_swigt__p_wxIdleEvent,
39943 &_swigt__p_wxImage,
39944 &_swigt__p_wxImageHandler,
39945 &_swigt__p_wxImageList,
39946 &_swigt__p_wxIndividualLayoutConstraint,
39947 &_swigt__p_wxInitDialogEvent,
39948 &_swigt__p_wxJPEGHandler,
39949 &_swigt__p_wxKeyEvent,
39950 &_swigt__p_wxLanguageInfo,
39951 &_swigt__p_wxLayoutConstraints,
39952 &_swigt__p_wxLocale,
39953 &_swigt__p_wxMask,
39954 &_swigt__p_wxMaximizeEvent,
39955 &_swigt__p_wxMemoryDC,
39956 &_swigt__p_wxMenu,
39957 &_swigt__p_wxMenuBar,
39958 &_swigt__p_wxMenuEvent,
39959 &_swigt__p_wxMenuItem,
39960 &_swigt__p_wxMetaFile,
39961 &_swigt__p_wxMetaFileDC,
39962 &_swigt__p_wxMirrorDC,
39963 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 39964 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
39965 &_swigt__p_wxMouseEvent,
39966 &_swigt__p_wxMoveEvent,
39967 &_swigt__p_wxNativeEncodingInfo,
39968 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
39969 &_swigt__p_wxNativePixelData,
39970 &_swigt__p_wxNativePixelData_Accessor,
0085ce49
RD
39971 &_swigt__p_wxNavigationKeyEvent,
39972 &_swigt__p_wxNcPaintEvent,
39973 &_swigt__p_wxNotifyEvent,
39974 &_swigt__p_wxObject,
b39fe951 39975 &_swigt__p_wxOverlay,
0085ce49
RD
39976 &_swigt__p_wxPCXHandler,
39977 &_swigt__p_wxPNGHandler,
39978 &_swigt__p_wxPNMHandler,
39979 &_swigt__p_wxPaintDC,
39980 &_swigt__p_wxPaintEvent,
39981 &_swigt__p_wxPalette,
39982 &_swigt__p_wxPaletteChangedEvent,
39983 &_swigt__p_wxPaperSize,
39984 &_swigt__p_wxPen,
39985 &_swigt__p_wxPenList,
fc46b7f3 39986 &_swigt__p_wxPixelDataBase,
0085ce49 39987 &_swigt__p_wxPoint,
72ef6efb 39988 &_swigt__p_wxPoint2D,
70d7cb34 39989 &_swigt__p_wxPoint2DDouble,
0085ce49
RD
39990 &_swigt__p_wxPostScriptDC,
39991 &_swigt__p_wxPrintData,
39992 &_swigt__p_wxPrinterDC,
27e45892 39993 &_swigt__p_wxPseudoDC,
0085ce49
RD
39994 &_swigt__p_wxPyApp,
39995 &_swigt__p_wxPyCommandEvent,
39996 &_swigt__p_wxPyEvent,
39997 &_swigt__p_wxPyFontEnumerator,
39998 &_swigt__p_wxPyImageHandler,
fc46b7f3 39999 &_swigt__p_wxPyLocale,
0085ce49
RD
40000 &_swigt__p_wxPySizer,
40001 &_swigt__p_wxPyValidator,
40002 &_swigt__p_wxQueryNewPaletteEvent,
40003 &_swigt__p_wxRect,
70d7cb34 40004 &_swigt__p_wxRect2DDouble,
0085ce49
RD
40005 &_swigt__p_wxRegion,
40006 &_swigt__p_wxRegionIterator,
40007 &_swigt__p_wxRendererNative,
40008 &_swigt__p_wxRendererVersion,
40009 &_swigt__p_wxScreenDC,
40010 &_swigt__p_wxScrollEvent,
40011 &_swigt__p_wxScrollWinEvent,
40012 &_swigt__p_wxSetCursorEvent,
40013 &_swigt__p_wxShowEvent,
40014 &_swigt__p_wxSize,
40015 &_swigt__p_wxSizeEvent,
40016 &_swigt__p_wxSizer,
40017 &_swigt__p_wxSizerItem,
40018 &_swigt__p_wxSplitterRenderParams,
40019 &_swigt__p_wxStaticBoxSizer,
40020 &_swigt__p_wxStdDialogButtonSizer,
50efceee 40021 &_swigt__p_wxStockGDI,
0085ce49
RD
40022 &_swigt__p_wxString,
40023 &_swigt__p_wxSysColourChangedEvent,
580080c5 40024 &_swigt__p_wxTGAHandler,
0085ce49
RD
40025 &_swigt__p_wxTIFFHandler,
40026 &_swigt__p_wxUpdateUIEvent,
40027 &_swigt__p_wxValidator,
40028 &_swigt__p_wxWindow,
40029 &_swigt__p_wxWindowCreateEvent,
40030 &_swigt__p_wxWindowDC,
40031 &_swigt__p_wxWindowDestroyEvent,
40032 &_swigt__p_wxXPMHandler,
40033};
40034
fc46b7f3 40035static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40036static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40037static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40038static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40039static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40040static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40041static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40042static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40043static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40044static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40045static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40046static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40047static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40048static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40049static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40050static 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}};
40051static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40052static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40053static 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}};
40054static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40055static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40056static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40057static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40058static 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
40059static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40060static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40061static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40062static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40063static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40064static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40065static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40066static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40067static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40068static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40069static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40070static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40071static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40072static 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 40073static 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 40074static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40075static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40076static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40077static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40078static 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 40079static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40080static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40081static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40082static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40083static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40084static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40085static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40086static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40087static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40088static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40089static 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 40090static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40091static 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
40092static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40093static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40094static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40095static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40096static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40097static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40098static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40099static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40100static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40101static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40102static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40103static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40104static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40105static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40106static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40107static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40108static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40109static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40110static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40111static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40112static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40113static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40114static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40115static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40116static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40117static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40118static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40119static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40120static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40121static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40122static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40123static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40124static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40125static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40126static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40127static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40128static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40129static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40130static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40131static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40132static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40133static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40134static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40135static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40136static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40137static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40138static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40139static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40140static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40141static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40142static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40143static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40144static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40145static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40146static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40147static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40148static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40149static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40150static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40151static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40152static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40153static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40154static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40155static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40156static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40157static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40158static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40159static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40160static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40161static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40162static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40163static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40164static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40165static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40166static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40167static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40168static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40169static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40170static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40171static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40172static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40173static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40174static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40175static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40176static 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 40177static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40178static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40179static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40180static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40181static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40182static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40183static 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 40184static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40185static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40186static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40187static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40188static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40189static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40190static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40191static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40192static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 40193static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40194static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40195static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40196static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40197static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40198static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40199static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40200static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40201static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 40202static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40203static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40204static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
26c4d26f 40205static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
40206
40207static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40208 _swigc__p_buffer,
0085ce49
RD
40209 _swigc__p_char,
40210 _swigc__p_double,
40211 _swigc__p_form_ops_t,
40212 _swigc__p_int,
40213 _swigc__p_unsigned_char,
40214 _swigc__p_unsigned_int,
40215 _swigc__p_unsigned_long,
0a27f394 40216 _swigc__p_void,
0085ce49
RD
40217 _swigc__p_wxANIHandler,
40218 _swigc__p_wxAcceleratorTable,
40219 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40220 _swigc__p_wxAlphaPixelData,
40221 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40222 _swigc__p_wxAutoBufferedPaintDC,
0085ce49
RD
40223 _swigc__p_wxBMPHandler,
40224 _swigc__p_wxBitmap,
40225 _swigc__p_wxBoxSizer,
40226 _swigc__p_wxBrush,
40227 _swigc__p_wxBrushList,
40228 _swigc__p_wxBufferedDC,
40229 _swigc__p_wxBufferedPaintDC,
40230 _swigc__p_wxCURHandler,
fc46b7f3 40231 _swigc__p_wxChar,
0085ce49
RD
40232 _swigc__p_wxChildFocusEvent,
40233 _swigc__p_wxClientDC,
2131d850 40234 _swigc__p_wxClipboardTextEvent,
0085ce49 40235 _swigc__p_wxCloseEvent,
72ef6efb 40236 _swigc__p_wxColor,
0085ce49
RD
40237 _swigc__p_wxColour,
40238 _swigc__p_wxColourDatabase,
40239 _swigc__p_wxCommandEvent,
40240 _swigc__p_wxContextMenuEvent,
40241 _swigc__p_wxControl,
40242 _swigc__p_wxControlWithItems,
40243 _swigc__p_wxCursor,
40244 _swigc__p_wxDC,
70d7cb34
RD
40245 _swigc__p_wxDCBrushChanger,
40246 _swigc__p_wxDCClipper,
b39fe951 40247 _swigc__p_wxDCOverlay,
70d7cb34
RD
40248 _swigc__p_wxDCPenChanger,
40249 _swigc__p_wxDCTextColourChanger,
0085ce49
RD
40250 _swigc__p_wxDash,
40251 _swigc__p_wxDateEvent,
40252 _swigc__p_wxDisplayChangedEvent,
40253 _swigc__p_wxDropFilesEvent,
40254 _swigc__p_wxDuplexMode,
40255 _swigc__p_wxEffects,
40256 _swigc__p_wxEncodingConverter,
40257 _swigc__p_wxEraseEvent,
40258 _swigc__p_wxEvent,
40259 _swigc__p_wxEvtHandler,
40260 _swigc__p_wxFSFile,
40261 _swigc__p_wxFileSystem,
40262 _swigc__p_wxFlexGridSizer,
40263 _swigc__p_wxFocusEvent,
40264 _swigc__p_wxFont,
40265 _swigc__p_wxFontList,
40266 _swigc__p_wxFontMapper,
40267 _swigc__p_wxGBSizerItem,
72ef6efb 40268 _swigc__p_wxGCDC,
50efceee 40269 _swigc__p_wxGDIObjListBase,
0085ce49
RD
40270 _swigc__p_wxGDIObject,
40271 _swigc__p_wxGIFHandler,
70d7cb34 40272 _swigc__p_wxGraphicsBrush,
72ef6efb 40273 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40274 _swigc__p_wxGraphicsFont,
40275 _swigc__p_wxGraphicsMatrix,
40276 _swigc__p_wxGraphicsObject,
72ef6efb 40277 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40278 _swigc__p_wxGraphicsPen,
40279 _swigc__p_wxGraphicsRenderer,
0085ce49
RD
40280 _swigc__p_wxGridBagSizer,
40281 _swigc__p_wxGridSizer,
33d6fd3b 40282 _swigc__p_wxHeaderButtonParams,
0085ce49
RD
40283 _swigc__p_wxICOHandler,
40284 _swigc__p_wxIcon,
40285 _swigc__p_wxIconBundle,
40286 _swigc__p_wxIconLocation,
40287 _swigc__p_wxIconizeEvent,
40288 _swigc__p_wxIdleEvent,
40289 _swigc__p_wxImage,
40290 _swigc__p_wxImageHandler,
40291 _swigc__p_wxImageList,
40292 _swigc__p_wxIndividualLayoutConstraint,
40293 _swigc__p_wxInitDialogEvent,
40294 _swigc__p_wxJPEGHandler,
40295 _swigc__p_wxKeyEvent,
40296 _swigc__p_wxLanguageInfo,
40297 _swigc__p_wxLayoutConstraints,
40298 _swigc__p_wxLocale,
40299 _swigc__p_wxMask,
40300 _swigc__p_wxMaximizeEvent,
40301 _swigc__p_wxMemoryDC,
40302 _swigc__p_wxMenu,
40303 _swigc__p_wxMenuBar,
40304 _swigc__p_wxMenuEvent,
40305 _swigc__p_wxMenuItem,
40306 _swigc__p_wxMetaFile,
40307 _swigc__p_wxMetaFileDC,
40308 _swigc__p_wxMirrorDC,
40309 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40310 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
40311 _swigc__p_wxMouseEvent,
40312 _swigc__p_wxMoveEvent,
40313 _swigc__p_wxNativeEncodingInfo,
40314 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40315 _swigc__p_wxNativePixelData,
40316 _swigc__p_wxNativePixelData_Accessor,
0085ce49
RD
40317 _swigc__p_wxNavigationKeyEvent,
40318 _swigc__p_wxNcPaintEvent,
40319 _swigc__p_wxNotifyEvent,
40320 _swigc__p_wxObject,
b39fe951 40321 _swigc__p_wxOverlay,
0085ce49
RD
40322 _swigc__p_wxPCXHandler,
40323 _swigc__p_wxPNGHandler,
40324 _swigc__p_wxPNMHandler,
40325 _swigc__p_wxPaintDC,
40326 _swigc__p_wxPaintEvent,
40327 _swigc__p_wxPalette,
40328 _swigc__p_wxPaletteChangedEvent,
40329 _swigc__p_wxPaperSize,
40330 _swigc__p_wxPen,
40331 _swigc__p_wxPenList,
fc46b7f3 40332 _swigc__p_wxPixelDataBase,
0085ce49 40333 _swigc__p_wxPoint,
72ef6efb 40334 _swigc__p_wxPoint2D,
70d7cb34 40335 _swigc__p_wxPoint2DDouble,
0085ce49
RD
40336 _swigc__p_wxPostScriptDC,
40337 _swigc__p_wxPrintData,
40338 _swigc__p_wxPrinterDC,
27e45892 40339 _swigc__p_wxPseudoDC,
0085ce49
RD
40340 _swigc__p_wxPyApp,
40341 _swigc__p_wxPyCommandEvent,
40342 _swigc__p_wxPyEvent,
40343 _swigc__p_wxPyFontEnumerator,
40344 _swigc__p_wxPyImageHandler,
fc46b7f3 40345 _swigc__p_wxPyLocale,
0085ce49
RD
40346 _swigc__p_wxPySizer,
40347 _swigc__p_wxPyValidator,
40348 _swigc__p_wxQueryNewPaletteEvent,
40349 _swigc__p_wxRect,
70d7cb34 40350 _swigc__p_wxRect2DDouble,
0085ce49
RD
40351 _swigc__p_wxRegion,
40352 _swigc__p_wxRegionIterator,
40353 _swigc__p_wxRendererNative,
40354 _swigc__p_wxRendererVersion,
40355 _swigc__p_wxScreenDC,
40356 _swigc__p_wxScrollEvent,
40357 _swigc__p_wxScrollWinEvent,
40358 _swigc__p_wxSetCursorEvent,
40359 _swigc__p_wxShowEvent,
40360 _swigc__p_wxSize,
40361 _swigc__p_wxSizeEvent,
40362 _swigc__p_wxSizer,
40363 _swigc__p_wxSizerItem,
40364 _swigc__p_wxSplitterRenderParams,
40365 _swigc__p_wxStaticBoxSizer,
40366 _swigc__p_wxStdDialogButtonSizer,
50efceee 40367 _swigc__p_wxStockGDI,
0085ce49
RD
40368 _swigc__p_wxString,
40369 _swigc__p_wxSysColourChangedEvent,
580080c5 40370 _swigc__p_wxTGAHandler,
0085ce49
RD
40371 _swigc__p_wxTIFFHandler,
40372 _swigc__p_wxUpdateUIEvent,
40373 _swigc__p_wxValidator,
40374 _swigc__p_wxWindow,
40375 _swigc__p_wxWindowCreateEvent,
40376 _swigc__p_wxWindowDC,
40377 _swigc__p_wxWindowDestroyEvent,
40378 _swigc__p_wxXPMHandler,
40379};
40380
40381
40382/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40383
40384static swig_const_info swig_const_table[] = {
40385{0, 0, 0, 0.0, 0, 0}};
40386
40387#ifdef __cplusplus
40388}
40389#endif
40390/* -----------------------------------------------------------------------------
40391 * Type initialization:
40392 * This problem is tough by the requirement that no dynamic
40393 * memory is used. Also, since swig_type_info structures store pointers to
40394 * swig_cast_info structures and swig_cast_info structures store pointers back
40395 * to swig_type_info structures, we need some lookup code at initialization.
40396 * The idea is that swig generates all the structures that are needed.
40397 * The runtime then collects these partially filled structures.
40398 * The SWIG_InitializeModule function takes these initial arrays out of
40399 * swig_module, and does all the lookup, filling in the swig_module.types
40400 * array with the correct data and linking the correct swig_cast_info
40401 * structures together.
40402 *
40403 * The generated swig_type_info structures are assigned staticly to an initial
40404 * array. We just loop though that array, and handle each type individually.
40405 * First we lookup if this type has been already loaded, and if so, use the
40406 * loaded structure instead of the generated one. Then we have to fill in the
40407 * cast linked list. The cast data is initially stored in something like a
40408 * two-dimensional array. Each row corresponds to a type (there are the same
40409 * number of rows as there are in the swig_type_initial array). Each entry in
40410 * a column is one of the swig_cast_info structures for that type.
40411 * The cast_initial array is actually an array of arrays, because each row has
40412 * a variable number of columns. So to actually build the cast linked list,
40413 * we find the array of casts associated with the type, and loop through it
40414 * adding the casts to the list. The one last trick we need to do is making
40415 * sure the type pointer in the swig_cast_info struct is correct.
40416 *
40417 * First off, we lookup the cast->type name to see if it is already loaded.
40418 * There are three cases to handle:
40419 * 1) If the cast->type has already been loaded AND the type we are adding
40420 * casting info to has not been loaded (it is in this module), THEN we
40421 * replace the cast->type pointer with the type pointer that has already
40422 * been loaded.
40423 * 2) If BOTH types (the one we are adding casting info to, and the
40424 * cast->type) are loaded, THEN the cast info has already been loaded by
40425 * the previous module so we just ignore it.
40426 * 3) Finally, if cast->type has not already been loaded, then we add that
40427 * swig_cast_info to the linked list (because the cast->type) pointer will
40428 * be correct.
40429 * ----------------------------------------------------------------------------- */
40430
40431#ifdef __cplusplus
40432extern "C" {
40433#if 0
40434} /* c-mode */
40435#endif
40436#endif
40437
40438#if 0
40439#define SWIGRUNTIME_DEBUG
40440#endif
40441
40442SWIGRUNTIME void
40443SWIG_InitializeModule(void *clientdata) {
40444 size_t i;
40445 swig_module_info *module_head;
40446 static int init_run = 0;
40447
40448 clientdata = clientdata;
40449
40450 if (init_run) return;
40451 init_run = 1;
40452
40453 /* Initialize the swig_module */
40454 swig_module.type_initial = swig_type_initial;
40455 swig_module.cast_initial = swig_cast_initial;
40456
40457 /* Try and load any already created modules */
40458 module_head = SWIG_GetModule(clientdata);
40459 if (module_head) {
40460 swig_module.next = module_head->next;
40461 module_head->next = &swig_module;
40462 } else {
40463 /* This is the first module loaded */
40464 swig_module.next = &swig_module;
40465 SWIG_SetModule(clientdata, &swig_module);
40466 }
40467
40468 /* Now work on filling in swig_module.types */
40469#ifdef SWIGRUNTIME_DEBUG
40470 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40471#endif
40472 for (i = 0; i < swig_module.size; ++i) {
40473 swig_type_info *type = 0;
40474 swig_type_info *ret;
40475 swig_cast_info *cast;
40476
40477#ifdef SWIGRUNTIME_DEBUG
40478 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40479#endif
40480
40481 /* if there is another module already loaded */
40482 if (swig_module.next != &swig_module) {
40483 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8d38bd1d 40484 }
0085ce49
RD
40485 if (type) {
40486 /* Overwrite clientdata field */
40487#ifdef SWIGRUNTIME_DEBUG
40488 printf("SWIG_InitializeModule: found type %s\n", type->name);
40489#endif
40490 if (swig_module.type_initial[i]->clientdata) {
40491 type->clientdata = swig_module.type_initial[i]->clientdata;
40492#ifdef SWIGRUNTIME_DEBUG
40493 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40494#endif
40495 }
40496 } else {
40497 type = swig_module.type_initial[i];
8d38bd1d 40498 }
0085ce49
RD
40499
40500 /* Insert casting types */
40501 cast = swig_module.cast_initial[i];
40502 while (cast->type) {
40503 /* Don't need to add information already in the list */
40504 ret = 0;
40505#ifdef SWIGRUNTIME_DEBUG
40506 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40507#endif
40508 if (swig_module.next != &swig_module) {
40509 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40510#ifdef SWIGRUNTIME_DEBUG
40511 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40512#endif
40513 }
40514 if (ret) {
40515 if (type == swig_module.type_initial[i]) {
40516#ifdef SWIGRUNTIME_DEBUG
40517 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40518#endif
40519 cast->type = ret;
40520 ret = 0;
40521 } else {
40522 /* Check for casting already in the list */
40523 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40524#ifdef SWIGRUNTIME_DEBUG
40525 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40526#endif
40527 if (!ocast) ret = 0;
40528 }
40529 }
40530
40531 if (!ret) {
40532#ifdef SWIGRUNTIME_DEBUG
40533 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40534#endif
40535 if (type->cast) {
40536 type->cast->prev = cast;
40537 cast->next = type->cast;
40538 }
40539 type->cast = cast;
40540 }
40541 cast++;
8d38bd1d 40542 }
0085ce49
RD
40543 /* Set entry in modules->types array equal to the type */
40544 swig_module.types[i] = type;
40545 }
40546 swig_module.types[i] = 0;
40547
40548#ifdef SWIGRUNTIME_DEBUG
40549 printf("**** SWIG_InitializeModule: Cast List ******\n");
40550 for (i = 0; i < swig_module.size; ++i) {
40551 int j = 0;
40552 swig_cast_info *cast = swig_module.cast_initial[i];
40553 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40554 while (cast->type) {
40555 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40556 cast++;
40557 ++j;
40558 }
40559 printf("---- Total casts: %d\n",j);
40560 }
40561 printf("**** SWIG_InitializeModule: Cast List ******\n");
40562#endif
40563}
40564
40565/* This function will propagate the clientdata field of type to
40566* any new swig_type_info structures that have been added into the list
40567* of equivalent types. It is like calling
40568* SWIG_TypeClientData(type, clientdata) a second time.
40569*/
40570SWIGRUNTIME void
40571SWIG_PropagateClientData(void) {
40572 size_t i;
40573 swig_cast_info *equiv;
40574 static int init_run = 0;
40575
40576 if (init_run) return;
40577 init_run = 1;
40578
40579 for (i = 0; i < swig_module.size; i++) {
40580 if (swig_module.types[i]->clientdata) {
40581 equiv = swig_module.types[i]->cast;
40582 while (equiv) {
40583 if (!equiv->converter) {
40584 if (equiv->type && !equiv->type->clientdata)
40585 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40586 }
40587 equiv = equiv->next;
40588 }
8d38bd1d 40589 }
0085ce49
RD
40590 }
40591}
40592
40593#ifdef __cplusplus
40594#if 0
40595{
40596 /* c-mode */
40597#endif
40598}
40599#endif
40600
40601
40602
40603#ifdef __cplusplus
40604extern "C" {
40605#endif
40606
40607 /* Python-specific SWIG API */
40608#define SWIG_newvarlink() SWIG_Python_newvarlink()
40609#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40610#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40611
40612 /* -----------------------------------------------------------------------------
40613 * global variable support code.
40614 * ----------------------------------------------------------------------------- */
40615
40616 typedef struct swig_globalvar {
40617 char *name; /* Name of global variable */
40618 PyObject *(*get_attr)(void); /* Return the current value */
40619 int (*set_attr)(PyObject *); /* Set the value */
40620 struct swig_globalvar *next;
40621 } swig_globalvar;
40622
40623 typedef struct swig_varlinkobject {
40624 PyObject_HEAD
40625 swig_globalvar *vars;
40626 } swig_varlinkobject;
40627
40628 SWIGINTERN PyObject *
40629 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40630 return PyString_FromString("<Swig global variables>");
40631 }
40632
40633 SWIGINTERN PyObject *
40634 swig_varlink_str(swig_varlinkobject *v) {
40635 PyObject *str = PyString_FromString("(");
40636 swig_globalvar *var;
40637 for (var = v->vars; var; var=var->next) {
40638 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40639 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40640 }
40641 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40642 return str;
40643 }
40644
40645 SWIGINTERN int
40646 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40647 PyObject *str = swig_varlink_str(v);
40648 fprintf(fp,"Swig global variables ");
40649 fprintf(fp,"%s\n", PyString_AsString(str));
40650 Py_DECREF(str);
40651 return 0;
40652 }
40653
40654 SWIGINTERN void
40655 swig_varlink_dealloc(swig_varlinkobject *v) {
40656 swig_globalvar *var = v->vars;
40657 while (var) {
40658 swig_globalvar *n = var->next;
40659 free(var->name);
40660 free(var);
40661 var = n;
8d38bd1d 40662 }
0085ce49
RD
40663 }
40664
40665 SWIGINTERN PyObject *
40666 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40667 PyObject *res = NULL;
40668 swig_globalvar *var = v->vars;
40669 while (var) {
40670 if (strcmp(var->name,n) == 0) {
40671 res = (*var->get_attr)();
40672 break;
40673 }
40674 var = var->next;
8d38bd1d 40675 }
0085ce49
RD
40676 if (res == NULL && !PyErr_Occurred()) {
40677 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 40678 }
0085ce49
RD
40679 return res;
40680 }
40681
40682 SWIGINTERN int
40683 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40684 int res = 1;
40685 swig_globalvar *var = v->vars;
40686 while (var) {
40687 if (strcmp(var->name,n) == 0) {
40688 res = (*var->set_attr)(p);
40689 break;
40690 }
40691 var = var->next;
8d38bd1d 40692 }
0085ce49
RD
40693 if (res == 1 && !PyErr_Occurred()) {
40694 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 40695 }
0085ce49
RD
40696 return res;
40697 }
40698
40699 SWIGINTERN PyTypeObject*
40700 swig_varlink_type(void) {
40701 static char varlink__doc__[] = "Swig var link object";
40702 static PyTypeObject varlink_type;
40703 static int type_init = 0;
40704 if (!type_init) {
40705 const PyTypeObject tmp
40706 = {
40707 PyObject_HEAD_INIT(NULL)
40708 0, /* Number of items in variable part (ob_size) */
40709 (char *)"swigvarlink", /* Type name (tp_name) */
40710 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40711 0, /* Itemsize (tp_itemsize) */
40712 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40713 (printfunc) swig_varlink_print, /* Print (tp_print) */
40714 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40715 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40716 0, /* tp_compare */
40717 (reprfunc) swig_varlink_repr, /* tp_repr */
40718 0, /* tp_as_number */
40719 0, /* tp_as_sequence */
40720 0, /* tp_as_mapping */
40721 0, /* tp_hash */
40722 0, /* tp_call */
40723 (reprfunc)swig_varlink_str, /* tp_str */
40724 0, /* tp_getattro */
40725 0, /* tp_setattro */
40726 0, /* tp_as_buffer */
40727 0, /* tp_flags */
40728 varlink__doc__, /* tp_doc */
40729 0, /* tp_traverse */
40730 0, /* tp_clear */
40731 0, /* tp_richcompare */
40732 0, /* tp_weaklistoffset */
40733#if PY_VERSION_HEX >= 0x02020000
40734 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40735#endif
40736#if PY_VERSION_HEX >= 0x02030000
40737 0, /* tp_del */
40738#endif
40739#ifdef COUNT_ALLOCS
40740 0,0,0,0 /* tp_alloc -> tp_next */
40741#endif
40742 };
40743 varlink_type = tmp;
40744 varlink_type.ob_type = &PyType_Type;
40745 type_init = 1;
8d38bd1d 40746 }
0085ce49
RD
40747 return &varlink_type;
40748 }
40749
40750 /* Create a variable linking object for use later */
40751 SWIGINTERN PyObject *
40752 SWIG_Python_newvarlink(void) {
40753 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40754 if (result) {
40755 result->vars = 0;
40756 }
40757 return ((PyObject*) result);
40758 }
40759
40760 SWIGINTERN void
40761 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40762 swig_varlinkobject *v = (swig_varlinkobject *) p;
40763 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40764 if (gv) {
40765 size_t size = strlen(name)+1;
40766 gv->name = (char *)malloc(size);
40767 if (gv->name) {
40768 strncpy(gv->name,name,size);
40769 gv->get_attr = get_attr;
40770 gv->set_attr = set_attr;
40771 gv->next = v->vars;
40772 }
8d38bd1d 40773 }
0085ce49
RD
40774 v->vars = gv;
40775 }
40776
40777 SWIGINTERN PyObject *
40778 SWIG_globals() {
40779 static PyObject *_SWIG_globals = 0;
40780 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40781 return _SWIG_globals;
40782 }
40783
40784 /* -----------------------------------------------------------------------------
40785 * constants/methods manipulation
40786 * ----------------------------------------------------------------------------- */
40787
40788 /* Install Constants */
40789 SWIGINTERN void
40790 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40791 PyObject *obj = 0;
40792 size_t i;
40793 for (i = 0; constants[i].type; ++i) {
40794 switch(constants[i].type) {
40795 case SWIG_PY_POINTER:
40796 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40797 break;
40798 case SWIG_PY_BINARY:
40799 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40800 break;
40801 default:
40802 obj = 0;
40803 break;
40804 }
40805 if (obj) {
40806 PyDict_SetItemString(d, constants[i].name, obj);
40807 Py_DECREF(obj);
40808 }
8d38bd1d 40809 }
0085ce49
RD
40810 }
40811
40812 /* -----------------------------------------------------------------------------*/
40813 /* Fix SwigMethods to carry the callback ptrs when needed */
40814 /* -----------------------------------------------------------------------------*/
40815
40816 SWIGINTERN void
40817 SWIG_Python_FixMethods(PyMethodDef *methods,
40818 swig_const_info *const_table,
40819 swig_type_info **types,
40820 swig_type_info **types_initial) {
40821 size_t i;
40822 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 40823 const char *c = methods[i].ml_doc;
0085ce49
RD
40824 if (c && (c = strstr(c, "swig_ptr: "))) {
40825 int j;
40826 swig_const_info *ci = 0;
453fb36b 40827 const char *name = c + 10;
0085ce49
RD
40828 for (j = 0; const_table[j].type; ++j) {
40829 if (strncmp(const_table[j].name, name,
40830 strlen(const_table[j].name)) == 0) {
40831 ci = &(const_table[j]);
40832 break;
40833 }
40834 }
40835 if (ci) {
40836 size_t shift = (ci->ptype) - types;
40837 swig_type_info *ty = types_initial[shift];
40838 size_t ldoc = (c - methods[i].ml_doc);
40839 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40840 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40841 if (ndoc) {
40842 char *buff = ndoc;
40843 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40844 if (ptr) {
40845 strncpy(buff, methods[i].ml_doc, ldoc);
40846 buff += ldoc;
40847 strncpy(buff, "swig_ptr: ", 10);
40848 buff += 10;
40849 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40850 methods[i].ml_doc = ndoc;
40851 }
40852 }
40853 }
40854 }
8d38bd1d 40855 }
0085ce49
RD
40856 }
40857
40858#ifdef __cplusplus
40859}
40860#endif
40861
40862/* -----------------------------------------------------------------------------*
40863 * Partial Init method
40864 * -----------------------------------------------------------------------------*/
40865
40866#ifdef __cplusplus
40867extern "C"
40868#endif
40869SWIGEXPORT void SWIG_init(void) {
40870 PyObject *m, *d;
40871
40872 /* Fix SwigMethods to carry the callback ptrs when needed */
40873 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40874
40875 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40876 d = PyModule_GetDict(m);
40877
40878 SWIG_InitializeModule(0);
40879 SWIG_InstallConstants(d,swig_const_table);
40880
40881
01f6b6d3
RD
40882 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40883 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40884 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
40885 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40886 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
0085ce49
RD
40887 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40888 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40889 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40890 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40891 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40892 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40893 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40894 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40895 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40896 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40897 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40898 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40899 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40900 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40901 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40902 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40903 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40904 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40905 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40906 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40907 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40908 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40909 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40910 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40911 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40912 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40913 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40914 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40915 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40916 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40917 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40918 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40919 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40920 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40921 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40922 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40923 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40924 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40925 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40926 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40927 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40928 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40929 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40930 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40931 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40932 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40933 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40934 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40935 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40936 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40937 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40938 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40939 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40940 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40941 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40942 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40943 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40944 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40945 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40946 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40947 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40948 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40949 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40950 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40951 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40952 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40953 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40954 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40955 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40956 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40957 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40958 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40959 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40960 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40961 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40962 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40963 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40964 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40965 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40966 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40967 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40968 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40969 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40970 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40971 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40972 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40973 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40974 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40975 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40976 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40977 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40978 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40979 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40980 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40981 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40982 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
40983 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
40984 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
40985 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
40986 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
40987 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
40988 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
40989 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
40990 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
40991 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
40992 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
40993 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
40994 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
40995 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
40996 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
40997 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
40998 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
40999 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41000 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41001 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41002 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41003 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41004 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41005 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41006 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41007 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41008 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41009 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41010 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41011 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41012 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41013 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41014
41015 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41016
41017 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41018 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41019 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41020 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41021 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41022 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41023 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41024 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41025 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41026 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41027 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41028 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41029 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41030 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41031 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41032 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41033 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41034 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41035 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41036 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41037 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41038 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41039 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41040 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41041 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41042 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41043 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41044 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41045 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41046 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41047 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41048 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41049 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41050 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41051 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41052 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41053 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41054 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41055 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41056 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41057 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41058 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41059 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41060 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41061 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41062 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41063 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41064 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41065 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41066 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41067 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41068 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41069 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41070 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41071 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41072 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41073 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41074 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41075 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41076 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41077 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41078 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41079 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41080 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41081 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41082 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41083 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41084 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41085 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41086 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41087 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41088 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41089 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41090 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41091 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41092 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41093 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41094 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41095 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41096 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41097 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41098 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41099 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41100 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41101 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41102 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41103 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41104 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41105 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41106 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41107 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41108 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41109 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41110 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41111 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41112 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41113 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41114 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41115 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41116 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41117 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41118 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41119 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41120 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41121 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41122 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41123 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41124 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41125 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41126 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41127 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41128 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41129 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41130 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41131 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41132 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41133 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41134 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41135 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41136 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41137 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41138 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41139 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41140 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41141 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41142 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41143 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41144 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41145 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41146 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41147 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41148 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41149 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41150 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41151 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41152 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41153 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41154 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41155 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41156 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41157 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41158 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41159 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41160 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41161 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41162 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41163 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41164 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41165 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41166 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41167 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41168 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41169 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41170 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41171 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41172 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41173 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41174 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41175 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41176 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41177 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41178 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41179 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41180 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41181 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41182 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41183 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41184 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41185 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41186 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41187 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41188 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41189 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41190 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41191 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41192 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41193 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41194 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41195 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41196 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41197 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41198 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41199 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41200 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41201 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41202 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41203 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41204 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41205 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41206 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41207 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41208 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41209 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41210 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41211 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41212 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41213 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41214 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41215 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41216 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41217 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41218 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41219 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41220 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41221 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41222 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41223 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41224 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41225 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41226 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41227 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41228 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41229 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41230 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41231 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41232 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41233 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41234 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41235 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41248 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41249 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41250 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41251 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41252 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41253 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41254 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41255 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41256 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41257 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41258 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41259 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41260 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41261 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41262 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41263 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41264 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41265 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41266 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41267 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41268 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41269 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41270 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
0085ce49
RD
41271 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41272 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41273 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41274 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41275 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41276 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41277 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
41278 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41279 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41280 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41281 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41282 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41283 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41284 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41285 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41286 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41287 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41288 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41289 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41290 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41291 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41292 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41293 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41294 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41295 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41296 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41297 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41298 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41299 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41300 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41301 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41302 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41303 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41304 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41305 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41306 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41307 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41308 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41309 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41310 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41311 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41312 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
0085ce49
RD
41313 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41314 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41315 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41316 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41317 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41318 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41319 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41320 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
0085ce49
RD
41321 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41322 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41323 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41324 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
0085ce49
RD
41325 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41326 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41327 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41328 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
0085ce49
RD
41329 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41330 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41331 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41332 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41333 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41334 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41335 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41336 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41337 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41338 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
0085ce49
RD
41339 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41340 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41341
41342 // Work around a chicken/egg problem in drawlist.cpp
41343 wxPyDrawList_SetAPIPtr();
41344
d14a1e28
RD
41345}
41346